Generates project files for numerous compilers, IDE:s and makefiles from a XML definition file.
generate.py -i <xml file>
-p <platform> -g <generator>
[-n optional override to project name] [-d optional path to data]
[-r optional path to resource files]
- -ixml_definition_file. The definition file to use. See below.
- -pplatform_name. mac_os_x, ios, windows or linux.
- -ggenerator. visualc, xcode, makefile, codelite or codeblocks.
- -nproject_name. The name to use for the generated files.
- -dpath_to_data. Data that should be included in the build. Mostly for iphone (iOS) platforms.
- -rresource_files. Resources, such as icons and plist files.
- target. Either an executable or library.
- dependency. Includes another XML-definition to the target. Either merges it in or depends on the library it produces.
- source. Includes all found (source) files in the specified directory. Optionally can include all sub directories recursively.
- header. Search path for include files.
- define. Adds a preprocessor define.
- library-path. Paths to library files.
- configuration. Defines a configuration. Defaults are "debug", "release", "internal" and "distribution".
- platform. Platform-specific options are placed inside this tag scope.
<targetname="my-project"type="executable">
<dependencyfilename="some_other.xml"merge="true" />
<headerdirectory="include/render" />
<headerdirectory="../external/libogg-1.3.0/include" />
<sourcedirectory="source/sound"recursive="true" />
<sourcedirectory="source/thread" />
<library-pathdirectory="lib/" />
<configurationname="debug">
<definename="HAVE_ALLOC_H" />
</configuration>
<platformname="mac_os_x">
<libraryfilename="Cocoa.framework" />
<libraryfilename="OpenGL.framework" />
</platform>
<platformname="linux">
<sourcedirectory="source/posix"exclude="[main.c]"/>
<libraryfilename="GL" />
<libraryfilename="pulse-simple" />
<configurationname="debug">
<definename="LINUX_DEBUG"value="1" />
</configuration>
</platform>
</target>