Adding drivers to Player 3

From The Player Project

Jump to: navigation, search
m (Undo revision 4140 by Ybysavozy (Talk))
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 24: Line 16:
  PLAYERDRIVER_OPTION (cmvision build_cmvision ON)
  PLAYERDRIVER_OPTION (cmvision build_cmvision ON)
-
  PLAYERDRIVER_ADD_DRIVER (cmvision build_cmvision CFLAGS &quot;-DUSE_METEOR&quot; SOURCES cmvision.cc conversions.c P2CMV.cc)
+
  PLAYERDRIVER_ADD_DRIVER (cmvision build_cmvision CFLAGS "-DUSE_METEOR" 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 43: Line 35:
== PLAYERDRIVER_ADD_DRIVER ==
== PLAYERDRIVER_ADD_DRIVER ==
-
'''PLAYERDRIVER_ADD_DRIVER (_name _cumulativeVar &lt;variable args&gt;)'''
+
'''PLAYERDRIVER_ADD_DRIVER (_name _cumulativeVar <variable args>)'''
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 &lt;source file list&gt;
+
  SOURCES <source file list>
-
  INCLUDEDIRS &lt;include directories list&gt;
+
  INCLUDEDIRS <include directories list>
-
  LIBDIRS &lt;library directories list&gt;
+
  LIBDIRS <library directories list>
-
  LINKFLAGS &lt;link flags list&gt;
+
  LINKFLAGS <link flags list>
-
  CFLAGS &lt;compile flags list&gt;
+
  CFLAGS <compile flags list>
;name
;name
Line 62: Line 54:
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 &lt;source file list&gt;
+
  SOURCES <source file list>
-
  INCLUDEDIRS &lt;include directories list&gt;
+
  INCLUDEDIRS <include directories list>
-
  LIBDIRS &lt;library directories list&gt;
+
  LIBDIRS <library directories list>
-
  LINKFLAGS &lt;link flags list&gt;
+
  LINKFLAGS <link flags list>
-
  CFLAGS &lt;compile flags list&gt;
+
  CFLAGS <compile flags list>
== PLAYERDRIVER_OPTION ==
== PLAYERDRIVER_OPTION ==
Line 87: Line 79:
== PLAYERDRIVER_REQUIRE_OS ==
== PLAYERDRIVER_REQUIRE_OS ==
-
'''PLAYERDRIVER_REQUIRE_OS (_name _cumulativeVar &lt;variable args&gt;)'''
+
'''PLAYERDRIVER_REQUIRE_OS (_name _cumulativeVar <variable args>)'''
Require a certain OS.
Require a certain OS.
Line 100: Line 92:
== PLAYERDRIVER_REJECT_OS ==
== PLAYERDRIVER_REJECT_OS ==
-
'''PLAYERDRIVER_REJECT_OS (_name _cumulativeVar &lt;variable args&gt;)'''
+
'''PLAYERDRIVER_REJECT_OS (_name _cumulativeVar <variable args>)'''
Prevent building on a certain OS.
Prevent building on a certain OS.
Line 115: Line 107:
'''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, &quot;&gt;=0.9.6&quot;.
+
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".
;name
;name
Line 151: Line 143:
'''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&lt;_header&gt; 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<_header> line.) See the CheckIncludeFileCXX.cmake module for extra variables that may modify how this macro runs.
;name
;name

Revision as of 16:03, 24 November 2010

Personal tools