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

Issue 235883015: Generate tests/Android.mk from gyp (Closed)

Created:
6 years, 8 months ago by scroggo
Modified:
6 years, 7 months ago
Reviewers:
hal.canary, djsollen, epoger
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@generate
Visibility:
Public.

Description

Generate tests/Android.mk from gyp gyp/apptype_console.gypi: Don't include console app dependencies when building for Android framework. gyp/tests.gyp: Add/remove libraries for framework build. platform_tools/android/bin/android_framework_gyp.py: Moved to gyp_gen. clean_up_gypd_files moved to this script. platform_tools/android/bin/gyp_to_android.py: Call new function for generating tool makefile. Set LOCAL_MODULE. platform_tools/android/gyp_gen/gypd_parser.py: Support relative paths. platform_tools/android/gyp_gen/makefile_writer.py: Factor out helper functions to be used by tool writer. LOCAL_MODULE is set elsewhere. platform_tools/android/gyp_gen/tool_makefile_writer.py: Multipurpose file for writing makefiles for tools. Should be able to use it mostly unchanged for bench, gm, etc. platform_tools/android/gyp_gen/vars_dict_lib.py: Make the comments follow the style guide. Add set(). Rename __li to __ordered_set More/update tests: platform_tools/android/tests/android_framework_gyp_tests.py platform_tools/android/tests/expectations/Android.mk platform_tools/android/tests/expectations/tool/Android.mk platform_tools/android/tests/expectations/write_local_vars_append_arm platform_tools/android/tests/expectations/write_local_vars_append_foo platform_tools/android/tests/expectations/write_local_vars_append_no_name platform_tools/android/tests/expectations/write_local_vars_no_append_arm platform_tools/android/tests/expectations/write_local_vars_no_append_foo platform_tools/android/tests/expectations/write_local_vars_no_append_no_name platform_tools/android/tests/gyp_to_android_tests.py platform_tools/android/tests/makefile_writer_tests.py platform_tools/android/tests/ordered_set_tests.py platform_tools/android/tests/test_variables.py BUG=skia:2447 May require an update to the bot to remove pyc files. Committed: http://code.google.com/p/skia/source/detail?r=14408

Patch Set 1 #

Total comments: 6

Patch Set 2 : Respond to comments. #

