Android ndk, what a pain
This commit is contained in:
@@ -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";
|
||||
}
|
||||
@@ -46,6 +46,14 @@ find_library( # Sets the name of the path variable.
|
||||
# you want CMake to locate.
|
||||
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
|
||||
# can link multiple libraries, such as libraries you define in this
|
||||
# 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.
|
||||
native-lib
|
||||
PRIVATE nlohmann_json::nlohmann_json
|
||||
${CPPUNIT_LIBRARY}
|
||||
|
||||
# Links the target library to the log library
|
||||
# included in the NDK.
|
||||
|
||||
Reference in New Issue
Block a user