Output compiled binaries to ./bin.

This commit is contained in:
Paul Chote
2020-11-21 18:39:11 +00:00
committed by teinarss
parent 6ad5b9ebc4
commit 20fe59e844
29 changed files with 124 additions and 163 deletions

View File

@@ -38,7 +38,7 @@ script:
make check || travis_terminate 1; make check || travis_terminate 1;
make check-scripts || travis_terminate 1; make check-scripts || travis_terminate 1;
make test || travis_terminate 1; make test || travis_terminate 1;
mono ~/.nuget/packages/nunit.consolerunner/3.11.1/tools/nunit3-console.exe --noresult OpenRA.Test.dll || travis_terminate 1; mono ~/.nuget/packages/nunit.consolerunner/3.11.1/tools/nunit3-console.exe --noresult bin/OpenRA.Test.dll || travis_terminate 1;
fi fi
# Only watch the development branch and tagged release. # Only watch the development branch and tagged release.

View File

@@ -111,27 +111,27 @@ check:
@$(MSBUILD) -t:build -p:Configuration=Debug @$(MSBUILD) -t:build -p:Configuration=Debug
@echo @echo
@echo "Checking runtime assemblies..." @echo "Checking runtime assemblies..."
@mono --debug OpenRA.Utility.exe all --check-runtime-assemblies $(WHITELISTED_OPENRA_ASSEMBLIES) $(WHITELISTED_THIRDPARTY_ASSEMBLIES) $(WHITELISTED_CORE_ASSEMBLIES) @ENGINE_DIR=".." mono --debug bin/OpenRA.Utility.exe all --check-runtime-assemblies $(WHITELISTED_OPENRA_ASSEMBLIES) $(WHITELISTED_THIRDPARTY_ASSEMBLIES) $(WHITELISTED_CORE_ASSEMBLIES)
@echo @echo
@echo "Checking for explicit interface violations..." @echo "Checking for explicit interface violations..."
@mono --debug OpenRA.Utility.exe all --check-explicit-interfaces @ENGINE_DIR=".." mono --debug bin/OpenRA.Utility.exe all --check-explicit-interfaces
@echo @echo
@echo "Checking for incorrect conditional trait interface overrides..." @echo "Checking for incorrect conditional trait interface overrides..."
@mono --debug OpenRA.Utility.exe all --check-conditional-trait-interface-overrides @ENGINE_DIR=".." mono --debug bin/OpenRA.Utility.exe all --check-conditional-trait-interface-overrides
test: core test: core
@echo @echo
@echo "Testing Tiberian Sun mod MiniYAML..." @echo "Testing Tiberian Sun mod MiniYAML..."
@mono --debug OpenRA.Utility.exe ts --check-yaml @ENGINE_DIR=".." mono --debug bin/OpenRA.Utility.exe ts --check-yaml
@echo @echo
@echo "Testing Dune 2000 mod MiniYAML..." @echo "Testing Dune 2000 mod MiniYAML..."
@mono --debug OpenRA.Utility.exe d2k --check-yaml @ENGINE_DIR=".." mono --debug bin/OpenRA.Utility.exe d2k --check-yaml
@echo @echo
@echo "Testing Tiberian Dawn mod MiniYAML..." @echo "Testing Tiberian Dawn mod MiniYAML..."
@mono --debug OpenRA.Utility.exe cnc --check-yaml @ENGINE_DIR=".." mono --debug bin/OpenRA.Utility.exe cnc --check-yaml
@echo @echo
@echo "Testing Red Alert mod MiniYAML..." @echo "Testing Red Alert mod MiniYAML..."
@mono --debug OpenRA.Utility.exe ra --check-yaml @ENGINE_DIR=".." mono --debug bin/OpenRA.Utility.exe ra --check-yaml
########################## MAKE/INSTALL RULES ########################## ########################## MAKE/INSTALL RULES ##########################
# #
@@ -147,8 +147,7 @@ endif
clean: clean:
@-$(RM_F) *.config IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP @-$(RM_F) *.config IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP
@-$(RM_F) *.exe *.dll *.dll.config *.so *.dylib ./OpenRA*/*.dll *.pdb mods/**/*.dll mods/**/*.pdb *.resources @-$(RM_RF) ./bin ./*/bin ./*/obj
@-$(RM_RF) ./*/bin ./*/obj
@ $(MSBUILD) -t:clean @ $(MSBUILD) -t:clean
version: VERSION mods/ra/mod.yaml mods/cnc/mod.yaml mods/d2k/mod.yaml mods/ts/mod.yaml mods/modcontent/mod.yaml mods/all/mod.yaml version: VERSION mods/ra/mod.yaml mods/cnc/mod.yaml mods/d2k/mod.yaml mods/ts/mod.yaml mods/modcontent/mod.yaml mods/all/mod.yaml
@@ -167,39 +166,39 @@ install-linux-shortcuts: install-linux-scripts install-linux-icons install-linux
install-dependencies: install-dependencies:
ifeq ($(TARGETPLATFORM), $(filter $(TARGETPLATFORM),win-x86 win-x64)) ifeq ($(TARGETPLATFORM), $(filter $(TARGETPLATFORM),win-x86 win-x64))
@-echo "Installing OpenRA dependencies to $(DATA_INSTALL_DIR)" @-echo "Installing OpenRA dependencies to $(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) soft_oal.dll "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/soft_oal.dll "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) SDL2.dll "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/SDL2.dll "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) freetype6.dll "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/freetype6.dll "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) lua51.dll "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/lua51.dll "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) libEGL.dll "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/libEGL.dll "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) libGLESv2.dll "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/libGLESv2.dll "$(DATA_INSTALL_DIR)"
endif endif
ifeq ($(TARGETPLATFORM), linux-x64) ifeq ($(TARGETPLATFORM), linux-x64)
@-echo "Installing OpenRA dependencies to $(DATA_INSTALL_DIR)" @-echo "Installing OpenRA dependencies to $(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) soft_oal.so "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/soft_oal.so "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) SDL2.so "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/SDL2.so "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) freetype6.so "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/freetype6.so "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) lua51.so "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/lua51.so "$(DATA_INSTALL_DIR)"
endif endif
ifeq ($(TARGETPLATFORM), osx-x64) ifeq ($(TARGETPLATFORM), osx-x64)
@-echo "Installing OpenRA dependencies to $(DATA_INSTALL_DIR)" @-echo "Installing OpenRA dependencies to $(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) soft_oal.dylib "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/soft_oal.dylib "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) SDL2.dylib "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/SDL2.dylib "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) freetype6.dylib "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/freetype6.dylib "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) lua51.dylib "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/lua51.dylib "$(DATA_INSTALL_DIR)"
endif endif
install-engine: install-engine:
@-echo "Installing OpenRA engine to $(DATA_INSTALL_DIR)" @-echo "Installing OpenRA engine to $(DATA_INSTALL_DIR)"
@$(INSTALL_DIR) "$(DATA_INSTALL_DIR)" @$(INSTALL_DIR) "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) OpenRA.Game.exe "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/OpenRA.Game.exe "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) OpenRA.Server.exe "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/OpenRA.Server.exe "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) OpenRA.Utility.exe "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/OpenRA.Utility.exe "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) OpenRA.Platforms.Default.dll "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/OpenRA.Platforms.Default.dll "$(DATA_INSTALL_DIR)"
ifneq ($(TARGETPLATFORM), $(filter $(TARGETPLATFORM),win-x86 win-x64)) ifneq ($(TARGETPLATFORM), $(filter $(TARGETPLATFORM),win-x86 win-x64))
@$(INSTALL_DATA) OpenRA.Platforms.Default.dll.config "$(DATA_INSTALL_DIR)" @$(INSTALL_DATA) bin/OpenRA.Platforms.Default.dll.config "$(DATA_INSTALL_DIR)"
endif endif
@$(INSTALL_DATA) VERSION "$(DATA_INSTALL_DIR)/VERSION" @$(INSTALL_DATA) VERSION "$(DATA_INSTALL_DIR)/VERSION"
@$(INSTALL_DATA) AUTHORS "$(DATA_INSTALL_DIR)/AUTHORS" @$(INSTALL_DATA) AUTHORS "$(DATA_INSTALL_DIR)/AUTHORS"
@@ -208,22 +207,22 @@ endif
@$(CP_R) glsl "$(DATA_INSTALL_DIR)" @$(CP_R) glsl "$(DATA_INSTALL_DIR)"
@$(CP_R) lua "$(DATA_INSTALL_DIR)" @$(CP_R) lua "$(DATA_INSTALL_DIR)"
@$(CP) SDL2-CS* "$(DATA_INSTALL_DIR)" @$(CP) bin/SDL2-CS* "$(DATA_INSTALL_DIR)"
@$(CP) OpenAL-CS* "$(DATA_INSTALL_DIR)" @$(CP) bin/OpenAL-CS* "$(DATA_INSTALL_DIR)"
@$(CP) Eluant* "$(DATA_INSTALL_DIR)" @$(CP) bin/Eluant* "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) ICSharpCode.SharpZipLib.dll "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/ICSharpCode.SharpZipLib.dll "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) FuzzyLogicLibrary.dll "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/FuzzyLogicLibrary.dll "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) Open.Nat.dll "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/Open.Nat.dll "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) BeaconLib.dll "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/BeaconLib.dll "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) DiscordRPC.dll "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/DiscordRPC.dll "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) Newtonsoft.Json.dll "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) bin/Newtonsoft.Json.dll "$(DATA_INSTALL_DIR)"
install-common-mod-files: install-common-mod-files:
@-echo "Installing OpenRA common mod files to $(DATA_INSTALL_DIR)" @-echo "Installing OpenRA common mod files to $(DATA_INSTALL_DIR)"
@$(INSTALL_DIR) "$(DATA_INSTALL_DIR)/mods" @$(INSTALL_DIR) "$(DATA_INSTALL_DIR)/mods"
@$(CP_R) mods/common "$(DATA_INSTALL_DIR)/mods/" @$(CP_R) mods/common "$(DATA_INSTALL_DIR)/mods/"
@$(INSTALL_PROGRAM) mods/common/OpenRA.Mods.Common.dll "$(DATA_INSTALL_DIR)/mods/common" @$(INSTALL_PROGRAM) bin/OpenRA.Mods.Common.dll "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) mods/common/OpenRA.Mods.Cnc.dll "$(DATA_INSTALL_DIR)/mods/common" @$(INSTALL_PROGRAM) bin/OpenRA.Mods.Cnc.dll "$(DATA_INSTALL_DIR)"
@$(INSTALL_DATA) "global mix database.dat" "$(DATA_INSTALL_DIR)/global mix database.dat" @$(INSTALL_DATA) "global mix database.dat" "$(DATA_INSTALL_DIR)/global mix database.dat"
install-default-mods: install-default-mods:
@@ -232,7 +231,7 @@ install-default-mods:
@$(CP_R) mods/cnc "$(DATA_INSTALL_DIR)/mods/" @$(CP_R) mods/cnc "$(DATA_INSTALL_DIR)/mods/"
@$(CP_R) mods/ra "$(DATA_INSTALL_DIR)/mods/" @$(CP_R) mods/ra "$(DATA_INSTALL_DIR)/mods/"
@$(CP_R) mods/d2k "$(DATA_INSTALL_DIR)/mods/" @$(CP_R) mods/d2k "$(DATA_INSTALL_DIR)/mods/"
@$(INSTALL_PROGRAM) mods/d2k/OpenRA.Mods.D2k.dll "$(DATA_INSTALL_DIR)/mods/d2k" @$(INSTALL_PROGRAM) bin/OpenRA.Mods.D2k.dll "$(DATA_INSTALL_DIR)"
@$(CP_R) mods/modcontent "$(DATA_INSTALL_DIR)/mods/" @$(CP_R) mods/modcontent "$(DATA_INSTALL_DIR)/mods/"
install-linux-icons: install-linux-icons:
@@ -277,7 +276,7 @@ install-linux-appdata:
install-man-page: install-man-page:
@$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man6/" @$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man6/"
@mono --debug OpenRA.Utility.exe all --man-page > openra.6 @ENGINE_DIR=".." mono --debug bin/OpenRA.Utility.exe all --man-page > openra.6
@$(INSTALL_DATA) openra.6 "$(DESTDIR)$(mandir)/man6/" @$(INSTALL_DATA) openra.6 "$(DESTDIR)$(mandir)/man6/"
@-$(RM) openra.6 @-$(RM) openra.6

