agrosner
04/14/2018, 1:28 PMolonho
04/14/2018, 7:14 PMagrosner
04/14/2018, 7:23 PMc_interop
?J-Rojas
04/14/2018, 9:09 PMagrosner
04/14/2018, 9:23 PMJ-Rojas
04/14/2018, 9:33 PMlanguage = Objective-C
package = platform.cocoapods.fmdb
headers = /full/path/to/project/Pods/FMDB/src/fmdb/FMDB.h
compilerOpts =
linkerOpts= -lsqlite3
J-Rojas
04/14/2018, 9:34 PMagrosner
04/14/2018, 9:38 PMJ-Rojas
04/14/2018, 10:22 PMmsink
04/15/2018, 2:55 AMincludeDirs "${System.getProperty("user.dir")}/relative/path"
msink
04/15/2018, 3:14 AM"${project.rootDir}/relative/path"
olonho
04/15/2018, 6:10 AM-compilerOpts -I<search path>
or matching Gradle settings, as Mike mentioned. This way .def
file will contain only relative path and build system will figure out where cinterop
shall search for headers. Pretty much the same approach as used by C compilers (and cinterop
is technically a special purpose C compiler itself)J-Rojas
04/15/2018, 1:50 PMkonanArtifacts.interop.includeDirs
within the Gradle build file with the ${project.rootDir}
prefix did the trick.agrosner
04/16/2018, 1:22 PM> Task :ios:app:compileKonanAppIos_x64 FAILED
error: you have not specified any compilation arguments. No output has been produced.
here is my file (apppackage is stubbed with real name):
language=Objective-C
linkerOpts=-framework Accelerate -framework CoreGraphics -framework CoreData -framework CoreLocation -framework CoreText -framework GLKit -framework ImageIO -framework OpenGLES -framework QuartzCore -framework SystemConfiguration
package=${apppackage}
compilerOpts=
linkerOpts=
olonho
04/16/2018, 1:24 PMheaders
property here as well, otherwise interop has no idea what to use for declaration translationagrosner
04/16/2018, 1:28 PMagrosner
04/16/2018, 1:28 PMolonho
04/16/2018, 2:11 PMagrosner
04/16/2018, 2:14 PM