File: make_win32_bdist.bat

package info (click to toggle)
c-munipack 2.1.39-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 55,888 kB
  • sloc: ansic: 200,762; cpp: 106,129; lex: 9,035; yacc: 4,916; sh: 4,074; fortran: 2,613; xml: 2,105; python: 1,182; makefile: 546; perl: 104
file content (43 lines) | stat: -rwxr-xr-x 1,001 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
rem @echo off

set OUTPUT_DIR=out
set CMAKE_BUILD_TYPE=RelWithDebInfo

set CMAKE_SOURCE_DIR=.
set CMAKE_BUILD_DIR=%OUTPUT_DIR%\build-dist
set CMAKE_INSTALL_PREFIX=%OUTPUT_DIR%\install

REM Set environment for Visual Studio
if defined VCINSTALLDIR goto vcready
call "%CMAKE_SOURCE_DIR%\utils\vsenv64.bat"
:vcready

rem Make clean build directory
rmdir /S /Q "%CMAKE_BUILD_DIR%"
mkdir "%CMAKE_BUILD_DIR%"
mkdir "%CMAKE_INSTALL_PREFIX%"

set GTKMM_BASEPATH=%GTK2_X64_ROOT%

rem CMake - Generate a Project Buildsystem
cmake -G "Ninja" ^
	-D CMAKE_BUILD_TYPE:STRING="%CMAKE_BUILD_TYPE%" ^
	-D CMAKE_INSTALL_PREFIX:PATH="%CMAKE_INSTALL_PREFIX%" ^
	-S "%CMAKE_SOURCE_DIR%"^
	-B "%CMAKE_BUILD_DIR%"

rem CMake - Build a Project
cmake --build "%CMAKE_BUILD_DIR%"

rem CMake - Install a Project
cmake --install "%CMAKE_BUILD_DIR%"

rem CMake - Make a binary package
cmake --build "%CMAKE_BUILD_DIR%" --target package package_source

:ok
rem OK
EXIT /B 0

:Error
pause