So gradle is no longer the way to build kotlin nat...
# kotlin-native
e
So gradle is no longer the way to build kotlin native code? 😢
s
gradle is one of the way to build kotlin native code, at the end it just call the kotlinc compiler
o
multiple build systems supported in K/N: Gradle, CMake, just invocation of konanc
👍 2
s
is the CLion plugin open source ? i can't find it on the jetbrains github, i'd like to try to add support for windows since it missing
Ok i found a workaround for windows: 1. Install the plugin in CLion 2. Create your project 3. Open the file
KotlinCMakeModule/CMakeKotlinInformation.cmake
and replace the content with this: https://hastebin.com/axuvaredod.cmake 4. Open your
CMakeLists.txt
file, and add this at the end:
add_custom_target(MyProject COMMAND cmd /c C:/Users/Scellow/Projects/Kotlin/RealmNative/build.bat)
5. Create
build.bat
file and put this content: https://hastebin.com/ejurohiwok.bat 6. Reload the CMake project and tada, works 😛
oh and ofcourse tweak the paths
n
Can Gradle Kotlin DSL be used with Kotlin Native?
r
@olonho will clion support importing gradle based multiplatform projects?
o
Kotlin/Native has different DSL , as it has very different requirements
Clion does not support Gradle
r
So how would multiplatform projects that support native be imported to CLion? Do we need a separate build script that CLion supports importing?
n
Lets put it another way. What build systems does Clion support which can be used with Kotlin Native? Is there a list of build systems (eg Gradle via Kotlin DSL) that can be used with Kotlin Native at the CLI level?