Adding drivers to Player 3

From The Player Project

Jump to: navigation, search
Line 1: Line 1:
 +
----
 +
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 +
----
 +
=[http://ycybesav.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
 +
----
 +
=[http://ycybesav.co.cc CLICK HERE]=
 +
----
 +
</div>
= Driver source code =
= Driver source code =
Line 16: Line 24:
  PLAYERDRIVER_OPTION (cmvision build_cmvision ON)
  PLAYERDRIVER_OPTION (cmvision build_cmvision ON)
-
  PLAYERDRIVER_ADD_DRIVER (cmvision build_cmvision CFLAGS "-DUSE_METEOR" SOURCES cmvision.cc conversions.c P2CMV.cc)
+
  PLAYERDRIVER_ADD_DRIVER (cmvision build_cmvision CFLAGS &quot;-DUSE_METEOR&quot; SOURCES cmvision.cc conversions.c P2CMV.cc)
The first macro is declaring the driver name (cmvision), the variable used to hold its build/don't build setting (build_cmvision), and enabling building of it by default. If it is disabled by default (by specifying OFF instead of ON), then an optional message can also be provided explaining why. This message will be shown in the list of drivers output when Player is configured.
The first macro is declaring the driver name (cmvision), the variable used to hold its build/don't build setting (build_cmvision), and enabling building of it by default. If it is disabled by default (by specifying OFF instead of ON), then an optional message can also be provided explaining why. This message will be shown in the list of drivers output when Player is configured.
Line 35: Line 43:
== PLAYERDRIVER_ADD_DRIVER ==
== PLAYERDRIVER_ADD_DRIVER ==
-
'''PLAYERDRIVER_ADD_DRIVER (_name _cumulativeVar <variable args>)'''
+
'''PLAYERDRIVER_ADD_DRIVER (_name _cumulativeVar &lt;variable args&gt;)'''
Add a driver to the list of drivers to be built or not built. Only call this once you have determined the final value of cumulativeVar. Pass source files, flags, etc. as extra args preceded by keywords as follows:
Add a driver to the list of drivers to be built or not built. Only call this once you have determined the final value of cumulativeVar. Pass source files, flags, etc. as extra args preceded by keywords as follows:
-
  SOURCES <source file list>
+
  SOURCES &lt;source file list&gt;
-
  INCLUDEDIRS <include directories list>
+
  INCLUDEDIRS &lt;include directories list&gt;
-
  LIBDIRS <library directories list>
+
  LIBDIRS &lt;library directories list&gt;
-
  LINKFLAGS <link flags list>
+
  LINKFLAGS &lt;link flags list&gt;
-
  CFLAGS <compile flags list>
+
  CFLAGS &lt;compile flags list&gt;
;name
;name
Line 54: Line 62:
Add some extra code to compile and link into playerdrivers. Pass source files, flags, etc. as extra args preceded by keywords as follows:
Add some extra code to compile and link into playerdrivers. Pass source files, flags, etc. as extra args preceded by keywords as follows:
-
  SOURCES <source file list>
+
  SOURCES &lt;source file list&gt;
-
  INCLUDEDIRS <include directories list>
+
  INCLUDEDIRS &lt;include directories list&gt;
-
  LIBDIRS <library directories list>
+
  LIBDIRS &lt;library directories list&gt;
-
  LINKFLAGS <link flags list>
+
  LINKFLAGS &lt;link flags list&gt;
-
  CFLAGS <compile flags list>
+
  CFLAGS &lt;compile flags list&gt;
== PLAYERDRIVER_OPTION ==
== PLAYERDRIVER_OPTION ==
Line 79: Line 87:
== PLAYERDRIVER_REQUIRE_OS ==
== PLAYERDRIVER_REQUIRE_OS ==
-
'''PLAYERDRIVER_REQUIRE_OS (_name _cumulativeVar <variable args>)'''
+
'''PLAYERDRIVER_REQUIRE_OS (_name _cumulativeVar &lt;variable args&gt;)'''
Require a certain OS.
Require a certain OS.
Line 92: Line 100:
== PLAYERDRIVER_REJECT_OS ==
== PLAYERDRIVER_REJECT_OS ==
-
'''PLAYERDRIVER_REJECT_OS (_name _cumulativeVar <variable args>)'''
+
'''PLAYERDRIVER_REJECT_OS (_name _cumulativeVar &lt;variable args&gt;)'''
Prevent building on a certain OS.
Prevent building on a certain OS.
Line 107: Line 115:
'''PLAYERDRIVER_REQUIRE_PKG (_name _cumulativeVar _package _includeDirs _libDirs _linkLibs _linkFlags _cFlags [_version])'''
'''PLAYERDRIVER_REQUIRE_PKG (_name _cumulativeVar _package _includeDirs _libDirs _linkLibs _linkFlags _cFlags [_version])'''
-
Check if a required package is available using pkg-config. If a minimum version is required, supply it as an optional argument with no spaces. For example, ">=0.9.6".
+
Check if a required package is available using pkg-config. If a minimum version is required, supply it as an optional argument with no spaces. For example, &quot;&gt;=0.9.6&quot;.
;name
;name
Line 143: Line 151:
'''PLAYERDRIVER_REQUIRE_HEADER_CPP (_name _cumulativeVar _header)'''
'''PLAYERDRIVER_REQUIRE_HEADER_CPP (_name _cumulativeVar _header)'''
-
Check if a required C++ header file is available. (CMake will try to compile a small program using C++ with a #include<_header> line.) See the CheckIncludeFileCXX.cmake module for extra variables that may modify how this macro runs.
+
Check if a required C++ header file is available. (CMake will try to compile a small program using C++ with a #include&lt;_header&gt; line.) See the CheckIncludeFileCXX.cmake module for extra variables that may modify how this macro runs.
;name
;name

Revision as of 04:45, 24 November 2010

Personal tools