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:
Taras Tsugrii
2018-06-23 18:23:21 -07:00
committed by Facebook Github Bot
parent 0b2cee59d2
commit 346ac75ed6
18 changed files with 39 additions and 22 deletions

View File

@@ -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"),

View File

@@ -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

View File

@@ -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([

View File

@@ -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")

View File

@@ -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(

View File

@@ -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")

View File

@@ -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")

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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")

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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 = "",

View File

@@ -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(