mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 12:15:37 +08:00
Fix deprecated glob usage.
Summary: https://our.intern.facebook.com/intern/wiki/Buck/python-to-skylark/ Differential Revision: D8595731 fbshipit-source-id: 0e3046a7fd2a25e9b13462713ae9a008ad546770
This commit is contained in:
committed by
Facebook Github Bot
parent
0b2cee59d2
commit
346ac75ed6
@@ -8,7 +8,7 @@ rn_android_library(
|
||||
name = "common",
|
||||
srcs = glob(
|
||||
["**/*.java"],
|
||||
excludes = SUB_PROJECTS,
|
||||
exclude = SUB_PROJECTS,
|
||||
),
|
||||
provided_deps = [
|
||||
react_native_dep("third-party/android/support/v4:lib-support-v4"),
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@xplat//tools/build_defs:glob_defs.bzl", "subdir_glob")
|
||||
load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "JNI_TARGET", "cxx_library")
|
||||
|
||||
# This target is only used in open source
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@xplat//tools/build_defs:glob_defs.bzl", "subdir_glob")
|
||||
load("//ReactNative:DEFS.bzl", "ANDROID", "ANDROID_JSC_DEPS", "APPLE", "APPLE_JSC_DEPS", "IS_OSS_BUILD", "get_android_inspector_flags", "get_apple_inspector_flags", "react_native_xplat_target", "rn_xplat_cxx_library")
|
||||
|
||||
CXX_LIBRARY_COMPILER_FLAGS = [
|
||||
@@ -113,14 +114,14 @@ rn_xplat_cxx_library(
|
||||
name = "bridge",
|
||||
srcs = glob(
|
||||
["*.cpp"],
|
||||
excludes = [
|
||||
exclude = [
|
||||
"JSBigString.cpp",
|
||||
"SampleCxxModule.cpp",
|
||||
],
|
||||
),
|
||||
headers = glob(
|
||||
["*.h"],
|
||||
excludes = CXXREACT_PUBLIC_HEADERS,
|
||||
exclude = CXXREACT_PUBLIC_HEADERS,
|
||||
),
|
||||
header_namespace = "",
|
||||
exported_headers = dict([
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@xplat//tools/build_defs:glob_defs.bzl", "subdir_glob")
|
||||
load("//configurations/buck/apple:flag_defs.bzl", "OBJC_ARC_PREPROCESSOR_FLAGS", "get_application_ios_flags", "get_debug_preprocessor_flags")
|
||||
load("//ReactNative:DEFS.bzl", "ANDROID", "APPLE", "IS_OSS_BUILD", "get_apple_inspector_flags", "react_native_xplat_target", "rn_xplat_cxx_library")
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@xplat//tools/build_defs:glob_defs.bzl", "subdir_glob")
|
||||
load("//configurations/buck/apple:flag_defs.bzl", "OBJC_ARC_PREPROCESSOR_FLAGS", "get_application_ios_flags", "get_debug_preprocessor_flags")
|
||||
load("//ReactNative:DEFS.bzl", "ANDROID", "APPLE", "IS_OSS_BUILD", "get_apple_inspector_flags", "react_native_xplat_target", "rn_xplat_cxx_library")
|
||||
|
||||
@@ -12,11 +13,11 @@ rn_xplat_cxx_library(
|
||||
name = "attributedstring",
|
||||
srcs = glob(
|
||||
["**/*.cpp"],
|
||||
excludes = glob(["tests/**/*.cpp"]),
|
||||
exclude = glob(["tests/**/*.cpp"]),
|
||||
),
|
||||
headers = glob(
|
||||
["**/*.h"],
|
||||
excludes = glob(["tests/**/*.h"]),
|
||||
exclude = glob(["tests/**/*.h"]),
|
||||
),
|
||||
header_namespace = "",
|
||||
exported_headers = subdir_glob(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@xplat//tools/build_defs:glob_defs.bzl", "subdir_glob")
|
||||
load("//configurations/buck/apple:flag_defs.bzl", "OBJC_ARC_PREPROCESSOR_FLAGS", "get_application_ios_flags", "get_debug_preprocessor_flags")
|
||||
load("//ReactNative:DEFS.bzl", "ANDROID", "APPLE", "IS_OSS_BUILD", "get_apple_inspector_flags", "react_native_xplat_target", "rn_xplat_cxx_library")
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@xplat//tools/build_defs:glob_defs.bzl", "subdir_glob")
|
||||
load("//configurations/buck/apple:flag_defs.bzl", "OBJC_ARC_PREPROCESSOR_FLAGS", "get_application_ios_flags", "get_debug_preprocessor_flags")
|
||||
load("//ReactNative:DEFS.bzl", "ANDROID", "APPLE", "IS_OSS_BUILD", "get_apple_inspector_flags", "react_native_xplat_target", "rn_xplat_cxx_library")
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@xplat//tools/build_defs:glob_defs.bzl", "subdir_glob")
|
||||
load("//configurations/buck/apple:flag_defs.bzl", "OBJC_ARC_PREPROCESSOR_FLAGS", "get_application_ios_flags", "get_debug_preprocessor_flags")
|
||||
load("//ReactNative:DEFS.bzl", "ANDROID", "APPLE", "IS_OSS_BUILD", "get_apple_inspector_flags", "react_native_xplat_target", "rn_xplat_cxx_library")
|
||||
|
||||
@@ -12,11 +13,11 @@ rn_xplat_cxx_library(
|
||||
name = "core",
|
||||
srcs = glob(
|
||||
["**/*.cpp"],
|
||||
excludes = glob(["tests/**/*.cpp"]),
|
||||
exclude = glob(["tests/**/*.cpp"]),
|
||||
),
|
||||
headers = glob(
|
||||
["**/*.h"],
|
||||
excludes = glob(["tests/**/*.h"]),
|
||||
exclude = glob(["tests/**/*.h"]),
|
||||
),
|
||||
header_namespace = "",
|
||||
exported_headers = subdir_glob(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@xplat//tools/build_defs:glob_defs.bzl", "subdir_glob")
|
||||
load("//configurations/buck/apple:flag_defs.bzl", "OBJC_ARC_PREPROCESSOR_FLAGS", "get_application_ios_flags", "get_debug_preprocessor_flags")
|
||||
load("//ReactNative:DEFS.bzl", "ANDROID", "APPLE", "IS_OSS_BUILD", "get_apple_inspector_flags", "react_native_xplat_target", "rn_xplat_cxx_library")
|
||||
|
||||
@@ -12,11 +13,11 @@ rn_xplat_cxx_library(
|
||||
name = "debug",
|
||||
srcs = glob(
|
||||
["**/*.cpp"],
|
||||
excludes = glob(["tests/**/*.cpp"]),
|
||||
exclude = glob(["tests/**/*.cpp"]),
|
||||
),
|
||||
headers = glob(
|
||||
["**/*.h"],
|
||||
excludes = glob(["tests/**/*.h"]),
|
||||
exclude = glob(["tests/**/*.h"]),
|
||||
),
|
||||
header_namespace = "",
|
||||
exported_headers = subdir_glob(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@xplat//tools/build_defs:glob_defs.bzl", "subdir_glob")
|
||||
load("//configurations/buck/apple:flag_defs.bzl", "OBJC_ARC_PREPROCESSOR_FLAGS", "get_application_ios_flags", "get_debug_preprocessor_flags")
|
||||
load("//ReactNative:DEFS.bzl", "ANDROID", "APPLE", "IS_OSS_BUILD", "get_apple_inspector_flags", "react_native_xplat_target", "rn_xplat_cxx_library")
|
||||
|
||||
@@ -12,11 +13,11 @@ rn_xplat_cxx_library(
|
||||
name = "graphics",
|
||||
srcs = glob(
|
||||
["**/*.cpp"],
|
||||
excludes = glob(["tests/**/*.cpp"]),
|
||||
exclude = glob(["tests/**/*.cpp"]),
|
||||
),
|
||||
headers = glob(
|
||||
["**/*.h"],
|
||||
excludes = glob(["tests/**/*.h"]),
|
||||
exclude = glob(["tests/**/*.h"]),
|
||||
),
|
||||
header_namespace = "",
|
||||
exported_headers = subdir_glob(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@xplat//tools/build_defs:glob_defs.bzl", "subdir_glob")
|
||||
load("//configurations/buck/apple:flag_defs.bzl", "OBJC_ARC_PREPROCESSOR_FLAGS", "get_application_ios_flags", "get_debug_preprocessor_flags")
|
||||
load("//ReactNative:DEFS.bzl", "ANDROID", "APPLE", "IS_OSS_BUILD", "get_apple_inspector_flags", "react_native_xplat_target", "rn_xplat_cxx_library")
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@xplat//tools/build_defs:glob_defs.bzl", "subdir_glob")
|
||||
load("//configurations/buck/apple:flag_defs.bzl", "OBJC_ARC_PREPROCESSOR_FLAGS", "get_application_ios_flags", "get_debug_preprocessor_flags")
|
||||
load("//ReactNative:DEFS.bzl", "ANDROID", "APPLE", "IS_OSS_BUILD", "get_apple_inspector_flags", "react_native_xplat_target", "rn_xplat_cxx_library")
|
||||
|
||||
@@ -12,11 +13,11 @@ rn_xplat_cxx_library(
|
||||
name = "scrollview",
|
||||
srcs = glob(
|
||||
["**/*.cpp"],
|
||||
excludes = glob(["tests/**/*.cpp"]),
|
||||
exclude = glob(["tests/**/*.cpp"]),
|
||||
),
|
||||
headers = glob(
|
||||
["**/*.h"],
|
||||
excludes = glob(["tests/**/*.h"]),
|
||||
exclude = glob(["tests/**/*.h"]),
|
||||
),
|
||||
header_namespace = "",
|
||||
exported_headers = subdir_glob(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@xplat//tools/build_defs:glob_defs.bzl", "subdir_glob")
|
||||
load("//configurations/buck/apple:flag_defs.bzl", "OBJC_ARC_PREPROCESSOR_FLAGS", "get_application_ios_flags", "get_debug_preprocessor_flags")
|
||||
load("//ReactNative:DEFS.bzl", "ANDROID", "APPLE", "IS_OSS_BUILD", "get_apple_inspector_flags", "react_native_xplat_target", "rn_xplat_cxx_library")
|
||||
|
||||
@@ -12,11 +13,11 @@ rn_xplat_cxx_library(
|
||||
name = "text",
|
||||
srcs = glob(
|
||||
["**/*.cpp"],
|
||||
excludes = glob(["tests/**/*.cpp"]),
|
||||
exclude = glob(["tests/**/*.cpp"]),
|
||||
),
|
||||
headers = glob(
|
||||
["**/*.h"],
|
||||
excludes = glob(["tests/**/*.h"]),
|
||||
exclude = glob(["tests/**/*.h"]),
|
||||
),
|
||||
header_namespace = "",
|
||||
exported_headers = subdir_glob(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@xplat//tools/build_defs:glob_defs.bzl", "subdir_glob")
|
||||
load("//configurations/buck/apple:flag_defs.bzl", "OBJC_ARC_PREPROCESSOR_FLAGS", "get_application_ios_flags", "get_debug_preprocessor_flags")
|
||||
load("//ReactNative:DEFS.bzl", "ANDROID", "APPLE", "IS_OSS_BUILD", "get_apple_inspector_flags", "react_native_xplat_target", "rn_xplat_cxx_library")
|
||||
|
||||
@@ -15,11 +16,11 @@ rn_xplat_cxx_library(
|
||||
"**/*.cpp",
|
||||
"**/*.mm",
|
||||
],
|
||||
excludes = glob(["tests/**/*.cpp"]),
|
||||
exclude = glob(["tests/**/*.cpp"]),
|
||||
),
|
||||
headers = glob(
|
||||
["**/*.h"],
|
||||
excludes = glob(["tests/**/*.h"]),
|
||||
exclude = glob(["tests/**/*.h"]),
|
||||
),
|
||||
header_namespace = "",
|
||||
exported_headers = subdir_glob(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@xplat//tools/build_defs:glob_defs.bzl", "subdir_glob")
|
||||
load("//configurations/buck/apple:flag_defs.bzl", "get_debug_preprocessor_flags")
|
||||
load("//ReactNative:DEFS.bzl", "ANDROID", "APPLE", "IS_OSS_BUILD", "get_apple_inspector_flags", "react_native_xplat_target", "rn_xplat_cxx_library")
|
||||
|
||||
@@ -12,11 +13,11 @@ rn_xplat_cxx_library(
|
||||
name = "uimanager",
|
||||
srcs = glob(
|
||||
["**/*.cpp"],
|
||||
excludes = glob(["tests/**/*.cpp"]),
|
||||
exclude = glob(["tests/**/*.cpp"]),
|
||||
),
|
||||
headers = glob(
|
||||
["**/*.h"],
|
||||
excludes = glob(["tests/**/*.h"]),
|
||||
exclude = glob(["tests/**/*.h"]),
|
||||
),
|
||||
header_namespace = "",
|
||||
exported_headers = subdir_glob(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@xplat//tools/build_defs:glob_defs.bzl", "subdir_glob")
|
||||
load("//configurations/buck/apple:flag_defs.bzl", "OBJC_ARC_PREPROCESSOR_FLAGS", "get_application_ios_flags", "get_debug_preprocessor_flags")
|
||||
load("//ReactNative:DEFS.bzl", "ANDROID", "APPLE", "IS_OSS_BUILD", "get_apple_inspector_flags", "react_native_xplat_target", "rn_xplat_cxx_library")
|
||||
|
||||
@@ -12,11 +13,11 @@ rn_xplat_cxx_library(
|
||||
name = "view",
|
||||
srcs = glob(
|
||||
["**/*.cpp"],
|
||||
excludes = glob(["tests/**/*.cpp"]),
|
||||
exclude = glob(["tests/**/*.cpp"]),
|
||||
),
|
||||
headers = glob(
|
||||
["**/*.h"],
|
||||
excludes = glob(["tests/**/*.h"]),
|
||||
exclude = glob(["tests/**/*.h"]),
|
||||
),
|
||||
header_namespace = "",
|
||||
exported_headers = subdir_glob(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@xplat//tools/build_defs:glob_defs.bzl", "subdir_glob")
|
||||
load("//ReactNative:DEFS.bzl", "rn_xplat_cxx_library")
|
||||
|
||||
EXPORTED_HEADERS = [
|
||||
@@ -13,7 +14,7 @@ rn_xplat_cxx_library(
|
||||
[
|
||||
("", "*.h"),
|
||||
],
|
||||
excludes = EXPORTED_HEADERS,
|
||||
exclude = EXPORTED_HEADERS,
|
||||
prefix = "jsinspector",
|
||||
),
|
||||
header_namespace = "",
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@xplat//tools/build_defs:glob_defs.bzl", "subdir_glob")
|
||||
load("//ReactNative:DEFS.bzl", "rn_xplat_cxx_library")
|
||||
|
||||
rn_xplat_cxx_library(
|
||||
|
||||
Reference in New Issue
Block a user