forked from multitheftauto/mtasa-blue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
77 additions
and
30 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
if [[ "$(uname -m)" == 'x86_64' ]]; then | ||
PREMAKE5=utils/premake5_x64 | ||
CONFIG=release_x64 | ||
else | ||
PREMAKE5=utils/premake5_x86 | ||
CONFIG=release_x86 | ||
fi | ||
|
||
# Clean old build files | ||
rm -Rf Build/ | ||
rm -Rf Bin/ | ||
|
||
# Generate makefiles | ||
$PREMAKE5 gmake | ||
|
||
# Build! | ||
cd Build/ | ||
make config=$CONFIG all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
if [[ "$(uname -m)" == 'x86_64' ]]; then | ||
PREMAKE5=utils/premake5_x64 | ||
else | ||
PREMAKE5=utils/premake5_x86 | ||
fi | ||
|
||
# Install data files | ||
$PREMAKE5 install_data | ||
|
||
# Optionally install resources | ||
read -p "Install resources? [y/N] " -n 1 -r | ||
echo | ||
if [[ $REPLY =~ ^[Yy]$ ]] | ||
then | ||
$PREMAKE5 install_resources | ||
fi |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@echo off | ||
|
||
rem Update CEF eventually | ||
utils\premake5 install_cef | ||
|
||
rem Generate solutions | ||
utils\premake5 vs2015 | ||
|
||
rem Create a shortcut to the solution - http://superuser.com/questions/392061/how-to-make-a-shortcut-from-cmd | ||
set SCRIPTFILE="%TEMP%\CreateMyShortcut.vbs" | ||
( | ||
echo Set oWS = WScript.CreateObject^("WScript.Shell"^) | ||
echo sLinkFile = oWS.ExpandEnvironmentStrings^("MTASA.sln - Shortcut.lnk"^) | ||
echo Set oLink = oWS.CreateShortcut^(sLinkFile^) | ||
echo oLink.TargetPath = oWS.ExpandEnvironmentStrings^("%~dp0\Build\MTASA.sln"^) | ||
echo oLink.Save | ||
) 1>%SCRIPTFILE% | ||
cscript //nologo %SCRIPTFILE% | ||
del /f /q %SCRIPTFILE% | ||
|
||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@echo off | ||
|
||
rem Install data files | ||
utils\premake5 install_data | ||
|
||
rem Optionally install resources | ||
echo. | ||
set ANSWER=n | ||
set /P ANSWER="Install resources? [y/N] " | ||
if "%ANSWER%"=="y" ( | ||
utils\premake5 install_resources | ||
) | ||
|
||
pause |