Last active
September 17, 2018 19:58
-
-
Save sadjad/883eb303f32aa9776ab7f44594aa1df2 to your computer and use it in GitHub Desktop.
Building chromium-browser package with gg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff a/debian/rules b/debian/rules | |
--- a/debian/rules | |
+++ b/debian/rules | |
@@ -55,7 +55,7 @@ | |
enable_mdns=true \ | |
enable_nacl=false \ | |
enable_wayland_server=false \ | |
- enable_widevine=true \ | |
+ enable_widevine=false \ | |
fieldtrial_testing_like_official_build=true \ | |
is_component_build=false \ | |
is_component_ffmpeg=true \ | |
@@ -63,7 +63,7 @@ | |
is_desktop_linux=true \ | |
is_official_build=true \ | |
remove_webcore_debug_symbols=true \ | |
- symbol_level=1 \ | |
+ symbol_level=0 \ | |
treat_warnings_as_errors=false \ | |
use_allocator="none" \ | |
use_alsa=true \ | |
@@ -81,7 +81,7 @@ | |
use_system_libjpeg=false \ | |
rtc_enable_protobuf=false \ | |
rtc_use_h264=true \ | |
- is_clang=true \ | |
+ is_clang=false \ | |
clang_base_path="/usr" \ | |
clang_use_chrome_plugins=false \ | |
use_lld=false \ | |
@@ -90,7 +90,8 @@ | |
fatal_linker_warnings=false \ | |
target_os="linux" \ | |
current_os="linux" \ | |
- optimize_webui=false | |
+ optimize_webui=false \ | |
+ linux_use_bundled_binutils=false | |
ffmpeg_std_defines += proprietary_codecs=false | |
ffmpeg_extra_defines += proprietary_codecs=true ffmpeg_branding="Chrome" | |
-- | |
2.17.1 | |
diff a/components/bookmarks/browser/bookmark_storage.h b/components/bookmarks/browser/bookmark_storage.h | |
--- a/components/bookmarks/browser/bookmark_storage.h | |
+++ b/components/bookmarks/browser/bookmark_storage.h | |
@@ -20,6 +20,7 @@ | |
#include "base/memory/weak_ptr.h" | |
#include "components/bookmarks/browser/bookmark_node.h" | |
#include "components/bookmarks/browser/titled_url_index.h" | |
+#include "components/bookmarks/browser/url_index.h" | |
namespace base { | |
class SequencedTaskRunner; | |
-- | |
2.17.1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get build-dep chromium-browser | |
cd chromium-browser-* | |
# patch | |
patch -p1 <gcc.patch | |
# configure | |
dh_testdir -a | |
dh_update_autotools_config -a | |
debian/rules override_dh_auto_configure | |
# build | |
cd out/Release | |
gg-init | |
# tools | |
TARGETS="torque genmacro genperf genversion genmodule genstring re2c \ | |
character_data_generator transport_security_state_generator protoc \ | |
protoc_plugin brotli flatc top_domain_generator" | |
gg-infer ninja ${TARGETS} | |
gg-force ${TARGETS} | |
# mksnapshot & yasm | |
TARGETS="mksnapshot yasm" | |
gg-infer ninja ${TARGETS} | |
gg-force ${TARGETS} | |
# v8_context_snapshot_generator | |
gg-infer ninja v8_context_snapshot_generator | |
gg-force v8_context_snapshot_generator *.so | |
# chrome | |
gg-infer ninja chrome | |
gg-force chrome |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment