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": [
{
"target_name": "djinni_jni",
"type": "static_library",
"sources": [
"djinni_common.hpp",
"jni/djinni_support.cpp",
"jni/djinni_support.hpp",
"jni/Marshal.hpp",
],
"include_dirs": [
"jni",
],
"direct_dependent_settings": {
"include_dirs": [
"jni",
],
},
"targets": [
{
"target_name": "djinni_jni",
"type": "static_library",
"sources": [
"djinni_common.hpp",
"jni/djinni_support.cpp",
"jni/djinni_support.hpp",
"jni/Marshal.hpp",
],
"include_dirs": [
"jni",
],
"direct_dependent_settings": {
"include_dirs": [
"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": {
"CLANG_ENABLE_OBJC_ARC": "YES",
},
"sources": [
"objc/DJICppWrapperCache+Private.h",
"objc/DJIError.h",
"objc/DJIError.mm",
"objc/DJIMarshal+Private.h",
"objc/DJIObjcWrapperCache+Private.h",
"objc/DJIProxyCaches.mm",
"proxy_cache_impl.hpp",
"proxy_cache_interface.hpp",
],
"include_dirs": [
"objc",
],
"direct_dependent_settings": {
"include_dirs": [
"objc",
],
},
},
],
},
},
{
"target_name": "djinni_objc",
"type": "static_library",
"xcode_settings": {
"CLANG_ENABLE_OBJC_ARC": "YES",
},
"sources": [
"objc/DJICppWrapperCache+Private.h",
"objc/DJIError.h",
"objc/DJIError.mm",
"objc/DJIMarshal+Private.h",
"objc/DJIObjcWrapperCache+Private.h",
"objc/DJIProxyCaches.mm",
"proxy_cache_impl.hpp",
"proxy_cache_interface.hpp",
],
"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