create symlinks in xplat

Summary: In the libraries where headers symlinks are required, we enable them.

Reviewed By: skotchvail

Differential Revision: D3943274

fbshipit-source-id: c7ec741af020a60bb7c39b10773cea58a33adc3e
This commit is contained in:
Hoa Dinh
2016-09-29 10:18:08 -07:00
committed by Facebook Github Bot
parent 1f300a58fb
commit 11f85ce91e
3 changed files with 4 additions and 0 deletions

2
BUCK
View File

@@ -28,6 +28,7 @@ cxx_library(
name = 'CSSLayout', name = 'CSSLayout',
srcs = glob(['CSSLayout/*.c']), srcs = glob(['CSSLayout/*.c']),
tests=[':CSSLayout_tests'], tests=[':CSSLayout_tests'],
xcode_public_headers_symlinks = True,
exported_headers = subdir_glob([('', 'CSSLayout/*.h')]), exported_headers = subdir_glob([('', 'CSSLayout/*.h')]),
header_namespace = '', header_namespace = '',
force_static = True, force_static = True,
@@ -64,6 +65,7 @@ cxx_binary(
cxx_library( cxx_library(
name = 'CSSLayoutTestUtils', name = 'CSSLayoutTestUtils',
srcs = glob(['tests/CSSLayoutTestUtils/*.c']), srcs = glob(['tests/CSSLayoutTestUtils/*.c']),
xcode_public_headers_symlinks = True,
exported_headers = subdir_glob([('tests', 'CSSLayoutTestUtils/*.h')]), exported_headers = subdir_glob([('tests', 'CSSLayoutTestUtils/*.h')]),
header_namespace = '', header_namespace = '',
compiler_flags = COMPILER_FLAGS, compiler_flags = COMPILER_FLAGS,

View File

@@ -19,6 +19,7 @@ prebuilt_cxx_library(
cxx_library( cxx_library(
name = 'fbjni', name = 'fbjni',
srcs = glob(['**/*.cpp']), srcs = glob(['**/*.cpp']),
xcode_public_headers_symlinks = True,
exported_headers = subdir_glob([('include', '**/*.h')]), exported_headers = subdir_glob([('include', '**/*.h')]),
header_namespace = '', header_namespace = '',
compiler_flags = [ compiler_flags = [

View File

@@ -31,6 +31,7 @@ COMPILER_FLAGS = [
cxx_library( cxx_library(
name = 'gtest', name = 'gtest',
srcs = glob([gtest_folder + '/src/*.cc']), srcs = glob([gtest_folder + '/src/*.cc']),
xcode_public_headers_symlinks = True,
exported_headers = subdir_glob([ exported_headers = subdir_glob([
(gtest_folder + '/include', '**/*.h'), (gtest_folder + '/include', '**/*.h'),
(gtest_folder, 'src/*.h'), (gtest_folder, 'src/*.h'),