Skip to content

Commit

Permalink
Fix libcurl sampl
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolay Igotti committed Oct 27, 2017
1 parent 9f9f34d commit 9bc9003
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion samples/libcurl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ apply plugin: 'konan'

konanArtifacts {
interop('libcurl') {
includeDirs '/usr/include', '/opt/local/include', '/usr/local/opt/curl/include', '.'
target('linux') {
includeDirs '/usr/include'
}
target('macbook') {
includeDirs '/opt/local/include', '/usr/local/include'
}
}

program('Curl') {
Expand Down
2 changes: 1 addition & 1 deletion samples/libcurl/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ COMPILER_ARGS=${!var} # add -opt for an optimized build.
mkdir -p $DIR/build/c_interop/
mkdir -p $DIR/build/bin/

cinterop -compilerOpts "$CFLAGS" -compilerOpts -I$DIR -compilerOpts -I/usr/include -def $DIR/src/main/c_interop/libcurl.def -target $TARGET \
cinterop -compilerOpts "$CFLAGS" -compilerOpts -I$DIR -def $DIR/src/main/c_interop/libcurl.def -target $TARGET \
-o $DIR/build/c_interop/libcurl || exit 1

konanc -target $TARGET $DIR/src/main/kotlin -library $DIR/build/c_interop/libcurl \
Expand Down

0 comments on commit 9bc9003

Please sign in to comment.