Rebuilding libchrome.X.so for a particular android release

196 views
Skip to first unread message

vaza

unread,
Jan 6, 2015, 4:24:46 PM1/6/15
to chromi...@chromium.org
Hi,

Is there a way to build libchrome so file for a particular Chrome for android release?
This was possible for libchromeview.so before it was changed to libchrome but I couldn't find any information about the way to achieve the same thing for libchrome so.

Thanks in advance,
Vaza


Tommy Nyquist

unread,
Jan 6, 2015, 4:38:00 PM1/6/15
to vaz...@gmail.com, chromi...@chromium.org
I updated the web page to list libchrome.so instead of libchromeview.so in the header.

Have you tried following the instructions on the web page and in the README-file you get?

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

vaza

unread,
Jan 7, 2015, 5:17:45 PM1/7/15
to chromi...@chromium.org, vaz...@gmail.com
I didn't copy the build-id properly from the browser so i didn't get to the right page with prebuilt a files - leading me to think that moving from libchromeview to libchrome somehow made it impossible to rebuild libchrome for a specific build.

it is worth mentioning that in order to properly being able to build libchrome, the gyp_config command line should be:
GYP_DEFINES="$GYP_DEFINES OS=android libpeer_target_type=loadable_module arch=arm host_os=linux" CHROMIUM_GYP_FILE="chrome-android-prebuilts/libchromeview.gyp" build/gyp_chromium

not adding the bold parts returns error while trying to find chrome_android_core target inside chrome.gyp. Consider adding this to the README file.

Thanks again,
Vaza

Tommy Nyquist

unread,
Jan 13, 2015, 1:44:33 PM1/13/15
to vaz...@gmail.com, chromi...@chromium.org
I believe that part of the setup is already described at the top of the AndroidBuildInstructions.

vaza

unread,
Jan 14, 2015, 4:14:17 PM1/14/15
to chromi...@chromium.org, vaz...@gmail.com
The instructions only tell you to set the OS to android. Not setting the arch to arm and host_os to linux will cause build/gyp_chromium script to fail finding chrome_android_core target.

Torne (Richard Coles)

unread,
Jan 14, 2015, 5:35:42 PM1/14/15
to vaz...@gmail.com, Chromium-dev

Arm is the default architecture on android and host OS is supposed to be detected, so neither of these settings should be required (and aren't required for other users), so maybe you did something else wrong? Or maybe we have a bug somewhere..

vaza

unread,
Jan 21, 2015, 5:23:59 AM1/21/15
to chromi...@chromium.org, vaz...@gmail.com
I'm using Ubuntu 12.04 and followed all the instructions.
Which scripts sets host_os and arch? I can verify if these vars were set properly.

Torne (Richard Coles)

unread,
Jan 21, 2015, 6:20:23 AM1/21/15
to vaz...@gmail.com, chromi...@chromium.org
They aren't set by a script; they are set inside the gyp files as default values if a value was not set in the environment/command line parameters/etc.
Reply all
Reply to author
Forward
0 new messages