mirror of
https://github.com/status-im/react-native.git
synced 2025-02-10 08:26:23 +00:00
Replace native cxx_library with fb-specific macros.
Reviewed By: adamjernst Differential Revision: D6618153 fbshipit-source-id: 188e2ca3cc78efad6e71f0a22547e26abf2f62e1
This commit is contained in:
parent
4cdbb77c33
commit
ba31d29dc9
@ -2,7 +2,7 @@ include_defs("//ReactAndroid/DEFS")
|
|||||||
|
|
||||||
# This target is only used in open source
|
# This target is only used in open source
|
||||||
if IS_OSS_BUILD:
|
if IS_OSS_BUILD:
|
||||||
cxx_library(
|
fb_xplat_cxx_library(
|
||||||
name = 'jni',
|
name = 'jni',
|
||||||
soname = 'libfb.$(ext)',
|
soname = 'libfb.$(ext)',
|
||||||
srcs = glob(['*.cpp', 'jni/*.cpp', 'lyra/*.cpp']),
|
srcs = glob(['*.cpp', 'jni/*.cpp', 'lyra/*.cpp']),
|
||||||
|
@ -2,7 +2,7 @@ include_defs("//ReactAndroid/DEFS")
|
|||||||
|
|
||||||
include_defs("//ReactCommon/DEFS")
|
include_defs("//ReactCommon/DEFS")
|
||||||
|
|
||||||
cxx_library(
|
fb_xplat_cxx_library(
|
||||||
name = "fbgloginit",
|
name = "fbgloginit",
|
||||||
srcs = [
|
srcs = [
|
||||||
"glog_init.cpp",
|
"glog_init.cpp",
|
||||||
|
@ -7,7 +7,7 @@ include_defs("//ReactAndroid/DEFS")
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
cxx_library(
|
fb_xplat_cxx_library(
|
||||||
name = "jni-hack",
|
name = "jni-hack",
|
||||||
header_namespace = "",
|
header_namespace = "",
|
||||||
exported_headers = [
|
exported_headers = [
|
||||||
|
@ -2,7 +2,7 @@ include_defs("//ReactAndroid/DEFS")
|
|||||||
|
|
||||||
# This target is only used in open source
|
# This target is only used in open source
|
||||||
if IS_OSS_BUILD:
|
if IS_OSS_BUILD:
|
||||||
cxx_library(
|
fb_xplat_cxx_library(
|
||||||
name = 'jni',
|
name = 'jni',
|
||||||
soname = 'libyoga.$(ext)',
|
soname = 'libyoga.$(ext)',
|
||||||
srcs = glob(['jni/*.cpp']),
|
srcs = glob(['jni/*.cpp']),
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
include_defs("//ReactAndroid/DEFS")
|
include_defs("//ReactAndroid/DEFS")
|
||||||
|
|
||||||
cxx_library(
|
fb_xplat_cxx_library(
|
||||||
name = "jni",
|
name = "jni",
|
||||||
srcs = glob(["*.cpp"]),
|
srcs = glob(["*.cpp"]),
|
||||||
headers = glob(
|
headers = glob(
|
||||||
|
@ -20,7 +20,7 @@ EXPORTED_HEADERS = [
|
|||||||
"WritableNativeMap.h",
|
"WritableNativeMap.h",
|
||||||
]
|
]
|
||||||
|
|
||||||
cxx_library(
|
fb_xplat_cxx_library(
|
||||||
name = "jni",
|
name = "jni",
|
||||||
srcs = glob(["*.cpp"]),
|
srcs = glob(["*.cpp"]),
|
||||||
headers = glob(
|
headers = glob(
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
include_defs("//ReactAndroid/DEFS")
|
include_defs("//ReactAndroid/DEFS")
|
||||||
|
|
||||||
cxx_library(
|
fb_xplat_cxx_library(
|
||||||
name = "perftests",
|
name = "perftests",
|
||||||
srcs = ["OnLoad.cpp"],
|
srcs = ["OnLoad.cpp"],
|
||||||
compiler_flags = [
|
compiler_flags = [
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
include_defs("//ReactCommon/DEFS")
|
include_defs("//ReactCommon/DEFS")
|
||||||
|
|
||||||
cxx_library(
|
fb_xplat_cxx_library(
|
||||||
name = "microprofiler",
|
name = "microprofiler",
|
||||||
srcs = [
|
srcs = [
|
||||||
"MicroProfiler.cpp",
|
"MicroProfiler.cpp",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
cxx_library(
|
fb_xplat_cxx_library(
|
||||||
name = "yoga",
|
name = "yoga",
|
||||||
srcs = glob(["yoga/*.cpp"]),
|
srcs = glob(["yoga/*.cpp"]),
|
||||||
header_namespace = "",
|
header_namespace = "",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user