|
3 | 3 | # This source code is licensed under the MIT license found in the |
4 | 4 | # LICENSE file in the root directory of this source tree. |
5 | 5 |
|
6 | | - |
7 | | -########################## |
8 | | -### React Native Utils ### |
9 | | -########################## |
10 | | - |
11 | 6 | LOCAL_PATH := $(call my-dir) |
12 | 7 |
|
13 | | -include $(CLEAR_VARS) |
14 | | - |
15 | | -# Include . in the header search path for all source files in this module. |
16 | | -LOCAL_C_INCLUDES := $(LOCAL_PATH) |
17 | | - |
18 | | -# Include ./../../ in the header search path for modules that depend on |
19 | | -# reactnativejni. This will allow external modules to require this module's |
20 | | -# headers using #include <react/jni/<header>.h>, assuming: |
21 | | -# . == jni |
22 | | -# ./../ == react |
23 | | -LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../.. |
24 | | - |
25 | | -LOCAL_CFLAGS += -fexceptions -frtti -Wno-unused-lambda-capture |
26 | | - |
27 | | -LOCAL_LDLIBS += -landroid |
28 | | - |
29 | | -# The dynamic libraries (.so files) that this module depends on. |
30 | | -LOCAL_SHARED_LIBRARIES := \ |
31 | | - libfb \ |
32 | | - libfbjni \ |
33 | | - libfolly_json \ |
34 | | - libglog_init \ |
35 | | - libreact_render_runtimescheduler \ |
36 | | - libruntimeexecutor \ |
37 | | - libyoga |
38 | | - |
39 | | -# The static libraries (.a files) that this module depends on. |
40 | | -LOCAL_STATIC_LIBRARIES := libreactnative libcallinvokerholder |
41 | | - |
42 | | -# Name of this module. |
43 | | -# |
44 | | -# Other modules can depend on this one by adding libreactnativejni to their |
45 | | -# LOCAL_SHARED_LIBRARIES variable. |
46 | | -LOCAL_MODULE := reactnativeutilsjni |
47 | | - |
48 | | -# Compile all local c++ files. |
49 | | -LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp) |
50 | | -LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES)) |
51 | | - |
52 | | -ifeq ($(APP_OPTIM),debug) |
53 | | - # Keep symbols by overriding the strip command invoked by ndk-build. |
54 | | - # Note that this will apply to all shared libraries, |
55 | | - # i.e. shared libraries will NOT be stripped |
56 | | - # even though we override it in this Android.mk |
57 | | - cmd-strip := |
58 | | -endif |
59 | | - |
60 | | -# Build the files in this directory as a shared library |
61 | | -include $(BUILD_SHARED_LIBRARY) |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | 8 | ###################### |
68 | 9 | ### reactnativejni ### |
69 | 10 | ###################### |
@@ -91,7 +32,6 @@ LOCAL_SHARED_LIBRARIES := \ |
91 | 32 | libfolly_json \ |
92 | 33 | libglog_init \ |
93 | 34 | libreact_render_runtimescheduler \ |
94 | | - libreactnativeutilsjni \ |
95 | 35 | libruntimeexecutor \ |
96 | 36 | libyoga \ |
97 | 37 | logger |
|
0 commit comments