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

Issue 2347233002: Add src_files to src_jar GN template (Closed)

Created:
4 years, 3 months ago by kapishnikov
Modified:
4 years, 2 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for "src_files" and "srcjar_deps" to "src_jar" GN template Added a mandatory parameter to src_jar gn template that explicitly lists all files that should be jarred. The script validates that one and only one file with a given name exists in all search directories. Added support for optional srcjar_deps attribute that can be used to list dependencies that generate srcjar files and should be included in the resulting jar file. Added optional attribute 'source_deps' that allows packaging sources of the dependent targets. BUG=647293, 637887 Committed: https://crrev.com/624c32473d6d601e104bca2d91d68a0fa0266c0e Cr-Commit-Position: refs/heads/master@{#420140}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Comment fixes #

Patch Set 3 : Deduplicated Cronet API source file lists #

Patch Set 4 : Build base_java, net_java, url_java from srcjar. Add support for srsjar_deps to jar_src template. #

Total comments: 4

Patch Set 5 : Removed reference to "url" sources #

Patch Set 6 : Small fixes #

Total comments: 2

Patch Set 7 : Added source_deps that packages sources from the deps .sources files. #

Total comments: 4

Patch Set 8 : Added 'deps' for every 'source_deps' to make sure the .sources file exists #

Patch Set 9 : Parse '.source' files in Python + set inputs var #

Total comments: 2

Patch Set 10 : Comment fixes + rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -27 lines) Patch
M components/cronet/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +73 lines, -13 lines 0 comments Download
M components/cronet/tools/jar_src.py View 1 2 3 4 5 6 7 8 4 chunks +73 lines, -14 lines 0 comments Download

Messages

