Last active
September 13, 2018 16:02
-
-
Save r4zzz4k/3d3ac8b6ace1743fb2bc1db23785e0a2 to your computer and use it in GitHub Desktop.
cinterop dependent libraries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export PATH="$HOME/.konan/kotlin-native-linux-0.8.2/bin:$PATH" | |
echo "> gobj" | |
echo ">> cinterop" | |
[ -d gobj_interop-build ] || cinterop -def gobj.def -verbose true -o gobj_interop > ./gobj.log | |
echo ">> klib info" | |
klib info ./gobj_interop.klib > ./gobj.info | |
echo ">> klib contents" | |
klib contents ./gobj_interop.klib > ./gobj.contents | |
echo "> gir" | |
echo ">> cinterop" | |
[ -d gir_interop-build ] || cinterop -def gir.def -verbose true -o gir_interop > ./gir.log | |
echo ">> klib info" | |
klib info ./gir_interop.klib > ./gir.info | |
echo ">> klib contents" | |
klib contents ./gir_interop.klib > ./gir.contents |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package = sample.gobj.cinterop | |
headers = glib-object.h | |
linkerOpts.linux = -L/usr/lib/x86_64-linux-gnu | |
compilerOpts = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include | |
linkerOpts = -lgobject-2.0 -lglib-2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package = sample.gir.cinterop | |
depends = gobj_interop.klib # also tried to put absolute path here to be sure lib searching doesn't interfere, no luck | |
headers = girepository.h | |
headerFilter = giarginfo.h gicallableinfo.h gienuminfo.h gifunctioninfo.h giobjectinfo.h giregisteredtypeinfo.h girffi.h gistructinfo.h gitypelib.h giunioninfo.h givfuncinfo.h gibaseinfo.h giconstantinfo.h gifieldinfo.h giinterfaceinfo.h gipropertyinfo.h girepository.h gisignalinfo.h gitypeinfo.h gitypes.h giversionmacros.h | |
# headerFilter = gi*.h | |
linkerOpts.linux = -L/usr/lib/x86_64-linux-gnu | |
compilerOpts = -pthread -I/usr/include/gobject-introspection-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include | |
linkerOpts = -lgirepository-1.0 -lgobject-2.0 -lglib-2.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment