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

Side by Side Diff: build/config/ui.gni

Issue 1415153007: build: Allow glib to be disabled for non-ozone builds of chromium when using GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 # This file contains UI-related build flags (see features.gni for Chrome 5 # This file contains UI-related build flags (see features.gni for Chrome
6 # feature-related ones). These should theoretically be moved to the ui 6 # feature-related ones). These should theoretically be moved to the ui
7 # directory. 7 # directory.
8 # 8 #
9 # However, today we have many "bad" dependencies on some of these flags from, 9 # However, today we have many "bad" dependencies on some of these flags from,
10 # e.g. base, so they need to be global to match the GYP configuration. Also, 10 # e.g. base, so they need to be global to match the GYP configuration. Also,
(...skipping 24 matching lines...) Expand all
35 (is_mac || is_win || is_chromeos || use_aura) && !is_chromecast 35 (is_mac || is_win || is_chromeos || use_aura) && !is_chromecast
36 36
37 # Whether the entire browser uses toolkit-views on Mac instead of Cocoa. 37 # Whether the entire browser uses toolkit-views on Mac instead of Cocoa.
38 mac_views_browser = false 38 mac_views_browser = false
39 39
40 # Whether we should use GTKv3 instead of GTKv2. 40 # Whether we should use GTKv3 instead of GTKv2.
41 use_gtk3 = false 41 use_gtk3 = false
42 42
43 # Optional system libraries. 43 # Optional system libraries.
44 use_xkbcommon = false 44 use_xkbcommon = false
45
46 # Whether we should use glib, a low level C utility library.
47 use_glib = is_linux && !use_ozone
Dirk Pranke 2015/11/05 22:19:21 This change probably doesn't do what you expect it
reveman 2015/11/05 23:15:07 ah, got it.
45 } 48 }
46 49
47 # Additional dependent variables ----------------------------------------------- 50 # Additional dependent variables -----------------------------------------------
48 # 51 #
49 # These variables depend on other variables and can't be set externally. 52 # These variables depend on other variables and can't be set externally.
50 53
51 # Use GPU accelerated cross process image transport by default on linux builds 54 # Use GPU accelerated cross process image transport by default on linux builds
52 # with the Aura window manager. 55 # with the Aura window manager.
53 ui_compositor_image_transport = use_aura && is_linux 56 ui_compositor_image_transport = use_aura && is_linux
54 57
55 use_default_render_theme = use_aura && !is_android 58 use_default_render_theme = use_aura && !is_android
56 59
57 # Indicates if the UI toolkit depends on X11. 60 # Indicates if the UI toolkit depends on X11.
58 use_x11 = is_linux && !use_ozone 61 use_x11 = is_linux && !use_ozone
59 62
60 # Whether we should use glib, a low level C utility library. 63 if (is_linux && !use_ozone) {
Dirk Pranke 2015/11/05 22:19:21 I'm not sure I understand this change. Are you say
reveman 2015/11/05 23:15:07 Yes, use_glib should not affect this. A non-ozone
61 use_glib = is_linux && !use_ozone
62
63 if (is_linux && use_glib) {
64 use_cairo = true 64 use_cairo = true
65 use_pango = true 65 use_pango = true
66 } else { 66 } else {
67 use_cairo = false 67 use_cairo = false
68 use_pango = false 68 use_pango = false
69 } 69 }
70 70
71 # Whether to use atk, the Accessibility ToolKit library 71 # Whether to use atk, the Accessibility ToolKit library
72 use_atk = is_desktop_linux && use_x11 72 use_atk = is_desktop_linux && use_x11
73 73
74 use_clipboard_aurax11 = is_linux && use_aura && use_x11 74 use_clipboard_aurax11 = is_linux && use_aura && use_x11
75 75
76 enable_hidpi = is_mac || is_win || is_linux 76 enable_hidpi = is_mac || is_win || is_linux
77 77
78 enable_topchrome_md = is_chromeos || is_win || is_linux 78 enable_topchrome_md = is_chromeos || is_win || is_linux
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698