BUCK 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "APPLE", "cxx_library", "react_native_xplat_dep", "react_native_xplat_target")
  2. cxx_library(
  3. name = "jsiexecutor",
  4. srcs = [
  5. "jsireact/JSIExecutor.cpp",
  6. "jsireact/JSINativeModules.cpp",
  7. ],
  8. header_namespace = "",
  9. exported_headers = {
  10. "jsireact/JSIExecutor.h": "jsireact/JSIExecutor.h",
  11. "jsireact/JSINativeModules.h": "jsireact/JSINativeModules.h",
  12. },
  13. compiler_flags = [
  14. "-fexceptions",
  15. "-frtti",
  16. ],
  17. fbandroid_deps = [
  18. "//xplat/folly:molly",
  19. "//xplat/third-party/glog:glog",
  20. "//xplat/third-party/linker_lib:atomic",
  21. ],
  22. fbobjc_force_static = True,
  23. fbobjc_header_path_prefix = "",
  24. fbobjc_labels = ["supermodule:ios/default/public.react_native.infra"],
  25. platforms = (ANDROID, APPLE),
  26. preprocessor_flags = [
  27. "-DLOG_TAG=\"ReactNative\"",
  28. "-DWITH_FBSYSTRACE=1",
  29. ],
  30. visibility = [
  31. "PUBLIC",
  32. ],
  33. xcode_public_headers_symlinks = True,
  34. deps = [
  35. "//xplat/fbsystrace:fbsystrace",
  36. react_native_xplat_dep("jsi:jsi"),
  37. react_native_xplat_dep("jsi:JSIDynamic"),
  38. react_native_xplat_target("cxxreact:bridge"),
  39. react_native_xplat_target("cxxreact:jsbigstring"),
  40. ],
  41. )