| 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("//build/config/linux/pkg_config.gni") | 5 import("//build/config/linux/pkg_config.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 import("//build/json_schema_api.gni") | 7 import("//build/json_schema_api.gni") |
| 8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
| 9 if (is_android) { | 9 if (is_android) { |
| 10 import("//build/config/android/rules.gni") | 10 import("//build/config/android/rules.gni") |
| 11 } | 11 } |
| 12 | 12 |
| 13 if (use_x11) { | 13 if (use_x11) { |
| 14 pkg_config("atk") { | 14 pkg_config("atk") { |
| 15 packages = [ "atk" ] | 15 packages = [ "atk" ] |
| 16 atk_lib_dir = exec_script(pkg_config_script, | 16 atk_lib_dir = exec_script(pkg_config_script, |
| 17 [ | 17 pkg_config_args + [ |
| 18 "--libdir", | 18 "--libdir", |
| 19 "atk", | 19 "atk", |
| 20 ], | 20 ], |
| 21 "string") | 21 "string") |
| 22 defines = [ "ATK_LIB_DIR=\"$atk_lib_dir\"" ] | 22 defines = [ "ATK_LIB_DIR=\"$atk_lib_dir\"" ] |
| 23 } | 23 } |
| 24 | 24 |
| 25 # gn orders flags on a target before flags from configs. The default config | 25 # gn orders flags on a target before flags from configs. The default config |
| 26 # adds -Wall, and these flags have to be after -Wall -- so they need to come | 26 # adds -Wall, and these flags have to be after -Wall -- so they need to come |
| 27 # from a config and can't be on the target directly. | 27 # from a config and can't be on the target directly. |
| 28 config("atk_warnings") { | 28 config("atk_warnings") { |
| 29 cflags = [ | 29 cflags = [ |
| 30 # glib uses the pre-c++11 typedef-as-static_assert hack. | 30 # glib uses the pre-c++11 typedef-as-static_assert hack. |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 json_schema_api("ax_gen") { | 163 json_schema_api("ax_gen") { |
| 164 sources = [ | 164 sources = [ |
| 165 "ax_enums.idl", | 165 "ax_enums.idl", |
| 166 ] | 166 ] |
| 167 deps = [ | 167 deps = [ |
| 168 "//base/third_party/dynamic_annotations", | 168 "//base/third_party/dynamic_annotations", |
| 169 ] | 169 ] |
| 170 root_namespace = "ui" | 170 root_namespace = "ui" |
| 171 schemas = true | 171 schemas = true |
| 172 } | 172 } |
| OLD | NEW |