mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 04:39:18 +02:00
build system scripts
This commit is contained in:
15
builds/cmake_win32.bat
Normal file
15
builds/cmake_win32.bat
Normal file
@@ -0,0 +1,15 @@
|
||||
if not exist deps_win call %~dp0download_windeps.bat
|
||||
set DEPS_DIR="%cd%/deps_win"
|
||||
if not exist build_win32 mkdir build_win32
|
||||
pushd build_win32
|
||||
cmake ../.. -T v140_xp ^
|
||||
-DGLEW_INCLUDE_DIR=%DEPS_DIR%/glew-2.0.0/include ^
|
||||
-DGLEW_LIBRARY=%DEPS_DIR%/glew-2.0.0/lib/Release/Win32/glew32.lib ^
|
||||
-DGLFW3_ROOT_PATH=%DEPS_DIR%/glfw-3.2.1.bin.WIN32 ^
|
||||
-DGLUT_INCLUDE_DIR=%DEPS_DIR%/freeglut/include ^
|
||||
-DGLUT_glut_LIBRARY=%DEPS_DIR%/freeglut/lib/freeglut.lib ^
|
||||
-DPNG_PNG_INCLUDE_DIR=%DEPS_DIR%/libpng/include ^
|
||||
-DPNG_LIBRARY=%DEPS_DIR%/libpng/lib/win32/libpng16.lib ^
|
||||
-DZLIB_INCLUDE_DIR=%DEPS_DIR%/zlib-1.2.11 ^
|
||||
-DGLM_ROOT_DIR=%DEPS_DIR%/glm-0.9.8.4
|
||||
popd
|
||||
15
builds/cmake_win64.bat
Normal file
15
builds/cmake_win64.bat
Normal file
@@ -0,0 +1,15 @@
|
||||
if not exist deps_win call %~dp0download_windeps.bat
|
||||
set DEPS_DIR="%cd%/deps_win"
|
||||
if not exist build_win64 mkdir build_win64
|
||||
pushd build_win64
|
||||
cmake ../.. -A x64 ^
|
||||
-DGLEW_INCLUDE_DIR=%DEPS_DIR%/glew-2.0.0/include ^
|
||||
-DGLEW_LIBRARY=%DEPS_DIR%/glew-2.0.0/lib/Release/x64/glew32.lib ^
|
||||
-DGLFW3_ROOT_PATH=%DEPS_DIR%/glfw-3.2.1.bin.WIN64 ^
|
||||
-DGLUT_INCLUDE_DIR=%DEPS_DIR%/freeglut/include ^
|
||||
-DGLUT_glut_LIBRARY=%DEPS_DIR%/freeglut/lib/x64/freeglut.lib ^
|
||||
-DPNG_PNG_INCLUDE_DIR=%DEPS_DIR%/libpng/include ^
|
||||
-DPNG_LIBRARY=%DEPS_DIR%/libpng/lib/win64/libpng16.lib ^
|
||||
-DZLIB_INCLUDE_DIR=%DEPS_DIR%/zlib-1.2.11 ^
|
||||
-DGLM_ROOT_DIR=%DEPS_DIR%/glm-0.9.8.4
|
||||
popd
|
||||
2
builds/download_windeps.bat
Normal file
2
builds/download_windeps.bat
Normal file
@@ -0,0 +1,2 @@
|
||||
powershell "$wc = New-Object System.Net.WebClient; $wc.DownloadFile(\"https://milek7.pl/.stuff/eu07exe/builddep1.zip\", \"%cd%\deps_win.zip\")"
|
||||
powershell "$s = New-Object -ComObject shell.application; $z = $s.Namespace(\"%cd%\deps_win.zip\"); foreach ($i in $z.items()) { $s.Namespace(\"%cd%\").CopyHere($i) }"
|
||||
Reference in New Issue
Block a user