Use glob in cxxreact BUCK rule

Reviewed By: lexs

Differential Revision: D3944546

fbshipit-source-id: 73cb3eeff3b3f5f543e69893f5071c4bd3e78be4
This commit is contained in:
Pieter De Baets 2016-09-30 09:27:50 -07:00 committed by Facebook Github Bot
parent 31a78f3644
commit 4b70c66a27
1 changed files with 26 additions and 51 deletions

View File

@ -106,61 +106,36 @@ cxx_library(
], ],
) )
CXXREACT_PUBLIC_HEADERS = [
'CxxMessageQueue.h',
'CxxNativeModule.h',
'Executor.h',
'ExecutorToken.h',
'ExecutorTokenFactory.h',
'Instance.h',
'JSCExecutor.h',
'JSCHelpers.h',
'JSCWebWorker.h',
'JSModulesUnbundle.h',
'MessageQueueThread.h',
'MethodCall.h',
'ModuleRegistry.h',
'NativeModule.h',
'NativeToJsBridge.h',
'noncopyable.h',
'Platform.h',
'SystraceSection.h',
'Unicode.h',
'Value.h',
]
react_library( react_library(
soname = 'libreactnativefb.so', soname = 'libreactnativefb.so',
header_namespace = 'cxxreact', header_namespace = 'cxxreact',
force_static = True, force_static = True,
srcs = [ srcs = glob(['*.cpp']),
'CxxMessageQueue.cpp', headers = glob(['*.h'], excludes=CXXREACT_PUBLIC_HEADERS),
'CxxNativeModule.cpp', exported_headers = CXXREACT_PUBLIC_HEADERS,
'Executor.cpp',
'Instance.cpp',
'JSCExecutor.cpp',
'JSCHelpers.cpp',
'JSCLegacyProfiler.cpp',
'JSCLegacyTracing.cpp',
'JSCMemory.cpp',
'JSCPerfStats.cpp',
'JSCSamplingProfiler.cpp',
'JSCTracing.cpp',
'JSCWebWorker.cpp',
'MethodCall.cpp',
'ModuleRegistry.cpp',
'NativeToJsBridge.cpp',
'Platform.cpp',
'Value.cpp',
'Unicode.cpp',
],
headers = [
'JSCLegacyProfiler.h',
'JSCLegacyTracing.h',
'JSCMemory.h',
'JSCPerfStats.h',
'JSCSamplingProfiler.h',
'JSCTracing.h',
],
exported_headers = [
'CxxMessageQueue.h',
'CxxNativeModule.h',
'Executor.h',
'ExecutorToken.h',
'ExecutorTokenFactory.h',
'Instance.h',
'JSCExecutor.h',
'JSCHelpers.h',
'JSCWebWorker.h',
'JSModulesUnbundle.h',
'MessageQueueThread.h',
'MethodCall.h',
'ModuleRegistry.h',
'NativeModule.h',
'NativeToJsBridge.h',
'noncopyable.h',
'Platform.h',
'SystraceSection.h',
'Value.h',
'Unicode.h',
],
preprocessor_flags = [ preprocessor_flags = [
'-DLOG_TAG="ReactNative"', '-DLOG_TAG="ReactNative"',
'-DWITH_FBSYSTRACE=1', '-DWITH_FBSYSTRACE=1',