| # Copyright 2016 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/buildflag_header.gni") |
| import("//build/config/ios/ios_sdk.gni") |
| |
| declare_args() { |
| # This defines targets to include branded icons. |
| ios_branded_icons = ":branded" |
| } |
| |
| _use_branded_symbols = get_label_info(":branded", "label_no_toolchain") != |
| get_label_info(ios_branded_icons, "label_no_toolchain") |
| |
| buildflag_header("buildflags") { |
| header = "buildflags.h" |
| flags = [ "IOS_USE_BRANDED_SYMBOLS=$_use_branded_symbols" ] |
| } |
| |
| source_set("symbols") { |
| public = [ "symbols.h" ] |
| sources = [ |
| "symbol_configurations.h", |
| "symbol_configurations.mm", |
| "symbol_helpers.h", |
| "symbol_helpers.mm", |
| "symbol_names.h", |
| "symbol_names.mm", |
| ] |
| deps = [ |
| ":buildflags", |
| "//base", |
| "//ios/chrome/browser/shared/public/features", |
| "//ios/chrome/browser/shared/ui/symbols/resources", |
| "//ios/chrome/common/ui/colors", |
| ios_branded_icons, |
| ] |
| } |
| |
| source_set("symbols_views") { |
| sources = [ |
| "colorful_background_symbol_view.h", |
| "colorful_background_symbol_view.mm", |
| ] |
| deps = [ |
| ":symbols", |
| "//ios/chrome/common/ui/colors", |
| "//ios/chrome/common/ui/table_view:cells_constants", |
| "//ios/chrome/common/ui/util", |
| ] |
| } |
| |
| group("branded") { |
| deps = [ "//ios/chrome/browser/shared/ui/symbols/resources:branded_assets" ] |
| } |