| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//third_party/protobuf/proto_library.gni") | 5 import("//third_party/protobuf/proto_library.gni") |
| 6 import("//ui/vector_icons/vector_icons.gni") |
| 6 | 7 |
| 7 if (is_android) { | 8 if (is_android) { |
| 8 import("//build/config/android/rules.gni") | 9 import("//build/config/android/rules.gni") |
| 9 } | 10 } |
| 10 | 11 |
| 11 action("aggregate_vector_icons") { | 12 aggregate_vector_icons("omnibox_vector_icons") { |
| 12 visibility = [ ":*" ] | 13 icon_directory = "vector_icons" |
| 13 | |
| 14 script = "//ui/gfx/vector_icons/aggregate_vector_icons.py" | |
| 15 | 14 |
| 16 icons = [ | 15 icons = [ |
| 17 "vector_icons/calculator.1x.icon", | 16 "calculator.1x.icon", |
| 18 "vector_icons/calculator.icon", | 17 "calculator.icon", |
| 19 "vector_icons/extension_app.1x.icon", | 18 "extension_app.1x.icon", |
| 20 "vector_icons/extension_app.icon", | 19 "extension_app.icon", |
| 21 "vector_icons/http.icon", | 20 "http.icon", |
| 22 "vector_icons/keyword_search.icon", | 21 "keyword_search.icon", |
| 23 "vector_icons/search.icon", | 22 "search.icon", |
| 24 "vector_icons/star.1x.icon", | 23 "star.1x.icon", |
| 25 "vector_icons/star.icon", | 24 "star.icon", |
| 26 ] | |
| 27 | |
| 28 output_cc = "$target_gen_dir/vector_icons.cc" | |
| 29 output_h = "$target_gen_dir/vector_icons.h" | |
| 30 | |
| 31 inputs = icons | |
| 32 inputs += [ | |
| 33 "vector_icons/vector_icons.cc.template", | |
| 34 "vector_icons/vector_icons.h.template", | |
| 35 ] | |
| 36 outputs = [ | |
| 37 output_cc, | |
| 38 output_h, | |
| 39 ] | |
| 40 | |
| 41 response_file_contents = rebase_path(icons, root_build_dir) | |
| 42 | |
| 43 args = [ | |
| 44 "--working_directory=" + rebase_path("./vector_icons"), | |
| 45 "--file_list={{response_file_name}}", | |
| 46 "--output_cc=" + rebase_path(output_cc, root_build_dir), | |
| 47 "--output_h=" + rebase_path(output_h, root_build_dir), | |
| 48 ] | 25 ] |
| 49 } | 26 } |
| 50 | 27 |
| 51 static_library("browser") { | 28 static_library("browser") { |
| 52 sources = [ | 29 sources = [ |
| 53 "answers_cache.cc", | 30 "answers_cache.cc", |
| 54 "answers_cache.h", | 31 "answers_cache.h", |
| 55 "autocomplete_classifier.cc", | 32 "autocomplete_classifier.cc", |
| 56 "autocomplete_classifier.h", | 33 "autocomplete_classifier.h", |
| 57 "autocomplete_controller.cc", | 34 "autocomplete_controller.cc", |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 "//net", | 158 "//net", |
| 182 "//skia", | 159 "//skia", |
| 183 "//sql", | 160 "//sql", |
| 184 "//third_party/protobuf:protobuf_lite", | 161 "//third_party/protobuf:protobuf_lite", |
| 185 "//ui/base", | 162 "//ui/base", |
| 186 "//ui/gfx", | 163 "//ui/gfx", |
| 187 "//url", | 164 "//url", |
| 188 ] | 165 ] |
| 189 | 166 |
| 190 if (!is_android && !is_ios) { | 167 if (!is_android && !is_ios) { |
| 191 sources += get_target_outputs(":aggregate_vector_icons") | 168 sources += get_target_outputs(":omnibox_vector_icons") |
| 192 deps += [ ":aggregate_vector_icons" ] | 169 deps += [ ":omnibox_vector_icons" ] |
| 193 } | 170 } |
| 194 | 171 |
| 195 # TODO(brettw) Fix the include cycle and remove this line. | 172 # TODO(brettw) Fix the include cycle and remove this line. |
| 196 allow_circular_includes_from = [ "//components/search_engines" ] | 173 allow_circular_includes_from = [ "//components/search_engines" ] |
| 197 } | 174 } |
| 198 | 175 |
| 199 if (is_android) { | 176 if (is_android) { |
| 200 java_cpp_enum("autocomplete_match_javagen") { | 177 java_cpp_enum("autocomplete_match_javagen") { |
| 201 sources = [ | 178 sources = [ |
| 202 "autocomplete_match.h", | 179 "autocomplete_match.h", |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 "//components/variations", | 297 "//components/variations", |
| 321 "//net:test_support", | 298 "//net:test_support", |
| 322 "//sql", | 299 "//sql", |
| 323 "//sql:test_support", | 300 "//sql:test_support", |
| 324 "//testing/gmock", | 301 "//testing/gmock", |
| 325 "//testing/gtest", | 302 "//testing/gtest", |
| 326 "//ui/base:base", | 303 "//ui/base:base", |
| 327 "//url", | 304 "//url", |
| 328 ] | 305 ] |
| 329 } | 306 } |
| OLD | NEW |