Proper fix for broken android builds.

Summary: using `IS_THIS_FBOBJC` will break the tests in the open-source repo. This fixes Facebook builds and open source builds.

Reviewed By: WaseemTheDream, mzlee

Differential Revision: D4025580

fbshipit-source-id: 8280520a63134744fd24518aa6f45423aa0ecd03
This commit is contained in:
Dustin Shahidehpour
2016-10-14 17:38:27 -07:00
committed by Facebook Github Bot
parent 63d3e8f3f3
commit c619c0be5a

View File

@@ -9,8 +9,7 @@ include_defs('//CSSLAYOUT_DEFS')
UIKIT_CSSLAYOUT_COMPILER_FLAGS = ['-fobjc-arc']
if THIS_IS_FBOBJC:
apple_library(
apple_library(
name = 'CSSLayout',
compiler_flags = UIKIT_CSSLAYOUT_COMPILER_FLAGS,
tests = [':CSSLayoutTests'],
@@ -24,9 +23,9 @@ if THIS_IS_FBOBJC:
csslayout_dep(':CSSLayout'),
],
visibility = ['PUBLIC'],
)
)
apple_test(
apple_test(
name = 'CSSLayoutTests',
compiler_flags = UIKIT_CSSLAYOUT_COMPILER_FLAGS,
info_plist = 'Tests/Info.plist',
@@ -39,4 +38,4 @@ if THIS_IS_FBOBJC:
':CSSLayout',
],
visibility = ['PUBLIC'],
)
)