Patch Set 3 : Remove Android.mk/SkUserConfig.h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+533 lines, -342 lines) Patch
M gyp/apptype_console.gypi View 1 chunk +1 line, -1 line 0 comments Download
M gyp/tests.gyp View 1 1 chunk +10 lines, -0 lines 0 comments Download
D platform_tools/android/bin/android_framework_gyp.py View 1 chunk +0 lines, -87 lines 0 comments Download
M platform_tools/android/bin/gyp_to_android.py View 4 chunks +46 lines, -32 lines 0 comments Download
A + platform_tools/android/gyp_gen/android_framework_gyp.py View 3 chunks +26 lines, -10 lines 0 comments Download
M platform_tools/android/gyp_gen/gypd_parser.py View 1 5 chunks +61 lines, -31 lines 0 comments Download
M platform_tools/android/gyp_gen/makefile_writer.py View 5 chunks +63 lines, -44 lines 0 comments Download
A platform_tools/android/gyp_gen/tool_makefile_writer.py View 1 chunk +92 lines, -0 lines 0 comments Download
M platform_tools/android/gyp_gen/vars_dict_lib.py View 4 chunks +61 lines, -39 lines 0 comments Download
A + platform_tools/android/tests/android_framework_gyp_tests.py View 3 chunks +9 lines, -32 lines 0 comments Download
M platform_tools/android/tests/expectations/Android.mk View 4 chunks +19 lines, -5 lines 0 comments Download
A platform_tools/android/tests/expectations/tool/Android.mk View 1 chunk +41 lines, -0 lines 0 comments Download
M platform_tools/android/tests/expectations/write_local_vars_append_arm View 1 chunk +6 lines, -0 lines 0 comments Download
M platform_tools/android/tests/expectations/write_local_vars_append_foo View 1 chunk +6 lines, -0 lines 0 comments Download
M platform_tools/android/tests/expectations/write_local_vars_append_no_name View 1 chunk +6 lines, -0 lines 0 comments Download
M platform_tools/android/tests/expectations/write_local_vars_no_append_arm View 1 chunk +6 lines, -0 lines 0 comments Download
M platform_tools/android/tests/expectations/write_local_vars_no_append_foo View 1 chunk +6 lines, -0 lines 0 comments Download
M platform_tools/android/tests/expectations/write_local_vars_no_append_no_name View 1 chunk +6 lines, -0 lines 0 comments Download
M platform_tools/android/tests/gyp_to_android_tests.py View 2 chunks +9 lines, -58 lines 0 comments Download
M platform_tools/android/tests/makefile_writer_tests.py View 4 chunks +24 lines, -1 line 0 comments Download
M platform_tools/android/tests/ordered_set_tests.py View 2 chunks +33 lines, -2 lines 0 comments Download
M platform_tools/android/tests/test_variables.py View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
scroggo
https://codereview.chromium.org/235883015/diff/100001/Android.mk File Android.mk (left): https://codereview.chromium.org/235883015/diff/100001/Android.mk#oldcode661 Android.mk:661: # TODO include those sources! These are included in ...
6 years, 8 months ago (2014-04-25 22:10:55 UTC) #1
djsollen
just one comment and I'll let someone else review the python code. If putting a ...
6 years, 7 months ago (2014-04-28 13:52:22 UTC) #2
scroggo
On 2014/04/28 13:52:22, djsollen wrote: > If putting a *.a file in gyp translates to ...
6 years, 7 months ago (2014-04-28 14:37:24 UTC) #3
hal.canary
lgtm
6 years, 7 months ago (2014-04-28 15:35:18 UTC) #4
scroggo
The CQ bit was checked by scroggo@google.com
6 years, 7 months ago (2014-04-28 15:37:19 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/scroggo@google.com/235883015/120001
6 years, 7 months ago (2014-04-28 15:37:39 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 15:37:45 UTC) #7
commit-bot: I haz the power
Failed to apply patch for Android.mk: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
6 years, 7 months ago (2014-04-28 15:37:45 UTC) #8
scroggo
The CQ bit was checked by scroggo@google.com
6 years, 7 months ago (2014-04-28 15:50:43 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/scroggo@google.com/235883015/140001
6 years, 7 months ago (2014-04-28 15:51:00 UTC) #10
commit-bot: I haz the power
Change committed as 14408
6 years, 7 months ago (2014-04-28 16:00:59 UTC) #11
epoger
Looks like this broke runandroidplatformselftests ; see http://108.170.220.102:10117/builders/Housekeeper-PerCommit/builds/1042
6 years, 7 months ago (2014-04-28 18:44:51 UTC) #12
scroggo
On 2014/04/28 18:44:51, epoger wrote: > Looks like this broke runandroidplatformselftests ; see > http://108.170.220.102:10117/builders/Housekeeper-PerCommit/builds/1042 ...
6 years, 7 months ago (2014-04-28 18:50:53 UTC) #13
epoger
On 2014/04/28 18:50:53, scroggo wrote: > On 2014/04/28 18:44:51, epoger wrote: > > Looks like ...
6 years, 7 months ago (2014-04-28 18:53:47 UTC) #14
epoger
6 years, 7 months ago (2014-04-28 19:00:27 UTC) #15
Message was sent while issue was closed.
On 2014/04/28 18:53:47, epoger wrote:
> On 2014/04/28 18:50:53, scroggo wrote:
> > On 2014/04/28 18:44:51, epoger wrote:
> > > Looks like this broke runandroidplatformselftests ; see
> > > http://108.170.220.102:10117/builders/Housekeeper-PerCommit/builds/1042
> > 
> > Ah yes. I got a similar error on the merge bot. Since the bot had previously
> run
> > these scripts, it had .pyc files laying around with the old code. It calls
> them
> > instead of the new versions. On the merge bot I logged in and deleted those
> > files. Is there a better way?
> > 
> > (Also, I seem to recall there is a way to log in to the buildbots, but I'm
not
> > sure how to log in to this one.)
> 
> Very strange.  When .py files are updated, Python should regenerate the .pyc
> files automatically.
> 
> We should not need to log into any machines and clean out the .pyc files.
> 
> I will open a bug.

Filed http://skbug.com/2468 ('pyc file cleanup required after r14408 ('Generate
tests/Android.mk from gyp')')

Powered by Google App Engine
This is Rietveld 408576698