Summary: Gate it with `THIS_IS_FBOBJC` for now - the better solution is gating with fb_xplat_cxx_library and fb_xplat_cxx_test Reviewed By: dshahidehpour Differential Revision: D4024973 fbshipit-source-id: 2ce744fd67630b39b0498d0479a034d0b05c68ed
43 lines
1.2 KiB
Python
43 lines
1.2 KiB
Python
# 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')
|
|
|
|
UIKIT_CSSLAYOUT_COMPILER_FLAGS = ['-fobjc-arc']
|
|
|
|
if THIS_IS_FBOBJC:
|
|
apple_library(
|
|
name = 'CSSLayout',
|
|
compiler_flags = UIKIT_CSSLAYOUT_COMPILER_FLAGS,
|
|
tests = [':CSSLayoutTests'],
|
|
srcs = glob(['*.m']),
|
|
exported_headers = glob(['*.h']),
|
|
frameworks = [
|
|
'$SDKROOT/System/Library/Frameworks/Foundation.framework',
|
|
'$SDKROOT/System/Library/Frameworks/UIKit.framework',
|
|
],
|
|
deps = [
|
|
csslayout_dep(':CSSLayout'),
|
|
],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
apple_test(
|
|
name = 'CSSLayoutTests',
|
|
compiler_flags = UIKIT_CSSLAYOUT_COMPILER_FLAGS,
|
|
info_plist = 'Tests/Info.plist',
|
|
srcs = glob(['Tests/**/*.m']),
|
|
frameworks = [
|
|
'$SDKROOT/System/Library/Frameworks/CoreGraphics.framework',
|
|
'$PLATFORM_DIR/Developer/Library/Frameworks/XCTest.framework',
|
|
],
|
|
deps = [
|
|
':CSSLayout',
|
|
],
|
|
visibility = ['PUBLIC'],
|
|
)
|