This commit is contained in:
Aleksei Kuzmin 2017-08-04 01:46:54 +03:00 коммит произвёл Cheng Zhao
Родитель fbca0196cb
Коммит 2aa897afcb
2 изменённых файлов: 28 добавлений и 31 удалений

Просмотреть файл

@ -34,7 +34,7 @@ group("targets") {
] ]
if (is_linux) { if (is_linux) {
deps += [ "//chrome/browser/ui/libgtkui:libgtk2ui" ] deps += [ "//chrome/browser/ui/libgtkui:libgtk3ui" ]
} }
if (is_component_build) { if (is_component_build) {
@ -156,13 +156,13 @@ if (is_electron_build && is_component_build) {
static_library("libgtkui") { static_library("libgtkui") {
complete_static_lib = true complete_static_lib = true
sources = [ sources = [
"$root_out_dir/obj/chrome/browser/ui/libgtkui/libgtk2ui/app_indicator_icon.o", "$root_out_dir/obj/chrome/browser/ui/libgtkui/libgtk3ui/app_indicator_icon.o",
"$root_out_dir/obj/chrome/browser/ui/libgtkui/libgtk2ui/app_indicator_icon_menu.o", "$root_out_dir/obj/chrome/browser/ui/libgtkui/libgtk3ui/app_indicator_icon_menu.o",
"$root_out_dir/obj/chrome/browser/ui/libgtkui/libgtk2ui/gtk_util.o", "$root_out_dir/obj/chrome/browser/ui/libgtkui/libgtk3ui/gtk_util.o",
"$root_out_dir/obj/chrome/browser/ui/libgtkui/libgtk2ui/gtk_status_icon.o", "$root_out_dir/obj/chrome/browser/ui/libgtkui/libgtk3ui/gtk_status_icon.o",
"$root_out_dir/obj/chrome/browser/ui/libgtkui/libgtk2ui/menu_util.o", "$root_out_dir/obj/chrome/browser/ui/libgtkui/libgtk3ui/menu_util.o",
"$root_out_dir/obj/chrome/browser/ui/libgtkui/libgtk2ui/skia_utils_gtk.o", "$root_out_dir/obj/chrome/browser/ui/libgtkui/libgtk3ui/skia_utils_gtk.o",
"$root_out_dir/obj/chrome/browser/ui/libgtkui/libgtk2ui/unity_service.o", "$root_out_dir/obj/chrome/browser/ui/libgtkui/libgtk3ui/unity_service.o",
] ]
} }
} }

Просмотреть файл

@ -310,29 +310,26 @@ def run_gn(target_arch, defines):
args = 'import("//chromiumcontent/args/{0}.gn") target_cpu="{1}"'.format(component, target_cpu) args = 'import("//chromiumcontent/args/{0}.gn") target_cpu="{1}"'.format(component, target_cpu)
if sys.platform in ['win32', 'cygwin']: if sys.platform in ['win32', 'cygwin']:
args += ' use_allocator_shim=false' args += ' use_allocator_shim=false'
if sys.platform == 'linux2': if sys.platform == 'linux2' and target_arch == 'mips64el':
args += ' use_gtk3=false' args += ' clang_use_chrome_plugins=false'
if target_arch == 'mips64el': args += ' enable_hangout_services_extension=true'
args += ' clang_use_chrome_plugins=false' args += ' enable_nacl_nonsfi=false'
args += ' enable_hangout_services_extension=true' args += ' fatal_linker_warnings=false'
args += ' enable_nacl_nonsfi=false' args += ' fieldtrial_testing_like_official_build=true'
args += ' fatal_linker_warnings=false' args += ' is_clang=false'
args += ' fieldtrial_testing_like_official_build=true' args += ' link_pulseaudio=true'
args += ' is_clang=false' args += ' linux_use_bundled_binutils=false'
args += ' link_pulseaudio=true' args += ' remove_webcore_debug_symbols=true'
args += ' linux_use_bundled_binutils=false' args += ' treat_warnings_as_errors=false'
args += ' remove_webcore_debug_symbols=true' args += ' use_allocator="none"'
args += ' treat_warnings_as_errors=false' args += ' use_cups=true'
args += ' use_allocator="none"' args += ' use_gconf=false'
args += ' use_cups=true' args += ' use_gnome_keyring=false'
args += ' use_gconf=false' args += ' use_gold=false'
args += ' use_gnome_keyring=false' args += ' use_kerberos=true'
args += ' use_gold=false' args += ' use_pulseaudio=true'
args += ' use_kerberos=true' if IS_MIPS64EL_HOST:
args += ' use_pulseaudio=true' args += ' use_sysroot=false'
if IS_MIPS64EL_HOST:
args += ' use_sysroot=false'
output_dir = get_output_dir(SOURCE_ROOT, target_arch, component) output_dir = get_output_dir(SOURCE_ROOT, target_arch, component)
subprocess.call([gn, 'gen', os.path.relpath(output_dir, SRC_DIR), '--args=' + args], subprocess.call([gn, 'gen', os.path.relpath(output_dir, SRC_DIR), '--args=' + args],
cwd=SRC_DIR, env=env) cwd=SRC_DIR, env=env)