Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1031)

Side by Side Diff: build/config/linux/gtk2/BUILD.gn

Issue 2438773003: Update CRD ChromeOS Host build files to be better in line with GN style. (Closed)
Patch Set: Merge branch 'master' into chromeos_gn Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | remoting/host/BUILD.gn » ('j') | remoting/host/BUILD.gn » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 6
7 assert(is_linux, "This file should only be referenced on Linux") 7 assert(is_linux, "This file should only be referenced on Linux")
8 8
9 # Depend on //build/config/linux/gtk2 to use GTKv2. 9 # Depend on //build/config/linux/gtk2 to use GTKv2.
10 # 10 #
11 # GN doesn't check visibility for configs so we give this an obviously internal 11 # GN doesn't check visibility for configs so we give this an obviously internal
12 # name to discourage random targets from accidentally depending on this and 12 # name to discourage random targets from accidentally depending on this and
13 # bypassing the GTK target's visibility. 13 # bypassing the GTK target's visibility.
14 pkg_config("gtk2_internal_config") { 14 pkg_config("gtk2_internal_config") {
15 # Gtk requires gmodule, but it does not list it as a dependency in some 15 # Gtk requires gmodule, but it does not list it as a dependency in some
16 # misconfigured systems. 16 # misconfigured systems.
17 packages = [ 17 packages = [
18 "gmodule-2.0", 18 "gmodule-2.0",
19 "gtk+-2.0", 19 "gtk+-2.0",
20 "gthread-2.0", 20 "gthread-2.0",
21 ] 21 ]
22 } 22 }
23 23
24 # Basically no parts of Chrome should depend on GTK. To prevent accidents, the 24 # Basically no parts of Chrome should depend on GTK. To prevent accidents, the
25 # parts that explicitly need GTK are whitelisted on this target. 25 # parts that explicitly need GTK are whitelisted on this target.
26 group("gtk2") { 26 group("gtk2") {
27 visibility = [ 27 visibility = [
28 "//chrome/browser/ui/libgtkui:libgtk2ui", 28 "//chrome/browser/ui/libgtkui:libgtk2ui",
29 "//gpu/gles2_conform_support:gles2_conform_test_windowless", 29 "//gpu/gles2_conform_support:gles2_conform_test_windowless",
30 "//remoting/host", 30 "//remoting/host/linux:linux",
Sergey Ulanov 2016/11/23 22:35:30 nit: I think you don't need ":linux" part
nicholss 2017/04/24 18:01:03 Done.
31 "//remoting/host/it2me:common", 31 "//remoting/host/it2me:common",
32 "//remoting/host/it2me:remote_assistance_host", 32 "//remoting/host/it2me:remote_assistance_host",
33 "//remoting/host:remoting_me2me_host_static", 33 "//remoting/host:remoting_me2me_host_static",
34 "//remoting/test:it2me_standalone_host_main", 34 "//remoting/test:it2me_standalone_host_main",
35 ] 35 ]
36 public_configs = [ ":gtk2_internal_config" ] 36 public_configs = [ ":gtk2_internal_config" ]
37 } 37 }
38 38
39 # Depend on "gtkprint" to get this. 39 # Depend on "gtkprint" to get this.
40 pkg_config("gtkprint2_internal_config") { 40 pkg_config("gtkprint2_internal_config") {
41 packages = [ "gtk+-unix-print-2.0" ] 41 packages = [ "gtk+-unix-print-2.0" ]
42 } 42 }
43 43
44 group("gtkprint2") { 44 group("gtkprint2") {
45 visibility = [ "//chrome/browser/ui/libgtkui:libgtk2ui" ] 45 visibility = [ "//chrome/browser/ui/libgtkui:libgtk2ui" ]
46 public_configs = [ ":gtkprint2_internal_config" ] 46 public_configs = [ ":gtkprint2_internal_config" ]
47 } 47 }
OLDNEW
« no previous file with comments | « no previous file | remoting/host/BUILD.gn » ('j') | remoting/host/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698