diff --git a/ReactAndroid/src/main/jni/first-party/fbgloginit/BUCK b/ReactAndroid/src/main/jni/first-party/fbgloginit/BUCK index a13c4c893b3..484f90d0f81 100644 --- a/ReactAndroid/src/main/jni/first-party/fbgloginit/BUCK +++ b/ReactAndroid/src/main/jni/first-party/fbgloginit/BUCK @@ -1,3 +1,5 @@ +include_defs("//ReactCommon/DEFS") + cxx_library( name = "fbgloginit", srcs = [ @@ -14,6 +16,6 @@ cxx_library( visibility = ["PUBLIC"], xcode_public_headers_symlinks = True, deps = [ - "//xplat/third-party/glog:glog", + GLOG_DEP, ], ) diff --git a/ReactCommon/DEFS b/ReactCommon/DEFS new file mode 100644 index 00000000000..83eab26aa46 --- /dev/null +++ b/ReactCommon/DEFS @@ -0,0 +1,3 @@ +# Set up common deps + +GLOG_DEP = "//ReactAndroid/build/third-party-ndk/glog:glog" diff --git a/ReactCommon/microprofiler/BUCK b/ReactCommon/microprofiler/BUCK index d65e3f927d7..d84d62c24b8 100644 --- a/ReactCommon/microprofiler/BUCK +++ b/ReactCommon/microprofiler/BUCK @@ -1,3 +1,5 @@ +include_defs("//ReactCommon/DEFS") + cxx_library( name = "microprofiler", srcs = [ @@ -14,12 +16,11 @@ cxx_library( ], force_static = True, header_namespace = "microprofiler", - labels = ["accounts_for_platform_and_build_mode_flags"], visibility = [ "PUBLIC", ], xcode_public_headers_symlinks = True, deps = [ - "//xplat/third-party/glog:glog", + GLOG_DEP, ], )