View File

@@ -10,7 +10,7 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects> <AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
<RootNamespace>OpenRA</RootNamespace> <RootNamespace>OpenRA</RootNamespace>
<OutputPath>..</OutputPath> <OutputPath>../bin</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<ExternalConsole>false</ExternalConsole> <ExternalConsole>false</ExternalConsole>
@@ -36,19 +36,19 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(RunConfiguration)' == 'Red Alert'"> <PropertyGroup Condition="'$(RunConfiguration)' == 'Red Alert'">
<StartAction>Project</StartAction> <StartAction>Project</StartAction>
<StartArguments>Game.Mod=ra</StartArguments> <StartArguments>Engine.EngineDir=".." Game.Mod=ra</StartArguments>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(RunConfiguration)' == 'Dune 2000'"> <PropertyGroup Condition="'$(RunConfiguration)' == 'Dune 2000'">
<StartAction>Project</StartAction> <StartAction>Project</StartAction>
<StartArguments>Game.Mod=d2k</StartArguments> <StartArguments>Engine.EngineDir=".." Game.Mod=d2k</StartArguments>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(RunConfiguration)' == 'Tiberian Dawn'"> <PropertyGroup Condition="'$(RunConfiguration)' == 'Tiberian Dawn'">
<StartAction>Project</StartAction> <StartAction>Project</StartAction>
<StartArguments>Game.Mod=cnc</StartArguments> <StartArguments>Engine.EngineDir=".." Game.Mod=cnc</StartArguments>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(RunConfiguration)' == 'Tiberian Sun'"> <PropertyGroup Condition="'$(RunConfiguration)' == 'Tiberian Sun'">
<StartAction>Project</StartAction> <StartAction>Project</StartAction>
<StartArguments>Game.Mod=ts</StartArguments> <StartArguments>Engine.EngineDir=".." Game.Mod=ts</StartArguments>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<None Include="App.config" /> <None Include="App.config" />

