mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-08 10:47:44 -03:00
fix win args and kshareicon update
This commit is contained in:
parent
9435bd1209
commit
30f99d3065
43 changed files with 3626 additions and 2249 deletions
2
args.gn
2
args.gn
|
@ -46,9 +46,7 @@ enable_precompiled_headers = false
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = true
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
|
|
10
arm/android/README.md
Normal file
10
arm/android/README.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Android args.gn files
|
||||
|
||||
debug_args.gn is for arm64 only, but could be modified according to the other ones to
|
||||
support different microarchitectures.
|
||||
android_full_debug = true can be used in debug builds
|
||||
|
||||
chromium_args.gn is for making a vanilla official non-debug Chromium build
|
||||
|
||||
API Keys allow location features, but do not allow Google Sync to function like on desktop.
|
||||
This is due to Google being an asshole an adding extra restrictions to Android Chromium.
|
|
@ -58,9 +58,7 @@ enable_precompiled_headers = false
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = true
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
clang_use_chrome_plugins = true
|
|
@ -58,9 +58,7 @@ enable_precompiled_headers = false
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = true
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
clang_use_chrome_plugins = true
|
97
arm/android/debug_args.gn
Normal file
97
arm/android/debug_args.gn
Normal file
|
@ -0,0 +1,97 @@
|
|||
enable_jxl_decoder = true
|
||||
target_os = "android"
|
||||
target_cpu = "arm64"
|
||||
v8_target_cpu = "arm64"
|
||||
arm_version = 8
|
||||
arm_arch = "armv8-a"
|
||||
arm_tune = "generic-armv8-a"
|
||||
arm_float_abi = "hard"
|
||||
arm_use_thumb = true
|
||||
arm_use_neon = true
|
||||
arm_optionally_use_neon = true
|
||||
arm_fpu = "neon"
|
||||
is_official_build = true
|
||||
is_high_end_android = true
|
||||
use_relr_relocations = true
|
||||
optimize_for_size = false
|
||||
# optimize_for_speed = true
|
||||
is_debug = false
|
||||
is_java_debug = false
|
||||
debuggable_apks = false
|
||||
# is_cfi = true
|
||||
use_relative_vtables_abi = false
|
||||
icu_use_data_file = true
|
||||
# use_cfi_cast = true
|
||||
android_channel = "stable"
|
||||
disable_android_lint = true
|
||||
enable_stripping = true
|
||||
thin_lto_enable_cache = false
|
||||
strip_debug_info = true
|
||||
dcheck_always_on = false
|
||||
exclude_unwind_tables = true
|
||||
enable_iterator_debugging = false
|
||||
disable_fieldtrial_testing_config = true
|
||||
enable_reporting = false
|
||||
enable_remoting = false
|
||||
enable_resource_allowlist_generation = false
|
||||
enable_profiling = false
|
||||
is_component_build = false
|
||||
symbol_level = 0
|
||||
enable_nacl = false
|
||||
optimize_webui = true
|
||||
treat_warnings_as_errors = false
|
||||
system_webview_package_name = "com.thorium.webview"
|
||||
trichrome_library_package = "org.thorium.trichromelibrary"
|
||||
system_webview_shell_package_name = "org.thorium.webview_shell"
|
||||
# webview_includes_weblayer = true
|
||||
use_lld = true
|
||||
v8_symbol_level = 0
|
||||
v8_enable_fast_torque = true
|
||||
v8_enable_builtins_optimization = true
|
||||
v8_enable_maglev = true
|
||||
v8_enable_turbofan = true
|
||||
# TODO: Re-Enable
|
||||
use_v8_context_snapshot = false
|
||||
v8_use_external_startup_data = true
|
||||
blink_symbol_level = 0
|
||||
enable_precompiled_headers = false
|
||||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_discovery = true
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
clang_use_chrome_plugins = true
|
||||
enable_ffmpeg_video_decoders = true
|
||||
is_component_ffmpeg = false
|
||||
use_webaudio_pffft = true
|
||||
enable_widevine = true
|
||||
bundle_widevine_cdm = false
|
||||
enable_cdm_host_verification = false
|
||||
ignore_missing_widevine_signing_cert = true
|
||||
enable_media_drm_storage = true
|
||||
# enable_media_overlay = true
|
||||
enable_hangout_services_extension = true
|
||||
rtc_use_h264 = false
|
||||
rtc_prefer_fixed_point = true
|
||||
rtc_include_ilbc = true
|
||||
rtc_build_with_neon = true
|
||||
rtc_build_examples = false
|
||||
rtc_enable_avx2 = false
|
||||
enable_vr = true
|
||||
enable_platform_hevc = true
|
||||
enable_hevc_parser_and_hw_decoder = true
|
||||
platform_has_optional_hevc_support = true
|
||||
enable_platform_ac3_eac3_audio = true
|
||||
enable_platform_ac4_audio = false
|
||||
enable_platform_dolby_vision = true
|
||||
enable_platform_encrypted_dolby_vision = true
|
||||
enable_platform_mpeg_h_audio = true
|
||||
enable_platform_dts_audio = true
|
||||
enable_mse_mpeg2ts_stream_parser = true
|
||||
use_thin_lto = true
|
||||
thin_lto_enable_optimizations = true
|
||||
enable_rust = true
|
||||
enable_all_rust_features = false
|
||||
chrome_pgo_phase = 2
|
||||
pgo_data_path = "/home/alex/chromium/src/chrome/build/pgo_profiles/chrome-android64-main-1725631067-463075337b2f1208828cf4a0e31dfd1e820a025f-428b4881737baeb8dca8873460c3a9fabfe16169.profdata"
|
|
@ -57,9 +57,7 @@ enable_precompiled_headers = false
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = true
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
clang_use_chrome_plugins = true
|
|
@ -57,9 +57,7 @@ enable_precompiled_headers = false
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = true
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
clang_use_chrome_plugins = true
|
|
@ -51,9 +51,7 @@ enable_precompiled_headers = false
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = true
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
clang_use_chrome_plugins = true
|
||||
|
|
|
@ -36,9 +36,7 @@ enable_precompiled_headers = false
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = false
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
|
|
|
@ -49,8 +49,6 @@ cd ${CR_SRC_DIR} &&
|
|||
autoninja -C out/thorium thorium_all -j$@ &&
|
||||
autoninja -C out/thorium setup mini_installer -j$@ &&
|
||||
|
||||
#mv -v -f ${CR_SRC_DIR}/out/thorium/mini_installer.exe ${CR_SRC_DIR}/out/thorium/thorium_mini_installer.exe &&
|
||||
|
||||
printf "\n" &&
|
||||
cat ~/thorium/logos/thorium_logo_ascii_art.txt &&
|
||||
printf "\n" &&
|
||||
|
|
|
@ -7,9 +7,10 @@ use_avx512 = false
|
|||
use_fma = false
|
||||
|
||||
# use_polly = true
|
||||
# use_bolt = true
|
||||
target_os = "linux"
|
||||
target_cpu = "x64"
|
||||
enable_linux_installer = true
|
||||
enable_linux_installer = false
|
||||
enable_distro_version_check = false
|
||||
is_official_build = false
|
||||
is_debug = true
|
||||
|
@ -32,7 +33,7 @@ is_clang = true
|
|||
treat_warnings_as_errors = false
|
||||
# llvm_force_head_revision = true
|
||||
use_lld = true
|
||||
use_icf = true
|
||||
use_icf = false
|
||||
is_cfi = false
|
||||
v8_symbol_level = 2
|
||||
v8_enable_fast_torque = true
|
||||
|
@ -46,9 +47,7 @@ enable_precompiled_headers = false
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = true
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
|
@ -85,5 +84,5 @@ use_thin_lto = false
|
|||
thin_lto_enable_optimizations = false
|
||||
enable_rust = true
|
||||
enable_all_rust_features = true
|
||||
# init_stack_vars_zero = true
|
||||
init_stack_vars_zero = false
|
||||
chrome_pgo_phase = 0
|
||||
|
|
|
@ -24,8 +24,8 @@ enable_webui_tab_strip = false
|
|||
treat_warnings_as_errors = false
|
||||
# llvm_force_head_revision = true
|
||||
# use_lld = true
|
||||
# use_icf = true
|
||||
# is_cfi = true
|
||||
use_icf = false
|
||||
is_cfi = false
|
||||
v8_symbol_level = 0
|
||||
v8_enable_fast_torque = true
|
||||
v8_enable_builtins_optimization = false
|
||||
|
@ -38,9 +38,7 @@ blink_symbol_level = 2
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = true
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
|
@ -60,7 +58,7 @@ rtc_use_h264 = true
|
|||
rtc_use_h265 = true
|
||||
rtc_include_ilbc = true
|
||||
rtc_build_with_neon = true
|
||||
rtc_build_examples = false
|
||||
rtc_build_examples = true
|
||||
# rtc_enable_avx2 = true
|
||||
enable_vr = true
|
||||
enable_platform_hevc = true
|
||||
|
@ -77,8 +75,8 @@ use_text_section_splitting = true
|
|||
use_thin_lto = false
|
||||
thin_lto_enable_optimizations = false
|
||||
enable_rust = true
|
||||
# enable_all_rust_features = true
|
||||
# init_stack_vars_zero = true
|
||||
enable_all_rust_features = false
|
||||
init_stack_vars_zero = false
|
||||
enable_updater = false
|
||||
enable_update_notifications = false
|
||||
chrome_pgo_phase = 0
|
||||
|
|
|
@ -32,8 +32,8 @@ enable_webui_tab_strip = false
|
|||
treat_warnings_as_errors = false
|
||||
# llvm_force_head_revision = true
|
||||
# use_lld = true
|
||||
# use_icf = true
|
||||
# is_cfi = true
|
||||
use_icf = false
|
||||
is_cfi = false
|
||||
v8_symbol_level = 0
|
||||
v8_enable_fast_torque = true
|
||||
v8_enable_builtins_optimization = false
|
||||
|
@ -46,9 +46,7 @@ blink_symbol_level = 2
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = true
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
|
@ -68,7 +66,7 @@ rtc_use_h264 = true
|
|||
rtc_use_h265 = true
|
||||
rtc_include_ilbc = true
|
||||
# rtc_build_with_neon = false
|
||||
rtc_build_examples = false
|
||||
rtc_build_examples = true
|
||||
rtc_enable_avx2 = true
|
||||
enable_vr = true
|
||||
enable_platform_hevc = true
|
||||
|
@ -85,8 +83,8 @@ use_text_section_splitting = true
|
|||
use_thin_lto = false
|
||||
thin_lto_enable_optimizations = false
|
||||
enable_rust = true
|
||||
# enable_all_rust_features = true
|
||||
# init_stack_vars_zero = true
|
||||
enable_all_rust_features = false
|
||||
init_stack_vars_zero = false
|
||||
enable_updater = false
|
||||
enable_update_notifications = false
|
||||
chrome_pgo_phase = 0
|
||||
|
|
|
@ -6,13 +6,17 @@ use_avx2 = false
|
|||
use_avx512 = false
|
||||
use_fma = false
|
||||
|
||||
# use_polly = true
|
||||
# use_bolt = true
|
||||
target_os = "linux"
|
||||
target_cpu = "x64"
|
||||
enable_linux_installer = true
|
||||
enable_distro_version_check = false
|
||||
is_official_build = false
|
||||
is_debug = false
|
||||
enable_stripping = false
|
||||
thin_lto_enable_cache = false
|
||||
dcheck_always_on = false
|
||||
dcheck_always_on = true
|
||||
exclude_unwind_tables = false
|
||||
enable_iterator_debugging = false
|
||||
disable_fieldtrial_testing_config = true
|
||||
|
@ -22,7 +26,7 @@ enable_profiling = false
|
|||
is_component_build = true
|
||||
symbol_level = 1
|
||||
enable_nacl = false
|
||||
optimize_webui = true
|
||||
optimize_webui = false
|
||||
enable_webui_tab_strip = true
|
||||
is_clang = true
|
||||
treat_warnings_as_errors = false
|
||||
|
@ -36,12 +40,13 @@ v8_enable_fast_torque = true
|
|||
# v8_enable_maglev = true
|
||||
# v8_enable_turbofan = true
|
||||
v8_enable_wasm_simd256_revec = true
|
||||
# use_v8_context_snapshot = true
|
||||
use_v8_context_snapshot = true
|
||||
blink_symbol_level = 0
|
||||
enable_precompiled_headers = false
|
||||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_discovery = true
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
|
@ -78,5 +83,5 @@ use_thin_lto = true
|
|||
thin_lto_enable_optimizations = true
|
||||
enable_rust = true
|
||||
enable_all_rust_features = true
|
||||
# init_stack_vars_zero = true
|
||||
init_stack_vars_zero = false
|
||||
chrome_pgo_phase = 0
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
use_sse3 = true
|
||||
use_sse41 = true
|
||||
use_sse42 = true
|
||||
use_avx = true
|
||||
use_avx = false
|
||||
use_avx2 = false
|
||||
use_avx512 = false
|
||||
use_fma = false
|
||||
|
||||
# use_polly = true
|
||||
# use_bolt = true
|
||||
target_os = "win"
|
||||
target_cpu = "x64"
|
||||
is_official_build = false
|
||||
|
@ -20,16 +22,14 @@ enable_reporting = false
|
|||
enable_resource_allowlist_generation = false
|
||||
enable_profiling = false
|
||||
is_component_build = true
|
||||
symbol_level = 1
|
||||
use_debug_fission = true
|
||||
# use_large_pdbs = true
|
||||
symbol_level = 2
|
||||
enable_nacl = false
|
||||
optimize_webui = false
|
||||
enable_webui_tab_strip = true
|
||||
is_clang = true
|
||||
treat_warnings_as_errors = false
|
||||
# llvm_force_head_revision = true
|
||||
# win_enable_cfg_guards = true
|
||||
win_enable_cfg_guards = true
|
||||
use_lld = true
|
||||
v8_symbol_level = 0
|
||||
v8_enable_fast_torque = true
|
||||
|
@ -38,26 +38,24 @@ v8_enable_fast_torque = true
|
|||
# v8_enable_turbofan = true
|
||||
v8_enable_wasm_simd256_revec = true
|
||||
# use_v8_context_snapshot = true
|
||||
blink_symbol_level = 1
|
||||
blink_symbol_level = 2
|
||||
enable_precompiled_headers = false
|
||||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = false
|
||||
enable_cros_media_app = false
|
||||
enable_discovery = true
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
clang_use_chrome_plugins = false
|
||||
enable_ffmpeg_video_decoders = true
|
||||
is_component_ffmpeg = true
|
||||
is_component_ffmpeg = false
|
||||
use_webaudio_pffft = true
|
||||
enable_library_cdms = true
|
||||
enable_widevine = true
|
||||
bundle_widevine_cdm = false
|
||||
# enable_media_foundation_widevine_cdm = true
|
||||
# enable_cdm_host_verification = true
|
||||
enable_cdm_host_verification = true
|
||||
enable_cdm_storage_id = true
|
||||
enable_widevine_cdm_host_verification = true
|
||||
enable_rlz = true
|
||||
|
@ -67,7 +65,7 @@ enable_hangout_services_extension = false
|
|||
rtc_use_h264 = true
|
||||
rtc_use_h265 = true
|
||||
rtc_include_ilbc = true
|
||||
rtc_build_examples = false
|
||||
rtc_build_examples = true
|
||||
rtc_enable_avx2 = true
|
||||
enable_vr = true
|
||||
enable_platform_hevc = true
|
||||
|
@ -81,9 +79,9 @@ enable_platform_mpeg_h_audio = true
|
|||
enable_platform_dts_audio = true
|
||||
enable_mse_mpeg2ts_stream_parser = true
|
||||
use_text_section_splitting = true
|
||||
use_thin_lto = false
|
||||
thin_lto_enable_optimizations = false
|
||||
use_thin_lto = true
|
||||
thin_lto_enable_optimizations = true
|
||||
enable_rust = true
|
||||
enable_all_rust_features = true
|
||||
# init_stack_vars_zero = true
|
||||
init_stack_vars_zero = false
|
||||
chrome_pgo_phase = 0
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use_sse3 = true
|
||||
use_sse41 = true
|
||||
use_sse42 = true
|
||||
use_avx = true
|
||||
use_avx = false
|
||||
use_avx2 = false
|
||||
use_avx512 = false
|
||||
use_fma = false
|
||||
|
@ -23,15 +23,13 @@ enable_resource_allowlist_generation = false
|
|||
enable_profiling = false
|
||||
is_component_build = true
|
||||
symbol_level = 2
|
||||
use_debug_fission = true
|
||||
# use_large_pdbs = true
|
||||
enable_nacl = false
|
||||
optimize_webui = false
|
||||
enable_webui_tab_strip = true
|
||||
is_clang = true
|
||||
treat_warnings_as_errors = false
|
||||
# llvm_force_head_revision = true
|
||||
# win_enable_cfg_guards = true
|
||||
win_enable_cfg_guards = false
|
||||
use_lld = true
|
||||
v8_symbol_level = 2
|
||||
v8_enable_fast_torque = true
|
||||
|
@ -45,9 +43,7 @@ enable_precompiled_headers = false
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = false
|
||||
enable_cros_media_app = false
|
||||
enable_discovery = true
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
|
@ -69,7 +65,7 @@ enable_hangout_services_extension = false
|
|||
rtc_use_h264 = true
|
||||
rtc_use_h265 = true
|
||||
rtc_include_ilbc = true
|
||||
rtc_build_examples = false
|
||||
rtc_build_examples = true
|
||||
rtc_enable_avx2 = true
|
||||
enable_vr = true
|
||||
enable_platform_hevc = true
|
||||
|
@ -87,5 +83,5 @@ use_thin_lto = false
|
|||
thin_lto_enable_optimizations = false
|
||||
enable_rust = true
|
||||
enable_all_rust_features = true
|
||||
# init_stack_vars_zero = true
|
||||
init_stack_vars_zero = false
|
||||
chrome_pgo_phase = 0
|
||||
|
|
|
@ -25,3 +25,9 @@ use_vr_assets_component = true # Removed upstream
|
|||
enable_widevine_cdm_component = true # Set internally
|
||||
|
||||
visual_studio_version = "2022" # Not needed anymore
|
||||
|
||||
use_large_pdbs = true # Was used in debug builds to allow larger PDB files.
|
||||
|
||||
enable_ink = false # Cannot set to true anyway, without Chrome internal code
|
||||
|
||||
enable_cros_media_app = false # Only for ChromiumOS, was removed from most args.gns, but still enabled for ThoriumOS and in cros_args.gn
|
||||
|
|
2516
infra/args.list
2516
infra/args.list
File diff suppressed because it is too large
Load diff
2712
infra/gn_args.list
2712
infra/gn_args.list
File diff suppressed because it is too large
Load diff
|
@ -46,9 +46,7 @@ enable_precompiled_headers = false
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = true
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
|
|
|
@ -43,15 +43,13 @@ enable_precompiled_headers = false
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = false
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
clang_use_chrome_plugins = true
|
||||
enable_ffmpeg_video_decoders = true
|
||||
is_component_ffmpeg = true
|
||||
is_component_ffmpeg = false
|
||||
use_webaudio_pffft = true
|
||||
enable_library_cdms = true
|
||||
enable_widevine = true
|
||||
|
|
|
@ -46,9 +46,7 @@ enable_precompiled_headers = false
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = true
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
|
|
|
@ -43,15 +43,13 @@ enable_precompiled_headers = false
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = false
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
clang_use_chrome_plugins = true
|
||||
enable_ffmpeg_video_decoders = true
|
||||
is_component_ffmpeg = true
|
||||
is_component_ffmpeg = false
|
||||
use_webaudio_pffft = true
|
||||
enable_library_cdms = true
|
||||
enable_widevine = true
|
||||
|
|
|
@ -24,6 +24,7 @@ enable_resource_allowlist_generation = false
|
|||
enable_profiling = false
|
||||
is_component_build = false
|
||||
symbol_level = 0
|
||||
# use_debug_fission = true
|
||||
enable_nacl = false
|
||||
optimize_webui = true
|
||||
enable_webui_tab_strip = true
|
||||
|
@ -46,8 +47,8 @@ media_use_ffmpeg = true
|
|||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = true
|
||||
enable_cros_media_app = false
|
||||
enable_discovery = true
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
|
|
|
@ -38,9 +38,7 @@ blink_symbol_level = 0
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = true
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
|
|
|
@ -46,9 +46,7 @@ blink_symbol_level = 0
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = true
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
|
|
|
@ -46,9 +46,7 @@ enable_precompiled_headers = false
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = true
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
|
|
|
@ -44,9 +44,7 @@ enable_precompiled_headers = false
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = false
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
|
|
|
@ -46,9 +46,7 @@ enable_precompiled_headers = false
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = true
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
|
|
|
@ -43,9 +43,7 @@ enable_precompiled_headers = false
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = false
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
|
|
|
@ -43,15 +43,13 @@ enable_precompiled_headers = false
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = false
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
clang_use_chrome_plugins = true
|
||||
enable_ffmpeg_video_decoders = true
|
||||
is_component_ffmpeg = true
|
||||
is_component_ffmpeg = false
|
||||
use_webaudio_pffft = true
|
||||
enable_library_cdms = true
|
||||
enable_widevine = true
|
||||
|
|
|
@ -46,9 +46,7 @@ enable_precompiled_headers = false
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = true
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
|
|
86
other/SSE4.1/win32_SSE4.1_args.gn
Normal file
86
other/SSE4.1/win32_SSE4.1_args.gn
Normal file
|
@ -0,0 +1,86 @@
|
|||
use_sse3 = true
|
||||
use_sse41 = true
|
||||
use_sse42 = false
|
||||
use_avx = false
|
||||
use_avx2 = false
|
||||
use_avx512 = false
|
||||
use_fma = false
|
||||
|
||||
# use_polly = true
|
||||
# use_bolt = true
|
||||
target_os = "win"
|
||||
target_cpu = "x86"
|
||||
is_official_build = true
|
||||
is_debug = false
|
||||
enable_stripping = true
|
||||
thin_lto_enable_cache = false
|
||||
dcheck_always_on = false
|
||||
exclude_unwind_tables = true
|
||||
enable_iterator_debugging = false
|
||||
disable_fieldtrial_testing_config = true
|
||||
enable_reporting = false
|
||||
enable_resource_allowlist_generation = false
|
||||
enable_profiling = false
|
||||
is_component_build = false
|
||||
symbol_level = 0
|
||||
enable_nacl = false
|
||||
optimize_webui = true
|
||||
enable_webui_tab_strip = true
|
||||
is_clang = true
|
||||
treat_warnings_as_errors = false
|
||||
# llvm_force_head_revision = true
|
||||
win_enable_cfg_guards = true
|
||||
use_lld = true
|
||||
v8_symbol_level = 0
|
||||
v8_enable_fast_torque = true
|
||||
v8_enable_builtins_optimization = true
|
||||
v8_enable_maglev = false
|
||||
# v8_enable_turbofan = true
|
||||
# v8_enable_wasm_simd256_revec = true
|
||||
# use_v8_context_snapshot = true
|
||||
blink_symbol_level = 0
|
||||
enable_precompiled_headers = false
|
||||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_discovery = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
clang_use_chrome_plugins = true
|
||||
enable_ffmpeg_video_decoders = true
|
||||
is_component_ffmpeg = true
|
||||
use_webaudio_pffft = true
|
||||
enable_library_cdms = true
|
||||
enable_widevine = true
|
||||
bundle_widevine_cdm = true
|
||||
# enable_media_foundation_widevine_cdm = true
|
||||
# enable_cdm_host_verification = true
|
||||
enable_cdm_storage_id = true
|
||||
enable_widevine_cdm_host_verification = true
|
||||
enable_rlz = true
|
||||
ignore_missing_widevine_signing_cert = true
|
||||
enable_media_drm_storage = true
|
||||
enable_hangout_services_extension = false
|
||||
rtc_use_h264 = true
|
||||
rtc_use_h265 = true
|
||||
rtc_include_ilbc = true
|
||||
rtc_build_examples = false
|
||||
rtc_enable_avx2 = false
|
||||
enable_vr = true
|
||||
enable_platform_hevc = true
|
||||
enable_hevc_parser_and_hw_decoder = true
|
||||
platform_has_optional_hevc_support = true
|
||||
enable_platform_ac3_eac3_audio = true
|
||||
enable_platform_ac4_audio = false
|
||||
enable_platform_dolby_vision = true
|
||||
enable_platform_encrypted_dolby_vision = true
|
||||
enable_platform_mpeg_h_audio = true
|
||||
enable_platform_dts_audio = true
|
||||
enable_mse_mpeg2ts_stream_parser = true
|
||||
use_text_section_splitting = true
|
||||
use_thin_lto = true
|
||||
thin_lto_enable_optimizations = true
|
||||
enable_rust = true
|
||||
chrome_pgo_phase = 2
|
||||
pgo_data_path = "/home/alex/chromium/src/chrome/build/pgo_profiles/chrome-win32-6723-1733159130-0850ea7bc8fc57ba02169b0b49e40707e334a1bd-d101f8bd9ceed464c1d066b8bffa18d791485d3e.profdata"
|
|
@ -43,15 +43,13 @@ enable_precompiled_headers = false
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = false
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
clang_use_chrome_plugins = true
|
||||
enable_ffmpeg_video_decoders = true
|
||||
is_component_ffmpeg = true
|
||||
is_component_ffmpeg = false
|
||||
use_webaudio_pffft = true
|
||||
enable_library_cdms = true
|
||||
enable_widevine = true
|
|
@ -46,9 +46,7 @@ enable_precompiled_headers = false
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = true
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
|
|
86
other/SSE4.2/win32_SSE4.2_args.gn
Normal file
86
other/SSE4.2/win32_SSE4.2_args.gn
Normal file
|
@ -0,0 +1,86 @@
|
|||
use_sse3 = true
|
||||
use_sse41 = true
|
||||
use_sse42 = true
|
||||
use_avx = false
|
||||
use_avx2 = false
|
||||
use_avx512 = false
|
||||
use_fma = false
|
||||
|
||||
# use_polly = true
|
||||
# use_bolt = true
|
||||
target_os = "win"
|
||||
target_cpu = "x86"
|
||||
is_official_build = true
|
||||
is_debug = false
|
||||
enable_stripping = true
|
||||
thin_lto_enable_cache = false
|
||||
dcheck_always_on = false
|
||||
exclude_unwind_tables = true
|
||||
enable_iterator_debugging = false
|
||||
disable_fieldtrial_testing_config = true
|
||||
enable_reporting = false
|
||||
enable_resource_allowlist_generation = false
|
||||
enable_profiling = false
|
||||
is_component_build = false
|
||||
symbol_level = 0
|
||||
enable_nacl = false
|
||||
optimize_webui = true
|
||||
enable_webui_tab_strip = true
|
||||
is_clang = true
|
||||
treat_warnings_as_errors = false
|
||||
# llvm_force_head_revision = true
|
||||
win_enable_cfg_guards = true
|
||||
use_lld = true
|
||||
v8_symbol_level = 0
|
||||
v8_enable_fast_torque = true
|
||||
v8_enable_builtins_optimization = true
|
||||
v8_enable_maglev = false
|
||||
# v8_enable_turbofan = true
|
||||
# v8_enable_wasm_simd256_revec = true
|
||||
# use_v8_context_snapshot = true
|
||||
blink_symbol_level = 0
|
||||
enable_precompiled_headers = false
|
||||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_discovery = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
clang_use_chrome_plugins = true
|
||||
enable_ffmpeg_video_decoders = true
|
||||
is_component_ffmpeg = true
|
||||
use_webaudio_pffft = true
|
||||
enable_library_cdms = true
|
||||
enable_widevine = true
|
||||
bundle_widevine_cdm = true
|
||||
# enable_media_foundation_widevine_cdm = true
|
||||
# enable_cdm_host_verification = true
|
||||
enable_cdm_storage_id = true
|
||||
enable_widevine_cdm_host_verification = true
|
||||
enable_rlz = true
|
||||
ignore_missing_widevine_signing_cert = true
|
||||
enable_media_drm_storage = true
|
||||
enable_hangout_services_extension = false
|
||||
rtc_use_h264 = true
|
||||
rtc_use_h265 = true
|
||||
rtc_include_ilbc = true
|
||||
rtc_build_examples = false
|
||||
rtc_enable_avx2 = false
|
||||
enable_vr = true
|
||||
enable_platform_hevc = true
|
||||
enable_hevc_parser_and_hw_decoder = true
|
||||
platform_has_optional_hevc_support = true
|
||||
enable_platform_ac3_eac3_audio = true
|
||||
enable_platform_ac4_audio = false
|
||||
enable_platform_dolby_vision = true
|
||||
enable_platform_encrypted_dolby_vision = true
|
||||
enable_platform_mpeg_h_audio = true
|
||||
enable_platform_dts_audio = true
|
||||
enable_mse_mpeg2ts_stream_parser = true
|
||||
use_text_section_splitting = true
|
||||
use_thin_lto = true
|
||||
thin_lto_enable_optimizations = true
|
||||
enable_rust = true
|
||||
chrome_pgo_phase = 2
|
||||
pgo_data_path = "/home/alex/chromium/src/chrome/build/pgo_profiles/chrome-win32-6723-1733159130-0850ea7bc8fc57ba02169b0b49e40707e334a1bd-d101f8bd9ceed464c1d066b8bffa18d791485d3e.profdata"
|
|
@ -43,15 +43,13 @@ enable_precompiled_headers = false
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = false
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
clang_use_chrome_plugins = true
|
||||
enable_ffmpeg_video_decoders = true
|
||||
is_component_ffmpeg = true
|
||||
is_component_ffmpeg = false
|
||||
use_webaudio_pffft = true
|
||||
enable_library_cdms = true
|
||||
enable_widevine = true
|
|
@ -190,18 +190,6 @@ index fe2ce670da340..82bbda21a16e5 100644
|
|||
// Used by LOG_IS_ON to lazy-evaluate stream arguments.
|
||||
BASE_EXPORT bool ShouldCreateLogMessage(int severity);
|
||||
|
||||
diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn
|
||||
index c9a3ce41465b3..9203ec5c7c75c 100644
|
||||
--- a/build/config/BUILDCONFIG.gn
|
||||
+++ b/build/config/BUILDCONFIG.gn
|
||||
@@ -348,6 +348,7 @@ default_compiler_configs = [
|
||||
"//build/config/compiler:default_optimization",
|
||||
"//build/config/compiler:default_stack_frames",
|
||||
"//build/config/compiler:default_symbols",
|
||||
+ "//build/config/compiler:emit-relocs",
|
||||
"//build/config/compiler:libcxx_hardening",
|
||||
"//build/config/compiler:libcxx_module",
|
||||
"//build/config/compiler:no_exceptions",
|
||||
diff --git a/chrome/browser/extensions/api/messaging/launch_context_win.cc b/chrome/browser/extensions/api/messaging/launch_context_win.cc
|
||||
index b103bbe61303d..469611cb36e7a 100644
|
||||
--- a/chrome/browser/extensions/api/messaging/launch_context_win.cc
|
||||
|
@ -909,30 +897,39 @@ index a35795ee8cc11..60577ba01a5fd 100644
|
|||
TAB_PRE_TITLE_PADDING,
|
||||
|
||||
diff --git a/chrome/browser/ui/omnibox/omnibox_pedal_implementations.cc b/chrome/browser/ui/omnibox/omnibox_pedal_implementations.cc
|
||||
index 3ae6b02a62d64..85c9e9ee1b724 100644
|
||||
index 3ae6b02a62d64..63ef3fc6483fb 100644
|
||||
--- a/chrome/browser/ui/omnibox/omnibox_pedal_implementations.cc
|
||||
+++ b/chrome/browser/ui/omnibox/omnibox_pedal_implementations.cc
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "components/search/search.h"
|
||||
#include "components/strings/grit/components_strings.h"
|
||||
#include "components/vector_icons/vector_icons.h"
|
||||
+#include "ui/base/ui_base_features.h"
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "build/chromeos_buildflags.h"
|
||||
#include "chrome/browser/shell_integration.h"
|
||||
#include "chrome/common/chrome_features.h"
|
||||
+#include "chrome/common/thorium_2024.h"
|
||||
#include "chrome/common/webui_url_constants.h"
|
||||
#include "components/omnibox/browser/actions/omnibox_pedal.h"
|
||||
#include "components/omnibox/browser/autocomplete_input.h"
|
||||
@@ -1972,14 +1973,18 @@ class OmniboxPedalSetChromeAsDefaultBrowser : public OmniboxPedal {
|
||||
// =============================================================================
|
||||
|
||||
#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
|
||||
#include "chrome/app/vector_icons/vector_icons.h"
|
||||
@@ -1977,7 +1978,11 @@ const gfx::VectorIcon& GetSharingHubVectorIcon() {
|
||||
const gfx::VectorIcon& GetSharingHubVectorIcon() {
|
||||
+ const bool thorium_2024 = features::IsThorium2024();
|
||||
#if BUILDFLAG(IS_MAC)
|
||||
return omnibox::kShareMacChromeRefreshIcon;
|
||||
#elif BUILDFLAG(IS_WIN)
|
||||
return omnibox::kShareWinChromeRefreshIcon;
|
||||
- return omnibox::kShareWinChromeRefreshIcon;
|
||||
+ return thorium_2024 ? omnibox::kShareChromeRefreshIcon
|
||||
+ : omnibox::kShareWinChromeRefreshIcon;
|
||||
#elif BUILDFLAG(IS_LINUX)
|
||||
- return omnibox::kShareLinuxChromeRefreshIcon;
|
||||
+ if (features::IsThorium2024()) {
|
||||
+ return omnibox::kShareChromeRefreshIcon;
|
||||
+ } else {
|
||||
+ return omnibox::kShareLinuxChromeRefreshIcon;
|
||||
+ }
|
||||
+ return thorium_2024 ? omnibox::kShareChromeRefreshIcon
|
||||
+ : omnibox::kShareLinuxChromeRefreshIcon;
|
||||
#else
|
||||
return omnibox::kShareChromeRefreshIcon;
|
||||
- return omnibox::kShareChromeRefreshIcon;
|
||||
+ return thorium_2024 ? omnibox::kShareIcon
|
||||
+ : omnibox::kShareChromeRefreshIcon;
|
||||
#endif
|
||||
}
|
||||
|
||||
diff --git a/chrome/browser/ui/status_bubble.h b/chrome/browser/ui/status_bubble.h
|
||||
index 74a00df155806..c8e4a81911d80 100644
|
||||
--- a/chrome/browser/ui/status_bubble.h
|
||||
|
@ -1296,8 +1293,8 @@ index 9cecb25b41d3b..a0662f288a022 100644
|
|||
+ int kBookmarksBarLeadingMarginWithoutSavedTabGroups;
|
||||
+ int kBookmarksBarLeadingMarginWithSavedTabGroups;
|
||||
+ if (features::IsThorium2024()) {
|
||||
+ kBookmarksBarLeadingMarginWithoutSavedTabGroups = 10;
|
||||
+ kBookmarksBarLeadingMarginWithSavedTabGroups = 16;
|
||||
+ kBookmarksBarLeadingMarginWithoutSavedTabGroups = 9;
|
||||
+ kBookmarksBarLeadingMarginWithSavedTabGroups = 15;
|
||||
+ } else {
|
||||
+ kBookmarksBarLeadingMarginWithoutSavedTabGroups = 6;
|
||||
+ kBookmarksBarLeadingMarginWithSavedTabGroups = 12;
|
||||
|
@ -2810,7 +2807,7 @@ index 0a86475f8db19..9d599fa3f880a 100644
|
|||
// GetIconSize() does not work for subpage icons because the default size of
|
||||
// kSubmenuArrowIcon is 8 rather than 16.
|
||||
- constexpr int kIconSize = 20;
|
||||
+ const int kIconSize = features::IsThorium2024() ? 10 : 20;
|
||||
+ const int kIconSize = features::IsThorium2024() ? 9 : 20;
|
||||
return ui::ImageModel::FromVectorIcon(
|
||||
- vector_icons::kSubmenuArrowChromeRefreshIcon, ui::kColorIcon, kIconSize);
|
||||
+ features::IsThorium2024()
|
||||
|
|
|
@ -497,18 +497,18 @@ config("compiler") {
|
|||
cflags += [ "-fPIC" ]
|
||||
ldflags += [ "-fPIC" ]
|
||||
rustflags += [ "-Crelocation-model=pic" ]
|
||||
if (current_cpu == "x86" || current_cpu == "x64") {
|
||||
asmflags += [ "-fno-emulated-tls", "-w", ]
|
||||
cflags += [ "-fno-emulated-tls", "-w", ]
|
||||
ldflags += [ "-Wl,-plugin-opt=-emulated-tls=0", "-w", ]
|
||||
rustflags += [ "-Awarnings", ]
|
||||
}
|
||||
#if (current_cpu == "x86" || current_cpu == "x64") {
|
||||
#asmflags += [ "-fno-emulated-tls", "-w", ]
|
||||
#cflags += [ "-fno-emulated-tls", "-w", ]
|
||||
#ldflags += [ "-Wl,-plugin-opt=-emulated-tls=0", "-w", ]
|
||||
#rustflags += [ "-Awarnings", ]
|
||||
#}
|
||||
|
||||
if (is_clang && chrome_pgo_phase == 2 && !is_android) {
|
||||
asmflags += [ "-fbasic-block-sections=labels" ]
|
||||
cflags += [ "-fbasic-block-sections=labels" ]
|
||||
rustflags += [ "-Cllvm-args=-basic-block-sections=labels" ]
|
||||
}
|
||||
#if (is_clang && chrome_pgo_phase == 2 && !is_android) {
|
||||
#asmflags += [ "-fbasic-block-sections=labels" ]
|
||||
#cflags += [ "-fbasic-block-sections=labels" ]
|
||||
#rustflags += [ "-Cllvm-args=-basic-block-sections=labels" ]
|
||||
#}
|
||||
|
||||
if (!is_clang) {
|
||||
# Use pipes for communicating between sub-processes. Faster.
|
||||
|
@ -560,7 +560,11 @@ config("compiler") {
|
|||
cflags += [ "/Zc:sizedDealloc" ]
|
||||
}
|
||||
} else {
|
||||
cflags += [ "-fsized-deallocation" ]
|
||||
if (is_debug) {
|
||||
cflags += [ "-fno-sized-deallocation" ]
|
||||
} else {
|
||||
cflags += [ "-fsized-deallocation" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -851,7 +855,7 @@ config("compiler") {
|
|||
# arm32.
|
||||
if (!is_android || current_cpu == "arm64") {
|
||||
# Add "-fstrict-vtable-pointers",
|
||||
cflags += [ "-fwhole-program-vtables", ]
|
||||
cflags += [ "-fwhole-program-vtables" ]
|
||||
|
||||
if (toolchain_supports_rust_thin_lto) {
|
||||
# whole-program-vtables implies -fsplit-lto-unit, and Rust needs to match
|
||||
|
@ -867,7 +871,7 @@ config("compiler") {
|
|||
}
|
||||
|
||||
if (!is_win) {
|
||||
ldflags += [ "-fwhole-program-vtables", ]
|
||||
ldflags += [ "-fwhole-program-vtables" ]
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1076,9 +1080,6 @@ config("compiler") {
|
|||
# For deterministic builds, keep the local machine's current working
|
||||
# directory from appearing in build outputs.
|
||||
"-Zremap-cwd-prefix=.",
|
||||
|
||||
# Full RUSTC optimizations.
|
||||
"-Copt-level=3",
|
||||
]
|
||||
|
||||
if (current_cpu == "arm64") {
|
||||
|
@ -3036,45 +3037,6 @@ config("no_optimize") {
|
|||
}
|
||||
}
|
||||
|
||||
# Emit relocations for BOLT
|
||||
config("emit-relocs") {
|
||||
if (!using_sanitizer && use_bolt) {
|
||||
if (is_win) {
|
||||
ldflags = [
|
||||
"-mllvm:--emit-relocs",
|
||||
]
|
||||
} else {
|
||||
ldflags = [
|
||||
"-Wl,--emit-relocs",
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Use LLVM's Polly optimizer
|
||||
config("polly") {
|
||||
if (use_polly == true) {
|
||||
ldflags = common_optimize_on_ldflags
|
||||
if (is_win) {
|
||||
ldflags += [
|
||||
"-mllvm:-polly",
|
||||
"-mllvm:-polly-detect-profitability-min-per-loop-insts=40",
|
||||
#"-mllvm:-polly-invariant-load-hoisting",
|
||||
"-mllvm:-polly-run-dce",
|
||||
"-mllvm:-polly-vectorizer=stripmine",
|
||||
]
|
||||
} else {
|
||||
ldflags += [
|
||||
"-Wl,-mllvm,-polly",
|
||||
"-Wl,-mllvm,-polly-detect-profitability-min-per-loop-insts=40",
|
||||
#"-Wl,-mllvm,-polly-invariant-load-hoisting",
|
||||
"-Wl,-mllvm,-polly-run-dce",
|
||||
"-Wl,-mllvm,-polly-vectorizer=stripmine",
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Turns up the optimization level. Used to explicitly enable -O2 instead of
|
||||
# -Os for select targets on platforms that use optimize_for_size. No-op
|
||||
# elsewhere.
|
||||
|
@ -3105,7 +3067,6 @@ config("optimize_max") {
|
|||
}
|
||||
rustflags = [ "-Copt-level=3", ]
|
||||
}
|
||||
configs = [ ":polly" ]
|
||||
}
|
||||
|
||||
# This config can be used to override the default settings for per-component
|
||||
|
@ -3142,7 +3103,6 @@ config("optimize_speed") {
|
|||
}
|
||||
rustflags = [ "-Copt-level=3", ]
|
||||
}
|
||||
configs = [ ":polly" ]
|
||||
}
|
||||
|
||||
config("optimize_fuzzing") {
|
||||
|
@ -3175,6 +3135,41 @@ config("default_optimization") {
|
|||
}
|
||||
}
|
||||
|
||||
# Emit relocations for BOLT
|
||||
config("emit-relocs") {
|
||||
if (!using_sanitizer && use_bolt) {
|
||||
if (is_win) {
|
||||
ldflags = [ "-mllvm:--emit-relocs", ]
|
||||
} else {
|
||||
ldflags = [ "-Wl,--emit-relocs", ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Use LLVM's Polly optimizer
|
||||
config("polly") {
|
||||
if (use_polly == true) {
|
||||
ldflags = common_optimize_on_ldflags
|
||||
if (is_win) {
|
||||
ldflags += [
|
||||
"-mllvm:-polly",
|
||||
"-mllvm:-polly-detect-profitability-min-per-loop-insts=40",
|
||||
#"-mllvm:-polly-invariant-load-hoisting",
|
||||
"-mllvm:-polly-run-dce",
|
||||
"-mllvm:-polly-vectorizer=stripmine",
|
||||
]
|
||||
} else {
|
||||
ldflags += [
|
||||
"-Wl,-mllvm,-polly",
|
||||
"-Wl,-mllvm,-polly-detect-profitability-min-per-loop-insts=40",
|
||||
#"-Wl,-mllvm,-polly-invariant-load-hoisting",
|
||||
"-Wl,-mllvm,-polly-run-dce",
|
||||
"-Wl,-mllvm,-polly-vectorizer=stripmine",
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_clang_sample_profile = ""
|
||||
if (is_clang && is_a_target_toolchain) {
|
||||
if (clang_sample_profile_path != "") {
|
||||
|
|
|
@ -5,7 +5,15 @@
|
|||
## For information about compiler flags and optimizations
|
||||
## that this uses, see https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html
|
||||
|
||||
import("//build/config/compiler/compiler.gni")
|
||||
|
||||
declare_args() {
|
||||
## General Optimization settings
|
||||
## For LLVM or OS specific stuff
|
||||
|
||||
# Turn this on to have compiler optimization turned up to the max.
|
||||
# Such as using -O3 instead of -O2 for CFLAGS.
|
||||
is_full_optimization_build = is_official_build
|
||||
|
||||
# Whether to use Raspberry Pi specific optimizations.
|
||||
is_raspi = false
|
||||
|
@ -17,15 +25,16 @@ declare_args() {
|
|||
# Whether to enable LLVM's BOLT optimizations.
|
||||
# See https://github.com/llvm/llvm-project/blob/main/bolt/README.md
|
||||
use_bolt = false
|
||||
}
|
||||
|
||||
# SIMD compiler optimization flags
|
||||
# Propagated to //build/config/* to allow controlling
|
||||
# x86_64 SIMD optimization levels. This was done to refactor
|
||||
# multiple BUILD.gn file into one copy of each.
|
||||
|
||||
# Flags are not cumulative, so for example, for an AVX build you
|
||||
# would want to turn on use_sse3, use_sse41, use_sse42 too. For AVX2
|
||||
# you would add use_avx, etc.
|
||||
declare_args() {
|
||||
## SIMD compiler optimization flags
|
||||
## Propagated to //build/config/* to allow controlling
|
||||
## x86_64 SIMD optimization levels. This was done to refactor
|
||||
## multiple BUILD.gn file into one copy of each.
|
||||
## Flags are not cumulative, so for example, for an AVX build you
|
||||
## would want to turn on use_sse3, use_sse41, use_sse42 too. For AVX2
|
||||
## you would add use_avx, etc.
|
||||
|
||||
# SSE2
|
||||
# Normal x64 compiler baseline, present since Willamette (Original
|
||||
|
@ -98,6 +107,7 @@ declare_args() {
|
|||
}
|
||||
|
||||
if (is_debug) {
|
||||
assert(!is_full_optimization_build, "is_full_optimization_build only works with non-debug builds")
|
||||
assert(!use_polly, "use_polly only works with non-debug builds")
|
||||
assert(!use_bolt, "use_bolt only works with non-debug builds")
|
||||
}
|
||||
|
@ -112,11 +122,15 @@ if (use_fma) {
|
|||
assert(current_cpu != "x86" && current_cpu != "arm", "use_fma is true. FMA only works for 64 bit CPU architectures.")
|
||||
}
|
||||
|
||||
if ((use_avx || use_avx2 || use_avx512 || use_fma) && is_debug || symbol_level == "2") {
|
||||
print("WARNING: Using AVX with debug builds is known to cause undefined symbol: FallbackCrcMemcpyEngine linker errors.")
|
||||
}
|
||||
|
||||
# 32 Bit OSes cant use anything above SSE4.2, and 32 Bit Apps can't benefit
|
||||
# from anything higher usually.
|
||||
if (use_avx || use_avx2 || use_fma) {
|
||||
assert(current_cpu == "x64", "AVX, AVX2, and FMA require x64. current_cpu is x86")
|
||||
assert(target_cpu != "x86", "AVX, AVX2, and FMA require x64. Set target_cpu to x64")
|
||||
if (use_avx || use_avx2 || use_avx512 || use_fma) {
|
||||
assert(current_cpu == "x64", "AVX, AVX2, AVX-512, or FMA require x64. current_cpu is x86")
|
||||
assert(target_cpu != "x86", "AVX, AVX2, AVX-512, or FMA require x64. Set target_cpu to x64")
|
||||
}
|
||||
|
||||
# AVX2 should always have FMA, however, there are times one might want
|
||||
|
@ -135,7 +149,7 @@ if (use_avx512 && !use_fma) {
|
|||
print("")
|
||||
}
|
||||
|
||||
# Not a normal configuration, that normally means a mistake was made configuring
|
||||
# Not a normal configuration, that usually means a mistake was made configuring
|
||||
# your args. However, there are a few CPUs out there for which this makes sense.
|
||||
# Alex313031 TODO: Maybe add -mfma3 -mfma4 for this config?
|
||||
if (!use_avx2 && use_fma) {
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
#include "chrome/browser/download/bubble/download_bubble_prefs.h"
|
||||
|
||||
#include "base/command_line.h"
|
||||
#include "base/feature_list.h"
|
||||
#include "build/chromeos_buildflags.h"
|
||||
#include "chrome/browser/download/download_core_service.h"
|
||||
|
@ -24,7 +23,7 @@ bool IsDownloadBubbleEnabled() {
|
|||
#if BUILDFLAG(IS_CHROMEOS_ASH)
|
||||
return false;
|
||||
#else
|
||||
if (features::DownloadShelf) {
|
||||
if (features::DownloadShelf()) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
|
|
|
@ -43,15 +43,13 @@ enable_precompiled_headers = false
|
|||
media_use_ffmpeg = true
|
||||
media_use_libvpx = true
|
||||
enable_hls_demuxer = true
|
||||
enable_ink = false
|
||||
enable_discovery = false
|
||||
enable_cros_media_app = false
|
||||
proprietary_codecs = true
|
||||
ffmpeg_branding = "Chrome"
|
||||
# Set to false for Polly build
|
||||
clang_use_chrome_plugins = true
|
||||
enable_ffmpeg_video_decoders = true
|
||||
is_component_ffmpeg = true
|
||||
is_component_ffmpeg = false
|
||||
use_webaudio_pffft = true
|
||||
enable_library_cdms = true
|
||||
enable_widevine = true
|
||||
|
|
Loading…
Reference in a new issue