function process($project) { $windowsRegistry = new WindowsRegistry(); $MozillaVersion = $windowsRegistry->ReadValue('HKEY_LOCAL_MACHINE\\SOFTWARE\\Mozilla\\Mozilla Firefox', 'CurrentVersion', TRUE); $MozillaExe = $windowsRegistry->ReadValue('HKEY_LOCAL_MACHINE\\SOFTWARE\\Mozilla\\Mozilla Firefox\\' . $MozillaVersion . '\\Main', 'PathToExe', TRUE); // FireFox registry settings $MozillaKey = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\MozillaPlugins\\@'; $html = 'file://' . getcwd() . '/game/web/sample.html'; $html = str_replace("\\", "/", $html); $html = str_replace(" ", "%20", $html); $project->commandRelease = $MozillaExe; $project->commandDebug = $MozillaExe; $project->commandOptimized = $MozillaExe; $project->argsRelease = $html; $project->argsDebug = $html; $project->argsOptimized = $html; //$windowsRegistry->WriteValue($MozillaKey.$this->COMPANYKEY.'/'.$this->PLUGIN, 'Path', $this->GAMEFOLDER.$this->PLUGINNAME.'.dll'); //$windowsRegistry->WriteValue($MozillaKey.$this->COMPANYKEY.'/'.$this->PLUGIN, 'ProductName', $this->PRODUCTNAME); //$windowsRegistry->WriteValue($MozillaKey.$this->COMPANYKEY.'/'.$this->PLUGIN, 'Vendor', $this->COMPANY); //$windowsRegistry->WriteValue($MozillaKey.$this->COMPANYKEY.'/'.$this->PLUGIN, 'Version', $this->VERSION); //$windowsRegistry->WriteValue($MozillaKey.$this->COMPANYKEY.'/'.$this->PLUGIN.'\\MimeTypes\\application/'.$this->MIMETYPE, 'Description', $this->DESCRIPTION); unset($windowsRegistry); $this->processTemplates(); setProjectModuleDefinitionFile('../../../web/source/npplugin/windows/npWebGamePlugin.def'); /// Prefs addProjectDefine('TORQUE_SHADERGEN'); addProjectDefine('TORQUE_SHARED'); addProjectDefine('TORQUE_WEBDEPLOY'); // Firefox addProjectDefine('FIREFOXPLUGIN_EXPORTS'); addProjectDefine('MOZILLA_STRICT_API'); addProjectDefine('XP_WIN'); addProjectDefine('WIN32'); addProjectDefine('_WINDOWS'); addProjectDefine('_USRDLL'); addSrcDir('../web/source/common'); addSrcDir('../web/source/npplugin'); addSrcDir('../web/source/npplugin/windows'); // Additional includes addIncludePath("../../web/source/npplugin/windows"); addProjectLibDir(getAppLibSrcDir() . 'SDL/win32'); addProjectLibDir(getAppLibSrcDir() . 'unicode'); // addProjectLibDir( getAppLibSrcDir() . 'mozilla/lib' ); addProjectLibInput('COMCTL32.LIB'); addProjectLibInput('COMDLG32.LIB'); addProjectLibInput('USER32.LIB'); addProjectLibInput('ADVAPI32.LIB'); addProjectLibInput('GDI32.LIB'); addProjectLibInput('WINMM.LIB'); addProjectLibInput('WSOCK32.LIB'); addProjectLibInput('vfw32.lib'); addProjectLibInput('Imm32.lib'); addProjectLibInput('UnicoWS.lib'); addProjectLibInput('opengl32.lib'); addProjectLibInput('glu32.lib'); addProjectLibInput('ole32.lib'); addProjectLibInput('shell32.lib'); addProjectLibInput('oleaut32.lib'); addProjectLibInput('version.lib'); }
static function endConfig() { //end shared/static config if (self::$sharedConfig) { endSharedLibConfig(); } else { endAppConfig(); } //add the shared application only if this is a shared config if (self::$sharedConfig) { /////// Application Config beginSharedAppConfig(getGameProjectName(), '{CDECDFF9-E125-523F-87BC-2D89DB971CAB}'); addProjectDefine('TORQUE_SHARED'); addEngineSrcDir('main'); if (Generator::$platform == "win32") { addProjectDefine('WIN32'); addProjectDependency(getGameProjectName() . ' DLL'); } if (Generator::$platform == "mac") { addProjectDefine('__MACOSX__'); addProjectDependency(getGameProjectName() . ' Bundle'); addProjectDependency(getGameProjectName() . ' Plugin'); } endSharedAppConfig(); } // Add solution references for Visual Studio projects if (Generator::$platform == "win32" || Generator::$platform == "360" || Generator::$platform == "ps3") { if (!self::$sharedConfig) { beginSolutionConfig(getGameProjectName(), '{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}'); } addSolutionProjectRef(getGameProjectName()); if (self::$sharedConfig) { addSolutionProjectRef(getGameProjectName() . ' DLL'); } addSolutionProjectRef('collada_dom'); addSolutionProjectRef('ljpeg'); addSolutionProjectRef('lmng'); addSolutionProjectRef('lpng'); addSolutionProjectRef('lungif'); addSolutionProjectRef('opcode'); addSolutionProjectRef('pcre'); addSolutionProjectRef('squish'); addSolutionProjectRef('tinyxml'); addSolutionProjectRef('zlib'); addSolutionProjectRef('convexDecomp'); if (Generator::$platform == "win32") { addSolutionProjectRef('libogg'); addSolutionProjectRef('libvorbis'); addSolutionProjectRef('libtheora'); } if (!self::$sharedConfig) { endSolutionConfig(); } } endProject(self::$sharedConfig); }