I want to have a Chromium core in my app, but the libchrome.so is about 50M, It is too big. How can I reduce the size? Can any body share me the args.gn file?
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/a1530490-b76e-4d06-8488-992d23dd5355%40chromium.org.
target_os = "android"target_cpu = "arm"is_official_build = trueis_debug = falsesymbol_level = 0enable_nacl = falseproprietary_codecs = trueffmpeg_branding = "Chrome"remove_webcore_debug_symbols = true--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/aeca393e-2589-4048-a08e-e7f7e89de914%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CABdZ6yAd0tsGGGkefY3ErYA9%2Bpn_Q_cOhX69egZWep_ia0nWVw%40mail.gmail.com.
I want to have a Chromium core in my app, but the libchrome.so is about 50M, It is too big. How can I reduce the size? Can any body share me the args.gn file?
$ du -h libchrome.so47M libchrome.so
$ readelf -WS libchrome.soThere are 30 section headers, starting at offset 0x2ed6c08:
Section Headers: [Nr] Name Type Addr Off Size ES Flg Lk Inf Al [ 0] NULL 00000000 000000 000000 00 0 0 0 [ 1] .interp PROGBITS 00000174 000174 000013 00 A 0 0 1 [ 2] .note.gnu.build-id NOTE 00000188 000188 000024 00 A 0 0 4 [ 3] .dynsym DYNSYM 000001ac 0001ac 001960 10 A 4 1 4 [ 4] .dynstr STRTAB 00001b0c 001b0c 000fb9 00 A 0 0 1 [ 5] .hash HASH 00002ac8 002ac8 000a7c 04 A 3 0 4 [ 6] .gnu.version VERSYM 00003544 003544 00032c 02 A 3 0 2 [ 7] .gnu.version_d VERDEF 00003870 003870 00001c 00 A 4 1 4 [ 8] .gnu.version_r VERNEED 0000388c 00388c 000060 00 A 4 3 4 [ 9] .rel.dyn REL 000038ec 0038ec 28b1d0 08 A 3 0 4 [10] .rel.plt REL 0028eabc 28eabc 000b00 08 AI 3 11 4 [11] .plt PROGBITS 0028f5bc 28f5bc 001094 00 AX 0 0 4 [12] .text PROGBITS 00290680 290680 22e0584 00 AX 0 0 64 [13] .ARM.exidx ARM_EXIDX 02570c04 2570c04 1753b8 08 AL 12 0 4 [14] .ARM.extab PROGBITS 026e5fbc 26e5fbc 02d308 00 A 0 0 4 [15] .rodata PROGBITS 02713300 2713300 5d8234 00 A 0 0 256 [16] .eh_frame PROGBITS 02ceb534 2ceb534 00002c 00 A 0 0 4 [17] .eh_frame_hdr PROGBITS 02ceb560 2ceb560 000014 00 A 0 0 4 [18] .data.rel.ro.local PROGBITS 02cec890 2ceb890 0c1a98 00 WA 0 0 16 [19] .data.rel.ro PROGBITS 02dae330 2dad330 1042c8 00 WA 0 0 16 [20] .init_array INIT_ARRAY 02eb25f8 2eb15f8 0000e4 00 WA 0 0▽4 [21] .fini_array FINI_ARRAY 02eb26dc 2eb16dc 000008 00 WA 0 0 4 [22] .dynamic DYNAMIC 02eb26e4 2eb16e4 000130 08 WA 4 0 4 [23] .got PROGBITS 02eb2820 2eb1820 00b7e0 00 WA 0 0 4 [24] .data PROGBITS 02ebe000 2ebd000 0199f8 00 WA 0 0 32 [25] .bss NOBITS 02ed7a00 2ed69f8 1d6c68 00 WA 0 0 32 [26] .comment PROGBITS 00000000 2ed69f8 00007f 01 MS 0 0 1 [27] .note.gnu.gold-version NOTE 00000000 2ed6a78 00001c 00 0 0 4 [28] .ARM.attributes ARM_ATTRIBUTES 00000000 2ed6a94 00003c 00 0 0 1 [29] .shstrtab STRTAB 00000000 2ed6ad0 000136 00 0 0 1Key to Flags: W (write), A (alloc), X (execute), M (merge), S (strings) I (info), L (link order), G (group), T (TLS), E (exclude), x (unknown) O (extra OS processing required) o (OS specific), p (processor specific)$ du -h libchrome.so47M libchrome.so
$ readelf -WS libchrome.soThere are 28 section headers, starting at offset 0x2ed6bf0:
Section Headers: [Nr] Name Type Addr Off Size ES Flg Lk Inf Al [ 0] NULL 00000000 000000 000000 00 0 0 0 [ 1] .interp PROGBITS 00000154 000154 000013 00 A 0 0 1 [ 2] .note.gnu.build-id NOTE 00000168 000168 000024 00 A 0 0 4 [ 3] .dynsym DYNSYM 0000018c 00018c 001960 10 A 4 1 4 [ 4] .dynstr STRTAB 00001aec 001aec 000fb9 00 A 0 0 1 [ 5] .hash HASH 00002aa8 002aa8 000a7c 04 A 3 0 4 [ 6] .gnu.version VERSYM 00003524 003524 00032c 02 A 3 0 2 [ 7] .gnu.version_d VERDEF 00003850 003850 00001c 00 A 4 1 4 [ 8] .gnu.version_r VERNEED 0000386c 00386c 000060 00 A 4 3 4 [ 9] .rel.dyn REL 000038cc 0038cc 28b1d0 08 A 3 0 4 [10] .rel.plt REL 0028ea9c 28ea9c 000b00 08 AI 3 11 4 [11] .plt PROGBITS 0028f59c 28f59c 001094 00 AX 0 0 4 [12] .text PROGBITS 00290640 290640 22e0544 00 AX 0 0 64 [13] .ARM.exidx ARM_EXIDX 02570b84 2570b84 1753b8 08 AL 12 0 4 [14] .ARM.extab PROGBITS 026e5f3c 26e5f3c 02d308 00 A 0 0 4 [15] .rodata PROGBITS 02713300 2713300 5d8234 00 A 0 0 256 [16] .data.rel.ro.local PROGBITS 02cec890 2ceb890 0c1a98 00 WA 0 0 16 [17] .data.rel.ro PROGBITS 02dae330 2dad330 1042c8 00 WA 0 0 16 [18] .init_array INIT_ARRAY 02eb25f8 2eb15f8 0000e4 00 WA 0 0 4 [19] .fini_array FINI_ARRAY 02eb26dc 2eb16dc 000008 00 WA 0 0 4 [20] .dynamic DYNAMIC 02eb26e4 2eb16e4 000130 08 WA 4 0 4 [21] .got PROGBITS 02eb2820 2eb1820 00b7e0 00 WA 0 0 4 [22] .data PROGBITS 02ebe000 2ebd000 0199f8 00 WA 0 0 32 [23] .bss NOBITS 02ed7a00 2ed69f8 1d6c68 00 WA 0 0 32 [24] .comment PROGBITS 00000000 2ed69f8 00007f 01 MS 0 0 1 [25] .note.gnu.gold-version NOTE 00000000 2ed6a78 00001c 00 0 0 4 [26] .ARM.attributes ARM_ATTRIBUTES 00000000 2ed6a94 00003c 00 0 0 1 [27] .shstrtab STRTAB 00000000 2ed6ad0 00011e 00 0 0 1Key to Flags: W (write), A (alloc), X (execute), M (merge), S (strings) I (info), L (link order), G (group), T (TLS), E (exclude), x (unknown) O (extra OS processing required) o (OS specific), p (processor specific)--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/68c14e7f-dce0-4c23-97c1-dae5472b7650%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CA%2ByH71eKW0GOya%2B9OjJGHHDOSkertypiH2TziFEpo7rbZpc9Yg%40mail.gmail.com.