update
This commit is contained in:
@@ -34,7 +34,8 @@ public class SonarSampleApplication extends Application {
|
|||||||
super.onCreate();
|
super.onCreate();
|
||||||
SoLoader.init(this, false);
|
SoLoader.init(this, false);
|
||||||
try {
|
try {
|
||||||
SoLoader.loadLibrary("sonarfb");
|
//SoLoader.loadLibrary("sonarfb");
|
||||||
|
System.loadLibrary("sonarcpp");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,8 +14,11 @@ set(CMAKE_VERBOSE_MAKEFILE on)
|
|||||||
add_compile_options(
|
add_compile_options(
|
||||||
-fno-omit-frame-pointer
|
-fno-omit-frame-pointer
|
||||||
-fexceptions
|
-fexceptions
|
||||||
|
-O3
|
||||||
-Wall
|
-Wall
|
||||||
-std=c++11
|
-std=c++11
|
||||||
|
-frtti
|
||||||
|
-ffunction-sections
|
||||||
-DDISABLE_CPUCAP
|
-DDISABLE_CPUCAP
|
||||||
-DDISABLE_XPLAT)
|
-DDISABLE_XPLAT)
|
||||||
|
|
||||||
@@ -25,14 +28,16 @@ list(APPEND FBJNI_HDRS ${FBJNI_CXX})
|
|||||||
list(APPEND FBJNI_HDRS ${FBJNI_CXX}/fbjni/)
|
list(APPEND FBJNI_HDRS ${FBJNI_CXX}/fbjni/)
|
||||||
list(APPEND FBJNI_HDRS ${FBJNI_CXX}/fbjni/detail)
|
list(APPEND FBJNI_HDRS ${FBJNI_CXX}/fbjni/detail)
|
||||||
list(APPEND FBJNI_HDRS ${FBJNI_CXX}/lyra)
|
list(APPEND FBJNI_HDRS ${FBJNI_CXX}/lyra)
|
||||||
|
list(APPEND FBJNI_HDRS ${FBJNI_CXX}/../../jni-hack)
|
||||||
|
|
||||||
include_directories(${FBJNI_HDRS})
|
include_directories(${FBJNI_HDRS})
|
||||||
|
|
||||||
message(STATUS "FBJNI_HDRS =>" ${FBJNI_HDRS})
|
message(STATUS "FBJNI_HDRS =>" ${FBJNI_HDRS})
|
||||||
file(GLOB FBJNI_SRC
|
file(GLOB FBJNI_SRC
|
||||||
${FBJNI_CXX}/fbjni/*.cpp
|
${FBJNI_CXX}/fbjni/*.cpp
|
||||||
${FBJNI_CXX}/fbjni/detail/*.cpp
|
${FBJNI_CXX}/fbjni/detail/*.cpp
|
||||||
${FBJNI_CXX}/lyra/*.cpp)
|
${FBJNI_CXX}/lyra/*.cpp
|
||||||
|
)
|
||||||
|
|
||||||
add_library(${PACKAGE_NAME} SHARED
|
add_library(${PACKAGE_NAME} SHARED
|
||||||
${FBJNI_SRC})
|
${FBJNI_SRC})
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ import com.facebook.soloader.SoLoader;
|
|||||||
public class HybridData {
|
public class HybridData {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
SoLoader.loadLibrary("fb");
|
SoLoader.loadLibrary("sonarfb");
|
||||||
}
|
}
|
||||||
|
|
||||||
@DoNotStrip private Destructor mDestructor = new Destructor(this);
|
@DoNotStrip private Destructor mDestructor = new Destructor(this);
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import com.facebook.soloader.SoLoader;
|
|||||||
@DoNotStrip
|
@DoNotStrip
|
||||||
public class ThreadScopeSupport {
|
public class ThreadScopeSupport {
|
||||||
static {
|
static {
|
||||||
SoLoader.loadLibrary("fbjni");
|
SoLoader.loadLibrary("sonarfb");
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is just used for ThreadScope::withClassLoader to have a java function
|
// This is just used for ThreadScope::withClassLoader to have a java function
|
||||||
|
|||||||
Reference in New Issue
Block a user