forked from nasa/GMSEC_API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildAPI.cmd
More file actions
executable file
·71 lines (55 loc) · 1.56 KB
/
Copy pathbuildAPI.cmd
File metadata and controls
executable file
·71 lines (55 loc) · 1.56 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
@echo OFF
rem Copyright 2007-2021 United States Government as represented by the
rem Administrator of The National Aeronautics and Space Administration.
rem No copyright is claimed in the United States under Title 17, U.S. Code.
rem All Rights Reserved.
rem This batch file builds the GMSEC API for Microsoft Windows
setlocal
set GMSEC_x64=
if "%VSCMD_ARG_TGT_ARCH%" == "x64" (
set GMSEC_x64=1
)
set GMSEC_VS2017=1
if not defined "%SUPPORT_HOME%" (
set SUPPORT_HOME=%~dp0..\GMSEC_SUPPORT
)
if not defined "%JDK_HOME%" (
if "%GMSEC_x64%" == "1" (
set JDK_HOME=C:\Program Files\Java\jdk1.8.0_171
) else (
set JDK_HOME=C:\Program Files ^(x86^)\Java\jdk1.8.0_171
)
)
if not defined "%PERL5_HOME%" (
if "%GMSEC_x64%" == "1" (
set PERL5_HOME=C:\Perl64
) else (
set PERL5_HOME=C:\Perl
)
)
if not defined "%SWIG_HOME%" (
set SWIG_HOME=%SUPPORT_HOME%\swig-3.0.10
)
if not defined "%PYTHON_HOME%" (
if "%GMSEC_x64%" == "1" (
set PYTHON_HOME=C:\Python27
)
)
if not defined "%PYTHON3_HOME%" (
set PYTHON3_HOME=%SUPPORT_HOME%\python-3.6.5
)
echo.
echo.Building the GMSEC API with the following environment variables:
echo.
echo GMSEC_x64 : %GMSEC_x64%
echo GMSEC_VS2017 : %GMSEC_VS2017%
echo SUPPORT_HOME : %SUPPORT_HOME%
echo JDK_HOME : %JDK_HOME%
echo PERL5_HOME : %PERL5_HOME%
echo SWIG_HOME : %SWIG_HOME%
echo PYTHON_HOME : %PYTHON_HOME%
echo PYTHON3_HOME : %PYTHON3_HOME%
echo.
rem Finally, build the GMSEC API
build4windows.cmd
echo All done