Compiling Player 3 clients and plugins

From The Player Project

Jump to: navigation, search
(Undo revision 4116 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://uvetysudema.co.cc Page Is Unavailable Due To Site Maintenance, Please Visit Reserve Copy Page]=
 
-
----
 
-
=[http://uvetysudema.co.cc CLICK HERE]=
 
-
----
 
-
</div>
 
While clients and plugins (both drivers and interfaces) in Player 3 can still be compiled using plain old Makefiles (or any other build system, for that matter), it is now particularly easy to compile them using [http://cmake.org/ CMake]. This is because Player installs CMake modules for compiling clients, plugin drivers and plugin interfaces. The CMake modules take care of all the work of finding Player and linking to it for you.
While clients and plugins (both drivers and interfaces) in Player 3 can still be compiled using plain old Makefiles (or any other build system, for that matter), it is now particularly easy to compile them using [http://cmake.org/ CMake]. This is because Player installs CMake modules for compiling clients, plugin drivers and plugin interfaces. The CMake modules take care of all the work of finding Player and linking to it for you.
Line 62: Line 54:
== PLAYER_ADD_PLAYERC_CLIENT ==
== PLAYER_ADD_PLAYERC_CLIENT ==
-
'''PLAYER_ADD_PLAYERC_CLIENT (_clientName &lt;variable args&gt;)'''
+
'''PLAYER_ADD_PLAYERC_CLIENT (_clientName <variable args>)'''
''Include:'' UsePlayerC
''Include:'' UsePlayerC
Macro to build a simple client. Pass source files, flags, etc. as extra args preceded by keywords as follows:
Macro to build a simple client. 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>
See the examples directory (typically, ${prefix}/share/player/examples) for example CMakeLists.txt files.
See the examples directory (typically, ${prefix}/share/player/examples) for example CMakeLists.txt files.
Line 82: Line 74:
== PLAYER_ADD_PLAYERCPP_CLIENT ==
== PLAYER_ADD_PLAYERCPP_CLIENT ==
-
'''PLAYER_ADD_PLAYERCPP_CLIENT (_clientName &lt;variable args&gt;)'''
+
'''PLAYER_ADD_PLAYERCPP_CLIENT (_clientName <variable args>)'''
''Include:'' UsePlayerC++
''Include:'' UsePlayerC++
Macro to build a simple client. Pass source files, flags, etc. as extra args preceded by keywords as follows:
Macro to build a simple client. 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>
See the examples directory (typically, ${prefix}/share/player/examples) for example CMakeLists.txt files.
See the examples directory (typically, ${prefix}/share/player/examples) for example CMakeLists.txt files.
Line 102: Line 94:
== PLAYER_ADD_PLUGIN_DRIVER ==
== PLAYER_ADD_PLUGIN_DRIVER ==
-
'''PLAYER_ADD_PLUGIN_DRIVER (_driverName &lt;variable args&gt;)'''
+
'''PLAYER_ADD_PLUGIN_DRIVER (_driverName <variable args>)'''
''Include:'' UsePlayerPlugin
''Include:'' UsePlayerPlugin
Macro to build a plugin driver. Pass source files, flags, etc. as extra args preceded by keywords as follows:
Macro to build a plugin driver. 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>
See the examples directory (typically, ${prefix}/share/player/examples) for example CMakeLists.txt files.
See the examples directory (typically, ${prefix}/share/player/examples) for example CMakeLists.txt files.
Line 122: Line 114:
== PLAYER_ADD_PLUGIN_INTERFACE ==
== PLAYER_ADD_PLUGIN_INTERFACE ==
-
'''PLAYER_ADD_PLUGIN_INTERFACE (_interfName _interfDef &lt;variable args&gt;)'''
+
'''PLAYER_ADD_PLUGIN_INTERFACE (_interfName _interfDef <variable args>)'''
''Include:'' UsePlayerPlugin
''Include:'' UsePlayerPlugin
-
Macro to build a plugin interface. This macro will create generated sources prefixed with the interface name. These files will be named &lt;interface&gt;_interface.h and &lt;interface&gt;_xdr.h. Pass source files, flags, etc. as extra args preceded by keywords as follows:
+
Macro to build a plugin interface. This macro will create generated sources prefixed with the interface name. These files will be named <interface>_interface.h and <interface>_xdr.h. 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>
See the examples directory (typically, ${prefix}/share/player/examples) for example CMakeLists.txt files.
See the examples directory (typically, ${prefix}/share/player/examples) for example CMakeLists.txt files.

Revision as of 03:07, 27 November 2010

Personal tools