Project Generator File Copy

Project Generator may now automatically copy files needed for a module
into the project's directory.  Use the new copyFileToProject() function
in the module .inc file.  The following modules have been set up for
this:

- FMod
- Leap Motion
- PhysX
- Razer Hydra

These modules have been set up to copy both release and debug files as
appropriate.  When releasing your game you'll likely want to not include
any debug files.
This commit is contained in:
DavidWyand-GG 2013-04-21 17:10:50 -04:00
parent 2dcc7f0247
commit 262ddb1a27
7 changed files with 78 additions and 0 deletions

View file

@ -319,6 +319,17 @@ class Generator
self::$project_cur->moduleDefinitionFile = $mdef;
}
static function copyFileToProject( $sourcePath, $projectDestPath )
{
// Create the array to hold the source and destination
$paths = array();
array_push( $paths, $sourcePath );
array_push( $paths, $projectDestPath );
// Add to the project
array_push( self::$project_cur->fileCopyPaths, $paths );
}
static function beginModule( $name )
{
if( !self::$module_cur )