Closed johnburkey closed 2 years ago
(We build native c,c++ code with our projects)
Oh- and we build NIO, AWS and a few other goodies this way as well.
OK, this is using Vlad's Android toolchain? My Android SDK should work without all those extra -I
header includes, as seen here.
{ "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++", ] }