finagolfin / swift-android-sdk

Android SDKs for Swift
Apache License 2.0
151 stars 15 forks source link

my destination.json (needed a couple things) #52

Closed johnburkey closed 2 years ago

johnburkey commented 2 years ago

{ "version": 1, "target": "aarch64-unknown-linux-android24", "toolchain-bin-dir": "/Users/johnburkey/brightenTools/swift-android-toolchain/usr/bin", "sdk": "/Users/johnburkey/Library/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/sysroot", "dynamic-library-extension": "so", "extra-cc-flags": [ "-fPIC",
"-I/Users/johnburkey/Library/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include", "-I/Users/johnburkey/Library/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android", "-I/Users/johnburkey/brightenTools/swift-android-toolchain/usr/lib/swift", ], "extra-swiftc-flags": [ "-resource-dir", "/Users/johnburkey/brightenTools/swift-android-toolchain/usr/lib/swift", "-tools-directory", "/Users/johnburkey/Library/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/bin", "-I/Users/johnburkey/Library/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/12.0.8/include", ], "extra-cpp-flags": [ "-lstdc++", ] }

johnburkey commented 2 years ago

(We build native c,c++ code with our projects)

johnburkey commented 2 years ago

Oh- and we build NIO, AWS and a few other goodies this way as well.

finagolfin commented 2 years ago

OK, this is using Vlad's Android toolchain? My Android SDK should work without all those extra -I header includes, as seen here.