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
deploy:
tags:
- windows
stage: deploy
script: gradle --build-cache assemble
script: |
gradle --build-cache assemble
artifacts:
paths:
- build/libs

View File

@ -1,8 +1,10 @@
@echo off
echo --------------------------------------------------------
echo THIS SHOULD MOST LIKELY BE MODIFIED FOR YOUR ENVIRONMENT
echo --------------------------------------------------------
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
echo Setting up native env
cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build"
vcvarsall x86_x64
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.lib
del .\io_gitlab_jfronny_breakme_breakme_NativeCrash.obj