rhencke
04/08/2017, 6:16 PMcedric
04/08/2017, 6:17 PMrhencke
04/08/2017, 6:17 PMkyonifer
04/08/2017, 6:18 PMKOBALT_JAR=$PROJECT_LIBS_DIR/kobalt-1.0.59.jar
to Environment variables
in order for the Build.kt
in the external project to see a directive i addedrhencke
04/08/2017, 6:26 PMcedric
04/08/2017, 6:32 PMrhencke
04/08/2017, 7:37 PMrhencke
04/08/2017, 7:37 PMrhencke
04/08/2017, 7:38 PMethauvin
04/08/2017, 7:38 PMcedric
04/08/2017, 7:38 PMrhencke
04/08/2017, 7:38 PMrhencke
04/08/2017, 7:38 PMrhencke
04/08/2017, 7:40 PMrhencke
04/08/2017, 7:41 PMcedric
04/08/2017, 7:42 PMethauvin
04/08/2017, 7:43 PM#!/usr/bin/env sh
JAR=$(ls -1 -t /k/GitHub/kobalt/kobaltBuild/libs/*.jar | egrep -v "(sources|javadoc)" | head -1)
export KOBALT_JAR=$JAR
java -jar $JAR $*
I called it kokbaltw-test
rhencke
04/08/2017, 7:43 PMethauvin
04/08/2017, 7:47 PMkyonifer
04/08/2017, 7:59 PMKotlinPlugin
. you can set which platform it runs via kotlinCompiler { platform = KotlinPlatform.NATIVE }
, and by default it chooses java.kyonifer
04/08/2017, 7:59 PMcedric
04/08/2017, 7:59 PMcedric
04/08/2017, 8:00 PMkyonifer
04/08/2017, 8:00 PMcedric
04/08/2017, 8:01 PMethauvin
04/08/2017, 8:03 PMkyonifer
04/08/2017, 8:05 PMkyonifer
04/08/2017, 8:07 PMkobalt -i kotlin
template out of the box with two changes: 1) set kotlinCompiler { platform = KotlinPlatform.NATIVE }
like above, 2) remove the package
line at the top of com/example/Main.kt (looks like konanc doesnt like the main to be in a namespace)kyonifer
04/08/2017, 8:11 PMkyonifer
04/08/2017, 8:12 PM