forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUCK
More file actions
35 lines (34 loc) · 812 Bytes
/
BUCK
File metadata and controls
35 lines (34 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
load("//tools/build_defs/oss:rn_defs.bzl", "JNI_TARGET", "oss_cxx_library", "subdir_glob")
# This target is only used in open source
oss_cxx_library(
name = "jni",
srcs = glob([
"*.cpp",
"jni/*.cpp",
"lyra/*.cpp",
]),
header_namespace = "",
exported_headers = subdir_glob([
("include", "fb/**/*.h"),
("include", "fbjni/**/*.h"),
("include", "jni/*.h"),
]),
compiler_flags = [
"-fno-omit-frame-pointer",
"-fexceptions",
"-Wall",
"-Werror",
"-std=c++14",
"-DDISABLE_CPUCAP",
"-DDISABLE_XPLAT",
],
soname = "libfb.$(ext)",
visibility = ["PUBLIC"],
deps = [
JNI_TARGET,
],
linker_flags = [
"-llog",
],
preferred_linkage = "static",
)