View File

@@ -2,19 +2,19 @@
"profiles": { "profiles": {
"Tiberian Dawn": { "Tiberian Dawn": {
"commandName": "Project", "commandName": "Project",
"commandLineArgs": "Game.Mod=cnc" "commandLineArgs": "Engine.EngineDir=\"..\" Game.Mod=cnc"
}, },
"Red Alert": { "Red Alert": {
"commandName": "Project", "commandName": "Project",
"commandLineArgs": "Game.Mod=ra" "commandLineArgs": "Engine.EngineDir=\"..\" Game.Mod=ra"
}, },
"Dune 2000": { "Dune 2000": {
"commandName": "Project", "commandName": "Project",
"commandLineArgs": "Game.Mod=d2k" "commandLineArgs": "Engine.EngineDir=\"..\" Game.Mod=d2k"
}, },
"Tiberian Sun": { "Tiberian Sun": {
"commandName": "Project", "commandName": "Project",
"commandLineArgs": "Game.Mod=ts" "commandLineArgs": "Engine.EngineDir=\"..\" Game.Mod=ts"
} }
} }
} }

View File

@@ -6,7 +6,7 @@
<LangVersion>7.3</LangVersion> <LangVersion>7.3</LangVersion>
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<OutputPath>../mods/common</OutputPath> <OutputPath>../bin</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems> <EnableDefaultCompileItems>false</EnableDefaultCompileItems>

View File

@@ -6,7 +6,7 @@
<LangVersion>7.3</LangVersion> <LangVersion>7.3</LangVersion>
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<OutputPath>../mods/common</OutputPath> <OutputPath>../bin</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems> <EnableDefaultCompileItems>false</EnableDefaultCompileItems>

View File

@@ -6,7 +6,7 @@
<LangVersion>7.3</LangVersion> <LangVersion>7.3</LangVersion>
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<OutputPath>../mods/d2k</OutputPath> <OutputPath>../bin</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems> <EnableDefaultCompileItems>false</EnableDefaultCompileItems>

View File

@@ -6,7 +6,7 @@
<LangVersion>7.3</LangVersion> <LangVersion>7.3</LangVersion>
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<OutputPath>..</OutputPath> <OutputPath>../bin</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems> <EnableDefaultCompileItems>false</EnableDefaultCompileItems>

View File

