1load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "APPLE", "CXX", "rn_xplat_cxx_library", "subdir_glob")
2
3rn_xplat_cxx_library(
4    name = "callinvoker",
5    srcs = glob(["**/*.cpp"]),
6    header_namespace = "",
7    exported_headers = subdir_glob(
8        [
9            ("ReactCommon", "*.h"),
10        ],
11        prefix = "ReactCommon",
12    ),
13    compiler_flags_pedantic = True,
14    labels = [
15        "pfh:ReactNative_CommonInfrastructurePlaceholder",
16    ],
17    platforms = (ANDROID, APPLE, CXX),
18    preferred_linkage = "static",
19    preprocessor_flags = [
20        "-DLOG_TAG=\"ReactNative\"",
21        "-DWITH_FBSYSTRACE=1",
22    ],
23    visibility = [
24        "PUBLIC",
25    ],
26)
27