Total messages: 42 (19 generated)
kapishnikov
4 years, 3 months ago (2016-09-16 17:45:38 UTC) #2
pauljensen
https://codereview.chromium.org/2347233002/diff/1/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2347233002/diff/1/components/cronet/android/BUILD.gn#newcode309 components/cronet/android/BUILD.gn:309: "api/src/org/chromium/net/UserAgent.java", can we get rid of these lists and ...
4 years, 3 months ago (2016-09-16 18:38:39 UTC) #3
xunjieli
https://codereview.chromium.org/2347233002/diff/1/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2347233002/diff/1/components/cronet/android/BUILD.gn#newcode283 components/cronet/android/BUILD.gn:283: java_files = [ How about move put this list ...
4 years, 3 months ago (2016-09-16 18:39:49 UTC) #4
kapishnikov
https://codereview.chromium.org/2347233002/diff/1/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2347233002/diff/1/components/cronet/android/BUILD.gn#newcode283 components/cronet/android/BUILD.gn:283: java_files = [ On 2016/09/16 18:39:49, xunjieli wrote: > ...
4 years, 3 months ago (2016-09-16 20:28:27 UTC) #5
xunjieli
One comment below. The rest l-g-t-m. https://codereview.chromium.org/2347233002/diff/1/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2347233002/diff/1/components/cronet/android/BUILD.gn#newcode904 components/cronet/android/BUILD.gn:904: src_files = [ ...
4 years, 3 months ago (2016-09-16 20:42:24 UTC) #6
kapishnikov
On 2016/09/16 20:42:24, xunjieli wrote: > One comment below. The rest l-g-t-m. > > https://codereview.chromium.org/2347233002/diff/1/components/cronet/android/BUILD.gn ...
4 years, 3 months ago (2016-09-19 19:33:01 UTC) #10
xunjieli
Neat! LGTM
4 years, 3 months ago (2016-09-19 19:37:10 UTC) #11
kapishnikov
On 2016/09/19 19:33:01, kapishnikov wrote: > On 2016/09/16 20:42:24, xunjieli wrote: > > One comment ...
4 years, 3 months ago (2016-09-19 19:38:12 UTC) #12
xunjieli
Forgot to send these out. I think we can consult Android and GN folks and ...
4 years, 3 months ago (2016-09-19 19:43:53 UTC) #13
kapishnikov
https://codereview.chromium.org/2347233002/diff/60001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2347233002/diff/60001/components/cronet/android/BUILD.gn#newcode893 components/cronet/android/BUILD.gn:893: "//url/android/java/src", On 2016/09/19 19:43:53, xunjieli wrote: > no longer ...
4 years, 3 months ago (2016-09-19 19:54:23 UTC) #15
kapishnikov
4 years, 3 months ago (2016-09-19 20:28:23 UTC) #18
kapishnikov
4 years, 3 months ago (2016-09-19 20:33:25 UTC) #20
agrieve
https://codereview.chromium.org/2347233002/diff/100001/base/BUILD.gn File base/BUILD.gn (right): https://codereview.chromium.org/2347233002/diff/100001/base/BUILD.gn#newcode2256 base/BUILD.gn:2256: ":base_java_srcjar", Putting these files into a srcjar will make ...
4 years, 3 months ago (2016-09-20 00:09:41 UTC) #25
kapishnikov
https://codereview.chromium.org/2347233002/diff/100001/base/BUILD.gn File base/BUILD.gn (right): https://codereview.chromium.org/2347233002/diff/100001/base/BUILD.gn#newcode2256 base/BUILD.gn:2256: ":base_java_srcjar", On 2016/09/20 00:09:41, agrieve wrote: > Putting these ...
4 years, 3 months ago (2016-09-20 14:59:31 UTC) #26
kapishnikov
On 2016/09/20 14:59:31, kapishnikov wrote: > https://codereview.chromium.org/2347233002/diff/100001/base/BUILD.gn > File base/BUILD.gn (right): > > https://codereview.chromium.org/2347233002/diff/100001/base/BUILD.gn#newcode2256 > ...
4 years, 3 months ago (2016-09-20 20:18:51 UTC) #28
agrieve
https://codereview.chromium.org/2347233002/diff/120001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2347233002/diff/120001/components/cronet/android/BUILD.gn#newcode868 components/cronet/android/BUILD.gn:868: _source_file = "$_dep_gen_dir/$_dep_name.sources" You should also add these files ...
4 years, 3 months ago (2016-09-21 00:33:45 UTC) #31
kapishnikov
On 2016/09/21 00:33:45, agrieve wrote: > https://codereview.chromium.org/2347233002/diff/120001/components/cronet/android/BUILD.gn > File components/cronet/android/BUILD.gn (right): > > https://codereview.chromium.org/2347233002/diff/120001/components/cronet/android/BUILD.gn#newcode868 > ...
4 years, 3 months ago (2016-09-21 02:07:22 UTC) #32
kapishnikov
https://codereview.chromium.org/2347233002/diff/120001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2347233002/diff/120001/components/cronet/android/BUILD.gn#newcode868 components/cronet/android/BUILD.gn:868: _source_file = "$_dep_gen_dir/$_dep_name.sources" On 2016/09/21 00:33:45, agrieve wrote: > ...
4 years, 2 months ago (2016-09-21 17:45:56 UTC) #33
agrieve
lgtm :) https://codereview.chromium.org/2347233002/diff/160001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2347233002/diff/160001/components/cronet/android/BUILD.gn#newcode843 components/cronet/android/BUILD.gn:843: # Add src jars that are implicitly ...
4 years, 2 months ago (2016-09-21 18:36:37 UTC) #34
kapishnikov
https://codereview.chromium.org/2347233002/diff/160001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2347233002/diff/160001/components/cronet/android/BUILD.gn#newcode843 components/cronet/android/BUILD.gn:843: # Add src jars that are implicitly listed through ...
4 years, 2 months ago (2016-09-21 18:52:34 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2347233002/180001
4 years, 2 months ago (2016-09-21 18:53:30 UTC) #38
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 2 months ago (2016-09-21 19:56:43 UTC) #40
commit-bot: I haz the power
4 years, 2 months ago (2016-09-21 20:00:18 UTC) #42
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/624c32473d6d601e104bca2d91d68a0fa0266c0e
Cr-Commit-Position: refs/heads/master@{#420140}

Powered by Google App Engine
This is Rietveld 408576698