File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ android {
1515 consumerProguardFiles " consumer-rules.pro"
1616 externalNativeBuild {
1717 cmake {
18- cppFlags ' '
18+ cppFlags " -O2 -frtti -fexceptions -Wall -fstack-protector-all"
19+ arguments " -DANDROID_STL=c++_shared"
1920 }
2021 }
2122
Original file line number Diff line number Diff line change 1-
21cmake_minimum_required (VERSION 3.22.1)
32
43project ("OpacityCore" )
54
6- set (OPACITY_CORE_LIB ${CMAKE_CURRENT_SOURCE_DIR} /../jniLibs/${ANDROID_ABI} /libopacity_core.a)
7- add_library (opacity_core STATIC IMPORTED )
8- set_target_properties (opacity_core PROPERTIES IMPORTED_LOCATION ${OPACITY_CORE_LIB} )
9-
105add_library (${CMAKE_PROJECT_NAME} SHARED
116 OpacityCore.cpp)
127
138target_include_directories (${CMAKE_PROJECT_NAME} PUBLIC ${CMAKE_SOURCE_DIR} /../jni/include )
149
10+ # Import the shared library but don't embed the absolute path
11+ add_library (sdk SHARED IMPORTED )
12+ set_target_properties (sdk PROPERTIES
13+ IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR} /../jniLibs/${ANDROID_ABI} /libsdk.so
14+ IMPORTED_NO_SONAME ON )
15+
1516target_link_libraries (${CMAKE_PROJECT_NAME}
16- opacity_core
17+ sdk
1718 android
1819 log )
You can’t perform that action at this time.
0 commit comments