Skip to content

Commit

Permalink
Create structure of mapbuffer project
Browse files Browse the repository at this point in the history
Summary: Create structure of C++ side of mapbuffer project

Reviewed By: shergin

Differential Revision: D15529650

fbshipit-source-id: b563d3fbcfddcf46802ccb202e372233baad123d
  • Loading branch information
mdvacca authored and facebook-github-bot committed May 29, 2019
1 parent d83ba5a commit 12b735a
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions ReactCommon/fabric/mapbuffer/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
load(
"//tools/build_defs/oss:rn_defs.bzl",
"ANDROID",
"fb_xplat_cxx_test",
"react_native_xplat_target",
"rn_xplat_cxx_library",
"subdir_glob",
)

rn_xplat_cxx_library(
name = "mapbuffer",
srcs = glob(
["**/*.cpp"],
exclude = glob(["tests/**/*.cpp"]),
),
headers = glob(
["**/*.h"],
exclude = glob(["tests/**/*.h"]),
),
header_namespace = "",
exported_headers = subdir_glob(
[
("", "*.h"),
],
prefix = "react",
),
compiler_flags = [
"-fexceptions",
"-frtti",
"-std=c++14",
"-Wall",
],
force_static = True,
macosx_tests_override = [],
platforms = (ANDROID),
preprocessor_flags = [
"-DLOG_TAG=\"ReactNative\"",
],
tests = [":tests"],
visibility = ["PUBLIC"],
deps = [
"fbsource//xplat/fbsystrace:fbsystrace",
"fbsource//xplat/folly:headers_only",
"fbsource//xplat/folly:memory",
"fbsource//xplat/third-party/glog:glog",
react_native_xplat_target("utils:utils"),
],
)

fb_xplat_cxx_test(
name = "tests",
srcs = glob(["tests/**/*.cpp"]),
headers = glob(["tests/**/*.h"]),
compiler_flags = [
"-fexceptions",
"-frtti",
"-std=c++14",
"-Wall",
],
contacts = ["oncall+react_native@xmail.facebook.com"],
platforms = (ANDROID),
deps = [
"fbsource//xplat/folly:molly",
"fbsource//xplat/third-party/gmock:gtest",
],
)

0 comments on commit 12b735a

Please sign in to comment.