Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

Remove NL markers from 4th slide kotlin-native #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions Introduction to Kotlin Native/04_AddingInteropToBuild.md
Original file line number Diff line number Diff line change
@@ -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 {
// ...
Expand All @@ -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
Expand Down