blob: 59e0dcf1810ab876f973dea267047c0230c2d4d6 [file] [log] [blame]
# Copyright 2016 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.
source_set("icons") {
configs += [ "//build/config/compiler:enable_arc" ]
sources = [
"chrome_icon.h",
"chrome_icon.mm",
]
deps = [
":assets",
"//base",
"//ios/chrome/app/strings",
"//ui/base",
]
libs = [
"CoreGraphics.framework",
"UIKit.framework",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"chrome_icon_unittest.mm",
]
deps = [
":icons",
"//ios/chrome/app/strings",
"//testing/gtest",
"//third_party/ocmock",
"//ui/base",
]
configs += [ "//build/config/compiler:enable_arc" ]
}
bundle_data("assets") {
sources = [
"resources/Icons.xcassets/ic_arrow_back.imageset/Contents.json",
"resources/Icons.xcassets/ic_arrow_back.imageset/ic_arrow_back.png",
"resources/Icons.xcassets/ic_arrow_back.imageset/ic_arrow_back_2x.png",
"resources/Icons.xcassets/ic_arrow_back.imageset/ic_arrow_back_3x.png",
"resources/Icons.xcassets/ic_chevron_right.imageset/Contents.json",
"resources/Icons.xcassets/ic_chevron_right.imageset/ic_chevron_right.png",
"resources/Icons.xcassets/ic_chevron_right.imageset/ic_chevron_right_2x.png",
"resources/Icons.xcassets/ic_chevron_right.imageset/ic_chevron_right_3x.png",
"resources/Icons.xcassets/ic_close.imageset/Contents.json",
"resources/Icons.xcassets/ic_close.imageset/ic_close.png",
"resources/Icons.xcassets/ic_close.imageset/ic_close_2x.png",
"resources/Icons.xcassets/ic_close.imageset/ic_close_3x.png",
"resources/Icons.xcassets/ic_info.imageset/Contents.json",
"resources/Icons.xcassets/ic_info.imageset/ic_info.png",
"resources/Icons.xcassets/ic_info.imageset/ic_info_2x.png",
"resources/Icons.xcassets/ic_info.imageset/ic_info_3x.png",
"resources/Icons.xcassets/ic_search.imageset/Contents.json",
"resources/Icons.xcassets/ic_search.imageset/ic_search.png",
"resources/Icons.xcassets/ic_search.imageset/ic_search_2x.png",
"resources/Icons.xcassets/ic_search.imageset/ic_search_3x.png",
]
outputs = [
"{{bundle_resources_dir}}/{{source_file_part}}",
]
}