Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Issue 9693042: Chrome on Android: fix cross-compilation setup. (Closed)

Created:
8 years, 9 months ago by bulach
Modified:
8 years, 9 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Chrome on Android: fix cross-compilation setup. This patch removes the need of exporting / setting CROSS_C* variables when calling make for android. Instead, set them at Makefile generation time so that gyp will set the right compilers when calling android_gyp. This also allows goma builds. BUG= TEST=builds for android. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=127667

Patch Set 1 #

Total comments: 2

Patch Set 2 : Peter's comments #

Total comments: 4

Patch Set 3 : Removes old_make, firstword #

Patch Set 4 : Fix expansion #

Total comments: 8

Patch Set 5 : Ami's comments. #

Patch Set 6 : Fix re-gyp #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -37 lines) Patch
M build/android/buildbot_functions.sh View 1 2 3 4 5 2 chunks +4 lines, -24 lines 0 comments Download
M build/android/envsetup.sh View 1 2 3 4 5 1 chunk +12 lines, -11 lines 1 comment Download
M build/common.gypi View 1 2 3 4 5 3 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
bulach
I tried locally with both regular make and goma and it worked fine for me. ...
8 years, 9 months ago (2012-03-13 14:32:24 UTC) #1
Peter Beverloo
I'm getting this to work with WebKit right now. http://codereview.chromium.org/9693042/diff/1/build/android/envsetup.sh File build/android/envsetup.sh (right): http://codereview.chromium.org/9693042/diff/1/build/android/envsetup.sh#newcode77 build/android/envsetup.sh:77: ...
8 years, 9 months ago (2012-03-13 14:58:59 UTC) #2
bulach
8 years, 9 months ago (2012-03-13 15:11:44 UTC) #3
bulach
http://codereview.chromium.org/9693042/diff/1/build/android/envsetup.sh File build/android/envsetup.sh (right): http://codereview.chromium.org/9693042/diff/1/build/android/envsetup.sh#newcode77 build/android/envsetup.sh:77: LIBGCC_FILE_NAME=`${ANDROID_TOOLCHAIN}/arm-linux-androideabi-gcc \ On 2012/03/13 14:58:59, Peter Beverloo wrote: > ...
8 years, 9 months ago (2012-03-13 15:12:09 UTC) #4
Peter Beverloo
LGTM, but deferring to jrg/yfriedman for final judgement. This works well with WebKit when used ...
8 years, 9 months ago (2012-03-13 16:23:08 UTC) #5
Yaron
Ami, Any advice on how to do this better? This works, but you have to ...
8 years, 9 months ago (2012-03-13 16:51:37 UTC) #6
Yaron
Adding the right email address..
8 years, 9 months ago (2012-03-13 16:52:24 UTC) #7
John Grabowski
LGTM!
8 years, 9 months ago (2012-03-13 18:55:30 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/9693042/4
8 years, 9 months ago (2012-03-13 19:04:08 UTC) #9
Ami GONE FROM CHROMIUM
drive-by Yaron: not sure what you mean by the "CrOS setup." I build using http://code.google.com/p/chromium/wiki/LinuxChromiumArm?#Recipe1:_Building_for_an_ARM_CrOS_device ...
8 years, 9 months ago (2012-03-13 19:18:31 UTC) #10
commit-bot: I haz the power
Try job failure for 9693042-4 (retry) (previous was lost) (previous was lost) on android for ...
8 years, 9 months ago (2012-03-14 03:12:58 UTC) #11
bulach
thanks all! apologies for having leftover comments, all addressed now... the latest patch also further ...
8 years, 9 months ago (2012-03-14 12:59:40 UTC) #12
Ami GONE FROM CHROMIUM
http://codereview.chromium.org/9693042/diff/10006/build/android/buildbot_functions.sh File build/android/buildbot_functions.sh (right): http://codereview.chromium.org/9693042/diff/10006/build/android/buildbot_functions.sh#newcode133 build/android/buildbot_functions.sh:133: # PATH=$GOMA_DIR make -j${JOBS} "$@" s/R/R:$PATH/ http://codereview.chromium.org/9693042/diff/10006/build/android/envsetup.sh File build/android/envsetup.sh ...
8 years, 9 months ago (2012-03-14 17:13:18 UTC) #13
bulach
thanks Ami! I clarified a few items below, please let me know your thoughts: http://codereview.chromium.org/9693042/diff/10006/build/android/buildbot_functions.sh ...
8 years, 9 months ago (2012-03-14 17:36:42 UTC) #14
Ami GONE FROM CHROMIUM
http://codereview.chromium.org/9693042/diff/10006/build/android/envsetup.sh File build/android/envsetup.sh (right): http://codereview.chromium.org/9693042/diff/10006/build/android/envsetup.sh#newcode84 build/android/envsetup.sh:84: CROSS_CC="$GOMA_DIR/gomacc ${ANDROID_TOOLCHAIN}/*-gcc" \ On 2012/03/14 17:36:43, bulach wrote: > ...
8 years, 9 months ago (2012-03-14 17:57:54 UTC) #15
bulach
thanks Ami! more inline, torne@ can provide more details: http://codereview.chromium.org/9693042/diff/10006/build/android/envsetup.sh File build/android/envsetup.sh (right): http://codereview.chromium.org/9693042/diff/10006/build/android/envsetup.sh#newcode84 build/android/envsetup.sh:84: ...
8 years, 9 months ago (2012-03-14 18:28:31 UTC) #16
Ami GONE FROM CHROMIUM
> > going forward with the android > unification and other build systems, we want ...
8 years, 9 months ago (2012-03-14 19:43:00 UTC) #17
bulach
On 2012/03/14 19:43:00, Ami Fischman wrote: > > > > going forward with the android ...
8 years, 9 months ago (2012-03-14 20:04:06 UTC) #18
Ami GONE FROM CHROMIUM
> > my understanding from that page is that the CXX_target and other *_target > ...
8 years, 9 months ago (2012-03-14 20:09:34 UTC) #19
bulach
Hi Ami, first of all, thanks for your patience, really appreciate! I think I'm still ...
8 years, 9 months ago (2012-03-15 10:35:59 UTC) #20
torne_google.com
On 15 March 2012 10:35, <bulach@chromium.org> wrote: > Hi Ami, > > first of all, ...
8 years, 9 months ago (2012-03-15 10:45:39 UTC) #21
Ami GONE FROM CHROMIUM
I was wrong in thinking that make.py baked CC/CXX/etc into Makefile the way ninja.py bakes ...
8 years, 9 months ago (2012-03-15 16:44:38 UTC) #22
bulach
thanks Ami! I think we're in the same page now... :) it'd be great for ...
8 years, 9 months ago (2012-03-15 16:51:17 UTC) #23
Ami GONE FROM CHROMIUM
On 2012/03/15 16:51:17, bulach wrote: > any advise on how to proceed? should I go ...
8 years, 9 months ago (2012-03-15 16:59:27 UTC) #24
Ami GONE FROM CHROMIUM
> I can't choose for your users. To be clear, I didn't mean to be ...
8 years, 9 months ago (2012-03-15 17:00:17 UTC) #25
bulach
thanks ami! I'll defer the final decision to jrg@, yaron@ and torne@ then: please, take ...
8 years, 9 months ago (2012-03-15 17:33:32 UTC) #26
John Grabowski
Were I to make a "final" decision, it is LGTM. We live in an imperfect ...
8 years, 9 months ago (2012-03-16 04:23:35 UTC) #27
bulach
Trying to make two johns happy at once :) jknotten also complained about the re-gyp ...
8 years, 9 months ago (2012-03-16 16:57:20 UTC) #28
Peter Beverloo
Still LGTM (but once agian, deferring to jrg). Verified that this works well with WebKit ...
8 years, 9 months ago (2012-03-16 17:31:33 UTC) #29
John Grabowski
Still LGTM Let me know when all this is landed; don't want to try and ...
8 years, 9 months ago (2012-03-19 21:08:05 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/9693042/12008
8 years, 9 months ago (2012-03-20 08:30:33 UTC) #31
commit-bot: I haz the power
8 years, 9 months ago (2012-03-20 10:45:28 UTC) #32
Change committed as 127667

Powered by Google App Engine
This is Rietveld 408576698