forked from nasa/GMSEC_API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild4windowsOpenSource.cmd
More file actions
executable file
·71 lines (56 loc) · 1.9 KB
/
Copy pathbuild4windowsOpenSource.cmd
File metadata and controls
executable file
·71 lines (56 loc) · 1.9 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
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
rem This batch file builds the open source API for Microsoft Windows
rem
rem Build the main part of the API
IF DEFINED GMSEC_x64 (
MSBuild.exe gmsecapi_opensource.sln /t:Rebuild /p:Configuration=Release /p:Platform=x64
) ELSE (
IF DEFINED GMSEC_VC6 (
call "C:\tools\VC98\Bin\VCVARS32.BAT"
MSBuild.exe gmsecapi_opensource.sln /t:Rebuild /p:Configuration=Release /p:"VCBuildAdditionalOptions= /useenv"
) ELSE (
MSBuild.exe gmsecapi_opensource.sln /t:Rebuild /p:Configuration=Release
)
)
cd perl
rem Build the Perl part of the API
perl -Iextra Makefile.PL PREFIX=../bin
nmake
nmake install
cd ..
rem Build the C++ examples
cd examples/cpp
IF DEFINED GMSEC_x64 (
MSBuild.exe cpp.sln /t:Rebuild /p:Configuration=Release /p:Platform=x64
) ELSE (
IF DEFINED GMSEC_VC6 (
call "C:\tools\VC98\Bin\VCVARS32.BAT"
MSBuild.exe cpp.sln /t:Rebuild /p:Configuration=Release /p:"VCBuildAdditionalOptions= /useenv"
) ELSE (
MSBuild.exe cpp.sln /t:Rebuild /p:Configuration=Release
)
)
cd ..
rem Build the C examples
cd c
IF DEFINED GMSEC_x64 (
MSBuild.exe c.sln /t:Rebuild /p:Configuration=Release /p:Platform=x64
) ELSE (
IF DEFINED GMSEC_VC6 (
call "C:\tools\VC98\Bin\VCVARS32.BAT"
MSBuild.exe c.sln /t:Rebuild /p:Configuration=Release /p:"VCBuildAdditionalOptions= /useenv"
) ELSE (
MSBuild.exe c.sln /t:Rebuild /p:Configuration=Release
)
)
cd ../..
rem Copy validator scripts
mkdir bin\validator
copy validator\env_validator.bat bin\validator
copy validator\get_arch.pl bin\validator
copy validator\perl_ver.pl bin\validator
copy validator\*.env bin\validator