From 6b8ddbe03adbd246871ce1b7f7368dc66816b699 Mon Sep 17 00:00:00 2001 From: Alex Plate Date: Fri, 28 Jun 2019 23:38:50 +0300 Subject: [PATCH] Remove NL markers from 4th slide kotlin-native --- .../04_AddingInteropToBuild.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Introduction to Kotlin Native/04_AddingInteropToBuild.md b/Introduction to Kotlin Native/04_AddingInteropToBuild.md index 18dc989..45332e3 100644 --- a/Introduction to Kotlin Native/04_AddingInteropToBuild.md +++ b/Introduction to Kotlin Native/04_AddingInteropToBuild.md @@ -1,14 +1,16 @@ # Adding interop to build process -In order to use header files, we need to make sure they are generated as part of the build process. For this, add the following entry to the `build.gradle` file +In order to use header files, we need to make sure they are generated as part of the build process. For this, add the `compilations` entry to the `build.gradle` file ```groovy macosX64("macos") { - compilations.main { // NL - cinterops { // NL - libcurl // NL - } // NL - } // NL + // C Interop support + compilations.main { + cinterops { + libcurl + } + } + binaries { executable { // ... @@ -17,7 +19,7 @@ macosX64("macos") { } ``` -The new lines added are marked with `// NL`. The format is adding `cinterops` and then an entry for each `def` file. By default, if the name of the file is used but all this +The format is adding `cinterops` and then an entry for each `def` file. By default, if the name of the file is used but all this can be overriden with additional parameters ```groovy