File: configure.bat

package info (click to toggle)
geogram 1.9.6-1
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 15,436 kB
  • sloc: cpp: 143,890; ansic: 10,098; perl: 1,430; sh: 1,199; yacc: 522; lex: 182; python: 157; javascript: 149; makefile: 17
file content (59 lines) | stat: -rw-r--r-- 1,877 bytes parent folder | download
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION

REM ----------------------------------------------------------------
REM Check for options: [ --build_name_suffix suffix ]
REM ----------------------------------------------------------------
set buildNameSuffix=""
if "%1" ==  "--build_name_suffix" (
   set buildNameSuffix=%2
   SHIFT & SHIFT
)

ECHO Configuring Geogram build

REM ----------------------------------------------------------------
REM Create build directory and run cmake
REM ----------------------------------------------------------------

ECHO Starting CMake...
ECHO  (NOTE: it may complain about missing VULKAN, you can safely ignore)

if not exist "build\Windows%buildNameSuffix%" (
   mkdir "build\Windows%buildNameSuffix%"
)

cd build\Windows%buildNameSuffix%


REM ----------------------------------------------------------------
REM If cmake.exe is in path, use it.
REM Otherwise, use fallback location.
REM ----------------------------------------------------------------
WHERE cmake.exe >nul 2>nul
IF %ERRORLEVEL% NEQ 0 (
    set "cMakeCommand=%ProgramFiles%\cmake\bin\cmake.exe"
) else (
    set "cMakeCommand=cmake"
)

"%cmakeCommand%" ..\.. ^
 -DVORPALINE_PLATFORM:STRING=Win-vs-dynamic-generic


REM -----------------------------------------------------------------
REM Wait for user keypress to keep DOS box open
REM -----------------------------------------------------------------

ECHO ----------------------------------------------------------------

if exist "Geogram.sln" (
   ECHO Geogram build is configured
   ECHO Visual Studio solution is in GraphiteThree\build\Windows%buildNameSuffix%\Geogram.sln
) else (
   ECHO ERROR: could not generate Visual Studio solution
)

ECHO ----------------------------------------------------------------

REM set /p DUMMY=Hit ENTER to continue...