@@ -5,7 +5,7 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<UseVSHostingProcess>false</UseVSHostingProcess> <UseVSHostingProcess>false</UseVSHostingProcess>
<OutputPath>..</OutputPath> <OutputPath>../bin</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<LangVersion>7.3</LangVersion> <LangVersion>7.3</LangVersion>
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>

View File

@@ -5,7 +5,7 @@
<LangVersion>7.3</LangVersion> <LangVersion>7.3</LangVersion>
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<OutputPath>..</OutputPath> <OutputPath>../bin</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems> <EnableDefaultCompileItems>false</EnableDefaultCompileItems>

View File

@@ -5,7 +5,7 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<UseVSHostingProcess>false</UseVSHostingProcess> <UseVSHostingProcess>false</UseVSHostingProcess>
<OutputPath>..</OutputPath> <OutputPath>../bin</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<LangVersion>7.3</LangVersion> <LangVersion>7.3</LangVersion>
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>

View File

@@ -7,7 +7,7 @@ build_script:
- make all - make all
test_script: test_script:
- nunit3-console OpenRA.Test.dll --result=myresults.xml;format=AppVeyor - nunit3-console bin/OpenRA.Test.dll --result=myresults.xml;format=AppVeyor
after_test: after_test:
- appveyor DownloadFile "https://github.com/OpenRA/GeoIP-Database/releases/download/monthly/IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP" -FileName IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP - appveyor DownloadFile "https://github.com/OpenRA/GeoIP-Database/releases/download/monthly/IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP" -FileName IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP
@@ -15,6 +15,7 @@ after_test:
- python -c "from PIL import Image; i = Image.open('packaging/artwork/ra_256x256.png'); i.save('ra.ico')" - python -c "from PIL import Image; i = Image.open('packaging/artwork/ra_256x256.png'); i.save('ra.ico')"
- python -c "from PIL import Image; i = Image.open('packaging/artwork/cnc_256x256.png'); i.save('cnc.ico')" - python -c "from PIL import Image; i = Image.open('packaging/artwork/cnc_256x256.png'); i.save('cnc.ico')"
- python -c "from PIL import Image; i = Image.open('packaging/artwork/d2k_256x256.png'); i.save('d2k.ico')" - python -c "from PIL import Image; i = Image.open('packaging/artwork/d2k_256x256.png'); i.save('d2k.ico')"
- move /Y %APPVEYOR_BUILD_FOLDER%\bin\* %APPVEYOR_BUILD_FOLDER%
- ps: (Get-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs.in").replace('DISPLAY_NAME', 'Red Alert').replace('MOD_ID', 'ra').replace('FAQ_URL', 'http://wiki.openra.net/FAQ') | Set-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs" - ps: (Get-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs.in").replace('DISPLAY_NAME', 'Red Alert').replace('MOD_ID', 'ra').replace('FAQ_URL', 'http://wiki.openra.net/FAQ') | Set-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs"
- ps: C:\"Program Files (x86)"\"Microsoft Visual Studio"\2017\Community\MSBuild\15.0\Bin\Roslyn\csc.exe /noconfig /platform:x64 /reference:System.dll /reference:System.Core.dll /reference:System.Drawing.dll /reference:System.Windows.Forms.dll /reference:"${env:APPVEYOR_BUILD_FOLDER}\OpenRA.Game.exe" /out:"${env:APPVEYOR_BUILD_FOLDER}\RedAlert.exe" /win32icon:"${env:APPVEYOR_BUILD_FOLDER}\ra.ico" /target:winexe ${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs - ps: C:\"Program Files (x86)"\"Microsoft Visual Studio"\2017\Community\MSBuild\15.0\Bin\Roslyn\csc.exe /noconfig /platform:x64 /reference:System.dll /reference:System.Core.dll /reference:System.Drawing.dll /reference:System.Windows.Forms.dll /reference:"${env:APPVEYOR_BUILD_FOLDER}\OpenRA.Game.exe" /out:"${env:APPVEYOR_BUILD_FOLDER}\RedAlert.exe" /win32icon:"${env:APPVEYOR_BUILD_FOLDER}\ra.ico" /target:winexe ${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs
- ps: (Get-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs.in").replace('DISPLAY_NAME', 'Tiberian Dawn').replace('MOD_ID', 'cnc').replace('FAQ_URL', 'http://wiki.openra.net/FAQ') | Set-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs" - ps: (Get-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs.in").replace('DISPLAY_NAME', 'Tiberian Dawn').replace('MOD_ID', 'cnc').replace('FAQ_URL', 'http://wiki.openra.net/FAQ') | Set-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs"

View File

@@ -38,14 +38,14 @@ patch_config()
if [ "$(uname -s)" = "Darwin" ]; then if [ "$(uname -s)" = "Darwin" ]; then
SEARCHDIRS="/usr/local/lib /usr/local/opt/openal-soft/lib" SEARCHDIRS="/usr/local/lib /usr/local/opt/openal-soft/lib"
patch_config "Lua 5.1" "${SEARCHDIRS}" Eluant.dll.config lua51.dylib liblua5.1.dylib patch_config "Lua 5.1" "${SEARCHDIRS}" bin/Eluant.dll.config lua51.dylib liblua5.1.dylib
patch_config SDL2 "${SEARCHDIRS}" SDL2-CS.dll.config SDL2.dylib libSDL2-2.0.0.dylib patch_config SDL2 "${SEARCHDIRS}" bin/SDL2-CS.dll.config SDL2.dylib libSDL2-2.0.0.dylib
patch_config OpenAL "${SEARCHDIRS}" OpenAL-CS.Core.dll.config soft_oal.dylib libopenal.1.dylib patch_config OpenAL "${SEARCHDIRS}" bin/OpenAL-CS.Core.dll.config soft_oal.dylib libopenal.1.dylib
patch_config FreeType "${SEARCHDIRS}" OpenRA.Platforms.Default.dll.config freetype6.dylib libfreetype.6.dylib patch_config FreeType "${SEARCHDIRS}" bin/OpenRA.Platforms.Default.dll.config freetype6.dylib libfreetype.6.dylib
else else
SEARCHDIRS="/lib /lib64 /usr/lib /usr/lib64 /usr/lib/i386-linux-gnu /usr/lib/x86_64-linux-gnu /usr/lib/arm-linux-gnueabihf /usr/lib/aarch64-linux-gnu /usr/lib/powerpc64le-linux-gnu /usr/lib/mipsel-linux-gnu /usr/local/lib /opt/lib /opt/local/lib /app/lib" SEARCHDIRS="/lib /lib64 /usr/lib /usr/lib64 /usr/lib/i386-linux-gnu /usr/lib/x86_64-linux-gnu /usr/lib/arm-linux-gnueabihf /usr/lib/aarch64-linux-gnu /usr/lib/powerpc64le-linux-gnu /usr/lib/mipsel-linux-gnu /usr/local/lib /opt/lib /opt/local/lib /app/lib"
patch_config "Lua 5.1" "${SEARCHDIRS}" Eluant.dll.config lua51.so "liblua.so.5.1.5 liblua5.1.so.5.1 liblua5.1.so.0 liblua.so.5.1 liblua-5.1.so liblua5.1.so" patch_config "Lua 5.1" "${SEARCHDIRS}" bin/Eluant.dll.config lua51.so "liblua.so.5.1.5 liblua5.1.so.5.1 liblua5.1.so.0 liblua.so.5.1 liblua-5.1.so liblua5.1.so"
patch_config SDL2 "${SEARCHDIRS}" SDL2-CS.dll.config SDL2.so "libSDL2-2.0.so.0 libSDL2-2.0.so libSDL2.so" patch_config SDL2 "${SEARCHDIRS}" bin/SDL2-CS.dll.config SDL2.so "libSDL2-2.0.so.0 libSDL2-2.0.so libSDL2.so"
patch_config OpenAL "${SEARCHDIRS}" OpenAL-CS.Core.dll.config soft_oal.so "libopenal.so.1 libopenal.so" patch_config OpenAL "${SEARCHDIRS}" bin/OpenAL-CS.Core.dll.config soft_oal.so "libopenal.so.1 libopenal.so"
patch_config FreeType "${SEARCHDIRS}" OpenRA.Platforms.Default.dll.config freetype6.so "libfreetype.so.6 libfreetype.so" patch_config FreeType "${SEARCHDIRS}" bin/OpenRA.Platforms.Default.dll.config freetype6.so "libfreetype.so.6 libfreetype.so"
fi fi

View File

@@ -22,6 +22,6 @@ set SupportDir=""
:loop :loop
OpenRA.Server.exe Game.Mod=%Mod% Server.Name=%Name% Server.ListenPort=%ListenPort% Server.AdvertiseOnline=%AdvertiseOnline% Server.EnableSingleplayer=%EnableSingleplayer% Server.Password=%Password% Server.RecordReplays=%RecordReplays% Server.RequireAuthentication=%RequireAuthentication% Server.ProfileIDBlacklist=%ProfileIDBlacklist% Server.ProfileIDWhitelist=%ProfileIDWhitelist% Server.EnableSyncReports=%EnableSyncReports% Server.EnableGeoIP=%EnableGeoIP% Server.ShareAnonymizedIPs=%ShareAnonymizedIPs% Engine.SupportDir=%SupportDir% bin\OpenRA.Server.exe Engine.EngineDir=".." Game.Mod=%Mod% Server.Name=%Name% Server.ListenPort=%ListenPort% Server.AdvertiseOnline=%AdvertiseOnline% Server.EnableSingleplayer=%EnableSingleplayer% Server.Password=%Password% Server.RecordReplays=%RecordReplays% Server.RequireAuthentication=%RequireAuthentication% Server.ProfileIDBlacklist=%ProfileIDBlacklist% Server.ProfileIDWhitelist=%ProfileIDWhitelist% Server.EnableSyncReports=%EnableSyncReports% Server.EnableGeoIP=%EnableGeoIP% Server.ShareAnonymizedIPs=%ShareAnonymizedIPs% Engine.SupportDir=%SupportDir%
goto loop goto loop

View File

@@ -25,7 +25,7 @@ ShareAnonymizedIPs="${ShareAnonymizedIPs:-"True"}"
SupportDir="${SupportDir:-""}" SupportDir="${SupportDir:-""}"
while true; do while true; do
mono --debug OpenRA.Server.exe Game.Mod="$Mod" \ mono --debug bin/OpenRA.Server.exe Engine.EngineDir=".." Game.Mod="$Mod" \
Server.Name="$Name" \ Server.Name="$Name" \
Server.ListenPort="$ListenPort" \ Server.ListenPort="$ListenPort" \
Server.AdvertiseOnline="$AdvertiseOnline" \ Server.AdvertiseOnline="$AdvertiseOnline" \

View File

@@ -17,10 +17,10 @@ echo.
goto choosemod goto choosemod
:launchmod :launchmod
OpenRA.Game.exe Game.Mod=%mod% %* bin\OpenRA.Game.exe Engine.EngineDir=".." Game.Mod=%mod% %*
goto end goto end
:launch :launch
OpenRA.Game.exe %* bin\OpenRA.Game.exe Engine.EngineDir=".." %*
:end :end
if %errorlevel% neq 0 goto crashdialog if %errorlevel% neq 0 goto crashdialog

View File

@@ -25,7 +25,7 @@ then
fi fi
# Launch the engine with the appropriate arguments # Launch the engine with the appropriate arguments
mono OpenRA.Game.exe Engine.LaunchPath="$MODLAUNCHER" $MODARG "$@" mono bin/OpenRA.Game.exe Engine.EngineDir=".." Engine.LaunchPath="$MODLAUNCHER" $MODARG "$@"
# Show a crash dialog if something went wrong # Show a crash dialog if something went wrong
if [ $? != 0 ] && [ $? != 1 ]; then if [ $? != 0 ] && [ $? != 1 ]; then

View File

@@ -36,18 +36,9 @@ function Clean-Command
} }
dotnet clean /nologo dotnet clean /nologo
rm *.dll rm ./bin -r
rm mods/*/*.dll
rm *.config
rm *.pdb
rm mods/*/*.pdb
rm *.exe
rm ./*/bin -r rm ./*/bin -r
rm ./*/obj -r rm ./*/obj -r
if (Test-Path thirdparty/download/)
{
rmdir thirdparty/download -Recurse -Force
}
Write-Host "Clean complete." -ForegroundColor Green Write-Host "Clean complete." -ForegroundColor Green
} }
@@ -108,13 +99,13 @@ function Test-Command
Write-Host "Testing mods..." -ForegroundColor Cyan Write-Host "Testing mods..." -ForegroundColor Cyan
Write-Host "Testing Tiberian Sun mod MiniYAML..." -ForegroundColor Cyan Write-Host "Testing Tiberian Sun mod MiniYAML..." -ForegroundColor Cyan
./OpenRA.Utility.exe ts --check-yaml Invoke-Expression "$utilityPath ts --check-yaml"
Write-Host "Testing Dune 2000 mod MiniYAML..." -ForegroundColor Cyan Write-Host "Testing Dune 2000 mod MiniYAML..." -ForegroundColor Cyan
./OpenRA.Utility.exe d2k --check-yaml Invoke-Expression "$utilityPath d2k --check-yaml"
Write-Host "Testing Tiberian Dawn mod MiniYAML..." -ForegroundColor Cyan Write-Host "Testing Tiberian Dawn mod MiniYAML..." -ForegroundColor Cyan
./OpenRA.Utility.exe cnc --check-yaml Invoke-Expression "$utilityPath cnc --check-yaml"
Write-Host "Testing Red Alert mod MiniYAML..." -ForegroundColor Cyan Write-Host "Testing Red Alert mod MiniYAML..." -ForegroundColor Cyan
./OpenRA.Utility.exe ra --check-yaml Invoke-Expression "$utilityPath ra --check-yaml"
} }
function Check-Command function Check-Command
@@ -129,10 +120,10 @@ function Check-Command
if ((CheckForUtility) -eq 0) if ((CheckForUtility) -eq 0)
{ {
Write-Host "Checking for explicit interface violations..." -ForegroundColor Cyan Write-Host "Checking for explicit interface violations..." -ForegroundColor Cyan
./OpenRA.Utility.exe all --check-explicit-interfaces Invoke-Expression "$utilityPath all --check-explicit-interfaces"
Write-Host "Checking for incorrect conditional trait interface overrides..." -ForegroundColor Cyan Write-Host "Checking for incorrect conditional trait interface overrides..." -ForegroundColor Cyan
./OpenRA.Utility.exe all --check-conditional-trait-interface-overrides Invoke-Expression "$utilityPath all --check-conditional-trait-interface-overrides"
} }
} }
@@ -169,15 +160,15 @@ function Docs-Command
} }
./make.ps1 version ./make.ps1 version
./OpenRA.Utility.exe all --docs | Out-File -Encoding "UTF8" DOCUMENTATION.md Invoke-Expression "$utilityPath all --docs" | Out-File -Encoding "UTF8" DOCUMENTATION.md
./OpenRA.Utility.exe all --weapon-docs | Out-File -Encoding "UTF8" WEAPONS.md Invoke-Expression "$utilityPath all --weapon-docs" | Out-File -Encoding "UTF8" WEAPONS.md
./OpenRA.Utility.exe all --lua-docs | Out-File -Encoding "UTF8" Lua-API.md Invoke-Expression "$utilityPath all --lua-docs" | Out-File -Encoding "UTF8" Lua-API.md
./OpenRA.Utility.exe all --settings-docs | Out-File -Encoding "UTF8" Settings.md Invoke-Expression "$utilityPath all --settings-docs" | Out-File -Encoding "UTF8" Settings.md
} }
function CheckForUtility function CheckForUtility
{ {
if (Test-Path OpenRA.Utility.exe) if (Test-Path $utilityPath)
{ {
return 0 return 0
} }
@@ -241,6 +232,9 @@ else
$command = $args $command = $args
} }
$env:ENGINE_DIR = ".."
$utilityPath = "bin\OpenRA.Utility.exe"
$execute = $command $execute = $command
if ($command.Length -gt 1) if ($command.Length -gt 1)
{ {

View File

@@ -11,9 +11,9 @@ Cursors:
Chrome: Chrome:
Assemblies: Assemblies:
^EngineDir|mods/common/OpenRA.Mods.Common.dll ^BinDir|OpenRA.Mods.Common.dll
^EngineDir|mods/common/OpenRA.Mods.Cnc.dll ^BinDir|OpenRA.Mods.Cnc.dll
^EngineDir|mods/d2k/OpenRA.Mods.D2k.dll ^BinDir|OpenRA.Mods.D2k.dll
ChromeLayout: ChromeLayout:

View File

@@ -87,8 +87,8 @@ Chrome:
cnc|chrome.yaml cnc|chrome.yaml
Assemblies: Assemblies:
common|OpenRA.Mods.Common.dll ^BinDir|OpenRA.Mods.Common.dll
common|OpenRA.Mods.Cnc.dll ^BinDir|OpenRA.Mods.Cnc.dll
ChromeLayout: ChromeLayout:
cnc|chrome/mainmenu.yaml cnc|chrome/mainmenu.yaml

View File

@@ -61,9 +61,9 @@ Chrome:
d2k|chrome.yaml d2k|chrome.yaml
Assemblies: Assemblies:
common|OpenRA.Mods.Common.dll ^BinDir|OpenRA.Mods.Common.dll
common|OpenRA.Mods.Cnc.dll ^BinDir|OpenRA.Mods.Cnc.dll
d2k|OpenRA.Mods.D2k.dll ^BinDir|OpenRA.Mods.D2k.dll
ChromeLayout: ChromeLayout:
common|chrome/ingame.yaml common|chrome/ingame.yaml

View File

@@ -18,7 +18,7 @@ Chrome:
modcontent|chrome.yaml modcontent|chrome.yaml
Assemblies: Assemblies:
common|OpenRA.Mods.Common.dll ^BinDir|OpenRA.Mods.Common.dll
ChromeLayout: ChromeLayout:
modcontent|content.yaml modcontent|content.yaml

View File

@@ -78,8 +78,8 @@ Chrome:
ra|chrome.yaml ra|chrome.yaml
Assemblies: Assemblies:
common|OpenRA.Mods.Common.dll ^BinDir|OpenRA.Mods.Common.dll
common|OpenRA.Mods.Cnc.dll ^BinDir|OpenRA.Mods.Cnc.dll
ChromeLayout: ChromeLayout:
common|chrome/ingame.yaml common|chrome/ingame.yaml

View File

@@ -124,8 +124,8 @@ Chrome:
ts|chrome.yaml ts|chrome.yaml
Assemblies: Assemblies:
common|OpenRA.Mods.Common.dll ^BinDir|OpenRA.Mods.Common.dll
common|OpenRA.Mods.Cnc.dll ^BinDir|OpenRA.Mods.Cnc.dll
ChromeLayout: ChromeLayout:
common|chrome/ingame.yaml common|chrome/ingame.yaml

View File

@@ -103,6 +103,11 @@ build_appimage() {
# Add mod files # Add mod files
pushd "${SRCDIR}" > /dev/null || exit 1 pushd "${SRCDIR}" > /dev/null || exit 1
cp -r "mods/${MOD_ID}" mods/modcontent "${APPDIR}/usr/lib/openra/mods" cp -r "mods/${MOD_ID}" mods/modcontent "${APPDIR}/usr/lib/openra/mods"
# HACK: The D2k dll is not copied by install-common-mod-files so we must do this ourselves
if [ "${MOD_ID}" = "d2k" ]; then
cp "bin/OpenRA.Mods.D2k.dll" "${APPDIR}/usr/lib/openra"
fi
popd > /dev/null || exit 1 popd > /dev/null || exit 1
# Add launcher and icons # Add launcher and icons

View File

@@ -62,6 +62,11 @@ populate_bundle() {
# Add mod files # Add mod files
pushd "${SRCDIR}" > /dev/null || exit 1 pushd "${SRCDIR}" > /dev/null || exit 1
cp -r "mods/${MOD_ID}" mods/modcontent "${TEMPLATE_DIR}/Contents/Resources/mods" cp -r "mods/${MOD_ID}" mods/modcontent "${TEMPLATE_DIR}/Contents/Resources/mods"
# HACK: The D2k dll is not copied by install-common-mod-files so we must do this ourselves
if [ "${MOD_ID}" = "d2k" ]; then
cp "bin/OpenRA.Mods.D2k.dll" "${TEMPLATE_DIR}/Contents/Resources"
fi
popd > /dev/null || exit 1 popd > /dev/null || exit 1
# Assemble multi-resolution icon # Assemble multi-resolution icon

View File

@@ -126,37 +126,15 @@ Section "Game" GAME
File /r "${SRCDIR}\mods\modcontent" File /r "${SRCDIR}\mods\modcontent"
SetOutPath "$INSTDIR" SetOutPath "$INSTDIR"
File "${SRCDIR}\RedAlert.exe" File "${SRCDIR}\*.exe"
File "${SRCDIR}\TiberianDawn.exe" File "${SRCDIR}\*.exe.config"
File "${SRCDIR}\Dune2000.exe" File "${SRCDIR}\*.dll"
File "${SRCDIR}\OpenRA.Game.exe" File "${SRCDIR}\*.ico"
File "${SRCDIR}\OpenRA.Game.exe.config"
File "${SRCDIR}\OpenRA.Utility.exe"
File "${SRCDIR}\OpenRA.Server.exe"
File "${SRCDIR}\OpenRA.Platforms.Default.dll"
File "${SRCDIR}\ICSharpCode.SharpZipLib.dll"
File "${SRCDIR}\FuzzyLogicLibrary.dll"
File "${SRCDIR}\Open.Nat.dll"
File "${SRCDIR}\VERSION" File "${SRCDIR}\VERSION"
File "${SRCDIR}\AUTHORS" File "${SRCDIR}\AUTHORS"
File "${SRCDIR}\COPYING" File "${SRCDIR}\COPYING"
File "${SRCDIR}\ra.ico"
File "${SRCDIR}\cnc.ico"
File "${SRCDIR}\d2k.ico"
File "${SRCDIR}\SDL2-CS.dll"
File "${SRCDIR}\OpenAL-CS.Core.dll"
File "${SRCDIR}\global mix database.dat" File "${SRCDIR}\global mix database.dat"
File "${SRCDIR}\IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP" File "${SRCDIR}\IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP"
File "${SRCDIR}\eluant.dll"
File "${SRCDIR}\BeaconLib.dll"
File "${SRCDIR}\soft_oal.dll"
File "${SRCDIR}\DiscordRPC.dll"
File "${SRCDIR}\Newtonsoft.Json.dll"
File "${SRCDIR}\SDL2.dll"
File "${SRCDIR}\libEGL.dll"
File "${SRCDIR}\libGLESv2.dll"
File "${SRCDIR}\freetype6.dll"
File "${SRCDIR}\lua51.dll"
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
CreateDirectory "$SMPROGRAMS\$StartMenuFolder" CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
@@ -244,37 +222,15 @@ Function ${UN}Clean
RMDir /r $INSTDIR\maps RMDir /r $INSTDIR\maps
RMDir /r $INSTDIR\glsl RMDir /r $INSTDIR\glsl
RMDir /r $INSTDIR\lua RMDir /r $INSTDIR\lua
Delete $INSTDIR\RedAlert.exe Delete $INSTDIR\*.exe
Delete $INSTDIR\TiberianDawn.exe Delete $INSTDIR\*.exe.config
Delete $INSTDIR\Dune2000.exe Delete $INSTDIR\*.dll
Delete $INSTDIR\OpenRA.Game.exe Delete $INSTDIR\*.ico
Delete $INSTDIR\OpenRA.Game.exe.config
Delete $INSTDIR\OpenRA.Utility.exe
Delete $INSTDIR\OpenRA.Server.exe
Delete $INSTDIR\OpenRA.Platforms.Default.dll
Delete $INSTDIR\ICSharpCode.SharpZipLib.dll
Delete $INSTDIR\FuzzyLogicLibrary.dll
Delete $INSTDIR\Open.Nat.dll
Delete $INSTDIR\VERSION Delete $INSTDIR\VERSION
Delete $INSTDIR\AUTHORS Delete $INSTDIR\AUTHORS
Delete $INSTDIR\COPYING Delete $INSTDIR\COPYING
Delete $INSTDIR\ra.ico
Delete $INSTDIR\cnc.ico
Delete $INSTDIR\d2k.ico
Delete "$INSTDIR\global mix database.dat" Delete "$INSTDIR\global mix database.dat"
Delete $INSTDIR\IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP Delete $INSTDIR\IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP
Delete $INSTDIR\soft_oal.dll
Delete $INSTDIR\SDL2.dll
Delete $INSTDIR\libEGL.dll
Delete $INSTDIR\libGLESv2.dll
Delete $INSTDIR\lua51.dll
Delete $INSTDIR\eluant.dll
Delete $INSTDIR\freetype6.dll
Delete $INSTDIR\DiscordRPC.dll
Delete $INSTDIR\Newtonsoft.Json.dll
Delete $INSTDIR\SDL2-CS.dll
Delete $INSTDIR\OpenAL-CS.Core.dll
Delete $INSTDIR\BeaconLib.dll
RMDir /r $INSTDIR\Support RMDir /r $INSTDIR\Support
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}"

View File

@@ -80,7 +80,7 @@ function build_platform()
make install-dependencies "${TARGETPLATFORM}" gameinstalldir="" DESTDIR="${BUILTDIR}" make install-dependencies "${TARGETPLATFORM}" gameinstalldir="" DESTDIR="${BUILTDIR}"
popd > /dev/null || exit 1 popd > /dev/null || exit 1
cp "${SRCDIR}/OpenRA.Game.exe.config" "${BUILTDIR}" cp "${SRCDIR}/bin/OpenRA.Game.exe.config" "${BUILTDIR}"
echo "Compiling Windows launchers (${PLATFORM})" echo "Compiling Windows launchers (${PLATFORM})"
makelauncher "RedAlert.exe" "Red Alert" "ra" ${PLATFORM} makelauncher "RedAlert.exe" "Red Alert" "ra" ${PLATFORM}

View File

@@ -1,9 +1,10 @@
@echo off @echo off
title OpenRA.Utility.exe title OpenRA.Utility.exe
set ENGINE_DIR=..
:choosemod :choosemod
echo ---------------------------------------- echo ----------------------------------------
echo. echo.
call OpenRA.Utility.exe call bin\OpenRA.Utility.exe
echo Enter --exit to exit echo Enter --exit to exit
set /P mod="Please enter a modname: OpenRA.Utility.exe " set /P mod="Please enter a modname: OpenRA.Utility.exe "
if /I "%mod%" EQU "--exit" (exit /b) if /I "%mod%" EQU "--exit" (exit /b)
@@ -20,7 +21,7 @@ echo.
echo ---------------------------------------- echo ----------------------------------------
echo. echo.
echo OpenRA.Utility.exe %mod% echo OpenRA.Utility.exe %mod%
call OpenRA.Utility.exe %mod% call bin\OpenRA.Utility.exe %mod%
:start :start
echo. echo.
echo ---------------------------------------- echo ----------------------------------------
@@ -38,5 +39,5 @@ echo.
echo ---------------------------------------- echo ----------------------------------------
echo. echo.
echo OpenRA.Utility.exe %mod% %command% echo OpenRA.Utility.exe %mod% %command%
call OpenRA.Utility.exe %mod% %command% call bin\OpenRA.Utility.exe %mod% %command%
goto start goto start