From afbab66a44754feb5fb76e6ebd1e218d69fc5e3b Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Fri, 12 May 2017 02:36:06 -0700 Subject: [PATCH] Define rn_xplat_cxx_library for OSS builds Reviewed By: bestander Differential Revision: D5044673 fbshipit-source-id: 41c9fe4b2ae128eed6f299dd8ea9dbfc4ca75917 --- ReactCommon/DEFS | 7 +++++++ ReactCommon/cxxreact/BUCK | 8 ++++---- ReactCommon/jschelpers/BUCK | 4 ++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ReactCommon/DEFS b/ReactCommon/DEFS index a1af94d5f..4ee6051f8 100644 --- a/ReactCommon/DEFS +++ b/ReactCommon/DEFS @@ -1,8 +1,15 @@ # Set up common deps +# Building is not supported in OSS right now +def rn_xplat_cxx_library(**kwargs): + pass + GLOG_DEP = "//ReactAndroid/build/third-party-ndk/glog:glog" INSPECTOR_FLAGS = [] JSC_DEPS = [] JSC_INTERNAL_DEPS = [] + +THIS_IS_FBOBJC = False +THIS_IS_FBANDROID = False diff --git a/ReactCommon/cxxreact/BUCK b/ReactCommon/cxxreact/BUCK index e4991ff4c..a252df565 100644 --- a/ReactCommon/cxxreact/BUCK +++ b/ReactCommon/cxxreact/BUCK @@ -9,7 +9,7 @@ if THIS_IS_FBOBJC: inherited_buck_flags = STATIC_LIBRARY_IOS_FLAGS CXX_LIBRARY_COMPILER_FLAGS += inherited_buck_flags.get_flag_value('compiler_flags') -fb_xplat_cxx_library( +rn_xplat_cxx_library( name = "module", compiler_flags = CXX_LIBRARY_COMPILER_FLAGS, exported_headers = [ @@ -29,7 +29,7 @@ fb_xplat_cxx_library( ], ) -fb_xplat_cxx_library( +rn_xplat_cxx_library( name = "jsbigstring", srcs = [ "JSBigString.cpp", @@ -53,7 +53,7 @@ fb_xplat_cxx_library( ], ) -fb_xplat_cxx_library( +rn_xplat_cxx_library( name = "samplemodule", srcs = ["SampleCxxModule.cpp"], compiler_flags = CXX_LIBRARY_COMPILER_FLAGS + [ @@ -93,7 +93,7 @@ CXXREACT_PUBLIC_HEADERS = [ "SystraceSection.h", ] -fb_xplat_cxx_library( +rn_xplat_cxx_library( name = "bridge", srcs = glob( ["*.cpp"], diff --git a/ReactCommon/jschelpers/BUCK b/ReactCommon/jschelpers/BUCK index fb0e0a4a2..d613dd574 100644 --- a/ReactCommon/jschelpers/BUCK +++ b/ReactCommon/jschelpers/BUCK @@ -10,7 +10,7 @@ EXPORTED_HEADERS = [ "Value.h", ] -fb_xplat_cxx_library( +rn_xplat_cxx_library( name = "jscinternalhelpers", srcs = glob( ["*.cpp"], @@ -39,7 +39,7 @@ fb_xplat_cxx_library( ], ) -fb_xplat_cxx_library( +rn_xplat_cxx_library( name = "jschelpers", srcs = [], compiler_flags = [