@echo off:: ************************************************************************:: * Windows Build Script without preconditions *:: ************************************************************************:::: This script is an optional replacement to build the IDE/Debugger on:: Windows without the need to install any Unix tools such as make.:::: Run this script as follows::::: MakeWindows.cmd <TargetPureBasicDirectory>:::: No previous setup or use of "BuildEnv.cmd" is required in this case.:: For more information on the <TargetPureBasicDirectory> parameter, see:: the description of "BuildEnv.cmd" in the main directory.:::: NOTE::: The makefile is still the official way to build the IDE and debugger,:: even on Windows. This script is for convenience only. If you make:: any changes to this build script, the same changes must be made:: (and tested) in the makefile as well!:::: ************************************************************************:: Check presence of the mandatory argumentIF NOT [%1]==[] GOTO path_argument_okecho Invalid parameters: Missing argument for target PureBasic directorypauseexit /b 1:path_argument_ok:: Set PUREBASIC_HOME and ensure the compiler and IDE are in the pathset PUREBASIC_HOME=%1set PATH=%PUREBASIC_HOME%\Compilers;%PUREBASIC_HOME%;%PATH%@echo on:: ************** Build steps start here *********************************:: Set path of this script as current directory in case it was started from elsewherecd /d %~dp0:: Clean/Reset the Build directoryIF EXIST Build\ rmdir /Q /S Buildmkdir Build:: Create the "Build/dummy" file for compatibility with using the real makefiletype NUL > Build\dummy:: Generate dialog files@set DIALOGS=Find;Grep;Goto;CompilerOptions;AddTools;About;Preferences;Templates;StructureViewer;Projects;Build;Diff;FileMonitor;History;HistoryShutdown;CreateApp;UpdatesPBCompiler /QUIET /CONSOLE ..\DialogManager\DialogCompiler.pb /EXE Build\DialogCompiler.exe@FOR %%D IN (%DIALOGS%) DO Build\DialogCompiler.exe dialogs\%%D.xml Build\%%D.pb:: Generate themesPBCompiler /QUIET /CONSOLE tools\maketheme.pb /EXE Build\maketheme.exeBuild\maketheme.exe Build\DefaultTheme.zip data\DefaultThemeBuild\maketheme.exe %PUREBASIC_HOME%\Themes\SilkTheme.zip data\SilkTheme:: Generate build infoPBCompiler /QUIET /CONSOLE tools/makebuildinfo.pb /EXE Build/makebuildinfo.exeBuild\makebuildinfo.exe Build:: Generate version info resourcePBCompiler /QUIET /CONSOLE tools/makeversion.pb /EXE Build/makeversion.exeBuild\makeversion.exe ide Build/VersionInfo.rc data/PBSourceFile.ico:: Compile the IDEPBCompiler /QUIET PureBasic.pb /EXE %PUREBASIC_HOME%\PureBasic.exe /THREAD /UNICODE /XP /USER /ICON data/PBLogoBig.ico /DPIAWARE /RESOURCE Build/VersionInfo.rc
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。