Commit c3851704 authored by phajdan.jr's avatar phajdan.jr Committed by Commit bot

Fix gtk3 build

This includes making it work when gtk2 is not installed.

BUG=none

Review-Url: https://codereview.chromium.org/2342163002
Cr-Commit-Position: refs/heads/master@{#419200}
parent 90419216
......@@ -28,8 +28,10 @@ group("gtk3") {
"//chrome/browser/ui/libgtk2ui",
"//gpu/gles2_conform_support:gles2_conform_test_windowless",
"//remoting/host",
"//remoting/host/it2me:common",
"//remoting/host/it2me:remote_assistance_host",
"//remoting/host:remoting_me2me_host_static",
"//remoting/test:it2me_standalone_host_main",
]
public_configs = [ ":gtk3_internal_config" ]
}
......
......@@ -243,7 +243,11 @@ const color_utils::HSL kDefaultTintFrameIncognitoInactive = { -1, 0.3f, 0.6f };
#if GTK_MAJOR_VERSION == 3
const color_utils::HSL kDefaultTintFrameInactive = { -1, -1, 0.75f };
#endif
// The size of the rendered toolbar image.
const int kToolbarImageWidth = 64;
const int kToolbarImageHeight = 128;
#endif // GTK_MAJOR_VERSION == 3
// Picks a button tint from a set of background colors. While
// |accent_color| will usually be the same color through a theme, this
......
......@@ -573,10 +573,14 @@ if (!is_android) {
]
if (!use_ozone) {
sources += [ "../browser/ui/libgtk2ui/select_file_dialog_interactive_uitest.cc" ]
if (use_gtk3) {
configs += [ "//build/config/linux/gtk3:gtk3_internal_config" ]
} else {
configs += [ "//build/config/linux/gtk2:gtk2_internal_config" ]
}
}
}
}
if (is_chromeos || !use_x11) {
sources -= [
"//ui/views/widget/desktop_aura/desktop_window_tree_host_x11_interactive_uitest.cc",
......
......@@ -411,8 +411,12 @@ static_library("host") {
"//build/config/linux:xrandr",
]
if (is_desktop_linux) {
if (use_gtk3) {
deps += [ "//build/config/linux/gtk3" ]
} else {
deps += [ "//build/config/linux/gtk2" ]
}
}
} else {
sources -= [
"clipboard_x11.cc",
......@@ -1154,8 +1158,12 @@ if (enable_me2me_host) {
}
if (is_desktop_linux) {
if (use_gtk3) {
deps += [ "//build/config/linux/gtk3" ]
} else {
deps += [ "//build/config/linux/gtk2" ]
}
}
if ((is_linux && !is_chromeos) || is_mac) {
libs = [ "pam" ]
}
......
......@@ -66,8 +66,12 @@ source_set("common") {
# See crbug.com/462689 for details.
all_dependent_configs = [ "//third_party/harfbuzz-ng:pangoft2_link_hack" ]
if (use_gtk3) {
deps += [ "//build/config/linux/gtk3" ]
} else {
deps += [ "//build/config/linux/gtk2" ]
}
}
}
if (!is_chromeos && !is_android && enable_remoting_host) {
......@@ -230,8 +234,12 @@ if (!is_chromeos && !is_android && enable_remoting_host) {
}
if (is_desktop_linux) {
if (use_gtk3) {
deps += [ "//build/config/linux/gtk3" ]
} else {
deps += [ "//build/config/linux/gtk2" ]
}
}
}
}
}
......@@ -196,9 +196,13 @@ if (enable_remoting_host && !is_android && !is_chromeos) {
]
if (is_desktop_linux) {
if (use_gtk3) {
deps += [ "//build/config/linux/gtk3" ]
} else {
deps += [ "//build/config/linux/gtk2" ]
}
}
}
}
source_set("unit_tests") {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment