| 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/linux/gtk/gtk.gni") | 8 import("//build/config/linux/gtk/gtk.gni") |
| 9 import("//printing/features/features.gni") | 9 import("//printing/features/features.gni") |
| 10 | 10 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 "//ui/shell_dialogs", | 133 "//ui/shell_dialogs", |
| 134 "//ui/strings", | 134 "//ui/strings", |
| 135 "//ui/views", | 135 "//ui/views", |
| 136 ] | 136 ] |
| 137 public_deps = [ | 137 public_deps = [ |
| 138 "//chrome/browser:theme_properties", | 138 "//chrome/browser:theme_properties", |
| 139 ] | 139 ] |
| 140 } | 140 } |
| 141 } | 141 } |
| 142 | 142 |
| 143 libgtkui("libgtk2ui") { | 143 if (use_gtk3) { |
| 144 sources = [ | 144 libgtkui("libgtk3ui") { |
| 145 "native_theme_gtk2.cc", | 145 sources = [ |
| 146 "native_theme_gtk2.h", | 146 "native_theme_gtk3.cc", |
| 147 ] | 147 "native_theme_gtk3.h", |
| 148 deps = [ | 148 ] |
| 149 "//build/config/linux/gtk2", | 149 deps = [ |
| 150 "//build/config/linux/gtk2:gtkprint2", | 150 "//build/config/linux/gtk3", |
| 151 ] | 151 "//build/config/linux/gtk3:gtkprint3", |
| 152 ] |
| 153 } |
| 154 } else { |
| 155 libgtkui("libgtk2ui") { |
| 156 sources = [ |
| 157 "native_theme_gtk2.cc", |
| 158 "native_theme_gtk2.h", |
| 159 ] |
| 160 deps = [ |
| 161 "//build/config/linux/gtk2", |
| 162 "//build/config/linux/gtk2:gtkprint2", |
| 163 ] |
| 164 } |
| 152 } | 165 } |
| 153 | |
| 154 # This is compiled with "all" even when it's not referenced to ensure that | |
| 155 # GTK3 continues to build. GTK3 is explicitly specified by some distros. | |
| 156 libgtkui("libgtk3ui") { | |
| 157 sources = [ | |
| 158 "native_theme_gtk3.cc", | |
| 159 "native_theme_gtk3.h", | |
| 160 ] | |
| 161 deps = [ | |
| 162 "//build/config/linux/gtk3", | |
| 163 "//build/config/linux/gtk3:gtkprint3", | |
| 164 ] | |
| 165 } | |
| OLD | NEW |