mirror of
https://github.com/jcefmaven/jcefbuild.git
synced 2025-09-17 21:06:38 +08:00
Fix scripts
This commit is contained in:
parent
390d89d6cb
commit
6b459d585e
@ -3,33 +3,33 @@
|
|||||||
if "%TARGETARCH%"=="386" (echo "Building 32-bit version") ^
|
if "%TARGETARCH%"=="386" (echo "Building 32-bit version") ^
|
||||||
else (echo "Building 64-bit version")
|
else (echo "Building 64-bit version")
|
||||||
|
|
||||||
#Check residency of workdir
|
:: Check residency of workdir
|
||||||
cd C:
|
cd ..
|
||||||
if exist "jcef\README.md" (echo "Found existing files to build") ^
|
if exist "jcef\README.md" (echo "Found existing files to build") ^
|
||||||
else (echo "Did not find files to build - cloning..." && GOTO :CLONE)
|
else (echo "Did not find files to build - cloning..." && GOTO :CLONE)
|
||||||
|
|
||||||
:BUILD
|
:BUILD
|
||||||
cd jcef
|
cd jcef
|
||||||
|
|
||||||
#Prepare build dir
|
:: Prepare build dir
|
||||||
mkdir jcef_build && cd jcef_build
|
mkdir jcef_build && cd jcef_build
|
||||||
|
|
||||||
#Load vcvars
|
:: Load vcvars
|
||||||
if "%TARGETARCH%"=="386" ("C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars32.bat") ^
|
if "%TARGETARCH%"=="386" ("C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars32.bat") ^
|
||||||
else ("C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat")
|
else ("C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat")
|
||||||
|
|
||||||
#Perform build
|
:: Perform build
|
||||||
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=%BUILD_TYPE% ..
|
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=%BUILD_TYPE% ..
|
||||||
ninja
|
ninja
|
||||||
|
|
||||||
#Compile java classes
|
:: Compile java classes
|
||||||
cd ../tools
|
cd ../tools
|
||||||
if "%TARGETARCH%"=="386" (compile.bat win32) else (compile.bat win64)
|
if "%TARGETARCH%"=="386" (compile.bat win32) else (compile.bat win64)
|
||||||
|
|
||||||
#Create distribution
|
:: Create distribution
|
||||||
if "%TARGETARCH%"=="386" (make_distrib.bat win32) else (make_distrib.bat win64)
|
if "%TARGETARCH%"=="386" (make_distrib.bat win32) else (make_distrib.bat win64)
|
||||||
|
|
||||||
#Zip results to C:\out
|
:: Zip results to C:\out
|
||||||
if "%TARGETARCH%"=="386" (cd ../binary_distrib/win32) else (cd ../binary_distrib/win64)
|
if "%TARGETARCH%"=="386" (cd ../binary_distrib/win32) else (cd ../binary_distrib/win64)
|
||||||
del /F C:\out\binary_distrib.tar.gz
|
del /F C:\out\binary_distrib.tar.gz
|
||||||
tar -czvf C:\out\binary_distrib.tar.gz *
|
tar -czvf C:\out\binary_distrib.tar.gz *
|
||||||
|
Loading…
Reference in New Issue
Block a user