| 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 assert(is_linux, "This file should only be referenced on Linux") | 5 assert(is_linux, "This file should only be referenced on Linux") |
| 6 | 6 |
| 7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
| 8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
| 9 import("//printing/features/features.gni") |
| 9 | 10 |
| 10 # gn orders flags on a target before flags from configs. The default config | 11 # gn orders flags on a target before flags from configs. The default config |
| 11 # adds -Wall, and these flags have to be after -Wall -- so they need to come | 12 # adds -Wall, and these flags have to be after -Wall -- so they need to come |
| 12 # from a config and can't be on the target directly. | 13 # from a config and can't be on the target directly. |
| 13 config("libgtkui_warnings") { | 14 config("libgtkui_warnings") { |
| 14 if (is_clang) { | 15 if (is_clang) { |
| 15 cflags = [ | 16 cflags = [ |
| 16 # G_DEFINE_TYPE automatically generates a *get_instance_private inline | 17 # G_DEFINE_TYPE automatically generates a *get_instance_private inline |
| 17 # function after glib 2.37. That's unused. Prevent to complain about it. | 18 # function after glib 2.37. That's unused. Prevent to complain about it. |
| 18 "-Wno-unused-function", | 19 "-Wno-unused-function", |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 defines = [ "LIBGTKUI_IMPLEMENTATION" ] | 141 defines = [ "LIBGTKUI_IMPLEMENTATION" ] |
| 141 | 142 |
| 142 deps = common_deps + [ | 143 deps = common_deps + [ |
| 143 "//build/config/linux/gtk3", | 144 "//build/config/linux/gtk3", |
| 144 "//build/config/linux/gtk3:gtkprint3", | 145 "//build/config/linux/gtk3:gtkprint3", |
| 145 ] | 146 ] |
| 146 public_deps = [ | 147 public_deps = [ |
| 147 "//chrome/browser:theme_properties", | 148 "//chrome/browser:theme_properties", |
| 148 ] | 149 ] |
| 149 } | 150 } |
| OLD | NEW |