Import new C source of truth css-layout
fbshipit-source-id: e866918d6c62fc1cf3a04c269f782b94db9b875a
This commit is contained in:
42
lib/gtest/BUCK
Normal file
42
lib/gtest/BUCK
Normal file
@@ -0,0 +1,42 @@
|
||||
# Copyright (c) 2014-present, Facebook, Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This source code is licensed under the BSD-style license found in the
|
||||
# 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.
|
||||
|
||||
import os
|
||||
import urllib2
|
||||
import zipfile
|
||||
|
||||
include_defs('//CSSLAYOUT_DEFS')
|
||||
|
||||
# Download gtest dep if it does not exists in path
|
||||
current_dir = os.path.dirname(os.path.realpath(__file__))
|
||||
gtest_folder = 'googletest-release-1.7.0'
|
||||
if GTEST_DL_URL != None and not os.path.isdir(current_dir + gtest_folder):
|
||||
gtest = urllib2.urlopen('https://github.com/google/googletest/archive/release-1.7.0.zip').read()
|
||||
with open("gtest.zip", 'w') as f:
|
||||
f.write(gtest)
|
||||
with zipfile.ZipFile('gtest.zip',"r") as zip:
|
||||
zip.extractall(os.path.dirname(os.path.realpath(__file__)))
|
||||
os.remove('gtest.zip')
|
||||
|
||||
COMPILER_FLAGS = [
|
||||
'-std=c++11',
|
||||
'-Wno-missing-prototypes',
|
||||
]
|
||||
|
||||
cxx_library(
|
||||
name = 'gtest',
|
||||
srcs = glob([gtest_folder + '/src/*.cc']),
|
||||
exported_headers = subdir_glob([
|
||||
(gtest_folder + '/include', '**/*.h'),
|
||||
(gtest_folder, 'src/*.h'),
|
||||
(gtest_folder, 'src/*.cc'),
|
||||
]),
|
||||
header_namespace = '',
|
||||
compiler_flags = COMPILER_FLAGS,
|
||||
deps = [],
|
||||
visibility = [CSSLAYOUT_ROOT],
|
||||
)
|
21
lib/infer-annotations/BUCK
Normal file
21
lib/infer-annotations/BUCK
Normal file
@@ -0,0 +1,21 @@
|
||||
# Copyright (c) 2014-present, Facebook, Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This source code is licensed under the BSD-style license found in the
|
||||
# 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.
|
||||
|
||||
include_defs('//CSSLAYOUT_DEFS')
|
||||
|
||||
prebuilt_jar(
|
||||
name = 'infer-annotations-jar',
|
||||
binary_jar = 'infer-annotations-1.4.jar',
|
||||
)
|
||||
|
||||
java_library(
|
||||
name = 'infer-annotations',
|
||||
exported_deps = [
|
||||
':infer-annotations-jar',
|
||||
],
|
||||
visibility = [CSSLAYOUT_ROOT],
|
||||
)
|
BIN
lib/infer-annotations/infer-annotations-1.4.jar
Normal file
BIN
lib/infer-annotations/infer-annotations-1.4.jar
Normal file
Binary file not shown.
21
lib/jsr-305/BUCK
Normal file
21
lib/jsr-305/BUCK
Normal file
@@ -0,0 +1,21 @@
|
||||
# Copyright (c) 2014-present, Facebook, Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This source code is licensed under the BSD-style license found in the
|
||||
# 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.
|
||||
|
||||
include_defs('//CSSLAYOUT_DEFS')
|
||||
|
||||
prebuilt_jar(
|
||||
name = 'jsr305-jar',
|
||||
binary_jar = 'jsr305.jar',
|
||||
)
|
||||
|
||||
java_library(
|
||||
name = 'jsr-305',
|
||||
exported_deps = [
|
||||
':jsr305-jar',
|
||||
],
|
||||
visibility = [CSSLAYOUT_ROOT],
|
||||
)
|
BIN
lib/jsr-305/jsr305.jar
Normal file
BIN
lib/jsr-305/jsr305.jar
Normal file
Binary file not shown.
21
lib/junit/BUCK
Normal file
21
lib/junit/BUCK
Normal file
@@ -0,0 +1,21 @@
|
||||
# Copyright (c) 2014-present, Facebook, Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This source code is licensed under the BSD-style license found in the
|
||||
# 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.
|
||||
|
||||
include_defs('//CSSLAYOUT_DEFS')
|
||||
|
||||
prebuilt_jar(
|
||||
name = 'junit-jar',
|
||||
binary_jar = 'junit4.jar',
|
||||
)
|
||||
|
||||
java_library(
|
||||
name = 'junit',
|
||||
exported_deps = [
|
||||
':junit-jar',
|
||||
],
|
||||
visibility = [CSSLAYOUT_ROOT],
|
||||
)
|
BIN
lib/junit/junit4.jar
Normal file
BIN
lib/junit/junit4.jar
Normal file
Binary file not shown.
Reference in New Issue
Block a user