2016-10-12 09:32:40 -07:00
|
|
|
# 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.
|
|
|
|
|
2016-12-02 05:08:55 -08:00
|
|
|
include_defs('//YOGA_DEFS')
|
2016-10-12 09:32:40 -07:00
|
|
|
|
2016-11-11 15:01:16 -08:00
|
|
|
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',
|
|
|
|
]
|
2016-10-14 14:52:22 -07:00
|
|
|
|
2016-10-14 17:38:27 -07:00
|
|
|
apple_library(
|
2016-11-11 07:36:39 -08:00
|
|
|
name = 'CSSLayoutKit',
|
2016-10-14 17:38:27 -07:00
|
|
|
compiler_flags = UIKIT_CSSLAYOUT_COMPILER_FLAGS,
|
2016-11-11 07:36:39 -08:00
|
|
|
tests = [':CSSLayoutKitTests'],
|
2016-10-14 17:38:27 -07:00
|
|
|
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'],
|
|
|
|
)
|
2016-10-14 13:25:24 -07:00
|
|
|
|
2016-10-14 17:38:27 -07:00
|
|
|
apple_test(
|
2016-11-11 07:36:39 -08:00
|
|
|
name = 'CSSLayoutKitTests',
|
2016-10-14 17:38:27 -07:00
|
|
|
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 = [
|
2016-11-11 07:36:39 -08:00
|
|
|
':CSSLayoutKit',
|
2016-10-14 17:38:27 -07:00
|
|
|
],
|
|
|
|
visibility = ['PUBLIC'],
|
|
|
|
)
|