Skip to content

Commit 5e80276

Browse files
committed
Organize
* moved all stuff related to building into misc folder * showing compile messages when running compile.bat
1 parent 44b134a commit 5e80276

File tree

11 files changed

+11
-17
lines changed

11 files changed

+11
-17
lines changed

CSAuto.crproj

Lines changed: 0 additions & 6 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

Misc/impack.exe

6 KB
Binary file not shown.

Misc/prebuild.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
if not exist "%1src\CSAuto\APIKeys.resx" (
2+
echo f | xcopy /y "%1Misc\_APIKeys.resx" "%1src\CSAuto\APIKeys.resx"
3+
echo f | xcopy /y "%1Misc\_APIKeys.Designer.cs" "%1src\CSAuto\APIKeys.Designer.cs"
4+
5+
)

Misc/stcmprs.exe

6 KB
Binary file not shown.

compile.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@ rm -r Output
44
msbuild src\CSAuto\CSAuto.csproj /t:Clean /property:Configuration=Release > nul
55
@echo Cleaned csauto project
66
@echo Compiling csauto project...
7-
msbuild CSAuto.sln /t:CSAuto /p:Configuration="Release" > nul
7+
msbuild CSAuto.sln /t:CSAuto /p:Configuration="Release"
88
@echo Compiled csauto project
99
@echo ------------------------------------------------------------------
1010
@echo Cleaning steamapiserver project...
1111
msbuild src\SteamAPIServer\SteamAPIServer.csproj /t:Clean /property:Configuration=Release > nul
1212
@echo Cleaned steamapiserver project
1313
@echo Compiling steamapiserver project...
14-
msbuild src\SteamAPIServer\SteamAPIServer.csproj /property:Configuration=Release > nul
14+
msbuild src\SteamAPIServer\SteamAPIServer.csproj /property:Configuration=Release
1515
@echo Compiled steamapiserver project
1616
@echo ------------------------------------------------------------------
1717
@echo Cleaning csauto_mobile project...
1818
msbuild src\CSAuto_Mobile\CSAuto_Mobile.csproj /t:Clean /property:Configuration=Release > nul
1919
@echo Cleaned csauto_mobile project
2020
@echo Compiling csauto_mobile project...
21-
msbuild src\CSAuto_Mobile\CSAuto_Mobile.csproj /verbosity:normal /t:Rebuild /t:PackageForAndroid /t:SignAndroidPackage /p:Configuration=Release > nul
21+
msbuild src\CSAuto_Mobile\CSAuto_Mobile.csproj /verbosity:normal /t:Rebuild /t:PackageForAndroid /t:SignAndroidPackage /p:Configuration=Release
2222
@echo Compiled csauto_mobile project
2323
@echo ------------------------------------------------------------------
2424
@echo Compiling the installer...

impack.exe

-6 KB
Binary file not shown.

prebuild.bat

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/CSAuto/CSAuto.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@
237237
</ItemGroup>
238238
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
239239
<PropertyGroup>
240-
<PreBuildEvent>call $(SolutionDir)prebuild.bat $(SolutionDir)
241-
call $(SolutionDir)stcmprs.exe $(OutDir)
242-
call $(SolutionDir)impack.exe $(OutDir)
240+
<PreBuildEvent>call $(SolutionDir)Misc\prebuild.bat $(SolutionDir)
241+
call $(SolutionDir)Misc\stcmprs.exe $(ProjectDir)resource $(TargetDir)resource
242+
call $(SolutionDir)Misc\impack.exe $(ProjectDir)resource\images $(TargetDir)resource\images.pac
243243
rm -r $(ProjectDir)$(OutDir)resource\.portable
244244
copy $(ProjectDir)resource\.portable $(ProjectDir)$(OutDir)resource\.portable</PreBuildEvent>
245245
</PropertyGroup>

0 commit comments

Comments
 (0)