Android ndk, what a pain

This commit is contained in:
kdeng00
2019-09-29 23:22:57 -04:00
parent cc9665a7ec
commit 879e40f4de
2 changed files with 9 additions and 13 deletions
@@ -1,13 +0,0 @@
/**
* Automatically generated file. DO NOT MODIFY
*/
package com.example.mear;
public final class BuildConfig {
public static final boolean DEBUG = Boolean.parseBoolean("true");
public static final String APPLICATION_ID = "com.example.mear";
public static final String BUILD_TYPE = "debug";
public static final String FLAVOR = "";
public static final int VERSION_CODE = 1;
public static final String VERSION_NAME = "1.0";
}
+9
View File
@@ -46,6 +46,14 @@ find_library( # Sets the name of the path variable.
# you want CMake to locate. # you want CMake to locate.
log ) log )
message(${CMAKE_ANDROID_ARCH_ABI})
find_library( CPPUNIT_LIBRARY NAMES libcurl curl libcurl.a curl.a
HINTS
"${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/android/armeabi-v7a"
${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/android/
)
# Specifies libraries CMake should link to your target library. You # Specifies libraries CMake should link to your target library. You
# can link multiple libraries, such as libraries you define in this # can link multiple libraries, such as libraries you define in this
# build script, prebuilt third-party libraries, or system libraries. # build script, prebuilt third-party libraries, or system libraries.
@@ -53,6 +61,7 @@ find_library( # Sets the name of the path variable.
target_link_libraries( # Specifies the target library. target_link_libraries( # Specifies the target library.
native-lib native-lib
PRIVATE nlohmann_json::nlohmann_json PRIVATE nlohmann_json::nlohmann_json
${CPPUNIT_LIBRARY}
# Links the target library to the log library # Links the target library to the log library
# included in the NDK. # included in the NDK.