Migrate yoga defs to Skylark syntax.
Summary: https://our.intern.facebook.com/intern/dex/buck/python-to-skylark/ Reviewed By: adamjernst Differential Revision: D6411822 fbshipit-source-id: 2abe2c183d1b1a28349d0c7bd765754688ec4441
This commit is contained in:
committed by
Facebook Github Bot
parent
afaafb4126
commit
dec1172f38
2
BUCK
2
BUCK
@@ -5,7 +5,7 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs("//YOGA_DEFS")
|
include_defs("//yoga_defs.bzl")
|
||||||
|
|
||||||
GMOCK_OVERRIDE_FLAGS = [
|
GMOCK_OVERRIDE_FLAGS = [
|
||||||
# gmock does not mark mocked methods as override, ignore the warnings in tests
|
# gmock does not mark mocked methods as override, ignore the warnings in tests
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs("//YOGA_DEFS")
|
include_defs("//yoga_defs.bzl")
|
||||||
|
|
||||||
COMPILER_FLAGS = [
|
COMPILER_FLAGS = [
|
||||||
"-fobjc-arc",
|
"-fobjc-arc",
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs("//YOGA_DEFS")
|
load("//:yoga_defs.bzl", "ANDROID_JAVA_TARGET", "ANDROID_RES_TARGET", "INFER_ANNOTATIONS_TARGET", "JAVA_TARGET", "PROGRUARD_ANNOTATIONS_TARGET")
|
||||||
|
|
||||||
android_aar(
|
android_aar(
|
||||||
name = "android",
|
name = "android",
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
# This source code is licensed under the license found in the
|
# This source code is licensed under the license found in the
|
||||||
# LICENSE-examples file in the root directory of this source tree.
|
# LICENSE-examples file in the root directory of this source tree.
|
||||||
|
|
||||||
include_defs("//YOGA_DEFS")
|
load("//:yoga_defs.bzl", "ANDROID_SAMPLE_JAVA_TARGET", "ANDROID_SAMPLE_RES_TARGET", "ANDROID_RES_TARGET")
|
||||||
|
|
||||||
android_binary(
|
android_binary(
|
||||||
name = "sample",
|
name = "sample",
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs("//YOGA_DEFS")
|
load("//:yoga_defs.bzl", "ANDROID_JAVA_TARGET", "ANDROID_SAMPLE_RES_TARGET", "ANDROID_SUPPORT_TARGET", "APPCOMPAT_TARGET", "ANDROID_SUPPORT_TARGET", "SOLOADER_TARGET")
|
||||||
|
|
||||||
android_library(
|
android_library(
|
||||||
name = "yoga",
|
name = "yoga",
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs("//YOGA_DEFS")
|
load("//:yoga_defs.bzl", "ANDROID_RES_TARGET", "INFER_ANNOTATIONS_TARGET", "JAVA_TARGET", "JSR_305_TARGET", "SOLOADER_TARGET")
|
||||||
|
|
||||||
android_library(
|
android_library(
|
||||||
name = "android",
|
name = "android",
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs("//YOGA_DEFS")
|
load("//:yoga_defs.bzl", "yoga_dep")
|
||||||
|
|
||||||
cxx_binary(
|
cxx_binary(
|
||||||
name = "benchmark",
|
name = "benchmark",
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
load("@xplat//configurations/buck:default_platform_defs", "is_apple_platform")
|
load("@xplat//configurations/buck:default_platform_defs", "is_apple_platform")
|
||||||
load("//:YOGA_DEFS", "BASE_COMPILER_FLAGS", "yoga_dep", "cxx_library")
|
load("//:yoga_defs.bzl", "BASE_COMPILER_FLAGS", "yoga_dep", "cxx_library")
|
||||||
|
|
||||||
COMPILER_FLAGS = BASE_COMPILER_FLAGS + ["-std=c++11"]
|
COMPILER_FLAGS = BASE_COMPILER_FLAGS + ["-std=c++11"]
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs("//YOGA_DEFS")
|
include_defs("//yoga_defs.bzl")
|
||||||
|
|
||||||
cxx_library(
|
cxx_library(
|
||||||
name = "jni",
|
name = "jni",
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs("//YOGA_DEFS")
|
load("//:yoga_defs.bzl", "YOGA_ROOTS")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "annotations",
|
name = "annotations",
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs("//YOGA_DEFS")
|
load("//:yoga_defs.bzl", "YOGA_ROOTS")
|
||||||
|
|
||||||
prebuilt_jar(
|
prebuilt_jar(
|
||||||
name = "android-support",
|
name = "android-support",
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs("//YOGA_DEFS")
|
load("//:yoga_defs.bzl", "YOGA_ROOTS")
|
||||||
|
|
||||||
android_prebuilt_aar(
|
android_prebuilt_aar(
|
||||||
name = "appcompat",
|
name = "appcompat",
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs("//YOGA_DEFS")
|
include_defs("//yoga_defs.bzl")
|
||||||
|
|
||||||
prebuilt_cxx_library(
|
prebuilt_cxx_library(
|
||||||
name = "ndklog",
|
name = "ndklog",
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs("//YOGA_DEFS")
|
load("//:yoga_defs.bzl", "PROGRUARD_ANNOTATIONS_TARGET", "SOLOADER_TARGET", "JSR_305_TARGET")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "jni",
|
name = "jni",
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs("//YOGA_DEFS")
|
include_defs("//yoga_defs.bzl")
|
||||||
|
|
||||||
COMPILER_FLAGS = [
|
COMPILER_FLAGS = [
|
||||||
"-std=c++11",
|
"-std=c++11",
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs("//YOGA_DEFS")
|
load("//:yoga_defs.bzl", "YOGA_ROOTS")
|
||||||
|
|
||||||
prebuilt_jar(
|
prebuilt_jar(
|
||||||
name = "infer-annotations-jar",
|
name = "infer-annotations-jar",
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs("//YOGA_DEFS")
|
load("//:yoga_defs.bzl", "YOGA_ROOTS")
|
||||||
|
|
||||||
prebuilt_jar(
|
prebuilt_jar(
|
||||||
name = "jsr305-jar",
|
name = "jsr305-jar",
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs("//YOGA_DEFS")
|
load("//:yoga_defs.bzl", "YOGA_ROOTS")
|
||||||
|
|
||||||
prebuilt_jar(
|
prebuilt_jar(
|
||||||
name = "junit-jar",
|
name = "junit-jar",
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs("//YOGA_DEFS")
|
load("//:yoga_defs.bzl", "YOGA_ROOTS")
|
||||||
|
|
||||||
android_prebuilt_aar(
|
android_prebuilt_aar(
|
||||||
name = "soloader",
|
name = "soloader",
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
"""Provides macros for working with yoga library."""
|
||||||
|
|
||||||
YOGA_ROOTS = ['//...']
|
YOGA_ROOTS = ['//...']
|
||||||
JAVA_TARGET = '//java:java'
|
JAVA_TARGET = '//java:java'
|
||||||
@@ -38,10 +39,6 @@ LIBRARY_COMPILER_FLAGS = BASE_COMPILER_FLAGS + [
|
|||||||
'-fPIC',
|
'-fPIC',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
def yoga_dep(dep):
|
def yoga_dep(dep):
|
||||||
return '//' + dep
|
return '//' + dep
|
||||||
|
|
||||||
with allow_unsafe_import():
|
|
||||||
import os.path
|
|
||||||
def isdir(filename):
|
|
||||||
return os.path.isdir(filename)
|
|
Reference in New Issue
Block a user