Attempt at automatic dll building

This commit is contained in:
J. Fronny 2020-09-05 11:16:14 +00:00
parent e1ef9d13fc
commit 14160e7e9c
2 changed files with 11 additions and 6 deletions

View File

@ -7,8 +7,11 @@ before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle - export GRADLE_USER_HOME=`pwd`/.gradle
deploy: deploy:
tags:
- windows
stage: deploy stage: deploy
script: gradle --build-cache assemble script: |
gradle --build-cache assemble
artifacts: artifacts:
paths: paths:
- build/libs - build/libs

View File

@ -1,10 +1,12 @@
@echo off @echo off
echo -------------------------------------------------------- echo Setting up native env
echo THIS SHOULD MOST LIKELY BE MODIFIED FOR YOUR ENVIRONMENT cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build"
echo -------------------------------------------------------- vcvarsall x86_x64
cl .\io_gitlab_jfronny_breakme_breakme_NativeCrash.cpp /I"C:\Program Files\Java\jdk-14.0.1\include" /I"C:\Program Files\Java\jdk-14.0.1\include\win32" -Fenatives.dll -MD -LD cd %~dp0
echo Building natives
cl .\io_gitlab_jfronny_breakme_breakme_NativeCrash.cpp /I"C:\Program Files\Java\jdk-12.0.2\include" /I"C:\Program Files\Java\jdk-12.0.2\include\win32" -Fenatives.dll -MD -LD
del .\natives.exp del .\natives.exp
del .\natives.lib del .\natives.lib
del .\io_gitlab_jfronny_breakme_breakme_NativeCrash.obj del .\io_gitlab_jfronny_breakme_breakme_NativeCrash.obj
del ..\resources\native\natives.dll del ..\resources\native\natives.dll
copy /y natives.dll ..\resources\native\natives.dll copy /y natives.dll ..\resources\native\natives.dll