Commit b33d05de authored by Andrew Twyman's avatar Andrew Twyman

djinni_jni_main target

Add a target for djinni_main.cpp, and use a new technique I discovered to make sure its JNI symbols are exposed by the shared-lib which contains it.
parent 0dd240d6
{ {
"targets": [ "targets": [
{ {
"target_name": "djinni_jni", "target_name": "djinni_jni",
"type": "static_library", "type": "static_library",
"sources": [ "sources": [
"djinni_common.hpp", "djinni_common.hpp",
"jni/djinni_support.cpp", "jni/djinni_support.cpp",
"jni/djinni_support.hpp", "jni/djinni_support.hpp",
"jni/Marshal.hpp", "jni/Marshal.hpp",
], ],
"include_dirs": [ "include_dirs": [
"jni", "jni",
], ],
"direct_dependent_settings": { "direct_dependent_settings": {
"include_dirs": [ "include_dirs": [
"jni", "jni",
], ],
}, },
},
{
"target_name": "djinni_jni_main",
"type": "static_library",
"sources": [
"jni/djinni_main.cpp",
],
"link_settings": {
"aosp_build_settings": {
"LOCAL_WHOLE_STATIC_LIBRARIES": [ 'djinni_jni_main' ], # Ensure JNI symbols are exposed
}, },
{ },
"target_name": "djinni_objc", },
"type": "static_library", {
"xcode_settings": { "target_name": "djinni_objc",
"CLANG_ENABLE_OBJC_ARC": "YES", "type": "static_library",
}, "xcode_settings": {
"sources": [ "CLANG_ENABLE_OBJC_ARC": "YES",
"objc/DJICppWrapperCache+Private.h", },
"objc/DJIError.h", "sources": [
"objc/DJIError.mm", "objc/DJICppWrapperCache+Private.h",
"objc/DJIMarshal+Private.h", "objc/DJIError.h",
"objc/DJIObjcWrapperCache+Private.h", "objc/DJIError.mm",
"objc/DJIProxyCaches.mm", "objc/DJIMarshal+Private.h",
"proxy_cache_impl.hpp", "objc/DJIObjcWrapperCache+Private.h",
"proxy_cache_interface.hpp", "objc/DJIProxyCaches.mm",
], "proxy_cache_impl.hpp",
"include_dirs": [ "proxy_cache_interface.hpp",
"objc", ],
], "include_dirs": [
"direct_dependent_settings": { "objc",
"include_dirs": [ ],
"objc", "direct_dependent_settings": {
], "include_dirs": [
}, "objc",
}, ],
], },
},
],
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment