forked from IBM/OpenJCEPlus
-
Notifications
You must be signed in to change notification settings - Fork 2
/
buildNativeWin64.bat
executable file
·40 lines (32 loc) · 1 KB
/
buildNativeWin64.bat
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
::#############################################################################
::#
::# Copyright IBM Corp. 2023
::#
::# Licensed under the Apache License 2.0 (the "License"). You may not use
::# this file except in compliance with the License. You can obtain a copy
::# in the file LICENSE in the source distribution.
::#
::#############################################################################
@echo off
cls
@setlocal
IF NOT DEFINED JAVA_HOME (
echo "JAVA_HOME must be set"
goto :eof
)
IF NOT DEFINED GSKIT_HOME (
echo "GSKIT_HOME must be set"
goto :eof
)
:: This check for the presence of the VCVARS_64_SCRIPT was commented out since the github
:: action being used calls the equivilant of the vcvars64.bat file prior to
:: this script being executed.
:: IF NOT DEFINED VCVARS_64_SCRIPT (
:: echo "VCVARS_64_SCRIPT must be set"
:: goto :eof
::)
:: @call "%VCVARS_64_SCRIPT%"
cd src/main/native
@call nmake -nologo -f jgskit.win64.cygwin.mak clean
@call nmake -nologo -f jgskit.win64.cygwin.mak
@endlocal