Summary: new name Reviewed By: gkassabli Differential Revision: D4258291 fbshipit-source-id: 4b9ad8773c68aed25afba57fcfa92721e6acc1a6
60 lines
1.6 KiB
Python
60 lines
1.6 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('//YOGA_DEFS')
|
|
|
|
UIKIT_CSSLAYOUT_COMPILER_FLAGS = [
|
|
'-fobjc-arc',
|
|
'-Wconditional-uninitialized',
|
|
'-Wdangling-else',
|
|
'-Wdeprecated-declarations',
|
|
'-Wimplicit-retain-self',
|
|
'-Wincomplete-implementation',
|
|
'-Wobjc-method-access',
|
|
'-Wobjc-missing-super-calls',
|
|
'-Wmismatched-return-types',
|
|
'-Wreturn-type',
|
|
'-Wno-global-constructors',
|
|
'-Wno-shadow',
|
|
'-Wunused-const-variable',
|
|
'-Wunused-function',
|
|
'-Wunused-property-ivar',
|
|
'-Wunused-result',
|
|
'-Wunused-value',
|
|
]
|
|
|
|
apple_library(
|
|
name = 'CSSLayoutKit',
|
|
compiler_flags = UIKIT_CSSLAYOUT_COMPILER_FLAGS,
|
|
tests = [':CSSLayoutKitTests'],
|
|
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 = 'CSSLayoutKitTests',
|
|
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 = [
|
|
':CSSLayoutKit',
|
|
],
|
|
visibility = ['PUBLIC'],
|
|
)
|