Import devel/llvm50 version 5.0.0_1
[dports.git] / www / chromium / files / patch-build_config_ui.gni
1 --- build/config/ui.gni.orig    2016-10-06 04:02:08.000000000 +0300
2 +++ build/config/ui.gni 2016-10-13 05:04:25.545377000 +0300
3 @@ -31,7 +31,7 @@
4  
5    # Indicates if Aura is enabled. Aura is a low-level windowing library, sort
6    # of a replacement for GDI or GTK.
7 -  use_aura = is_win || is_linux
8 +  use_aura = is_win || is_linux || is_bsd
9  
10    # True means the UI is built using the "views" framework.
11    toolkit_views =
12 @@ -47,7 +47,7 @@
13    use_xkbcommon = false
14  
15    # Whether we should use glib, a low level C utility library.
16 -  use_glib = is_linux
17 +  use_glib = is_linux || is_bsd
18  
19    # Indicates if Wayland display server support is enabled.
20    enable_wayland_server = is_chromeos
21 @@ -65,19 +65,19 @@
22  
23  # Use GPU accelerated cross process image transport by default on linux builds
24  # with the Aura window manager.
25 -ui_compositor_image_transport = use_aura && is_linux
26 +ui_compositor_image_transport = use_aura && (is_linux || is_bsd)
27  
28  use_default_render_theme = use_aura && !is_android
29  
30  # Indicates if the UI toolkit depends on X11.
31 -use_x11 = is_linux && !use_ozone
32 +use_x11 = (is_linux || is_bsd) && !use_ozone
33  
34  # Turn off glib if Ozone is enabled.
35  if (use_ozone) {
36    use_glib = false
37  }
38  
39 -if (is_linux && !use_ozone) {
40 +if ((is_linux || is_bsd) && !use_ozone) {
41    use_cairo = true
42    use_pango = true
43  } else {