blob: b8101a08f9cfe39aefcab1e1a15de058c4ace2d6 [file] [log] [blame]
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/ios/ios_sdk.gni")
import("//build/config/ios/rules.gni")
config("config") {
include_dirs = [ "src/Classes" ]
}
ios_framework_bundle("gtx") {
output_name = "GTXiLib"
info_plist = "Info.plist"
testonly = true
sources = [
"src/Classes/GTXAccessibilityTree.h",
"src/Classes/GTXAccessibilityTree.m",
"src/Classes/GTXAnalytics.h",
"src/Classes/GTXAnalytics.m",
"src/Classes/GTXAnalyticsUtils.h",
"src/Classes/GTXAnalyticsUtils.m",
"src/Classes/GTXAssertions.h",
"src/Classes/GTXBlacklistBlock.h",
"src/Classes/GTXBlacklistBlock.m",
"src/Classes/GTXBlacklistFactory.h",
"src/Classes/GTXBlacklistFactory.m",
"src/Classes/GTXBlacklisting.h",
"src/Classes/GTXCheckBlock.h",
"src/Classes/GTXCheckBlock.m",
"src/Classes/GTXChecking.h",
"src/Classes/GTXChecksCollection.h",
"src/Classes/GTXChecksCollection.m",
"src/Classes/GTXCommon.h",
"src/Classes/GTXElementBlacklist.h",
"src/Classes/GTXElementBlacklist.m",
"src/Classes/GTXErrorReporter.h",
"src/Classes/GTXErrorReporter.m",
"src/Classes/GTXImageAndColorUtils.h",
"src/Classes/GTXImageAndColorUtils.m",
"src/Classes/GTXImageRGBAData.h",
"src/Classes/GTXImageRGBAData.m",
"src/Classes/GTXLogging.h",
"src/Classes/GTXPluginXCTestCase.h",
"src/Classes/GTXPluginXCTestCase.m",
"src/Classes/GTXTestCase.h",
"src/Classes/GTXTestCase.m",
"src/Classes/GTXTestEnvironment.h",
"src/Classes/GTXTestEnvironment.m",
"src/Classes/GTXTestSuite.h",
"src/Classes/GTXTestSuite.m",
"src/Classes/GTXToolKit.h",
"src/Classes/GTXToolKit.m",
"src/Classes/GTXiLib.h",
"src/Classes/GTXiLibCore.h",
"src/Classes/GTXiLibCore.m",
"src/Classes/NSError+GTXAdditions.h",
"src/Classes/NSError+GTXAdditions.m",
]
public_headers = [
"src/Classes/GTXAccessibilityTree.h",
"src/Classes/GTXAnalytics.h",
"src/Classes/GTXAnalyticsUtils.h",
"src/Classes/GTXAssertions.h",
"src/Classes/GTXBlacklistBlock.h",
"src/Classes/GTXBlacklistFactory.h",
"src/Classes/GTXBlacklisting.h",
"src/Classes/GTXCheckBlock.h",
"src/Classes/GTXChecking.h",
"src/Classes/GTXChecksCollection.h",
"src/Classes/GTXCommon.h",
"src/Classes/GTXElementBlacklist.h",
"src/Classes/GTXErrorReporter.h",
"src/Classes/GTXImageAndColorUtils.h",
"src/Classes/GTXImageRGBAData.h",
"src/Classes/GTXLogging.h",
"src/Classes/GTXPluginXCTestCase.h",
"src/Classes/GTXTestCase.h",
"src/Classes/GTXTestEnvironment.h",
"src/Classes/GTXTestSuite.h",
"src/Classes/GTXToolKit.h",
"src/Classes/GTXiLib.h",
"src/Classes/GTXiLibCore.h",
"src/Classes/NSError+GTXAdditions.h",
]
deps = [ "//build/config/ios:xctest" ]
frameworks = [
"CoreGraphics.framework",
"Foundation.framework",
"QuartzCore.framework",
"UIKit.framework",
"XCTest.framework",
]
public_configs = [ ":config" ]
configs -= [
"//build/config/gcc:symbol_visibility_hidden",
"//build/config/compiler:chromium_code",
]
configs += [
"//build/config/compiler:enable_arc",
"//build/config/gcc:symbol_visibility_default",
]
}