mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
changed Generator to T3D_Generator to prevent problems with newer php versions
This commit is contained in:
parent
39b893f1ca
commit
9b49f56bd6
26 changed files with 160 additions and 160 deletions
|
|
@ -60,14 +60,14 @@
|
||||||
addProjectDependency( 'libbullet' );
|
addProjectDependency( 'libbullet' );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( Generator::$platform == "mac" )
|
if ( T3D_Generator::$platform == "mac" )
|
||||||
{
|
{
|
||||||
addProjectDefine( '__MACOSX__' );
|
addProjectDefine( '__MACOSX__' );
|
||||||
addProjectDefine( 'LTM_DESC' );
|
addProjectDefine( 'LTM_DESC' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (Generator::$platform == "win32")
|
if (T3D_Generator::$platform == "win32")
|
||||||
{
|
{
|
||||||
setProjectModuleDefinitionFile('../../' . getLibSrcDir() . 'Torque3D/msvc/torque3d.def');
|
setProjectModuleDefinitionFile('../../' . getLibSrcDir() . 'Torque3D/msvc/torque3d.def');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,14 +60,14 @@
|
||||||
addProjectDependency( 'libbullet' );
|
addProjectDependency( 'libbullet' );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( Generator::$platform == "mac" )
|
if ( T3D_Generator::$platform == "mac" )
|
||||||
{
|
{
|
||||||
addProjectDefine( '__MACOSX__' );
|
addProjectDefine( '__MACOSX__' );
|
||||||
addProjectDefine( 'LTM_DESC' );
|
addProjectDefine( 'LTM_DESC' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (Generator::$platform == "win32")
|
if (T3D_Generator::$platform == "win32")
|
||||||
{
|
{
|
||||||
setProjectModuleDefinitionFile('../../' . getLibSrcDir() . 'Torque3D/msvc/torque3d.def');
|
setProjectModuleDefinitionFile('../../' . getLibSrcDir() . 'Torque3D/msvc/torque3d.def');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -184,7 +184,7 @@ $c->setDontCompilePatterns( "*\.h*", "*win32*", "*\.win\.*", "/D3D.*/", "#/gl/#"
|
||||||
|
|
||||||
///////////////////////////// Build /////////////////////////////
|
///////////////////////////// Build /////////////////////////////
|
||||||
|
|
||||||
// 'buildManifest_'.$name.'_'.Generator::$platform.'.txt',
|
// 'buildManifest_'.$name.'_'.T3D_Generator::$platform.'.txt',
|
||||||
|
|
||||||
$c = BuildTarget::add( 'build', // Name
|
$c = BuildTarget::add( 'build', // Name
|
||||||
'buildFiles', // Solution output directory
|
'buildFiles', // Solution output directory
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ require_once( "NPWebPlugin.php");
|
||||||
require_once( "SafariWebPlugin.php");
|
require_once( "SafariWebPlugin.php");
|
||||||
|
|
||||||
|
|
||||||
class Generator
|
class T3D_Generator
|
||||||
{
|
{
|
||||||
public static $app_name;
|
public static $app_name;
|
||||||
public static $paths = array();
|
public static $paths = array();
|
||||||
|
|
@ -275,14 +275,14 @@ class Generator
|
||||||
array_push( self::$libGuard, $lib );
|
array_push( self::$libGuard, $lib );
|
||||||
|
|
||||||
// if currently in a project, delay the include
|
// if currently in a project, delay the include
|
||||||
if (Generator::inProjectConfig())
|
if (T3D_Generator::inProjectConfig())
|
||||||
{
|
{
|
||||||
array_push( self::$project_cur->lib_includes, $lib );
|
array_push( self::$project_cur->lib_includes, $lib );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// otherwise include it immediately
|
// otherwise include it immediately
|
||||||
require( Generator::getGeneratorLibsPath() . $lib . '.conf' );
|
require( T3D_Generator::getGeneratorLibsPath() . $lib . '.conf' );
|
||||||
}
|
}
|
||||||
|
|
||||||
static function addProjectDependency( $pd )
|
static function addProjectDependency( $pd )
|
||||||
|
|
@ -335,7 +335,7 @@ class Generator
|
||||||
if( !self::$module_cur )
|
if( !self::$module_cur )
|
||||||
self::$module_cur = $name;
|
self::$module_cur = $name;
|
||||||
else
|
else
|
||||||
echo( "Generator::beginModule() - already in module!" );
|
echo( "T3D_Generator::beginModule() - already in module!" );
|
||||||
}
|
}
|
||||||
|
|
||||||
static function endModule()
|
static function endModule()
|
||||||
|
|
@ -343,7 +343,7 @@ class Generator
|
||||||
if( self::$module_cur )
|
if( self::$module_cur )
|
||||||
self::$module_cur = null;
|
self::$module_cur = null;
|
||||||
else
|
else
|
||||||
trigger_error( "Generator::endModule() - no active module!", E_USER_ERROR );
|
trigger_error( "T3D_Generator::endModule() - no active module!", E_USER_ERROR );
|
||||||
}
|
}
|
||||||
|
|
||||||
static function inProjectConfig()
|
static function inProjectConfig()
|
||||||
|
|
@ -367,7 +367,7 @@ class Generator
|
||||||
self::$config_projects[ $name ] = self::$project_cur;
|
self::$config_projects[ $name ] = self::$project_cur;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
trigger_error( "Generator::beginProjectConfig() - a project is already open!", E_USER_ERROR );
|
trigger_error( "T3D_Generator::beginProjectConfig() - a project is already open!", E_USER_ERROR );
|
||||||
}
|
}
|
||||||
|
|
||||||
static function endProjectConfig( $type )
|
static function endProjectConfig( $type )
|
||||||
|
|
@ -424,14 +424,14 @@ class Generator
|
||||||
|
|
||||||
// Now include any libraries included in the modules
|
// Now include any libraries included in the modules
|
||||||
foreach( $p->lib_includes as $libName )
|
foreach( $p->lib_includes as $libName )
|
||||||
require( Generator::getGeneratorLibsPath() . $libName . '.conf' );
|
require( T3D_Generator::getGeneratorLibsPath() . $libName . '.conf' );
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
trigger_error( "Generator::endProjectConfig() - closing type mismatch!", E_USER_ERROR );
|
trigger_error( "T3D_Generator::endProjectConfig() - closing type mismatch!", E_USER_ERROR );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
trigger_error( "Generator::endProjectConfig() - no currently open project!", E_USER_ERROR );
|
trigger_error( "T3D_Generator::endProjectConfig() - no currently open project!", E_USER_ERROR );
|
||||||
}
|
}
|
||||||
|
|
||||||
static function beginActiveXConfig( $lib_name, $guid = '', $game_dir = 'game', $output_name = '' )
|
static function beginActiveXConfig( $lib_name, $guid = '', $game_dir = 'game', $output_name = '' )
|
||||||
|
|
@ -571,7 +571,7 @@ class Generator
|
||||||
self::$solutions[ $name ] = self::$solution_cur;
|
self::$solutions[ $name ] = self::$solution_cur;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
trigger_error( "Generator::beginSolution() - tried to start $name but already in the ".self::$solution_cur->name." solution!", E_USER_ERROR );
|
trigger_error( "T3D_Generator::beginSolution() - tried to start $name but already in the ".self::$solution_cur->name." solution!", E_USER_ERROR );
|
||||||
}
|
}
|
||||||
|
|
||||||
static function addSolutionProjectRef( $pname )
|
static function addSolutionProjectRef( $pname )
|
||||||
|
|
@ -579,7 +579,7 @@ class Generator
|
||||||
if( isset( self::$solution_cur ) )
|
if( isset( self::$solution_cur ) )
|
||||||
self::$solution_cur->addProjectRef( $pname );
|
self::$solution_cur->addProjectRef( $pname );
|
||||||
else
|
else
|
||||||
trigger_error( "Generator::addSolutionProjectRef(): no such project - " . $pname . "\n", E_USER_ERROR );
|
trigger_error( "T3D_Generator::addSolutionProjectRef(): no such project - " . $pname . "\n", E_USER_ERROR );
|
||||||
}
|
}
|
||||||
|
|
||||||
static function addSolutionProjectRefExt( $pname, $ppath, $pguid )
|
static function addSolutionProjectRefExt( $pname, $ppath, $pguid )
|
||||||
|
|
@ -587,7 +587,7 @@ class Generator
|
||||||
if( isset( self::$solution_cur ) )
|
if( isset( self::$solution_cur ) )
|
||||||
self::$solution_cur->addSolutionProjectRefExt( $pname, $ppath, $pguid );
|
self::$solution_cur->addSolutionProjectRefExt( $pname, $ppath, $pguid );
|
||||||
else
|
else
|
||||||
trigger_error( "Generator::addSolutionProjectRefExt(): no such project - " . $pname . "\n", E_USER_ERROR );
|
trigger_error( "T3D_Generator::addSolutionProjectRefExt(): no such project - " . $pname . "\n", E_USER_ERROR );
|
||||||
}
|
}
|
||||||
|
|
||||||
static function endSolution()
|
static function endSolution()
|
||||||
|
|
@ -599,7 +599,7 @@ class Generator
|
||||||
self::$solution_cur = null;
|
self::$solution_cur = null;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
trigger_error( "Generator::endSolution(): no active solution!\n", E_USER_ERROR );
|
trigger_error( "T3D_Generator::endSolution(): no active solution!\n", E_USER_ERROR );
|
||||||
}
|
}
|
||||||
|
|
||||||
static function generateSolutions( $tpl )
|
static function generateSolutions( $tpl )
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,7 @@ class Project
|
||||||
|
|
||||||
foreach( $this->dependencies as $pname )
|
foreach( $this->dependencies as $pname )
|
||||||
{
|
{
|
||||||
$p = Generator::lookupProjectByName( $pname );
|
$p = T3D_Generator::lookupProjectByName( $pname );
|
||||||
|
|
||||||
if( $p )
|
if( $p )
|
||||||
array_push( $pguids, $p->guid );
|
array_push( $pguids, $p->guid );
|
||||||
|
|
@ -200,10 +200,10 @@ class Project
|
||||||
{
|
{
|
||||||
// This could be consolidated into a single OR statement but it is easier to
|
// This could be consolidated into a single OR statement but it is easier to
|
||||||
// read as two separate if's
|
// read as two separate if's
|
||||||
if ( !Generator::$absPath )
|
if ( !T3D_Generator::$absPath )
|
||||||
$newEntry->path = $output->project_rel_path . $newEntry->path;
|
$newEntry->path = $output->project_rel_path . $newEntry->path;
|
||||||
|
|
||||||
if ( Generator::$absPath && !stristr($newEntry->path, Generator::$absPath) )
|
if ( T3D_Generator::$absPath && !stristr($newEntry->path, T3D_Generator::$absPath) )
|
||||||
$newEntry->path = $output->project_rel_path . $newEntry->path;
|
$newEntry->path = $output->project_rel_path . $newEntry->path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -230,10 +230,10 @@ class Project
|
||||||
$curPath = FileUtil::collapsePath( $output->base_dir . $dir );
|
$curPath = FileUtil::collapsePath( $output->base_dir . $dir );
|
||||||
$pathWalk = &$projectFiles[ $projName ];
|
$pathWalk = &$projectFiles[ $projName ];
|
||||||
|
|
||||||
if ( Generator::$absPath )
|
if ( T3D_Generator::$absPath )
|
||||||
{
|
{
|
||||||
if ( stristr($curPath, getEngineSrcDir()) || stristr($curPath, getLibSrcDir()) )
|
if ( stristr($curPath, getEngineSrcDir()) || stristr($curPath, getLibSrcDir()) )
|
||||||
$curPath = Generator::$absPath . "/". str_replace("../", "", $curPath);
|
$curPath = T3D_Generator::$absPath . "/". str_replace("../", "", $curPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if its a file or a directory.
|
// Check if its a file or a directory.
|
||||||
|
|
@ -344,7 +344,7 @@ class Project
|
||||||
$tpl->assign_by_ref( 'projModuleDefinitionFile', $this->moduleDefinitionFile );
|
$tpl->assign_by_ref( 'projModuleDefinitionFile', $this->moduleDefinitionFile );
|
||||||
$tpl->assign_by_ref( 'projSubSystem', $this->projSubSystem );
|
$tpl->assign_by_ref( 'projSubSystem', $this->projSubSystem );
|
||||||
|
|
||||||
if (Generator::$useDLLRuntime)
|
if (T3D_Generator::$useDLLRuntime)
|
||||||
{
|
{
|
||||||
// /MD and /MDd
|
// /MD and /MDd
|
||||||
$tpl->assign( 'projRuntimeRelease', 2 );
|
$tpl->assign( 'projRuntimeRelease', 2 );
|
||||||
|
|
@ -381,7 +381,7 @@ class Project
|
||||||
|
|
||||||
foreach ($this->dependencies as $pname)
|
foreach ($this->dependencies as $pname)
|
||||||
{
|
{
|
||||||
$p = Generator::lookupProjectByName( $pname );
|
$p = T3D_Generator::lookupProjectByName( $pname );
|
||||||
$projectDepends[$pname] = $p;
|
$projectDepends[$pname] = $p;
|
||||||
|
|
||||||
if ( $p )
|
if ( $p )
|
||||||
|
|
@ -394,18 +394,18 @@ class Project
|
||||||
// Assign some handy paths for the template to reference
|
// Assign some handy paths for the template to reference
|
||||||
$tpl->assign( 'projectOffset', $output->project_rel_path );
|
$tpl->assign( 'projectOffset', $output->project_rel_path );
|
||||||
|
|
||||||
if ( Generator::$absPath )
|
if ( T3D_Generator::$absPath )
|
||||||
$tpl->assign( 'srcDir', Generator::$absPath . "/". str_replace("../", "", getAppEngineSrcDir()) );
|
$tpl->assign( 'srcDir', T3D_Generator::$absPath . "/". str_replace("../", "", getAppEngineSrcDir()) );
|
||||||
else
|
else
|
||||||
$tpl->assign( 'srcDir', $output->project_rel_path . getAppEngineSrcDir() );
|
$tpl->assign( 'srcDir', $output->project_rel_path . getAppEngineSrcDir() );
|
||||||
|
|
||||||
if ( Generator::$absPath )
|
if ( T3D_Generator::$absPath )
|
||||||
$tpl->assign( 'libDir', Generator::$absPath . "/". str_replace("../", "", getAppLibSrcDir()) );
|
$tpl->assign( 'libDir', T3D_Generator::$absPath . "/". str_replace("../", "", getAppLibSrcDir()) );
|
||||||
else
|
else
|
||||||
$tpl->assign( 'libDir', $output->project_rel_path . getAppLibSrcDir() );
|
$tpl->assign( 'libDir', $output->project_rel_path . getAppLibSrcDir() );
|
||||||
|
|
||||||
if ( Generator::$absPath )
|
if ( T3D_Generator::$absPath )
|
||||||
$tpl->assign( 'binDir', Generator::$absPath . "/". str_replace("../", "", getAppEngineBinDir()) );
|
$tpl->assign( 'binDir', T3D_Generator::$absPath . "/". str_replace("../", "", getAppEngineBinDir()) );
|
||||||
else
|
else
|
||||||
$tpl->assign( 'binDir', $output->project_rel_path . getAppEngineBinDir() );
|
$tpl->assign( 'binDir', $output->project_rel_path . getAppEngineBinDir() );
|
||||||
|
|
||||||
|
|
@ -427,18 +427,18 @@ class Project
|
||||||
$libDirs = $output->project_rel_path . $libDirs;
|
$libDirs = $output->project_rel_path . $libDirs;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( Generator::$absPath )
|
if ( T3D_Generator::$absPath )
|
||||||
{
|
{
|
||||||
foreach ($this->includes as &$include)
|
foreach ($this->includes as &$include)
|
||||||
{
|
{
|
||||||
if ( stristr($include, getEngineSrcDir()) || stristr($include, getLibSrcDir()) )
|
if ( stristr($include, getEngineSrcDir()) || stristr($include, getLibSrcDir()) )
|
||||||
$include = Generator::$absPath . "/". str_replace("../", "", $include);
|
$include = T3D_Generator::$absPath . "/". str_replace("../", "", $include);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($this->lib_dirs as &$libDirs)
|
foreach ($this->lib_dirs as &$libDirs)
|
||||||
{
|
{
|
||||||
if ( stristr($libDirs, getEngineSrcDir()) || stristr($libDirs, getLibSrcDir()) )
|
if ( stristr($libDirs, getEngineSrcDir()) || stristr($libDirs, getLibSrcDir()) )
|
||||||
$libDirs = Generator::$absPath . "/". str_replace("../", "", $libDirs);
|
$libDirs = T3D_Generator::$absPath . "/". str_replace("../", "", $libDirs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ class Solution
|
||||||
// Look up each project ref and add its info to the list
|
// Look up each project ref and add its info to the list
|
||||||
foreach( $refs as $pname )
|
foreach( $refs as $pname )
|
||||||
{
|
{
|
||||||
$project = Generator::lookupProjectByName( $pname );
|
$project = T3D_Generator::lookupProjectByName( $pname );
|
||||||
|
|
||||||
if( isset( $project ) )
|
if( isset( $project ) )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ class Torque3D
|
||||||
includeLib( 'convexDecomp' );
|
includeLib( 'convexDecomp' );
|
||||||
|
|
||||||
// Use FMOD on consoles
|
// Use FMOD on consoles
|
||||||
if ( Generator::$platform != "360" && Generator::$platform != "ps3" )
|
if ( T3D_Generator::$platform != "360" && T3D_Generator::$platform != "ps3" )
|
||||||
{
|
{
|
||||||
includeLib( 'libvorbis' );
|
includeLib( 'libvorbis' );
|
||||||
includeLib( 'libogg' );
|
includeLib( 'libogg' );
|
||||||
|
|
@ -63,12 +63,12 @@ class Torque3D
|
||||||
self::includeDefaultLibs();
|
self::includeDefaultLibs();
|
||||||
|
|
||||||
$ext = "DLL";
|
$ext = "DLL";
|
||||||
if ( Generator::$platform == "mac" )
|
if ( T3D_Generator::$platform == "mac" )
|
||||||
$ext = "Bundle";
|
$ext = "Bundle";
|
||||||
|
|
||||||
|
|
||||||
//some platforms will not want a shared config
|
//some platforms will not want a shared config
|
||||||
if ( Generator::$platform == "360" || Generator::$platform == "ps3" )
|
if ( T3D_Generator::$platform == "360" || T3D_Generator::$platform == "ps3" )
|
||||||
self::$sharedConfig = false;
|
self::$sharedConfig = false;
|
||||||
|
|
||||||
//begin either a shared lib config, or a static app config
|
//begin either a shared lib config, or a static app config
|
||||||
|
|
@ -105,7 +105,7 @@ class Torque3D
|
||||||
addLibIncludePath( "squish" );
|
addLibIncludePath( "squish" );
|
||||||
addLibIncludePath( 'convexDecomp' );
|
addLibIncludePath( 'convexDecomp' );
|
||||||
|
|
||||||
if ( Generator::$platform != "360" && Generator::$platform != "ps3" )
|
if ( T3D_Generator::$platform != "360" && T3D_Generator::$platform != "ps3" )
|
||||||
{
|
{
|
||||||
addLibIncludePath( "libvorbis/include" );
|
addLibIncludePath( "libvorbis/include" );
|
||||||
addLibIncludePath( "libogg/include" );
|
addLibIncludePath( "libogg/include" );
|
||||||
|
|
@ -121,13 +121,13 @@ class Torque3D
|
||||||
includeModule( 'basicLighting' );
|
includeModule( 'basicLighting' );
|
||||||
includeModule( 'collada' );
|
includeModule( 'collada' );
|
||||||
|
|
||||||
if ( Generator::$platform != "360" && Generator::$platform != "ps3" )
|
if ( T3D_Generator::$platform != "360" && T3D_Generator::$platform != "ps3" )
|
||||||
{
|
{
|
||||||
includeModule( 'vorbis' );
|
includeModule( 'vorbis' );
|
||||||
includeModule( 'theora' );
|
includeModule( 'theora' );
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Generator::$platform == "mac" || Generator::$platform == "win32")
|
if(T3D_Generator::$platform == "mac" || T3D_Generator::$platform == "win32")
|
||||||
includeModule( 'openal' );
|
includeModule( 'openal' );
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -145,20 +145,20 @@ class Torque3D
|
||||||
addProjectDependency( 'pcre' );
|
addProjectDependency( 'pcre' );
|
||||||
addProjectDependency( 'convexDecomp' );
|
addProjectDependency( 'convexDecomp' );
|
||||||
|
|
||||||
if ( Generator::$platform != "360" && Generator::$platform != "ps3" )
|
if ( T3D_Generator::$platform != "360" && T3D_Generator::$platform != "ps3" )
|
||||||
{
|
{
|
||||||
addProjectDependency( 'libvorbis' );
|
addProjectDependency( 'libvorbis' );
|
||||||
addProjectDependency( 'libogg' );
|
addProjectDependency( 'libogg' );
|
||||||
addProjectDependency( 'libtheora' );
|
addProjectDependency( 'libtheora' );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( Generator::$platform == "mac" )
|
if ( T3D_Generator::$platform == "mac" )
|
||||||
{
|
{
|
||||||
addProjectDefine( '__MACOSX__' );
|
addProjectDefine( '__MACOSX__' );
|
||||||
addProjectDefine( 'LTM_DESC' );
|
addProjectDefine( 'LTM_DESC' );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Generator::$platform == "win32")
|
if (T3D_Generator::$platform == "win32")
|
||||||
{
|
{
|
||||||
setProjectModuleDefinitionFile('../../' . getLibSrcDir() . 'Torque3D/msvc/torque3d.def');
|
setProjectModuleDefinitionFile('../../' . getLibSrcDir() . 'Torque3D/msvc/torque3d.def');
|
||||||
|
|
||||||
|
|
@ -209,13 +209,13 @@ class Torque3D
|
||||||
|
|
||||||
addEngineSrcDir( 'main' );
|
addEngineSrcDir( 'main' );
|
||||||
|
|
||||||
if (Generator::$platform == "win32")
|
if (T3D_Generator::$platform == "win32")
|
||||||
{
|
{
|
||||||
addProjectDefine( 'WIN32' );
|
addProjectDefine( 'WIN32' );
|
||||||
addProjectDependency( getGameProjectName() . ' DLL' );
|
addProjectDependency( getGameProjectName() . ' DLL' );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Generator::$platform == "mac")
|
if (T3D_Generator::$platform == "mac")
|
||||||
{
|
{
|
||||||
addProjectDefine( '__MACOSX__' );
|
addProjectDefine( '__MACOSX__' );
|
||||||
addProjectDependency( getGameProjectName() . ' Bundle' );
|
addProjectDependency( getGameProjectName() . ' Bundle' );
|
||||||
|
|
@ -226,7 +226,7 @@ class Torque3D
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add solution references for Visual Studio projects
|
// Add solution references for Visual Studio projects
|
||||||
if (Generator::$platform == "win32" || Generator::$platform == "360" || Generator::$platform == "ps3")
|
if (T3D_Generator::$platform == "win32" || T3D_Generator::$platform == "360" || T3D_Generator::$platform == "ps3")
|
||||||
{
|
{
|
||||||
if ( !self::$sharedConfig )
|
if ( !self::$sharedConfig )
|
||||||
beginSolutionConfig( getGameProjectName(), '{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}' );
|
beginSolutionConfig( getGameProjectName(), '{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}' );
|
||||||
|
|
@ -247,7 +247,7 @@ class Torque3D
|
||||||
addSolutionProjectRef( 'zlib' );
|
addSolutionProjectRef( 'zlib' );
|
||||||
addSolutionProjectRef( 'convexDecomp' );
|
addSolutionProjectRef( 'convexDecomp' );
|
||||||
|
|
||||||
if (Generator::$platform == "win32")
|
if (T3D_Generator::$platform == "win32")
|
||||||
{
|
{
|
||||||
addSolutionProjectRef( 'libogg' );
|
addSolutionProjectRef( 'libogg' );
|
||||||
addSolutionProjectRef( 'libvorbis' );
|
addSolutionProjectRef( 'libvorbis' );
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ includeLib( 'pcre' );
|
||||||
includeLib( 'convexDecomp' );
|
includeLib( 'convexDecomp' );
|
||||||
|
|
||||||
// Use FMOD on consoles
|
// Use FMOD on consoles
|
||||||
if ( Generator::$platform != "360" && Generator::$platform != "ps3" )
|
if ( T3D_Generator::$platform != "360" && T3D_Generator::$platform != "ps3" )
|
||||||
{
|
{
|
||||||
includeLib( 'libvorbis' );
|
includeLib( 'libvorbis' );
|
||||||
includeLib( 'libogg' );
|
includeLib( 'libogg' );
|
||||||
|
|
@ -43,7 +43,7 @@ if ( Generator::$platform != "360" && Generator::$platform != "ps3" )
|
||||||
}
|
}
|
||||||
|
|
||||||
$ext = "DLL";
|
$ext = "DLL";
|
||||||
if ( Generator::$platform == "mac" )
|
if ( T3D_Generator::$platform == "mac" )
|
||||||
$ext = "Bundle";
|
$ext = "Bundle";
|
||||||
|
|
||||||
// We need to pick the right physics engine to include.
|
// We need to pick the right physics engine to include.
|
||||||
|
|
@ -52,7 +52,7 @@ global $PHYSX_SDK_PATH;
|
||||||
|
|
||||||
//some platforms will not want a shared config
|
//some platforms will not want a shared config
|
||||||
$useSharedConfig = true;
|
$useSharedConfig = true;
|
||||||
if ( Generator::$platform == "360" || Generator::$platform == "ps3" )
|
if ( T3D_Generator::$platform == "360" || T3D_Generator::$platform == "ps3" )
|
||||||
$useSharedConfig = false;
|
$useSharedConfig = false;
|
||||||
|
|
||||||
//begin either a shared lib config, or a static app config
|
//begin either a shared lib config, or a static app config
|
||||||
|
|
@ -89,7 +89,7 @@ else
|
||||||
addLibIncludePath( "squish" );
|
addLibIncludePath( "squish" );
|
||||||
addLibIncludePath( "convexDecomp" );
|
addLibIncludePath( "convexDecomp" );
|
||||||
|
|
||||||
if ( Generator::$platform != "360" && Generator::$platform != "ps3" )
|
if ( T3D_Generator::$platform != "360" && T3D_Generator::$platform != "ps3" )
|
||||||
{
|
{
|
||||||
addLibIncludePath( "libvorbis/include" );
|
addLibIncludePath( "libvorbis/include" );
|
||||||
addLibIncludePath( "libogg/include" );
|
addLibIncludePath( "libogg/include" );
|
||||||
|
|
@ -107,13 +107,13 @@ else
|
||||||
includeModule( 'basicLighting' );
|
includeModule( 'basicLighting' );
|
||||||
includeModule( 'collada' );
|
includeModule( 'collada' );
|
||||||
|
|
||||||
if ( Generator::$platform != "360" && Generator::$platform != "ps3" )
|
if ( T3D_Generator::$platform != "360" && T3D_Generator::$platform != "ps3" )
|
||||||
{
|
{
|
||||||
includeModule( 'vorbis' );
|
includeModule( 'vorbis' );
|
||||||
includeModule( 'theora' );
|
includeModule( 'theora' );
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Generator::$platform == "mac" || Generator::$platform == "win32")
|
if(T3D_Generator::$platform == "mac" || T3D_Generator::$platform == "win32")
|
||||||
includeModule( 'openal' );
|
includeModule( 'openal' );
|
||||||
|
|
||||||
// Demo functionality
|
// Demo functionality
|
||||||
|
|
@ -142,7 +142,7 @@ else
|
||||||
addProjectDependency( 'pcre' );
|
addProjectDependency( 'pcre' );
|
||||||
addProjectDependency( 'convexDecomp' );
|
addProjectDependency( 'convexDecomp' );
|
||||||
|
|
||||||
if ( Generator::$platform != "360" && Generator::$platform != "ps3" )
|
if ( T3D_Generator::$platform != "360" && T3D_Generator::$platform != "ps3" )
|
||||||
{
|
{
|
||||||
addProjectDependency( 'libvorbis' );
|
addProjectDependency( 'libvorbis' );
|
||||||
addProjectDependency( 'libogg' );
|
addProjectDependency( 'libogg' );
|
||||||
|
|
@ -162,13 +162,13 @@ else
|
||||||
addProjectDependency( 'nxuStream' );
|
addProjectDependency( 'nxuStream' );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( Generator::$platform == "mac" )
|
if ( T3D_Generator::$platform == "mac" )
|
||||||
{
|
{
|
||||||
addProjectDefine( '__MACOSX__' );
|
addProjectDefine( '__MACOSX__' );
|
||||||
addProjectDefine( 'LTM_DESC' );
|
addProjectDefine( 'LTM_DESC' );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Generator::$platform == "win32")
|
if (T3D_Generator::$platform == "win32")
|
||||||
{
|
{
|
||||||
setProjectModuleDefinitionFile('../../' . getLibSrcDir() . 'Torque3D/msvc/torque3d.def');
|
setProjectModuleDefinitionFile('../../' . getLibSrcDir() . 'Torque3D/msvc/torque3d.def');
|
||||||
|
|
||||||
|
|
@ -216,13 +216,13 @@ beginSharedAppConfig( getGameProjectName(), '{CDECDFF9-E125-523F-87BC-2D89DB971C
|
||||||
|
|
||||||
addEngineSrcDir( 'main' );
|
addEngineSrcDir( 'main' );
|
||||||
|
|
||||||
if (Generator::$platform == "win32")
|
if (T3D_Generator::$platform == "win32")
|
||||||
{
|
{
|
||||||
addProjectDefine( 'WIN32' );
|
addProjectDefine( 'WIN32' );
|
||||||
addProjectDependency( getGameProjectName() . ' DLL' );
|
addProjectDependency( getGameProjectName() . ' DLL' );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Generator::$platform == "mac")
|
if (T3D_Generator::$platform == "mac")
|
||||||
{
|
{
|
||||||
addProjectDefine( '__MACOSX__' );
|
addProjectDefine( '__MACOSX__' );
|
||||||
addProjectDependency( getGameProjectName() . ' Bundle' );
|
addProjectDependency( getGameProjectName() . ' Bundle' );
|
||||||
|
|
@ -233,7 +233,7 @@ endSharedAppConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add solution references for Visual Studio projects
|
// Add solution references for Visual Studio projects
|
||||||
if (Generator::$platform == "win32" || Generator::$platform == "360" || Generator::$platform == "ps3")
|
if (T3D_Generator::$platform == "win32" || T3D_Generator::$platform == "360" || T3D_Generator::$platform == "ps3")
|
||||||
{
|
{
|
||||||
if ( !$useSharedConfig )
|
if ( !$useSharedConfig )
|
||||||
beginSolutionConfig( getGameProjectName(), '{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}' );
|
beginSolutionConfig( getGameProjectName(), '{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}' );
|
||||||
|
|
@ -253,7 +253,7 @@ if ( !$useSharedConfig )
|
||||||
addSolutionProjectRef( 'zlib' );
|
addSolutionProjectRef( 'zlib' );
|
||||||
addSolutionProjectRef( 'convexDecomp' );
|
addSolutionProjectRef( 'convexDecomp' );
|
||||||
|
|
||||||
if (Generator::$platform == "win32")
|
if (T3D_Generator::$platform == "win32")
|
||||||
{
|
{
|
||||||
addSolutionProjectRef( 'libogg' );
|
addSolutionProjectRef( 'libogg' );
|
||||||
addSolutionProjectRef( 'libvorbis' );
|
addSolutionProjectRef( 'libvorbis' );
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
// IN THE SOFTWARE.
|
// IN THE SOFTWARE.
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
if (Generator::$platform == "win32")
|
if (T3D_Generator::$platform == "win32")
|
||||||
{
|
{
|
||||||
// Include the web deployment settings
|
// Include the web deployment settings
|
||||||
$webDeployConf = realpath($argv[1])."/buildFiles/config/webDeploy.conf";
|
$webDeployConf = realpath($argv[1])."/buildFiles/config/webDeploy.conf";
|
||||||
|
|
@ -55,7 +55,7 @@ if (Generator::$platform == "win32")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Generator::$platform == "mac")
|
if (T3D_Generator::$platform == "mac")
|
||||||
{
|
{
|
||||||
// Include the web deployment settings
|
// Include the web deployment settings
|
||||||
$webDeployConf = realpath($argv[1])."/buildFiles/config/webDeploy.mac.conf";
|
$webDeployConf = realpath($argv[1])."/buildFiles/config/webDeploy.mac.conf";
|
||||||
|
|
|
||||||
|
|
@ -29,13 +29,13 @@ beginLibConfig( 'convexDecomp', '{4EF87A4E-16ED-4E64-BF04-841B2675AEE0}' );
|
||||||
// Additional includes
|
// Additional includes
|
||||||
addLibIncludePath( 'convexDecomp' );
|
addLibIncludePath( 'convexDecomp' );
|
||||||
|
|
||||||
if ( Generator::$platform == "360" )
|
if ( T3D_Generator::$platform == "360" )
|
||||||
addProjectDefine( '_XBOX' );
|
addProjectDefine( '_XBOX' );
|
||||||
else if ( Generator::$platform == "ps3" )
|
else if ( T3D_Generator::$platform == "ps3" )
|
||||||
addProjectDefine( '__CELLOS_LV2__' );
|
addProjectDefine( '__CELLOS_LV2__' );
|
||||||
else if ( Generator::$platform == "mac" )
|
else if ( T3D_Generator::$platform == "mac" )
|
||||||
addProjectDefine( '__APPLE__' );
|
addProjectDefine( '__APPLE__' );
|
||||||
else if ( Generator::$platform == "win32" )
|
else if ( T3D_Generator::$platform == "win32" )
|
||||||
addProjectDefine( 'WIN32' );
|
addProjectDefine( 'WIN32' );
|
||||||
|
|
||||||
endLibConfig();
|
endLibConfig();
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,8 @@ beginLibConfig( 'libbullet', '{4368B65C-F5EF-4D28-B533-B02A04EBE921}' );
|
||||||
addLibSrcDir( 'bullet/src/LinearMath' );
|
addLibSrcDir( 'bullet/src/LinearMath' );
|
||||||
|
|
||||||
// TODO: Can we do multicore on OSX?
|
// TODO: Can we do multicore on OSX?
|
||||||
if ( Generator::$platform == "win32" ||
|
if ( T3D_Generator::$platform == "win32" ||
|
||||||
Generator::$platform == "360" )
|
T3D_Generator::$platform == "360" )
|
||||||
{
|
{
|
||||||
addProjectDefine( 'WIN32' );
|
addProjectDefine( 'WIN32' );
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,11 +24,11 @@
|
||||||
beginLibConfig( 'librecast', '{F2C0209B-1B90-4F73-816A-A0920FF8B107}' );
|
beginLibConfig( 'librecast', '{F2C0209B-1B90-4F73-816A-A0920FF8B107}' );
|
||||||
|
|
||||||
// Source
|
// Source
|
||||||
addSrcDir( Generator::getLibSrcDir() . 'recast/DebugUtils/Source', true );
|
addSrcDir( T3D_Generator::getLibSrcDir() . 'recast/DebugUtils/Source', true );
|
||||||
addSrcDir( Generator::getLibSrcDir() . 'recast/Recast/Source', true );
|
addSrcDir( T3D_Generator::getLibSrcDir() . 'recast/Recast/Source', true );
|
||||||
addSrcDir( Generator::getLibSrcDir() . 'recast/Detour/Source', true );
|
addSrcDir( T3D_Generator::getLibSrcDir() . 'recast/Detour/Source', true );
|
||||||
addSrcDir( Generator::getLibSrcDir() . 'recast/DetourCrowd/Source', true );
|
addSrcDir( T3D_Generator::getLibSrcDir() . 'recast/DetourCrowd/Source', true );
|
||||||
addSrcDir( Generator::getLibSrcDir() . 'recast/DetourTileCache/Source', true );
|
addSrcDir( T3D_Generator::getLibSrcDir() . 'recast/DetourTileCache/Source', true );
|
||||||
|
|
||||||
// Additional includes
|
// Additional includes
|
||||||
addLibIncludePath( 'recast/DebugUtils/Include' );
|
addLibIncludePath( 'recast/DebugUtils/Include' );
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ else
|
||||||
addEngineSrcDir('T3D/gameBase/std');
|
addEngineSrcDir('T3D/gameBase/std');
|
||||||
|
|
||||||
// Plstform specific stuff.
|
// Plstform specific stuff.
|
||||||
switch( Generator::$platform )
|
switch( T3D_Generator::$platform )
|
||||||
{
|
{
|
||||||
case "360":
|
case "360":
|
||||||
addEngineSrcDir('ts/arch/360');
|
addEngineSrcDir('ts/arch/360');
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ beginModule( 'advancedLighting' );
|
||||||
addEngineSrcDir( 'lighting/advanced' );
|
addEngineSrcDir( 'lighting/advanced' );
|
||||||
addEngineSrcDir( 'lighting/shadowMap' );
|
addEngineSrcDir( 'lighting/shadowMap' );
|
||||||
|
|
||||||
switch( Generator::$platform )
|
switch( T3D_Generator::$platform )
|
||||||
{
|
{
|
||||||
case "win32":
|
case "win32":
|
||||||
addEngineSrcDir( 'lighting/advanced/hlsl' );
|
addEngineSrcDir( 'lighting/advanced/hlsl' );
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ addEngineSrcDir('component');
|
||||||
addEngineSrcDir('component/interfaces');
|
addEngineSrcDir('component/interfaces');
|
||||||
|
|
||||||
// Core
|
// Core
|
||||||
if (Generator::isApp())
|
if (T3D_Generator::isApp())
|
||||||
addSrcDir( '../source' );
|
addSrcDir( '../source' );
|
||||||
|
|
||||||
addEngineSrcDir('console');
|
addEngineSrcDir('console');
|
||||||
|
|
@ -59,7 +59,7 @@ addEngineSrcDir('math/test');
|
||||||
addEngineSrcDir('platform');
|
addEngineSrcDir('platform');
|
||||||
addEngineSrcDir('cinterface');
|
addEngineSrcDir('cinterface');
|
||||||
|
|
||||||
switch( Generator::$platform )
|
switch( T3D_Generator::$platform )
|
||||||
{
|
{
|
||||||
case "win32":
|
case "win32":
|
||||||
case "mac":
|
case "mac":
|
||||||
|
|
@ -80,7 +80,7 @@ addEngineSrcDir('app/net');
|
||||||
// Moved this here temporarily because PopupMenu uses on it and is currently in core
|
// Moved this here temporarily because PopupMenu uses on it and is currently in core
|
||||||
addEngineSrcDir('util/messaging');
|
addEngineSrcDir('util/messaging');
|
||||||
|
|
||||||
switch( Generator::$platform )
|
switch( T3D_Generator::$platform )
|
||||||
{
|
{
|
||||||
case "win32":
|
case "win32":
|
||||||
addEngineSrcDir('platformWin32');
|
addEngineSrcDir('platformWin32');
|
||||||
|
|
@ -132,7 +132,7 @@ addEngineSrcDir( 'gfx/video' );
|
||||||
addEngineSrcDir( 'gfx' );
|
addEngineSrcDir( 'gfx' );
|
||||||
addEngineSrcDir( 'shaderGen' );
|
addEngineSrcDir( 'shaderGen' );
|
||||||
|
|
||||||
switch( Generator::$platform )
|
switch( T3D_Generator::$platform )
|
||||||
{
|
{
|
||||||
case "win32":
|
case "win32":
|
||||||
//addEngineSrcDir( 'gfx/D3D8' );
|
//addEngineSrcDir( 'gfx/D3D8' );
|
||||||
|
|
@ -199,7 +199,7 @@ addIncludePath( '../../source' ); // product source (relative to solution ou
|
||||||
addIncludePath( getAppEngineSrcDir() ); // main engine source dir relative to app project file
|
addIncludePath( getAppEngineSrcDir() ); // main engine source dir relative to app project file
|
||||||
addIncludePath( getAppLibSrcDir() ); // main lib source dir relative to app project file
|
addIncludePath( getAppLibSrcDir() ); // main lib source dir relative to app project file
|
||||||
|
|
||||||
if ( Generator::$platform == "win32" )
|
if ( T3D_Generator::$platform == "win32" )
|
||||||
{
|
{
|
||||||
addIncludePath( getAppLibSrcDir() . 'directx8' );
|
addIncludePath( getAppLibSrcDir() . 'directx8' );
|
||||||
addIncludePath( getAppLibSrcDir() . 'openal/win32' );
|
addIncludePath( getAppLibSrcDir() . 'openal/win32' );
|
||||||
|
|
|
||||||
|
|
@ -23,13 +23,13 @@
|
||||||
|
|
||||||
beginModule( 'dsound' );
|
beginModule( 'dsound' );
|
||||||
|
|
||||||
if ( Generator::$platform == "win32" )
|
if ( T3D_Generator::$platform == "win32" )
|
||||||
{
|
{
|
||||||
addEngineSrcDir('sfx/dsound');
|
addEngineSrcDir('sfx/dsound');
|
||||||
addEngineSrcDir('sfx/xaudio');
|
addEngineSrcDir('sfx/xaudio');
|
||||||
addProjectLibInput('x3daudio.lib');
|
addProjectLibInput('x3daudio.lib');
|
||||||
}
|
}
|
||||||
else if ( Generator::$platform == "360" )
|
else if ( T3D_Generator::$platform == "360" )
|
||||||
addEngineSrcDir('sfx/xaudio');
|
addEngineSrcDir('sfx/xaudio');
|
||||||
|
|
||||||
endModule();
|
endModule();
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ beginModule( 'fmod' );
|
||||||
$allgood = true;
|
$allgood = true;
|
||||||
|
|
||||||
// Additional includes
|
// Additional includes
|
||||||
switch( Generator::$platform )
|
switch( T3D_Generator::$platform )
|
||||||
{
|
{
|
||||||
case "win32":
|
case "win32":
|
||||||
case "mac":
|
case "mac":
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ addLibSrcDir( 'ljpeg' );
|
||||||
addLibIncludePath( 'ljpeg' );
|
addLibIncludePath( 'ljpeg' );
|
||||||
|
|
||||||
// Defines
|
// Defines
|
||||||
if ( Generator::$platform == "360" )
|
if ( T3D_Generator::$platform == "360" )
|
||||||
addProjectDefines( 'NO_GETENV;' );
|
addProjectDefines( 'NO_GETENV;' );
|
||||||
|
|
||||||
endModule();
|
endModule();
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ beginModule( 'leapMotion' );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only Windows is supported at this time
|
// Only Windows is supported at this time
|
||||||
if ( Generator::$platform == "win32" )
|
if ( T3D_Generator::$platform == "win32" )
|
||||||
{
|
{
|
||||||
// Source
|
// Source
|
||||||
addEngineSrcDir( "platform/input/leapMotion" );
|
addEngineSrcDir( "platform/input/leapMotion" );
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ addLibSrcDir( 'libtheora/include/theora' );
|
||||||
addLibSrcDir( 'libtheora/lib' );
|
addLibSrcDir( 'libtheora/lib' );
|
||||||
addLibSrcDir( 'libtheora/lib/dec' );
|
addLibSrcDir( 'libtheora/lib/dec' );
|
||||||
|
|
||||||
switch( Generator::$platform )
|
switch( T3D_Generator::$platform )
|
||||||
{
|
{
|
||||||
case "win32":
|
case "win32":
|
||||||
addLibSrcDir( 'libtheora/lib/dec/x86_vc' );
|
addLibSrcDir( 'libtheora/lib/dec/x86_vc' );
|
||||||
|
|
@ -41,7 +41,7 @@ switch( Generator::$platform )
|
||||||
// As we don't use the encoder, disable this for now.
|
// As we don't use the encoder, disable this for now.
|
||||||
addLibSrcDir( 'libtheora/lib/enc' );
|
addLibSrcDir( 'libtheora/lib/enc' );
|
||||||
|
|
||||||
switch( Generator::$platform )
|
switch( T3D_Generator::$platform )
|
||||||
{
|
{
|
||||||
case "win32":
|
case "win32":
|
||||||
addLibSrcDir( 'libtheora/lib/enc/x86_32_vs' );
|
addLibSrcDir( 'libtheora/lib/enc/x86_32_vs' );
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ beginModule( 'oculusVR' );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only Windows is supported at this time
|
// Only Windows is supported at this time
|
||||||
if ( Generator::$platform == "win32" )
|
if ( T3D_Generator::$platform == "win32" )
|
||||||
{
|
{
|
||||||
// Source
|
// Source
|
||||||
addEngineSrcDir( "platform/input/oculusVR" );
|
addEngineSrcDir( "platform/input/oculusVR" );
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ addEngineSrcDir('sfx/openal');
|
||||||
addEngineSrcDir('sfx/openal/mac');
|
addEngineSrcDir('sfx/openal/mac');
|
||||||
addEngineSrcDir('sfx/openal/win32');
|
addEngineSrcDir('sfx/openal/win32');
|
||||||
|
|
||||||
if ( Generator::$platform == "win32" )
|
if ( T3D_Generator::$platform == "win32" )
|
||||||
addIncludePath( getAppLibSrcDir() . 'openal/win32' );
|
addIncludePath( getAppLibSrcDir() . 'openal/win32' );
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ beginModule( 'lpng' );
|
||||||
addLibIncludePath( 'lpng' );
|
addLibIncludePath( 'lpng' );
|
||||||
|
|
||||||
// Defines
|
// Defines
|
||||||
if ( Generator::$platform == "360" )
|
if ( T3D_Generator::$platform == "360" )
|
||||||
addProjectDefines( 'PNG_NO_ASSEMBLER_CODE' );
|
addProjectDefines( 'PNG_NO_ASSEMBLER_CODE' );
|
||||||
|
|
||||||
endModule();
|
endModule();
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ beginModule( 'razerHydra' );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only Windows is supported at this time
|
// Only Windows is supported at this time
|
||||||
if ( Generator::$platform == "win32" )
|
if ( T3D_Generator::$platform == "win32" )
|
||||||
{
|
{
|
||||||
// Source
|
// Source
|
||||||
addEngineSrcDir( "platform/input/razerHydra" );
|
addEngineSrcDir( "platform/input/razerHydra" );
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ function beginProject($name, $sharedConfig)
|
||||||
// Set the game project name, this is what your game's exe/dll will be called
|
// Set the game project name, this is what your game's exe/dll will be called
|
||||||
setGameProjectName($name);
|
setGameProjectName($name);
|
||||||
|
|
||||||
if (Generator::$platform == "win32" && $sharedConfig)
|
if (T3D_Generator::$platform == "win32" && $sharedConfig)
|
||||||
beginSolutionConfig( $name, '{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}' );
|
beginSolutionConfig( $name, '{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}' );
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -40,18 +40,18 @@ function beginProject($name, $sharedConfig)
|
||||||
|
|
||||||
function endProject($sharedConfig)
|
function endProject($sharedConfig)
|
||||||
{
|
{
|
||||||
if (Generator::$platform == "win32" && $sharedConfig)
|
if (T3D_Generator::$platform == "win32" && $sharedConfig)
|
||||||
endSolutionConfig();
|
endSolutionConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
function beginSolutionConfig( $name, $guid = '' )
|
function beginSolutionConfig( $name, $guid = '' )
|
||||||
{
|
{
|
||||||
Generator::beginSolution( $name, $guid );
|
T3D_Generator::beginSolution( $name, $guid );
|
||||||
}
|
}
|
||||||
|
|
||||||
function addSolutionProjectRef( $pname )
|
function addSolutionProjectRef( $pname )
|
||||||
{
|
{
|
||||||
Generator::addSolutionProjectRef( $pname );
|
T3D_Generator::addSolutionProjectRef( $pname );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add a reference to an external project, this is used for WPF projects currently
|
// Add a reference to an external project, this is used for WPF projects currently
|
||||||
|
|
@ -59,114 +59,114 @@ function addSolutionProjectRef( $pname )
|
||||||
// However, it is nice to not have to add the project to the solution whenever you run the project generator
|
// However, it is nice to not have to add the project to the solution whenever you run the project generator
|
||||||
function addSolutionProjectRefExt( $pname, $ppath, $pguid )
|
function addSolutionProjectRefExt( $pname, $ppath, $pguid )
|
||||||
{
|
{
|
||||||
Generator::addSolutionProjectRefExt( $pname, $ppath, $pguid );
|
T3D_Generator::addSolutionProjectRefExt( $pname, $ppath, $pguid );
|
||||||
}
|
}
|
||||||
|
|
||||||
function endSolutionConfig()
|
function endSolutionConfig()
|
||||||
{
|
{
|
||||||
Generator::endSolution();
|
T3D_Generator::endSolution();
|
||||||
}
|
}
|
||||||
|
|
||||||
function setPlatform( $platform )
|
function setPlatform( $platform )
|
||||||
{
|
{
|
||||||
echo(' - Setting platform to: ' . $platform . "\n");
|
echo(' - Setting platform to: ' . $platform . "\n");
|
||||||
|
|
||||||
Generator::$platform = $platform;
|
T3D_Generator::$platform = $platform;
|
||||||
}
|
}
|
||||||
|
|
||||||
function includeLib( $libName )
|
function includeLib( $libName )
|
||||||
{
|
{
|
||||||
//echo( "GLP: " . Generator::getGeneratorLibsPath() . $libName . "\n" );
|
//echo( "GLP: " . T3D_Generator::getGeneratorLibsPath() . $libName . "\n" );
|
||||||
|
|
||||||
Generator::includeLib( $libName );
|
T3D_Generator::includeLib( $libName );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function includeModule( $modName )
|
function includeModule( $modName )
|
||||||
{
|
{
|
||||||
require( Generator::getGeneratorModulesPath() . $modName . '.inc' );
|
require( T3D_Generator::getGeneratorModulesPath() . $modName . '.inc' );
|
||||||
}
|
}
|
||||||
|
|
||||||
function beginActiveXConfig( $lib_name, $guid = '', $gameDir = 'game', $output_name = '' )
|
function beginActiveXConfig( $lib_name, $guid = '', $gameDir = 'game', $output_name = '' )
|
||||||
{
|
{
|
||||||
Generator::beginActiveXConfig( $lib_name, $guid, $gameDir, $output_name );
|
T3D_Generator::beginActiveXConfig( $lib_name, $guid, $gameDir, $output_name );
|
||||||
}
|
}
|
||||||
|
|
||||||
function endActiveXConfig()
|
function endActiveXConfig()
|
||||||
{
|
{
|
||||||
Generator::endActiveXConfig();
|
T3D_Generator::endActiveXConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
function beginSafariConfig( $lib_name, $guid = '', $gameDir = 'game', $output_name = '' )
|
function beginSafariConfig( $lib_name, $guid = '', $gameDir = 'game', $output_name = '' )
|
||||||
{
|
{
|
||||||
Generator::beginSafariConfig( $lib_name, $guid, $gameDir, $output_name );
|
T3D_Generator::beginSafariConfig( $lib_name, $guid, $gameDir, $output_name );
|
||||||
}
|
}
|
||||||
|
|
||||||
function endSafariConfig()
|
function endSafariConfig()
|
||||||
{
|
{
|
||||||
Generator::endSafariConfig();
|
T3D_Generator::endSafariConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
function beginSharedLibConfig( $lib_name, $guid = '', $gameDir = 'game', $output_name = '' )
|
function beginSharedLibConfig( $lib_name, $guid = '', $gameDir = 'game', $output_name = '' )
|
||||||
{
|
{
|
||||||
Generator::beginSharedLibConfig( $lib_name, $guid, $gameDir, $output_name );
|
T3D_Generator::beginSharedLibConfig( $lib_name, $guid, $gameDir, $output_name );
|
||||||
}
|
}
|
||||||
|
|
||||||
function endSharedLibConfig()
|
function endSharedLibConfig()
|
||||||
{
|
{
|
||||||
Generator::endSharedLibConfig();
|
T3D_Generator::endSharedLibConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
function beginNPPluginConfig( $lib_name, $guid = '', $gameDir = 'game', $output_name = '' )
|
function beginNPPluginConfig( $lib_name, $guid = '', $gameDir = 'game', $output_name = '' )
|
||||||
{
|
{
|
||||||
Generator::beginNPPluginConfig( $lib_name, $guid, $gameDir, $output_name );
|
T3D_Generator::beginNPPluginConfig( $lib_name, $guid, $gameDir, $output_name );
|
||||||
}
|
}
|
||||||
|
|
||||||
function endNPPluginConfig()
|
function endNPPluginConfig()
|
||||||
{
|
{
|
||||||
Generator::endNPPluginConfig();
|
T3D_Generator::endNPPluginConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function beginLibConfig( $lib_name, $guid = '', $gameDir = 'game', $output_name = '' )
|
function beginLibConfig( $lib_name, $guid = '', $gameDir = 'game', $output_name = '' )
|
||||||
{
|
{
|
||||||
Generator::beginLibConfig( $lib_name, $guid, $gameDir, $output_name );
|
T3D_Generator::beginLibConfig( $lib_name, $guid, $gameDir, $output_name );
|
||||||
}
|
}
|
||||||
|
|
||||||
function endLibConfig()
|
function endLibConfig()
|
||||||
{
|
{
|
||||||
Generator::endLibConfig();
|
T3D_Generator::endLibConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
function beginAppConfig( $app_name, $guid = '', $game_dir = 'game', $output_name = '' )
|
function beginAppConfig( $app_name, $guid = '', $game_dir = 'game', $output_name = '' )
|
||||||
{
|
{
|
||||||
Generator::beginAppConfig( $app_name, $guid, $game_dir, $output_name );
|
T3D_Generator::beginAppConfig( $app_name, $guid, $game_dir, $output_name );
|
||||||
}
|
}
|
||||||
|
|
||||||
function endAppConfig()
|
function endAppConfig()
|
||||||
{
|
{
|
||||||
Generator::endAppConfig();
|
T3D_Generator::endAppConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
function beginSharedAppConfig( $app_name, $guid = '', $game_dir = 'game', $output_name = '' )
|
function beginSharedAppConfig( $app_name, $guid = '', $game_dir = 'game', $output_name = '' )
|
||||||
{
|
{
|
||||||
Generator::beginSharedAppConfig( $app_name, $guid, $game_dir, $output_name );
|
T3D_Generator::beginSharedAppConfig( $app_name, $guid, $game_dir, $output_name );
|
||||||
}
|
}
|
||||||
|
|
||||||
function endSharedAppConfig()
|
function endSharedAppConfig()
|
||||||
{
|
{
|
||||||
Generator::endSharedAppConfig();
|
T3D_Generator::endSharedAppConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function beginCSProjectConfig( $app_name, $guid = '', $game_dir = 'game', $output_name = '' )
|
function beginCSProjectConfig( $app_name, $guid = '', $game_dir = 'game', $output_name = '' )
|
||||||
{
|
{
|
||||||
Generator::beginCSProjectConfig( $app_name, $guid, $game_dir, $output_name );
|
T3D_Generator::beginCSProjectConfig( $app_name, $guid, $game_dir, $output_name );
|
||||||
}
|
}
|
||||||
|
|
||||||
function endCSProjectConfig()
|
function endCSProjectConfig()
|
||||||
{
|
{
|
||||||
Generator::endCSProjectConfig();
|
T3D_Generator::endCSProjectConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -175,26 +175,26 @@ function endCSProjectConfig()
|
||||||
|
|
||||||
function beginModule( $name )
|
function beginModule( $name )
|
||||||
{
|
{
|
||||||
Generator::beginModule( $name );
|
T3D_Generator::beginModule( $name );
|
||||||
}
|
}
|
||||||
|
|
||||||
function endModule()
|
function endModule()
|
||||||
{
|
{
|
||||||
Generator::endModule();
|
T3D_Generator::endModule();
|
||||||
}
|
}
|
||||||
|
|
||||||
function addSrcDir( $dir, $recurse = false )
|
function addSrcDir( $dir, $recurse = false )
|
||||||
{
|
{
|
||||||
//echo( "ADD SRC DIR: " . $dir . "\n" );
|
//echo( "ADD SRC DIR: " . $dir . "\n" );
|
||||||
|
|
||||||
Generator::addSrcDir( $dir, $recurse );
|
T3D_Generator::addSrcDir( $dir, $recurse );
|
||||||
}
|
}
|
||||||
|
|
||||||
function addSrcFile( $file )
|
function addSrcFile( $file )
|
||||||
{
|
{
|
||||||
//echo( "ADD SRC FILE: " . $file . "\n" );
|
//echo( "ADD SRC FILE: " . $file . "\n" );
|
||||||
|
|
||||||
Generator::addSrcFile( $file );
|
T3D_Generator::addSrcFile( $file );
|
||||||
}
|
}
|
||||||
|
|
||||||
function addEngineSrcDir( $dir )
|
function addEngineSrcDir( $dir )
|
||||||
|
|
@ -213,12 +213,12 @@ function addEngineSrcFile( $file )
|
||||||
|
|
||||||
function addLibSrcDir( $dir )
|
function addLibSrcDir( $dir )
|
||||||
{
|
{
|
||||||
addSrcDir( Generator::getLibSrcDir() . $dir );
|
addSrcDir( T3D_Generator::getLibSrcDir() . $dir );
|
||||||
}
|
}
|
||||||
|
|
||||||
function addLibSrcFile( $file )
|
function addLibSrcFile( $file )
|
||||||
{
|
{
|
||||||
addSrcDir( Generator::getLibSrcDir() . $file );
|
addSrcDir( T3D_Generator::getLibSrcDir() . $file );
|
||||||
}
|
}
|
||||||
|
|
||||||
function addLibIncludePath( $path )
|
function addLibIncludePath( $path )
|
||||||
|
|
@ -253,29 +253,29 @@ function getAppEngineBinDir()
|
||||||
|
|
||||||
function getEngineSrcDir()
|
function getEngineSrcDir()
|
||||||
{
|
{
|
||||||
return Generator::getEngineSrcDir();
|
return T3D_Generator::getEngineSrcDir();
|
||||||
}
|
}
|
||||||
|
|
||||||
function getLibSrcDir()
|
function getLibSrcDir()
|
||||||
{
|
{
|
||||||
return Generator::getLibSrcDir();
|
return T3D_Generator::getLibSrcDir();
|
||||||
}
|
}
|
||||||
|
|
||||||
function getEngineBinDir()
|
function getEngineBinDir()
|
||||||
{
|
{
|
||||||
return Generator::getEngineBinDir();
|
return T3D_Generator::getEngineBinDir();
|
||||||
}
|
}
|
||||||
|
|
||||||
function addIncludePath( $path )
|
function addIncludePath( $path )
|
||||||
{
|
{
|
||||||
//echo( "ADD INCLUDE: " . $path . "\n" );
|
//echo( "ADD INCLUDE: " . $path . "\n" );
|
||||||
|
|
||||||
Generator::addIncludePath( $path );
|
T3D_Generator::addIncludePath( $path );
|
||||||
}
|
}
|
||||||
/// Add a preprocessor directive/define
|
/// Add a preprocessor directive/define
|
||||||
function addProjectDefine( $d, $v = null )
|
function addProjectDefine( $d, $v = null )
|
||||||
{
|
{
|
||||||
Generator::addProjectDefine( $d, $v );
|
T3D_Generator::addProjectDefine( $d, $v );
|
||||||
}
|
}
|
||||||
/// Add a list of defines in one call
|
/// Add a list of defines in one call
|
||||||
function addProjectDefines()
|
function addProjectDefines()
|
||||||
|
|
@ -284,143 +284,143 @@ function addProjectDefines()
|
||||||
$count = func_num_args();
|
$count = func_num_args();
|
||||||
|
|
||||||
if( $count > 0 )
|
if( $count > 0 )
|
||||||
Generator::addProjectDefines( $args );
|
T3D_Generator::addProjectDefines( $args );
|
||||||
else
|
else
|
||||||
echo( "addProjectDefines() - no arguments passed!" );
|
echo( "addProjectDefines() - no arguments passed!" );
|
||||||
}
|
}
|
||||||
|
|
||||||
function setProjectGUID( $guid )
|
function setProjectGUID( $guid )
|
||||||
{
|
{
|
||||||
Generator::setProjectGUID( $guid );
|
T3D_Generator::setProjectGUID( $guid );
|
||||||
}
|
}
|
||||||
|
|
||||||
function setProjectModuleDefinitionFile( $mdef )
|
function setProjectModuleDefinitionFile( $mdef )
|
||||||
{
|
{
|
||||||
Generator::setProjectModuleDefinitionFile( $mdef );
|
T3D_Generator::setProjectModuleDefinitionFile( $mdef );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function addProjectLibDir( $dir )
|
function addProjectLibDir( $dir )
|
||||||
{
|
{
|
||||||
Generator::addProjectLibDir( $dir );
|
T3D_Generator::addProjectLibDir( $dir );
|
||||||
}
|
}
|
||||||
|
|
||||||
function addProjectLibInput( $lib_name, $libDebug = null )
|
function addProjectLibInput( $lib_name, $libDebug = null )
|
||||||
{
|
{
|
||||||
Generator::addProjectLibInput( $lib_name, $libDebug );
|
T3D_Generator::addProjectLibInput( $lib_name, $libDebug );
|
||||||
}
|
}
|
||||||
|
|
||||||
function addProjectIgnoreDefaultLib( $lib )
|
function addProjectIgnoreDefaultLib( $lib )
|
||||||
{
|
{
|
||||||
Generator::addProjectIgnoreDefaultLib( $lib );
|
T3D_Generator::addProjectIgnoreDefaultLib( $lib );
|
||||||
}
|
}
|
||||||
|
|
||||||
function copyFileToProject( $sourcePath, $projPath )
|
function copyFileToProject( $sourcePath, $projPath )
|
||||||
{
|
{
|
||||||
Generator::copyFileToProject( $sourcePath, $projPath );
|
T3D_Generator::copyFileToProject( $sourcePath, $projPath );
|
||||||
}
|
}
|
||||||
|
|
||||||
function addProjectDependency( $pd )
|
function addProjectDependency( $pd )
|
||||||
{
|
{
|
||||||
Generator::addProjectDependency( $pd );
|
T3D_Generator::addProjectDependency( $pd );
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeProjectDependency( $pd )
|
function removeProjectDependency( $pd )
|
||||||
{
|
{
|
||||||
Generator::removeProjectDependency( $pd );
|
T3D_Generator::removeProjectDependency( $pd );
|
||||||
}
|
}
|
||||||
|
|
||||||
function addProjectReference( $refName, $version = "" )
|
function addProjectReference( $refName, $version = "" )
|
||||||
{
|
{
|
||||||
Generator::addProjectReference( $refName, $version );
|
T3D_Generator::addProjectReference( $refName, $version );
|
||||||
}
|
}
|
||||||
|
|
||||||
// disable a specific project compiler warning
|
// disable a specific project compiler warning
|
||||||
function disableProjectWarning( $warning )
|
function disableProjectWarning( $warning )
|
||||||
{
|
{
|
||||||
Generator::disableProjectWarning( $warning );
|
T3D_Generator::disableProjectWarning( $warning );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function setGameProjectName($name)
|
function setGameProjectName($name)
|
||||||
{
|
{
|
||||||
Generator::setGameProjectName($name);
|
T3D_Generator::setGameProjectName($name);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getGameProjectName()
|
function getGameProjectName()
|
||||||
{
|
{
|
||||||
return Generator::getGameProjectName();
|
return T3D_Generator::getGameProjectName();
|
||||||
}
|
}
|
||||||
|
|
||||||
function setToolBuild($tb)
|
function setToolBuild($tb)
|
||||||
{
|
{
|
||||||
Generator::setToolBuild($tb);
|
T3D_Generator::setToolBuild($tb);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getToolBuild()
|
function getToolBuild()
|
||||||
{
|
{
|
||||||
return Generator::getToolBuild();
|
return T3D_Generator::getToolBuild();
|
||||||
}
|
}
|
||||||
|
|
||||||
function setWatermarkBuild($wb)
|
function setWatermarkBuild($wb)
|
||||||
{
|
{
|
||||||
Generator::setWatermarkBuild($wb);
|
T3D_Generator::setWatermarkBuild($wb);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getWatermarkBuild()
|
function getWatermarkBuild()
|
||||||
{
|
{
|
||||||
return Generator::getWatermarkBuild();
|
return T3D_Generator::getWatermarkBuild();
|
||||||
}
|
}
|
||||||
|
|
||||||
function setPurchaseScreenBuild($psb)
|
function setPurchaseScreenBuild($psb)
|
||||||
{
|
{
|
||||||
Generator::setPurchaseScreenBuild($psb);
|
T3D_Generator::setPurchaseScreenBuild($psb);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPurchaseScreenBuild()
|
function getPurchaseScreenBuild()
|
||||||
{
|
{
|
||||||
return Generator::getPurchaseScreenBuild();
|
return T3D_Generator::getPurchaseScreenBuild();
|
||||||
}
|
}
|
||||||
|
|
||||||
function setDemoBuild($db)
|
function setDemoBuild($db)
|
||||||
{
|
{
|
||||||
Generator::setDemoBuild($db);
|
T3D_Generator::setDemoBuild($db);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDemoBuild()
|
function getDemoBuild()
|
||||||
{
|
{
|
||||||
return Generator::getDemoBuild();
|
return T3D_Generator::getDemoBuild();
|
||||||
}
|
}
|
||||||
|
|
||||||
function setObjectLimitBuild($olb)
|
function setObjectLimitBuild($olb)
|
||||||
{
|
{
|
||||||
Generator::setObjectLimitBuild($olb);
|
T3D_Generator::setObjectLimitBuild($olb);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getObjectLimitBuild()
|
function getObjectLimitBuild()
|
||||||
{
|
{
|
||||||
return Generator::getObjectLimitBuild();
|
return T3D_Generator::getObjectLimitBuild();
|
||||||
}
|
}
|
||||||
|
|
||||||
function setTimeOutBuild($tob)
|
function setTimeOutBuild($tob)
|
||||||
{
|
{
|
||||||
Generator::setTimeOutBuild($tob);
|
T3D_Generator::setTimeOutBuild($tob);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getTimeOutBuild()
|
function getTimeOutBuild()
|
||||||
{
|
{
|
||||||
return Generator::getTimeOutBuild();
|
return T3D_Generator::getTimeOutBuild();
|
||||||
}
|
}
|
||||||
|
|
||||||
function inProjectConfig()
|
function inProjectConfig()
|
||||||
{
|
{
|
||||||
return Generator::inProjectConfig();
|
return T3D_Generator::inProjectConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
// On Windows, 1 - Console, 2 - Windows
|
// On Windows, 1 - Console, 2 - Windows
|
||||||
function setProjectSubSystem( $subSystem )
|
function setProjectSubSystem( $subSystem )
|
||||||
{
|
{
|
||||||
Generator::setProjectSubSystem( $subSystem );
|
T3D_Generator::setProjectSubSystem( $subSystem );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sets whether to use /MT or /MD code generation/runtime on Windows
|
// Sets whether to use /MT or /MD code generation/runtime on Windows
|
||||||
|
|
@ -429,7 +429,7 @@ function setProjectSubSystem( $subSystem )
|
||||||
// You must include or install via the redistributable package the appropriate VS runtime for end users.
|
// You must include or install via the redistributable package the appropriate VS runtime for end users.
|
||||||
function setDLLRuntime ($val)
|
function setDLLRuntime ($val)
|
||||||
{
|
{
|
||||||
Generator::setDLLRuntime( $val );
|
T3D_Generator::setDLLRuntime( $val );
|
||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------------------------------------------------- UTIL
|
//-------------------------------------------------------------------------------- UTIL
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ if ( $argc >= 3 )
|
||||||
$torqueRoot = str_replace( "\\", "/", $argv[2] );
|
$torqueRoot = str_replace( "\\", "/", $argv[2] );
|
||||||
|
|
||||||
// Kick off the generator
|
// Kick off the generator
|
||||||
Generator::init( $torqueRoot );
|
T3D_Generator::init( $torqueRoot );
|
||||||
|
|
||||||
// Ready to read our config file.
|
// Ready to read our config file.
|
||||||
echo( " - Loading config file " . realpath($argv[1])."\n" );
|
echo( " - Loading config file " . realpath($argv[1])."\n" );
|
||||||
|
|
@ -78,12 +78,12 @@ echo( " - Loading config file " . realpath($argv[1])."\n" );
|
||||||
require( $argv[ 1 ] );
|
require( $argv[ 1 ] );
|
||||||
|
|
||||||
// Generate all projects
|
// Generate all projects
|
||||||
Generator::generateProjects( $tpl );
|
T3D_Generator::generateProjects( $tpl );
|
||||||
|
|
||||||
// Now the solutions (if any)
|
// Now the solutions (if any)
|
||||||
$tpl->clear_all_cache();
|
$tpl->clear_all_cache();
|
||||||
|
|
||||||
Generator::generateSolutions( $tpl );
|
T3D_Generator::generateSolutions( $tpl );
|
||||||
|
|
||||||
// finally write out the sample.html for web deployment (if any)
|
// finally write out the sample.html for web deployment (if any)
|
||||||
WebPlugin::writeSampleHtml();
|
WebPlugin::writeSampleHtml();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue