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

Issue 489153003: Split bundle generation steps so that API registration is generated in browser, not common. (Closed)

Created:
6 years, 4 months ago by Yoyo Zhou
Modified:
6 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Split bundle generation steps so that API registration is generated in browser, not common. We now have schema generation, schema bundle generation, and schema bundle registration generation; the last of these is generated in a separate build target and output to browser rather than common. Fix a couple of dangling gyp issues also. BUG=405226 TBR=sky@chromium.org Committed: https://crrev.com/3b70ef14be986a3252428cc6d9553bf2c69deb70 Cr-Commit-Position: refs/heads/master@{#292057}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : else #

Patch Set 3 : gn! #

Patch Set 4 : extra targets #

Total comments: 3

Patch Set 5 : idl #

Patch Set 6 : clean up deps #

Patch Set 7 : rebase #

Patch Set 8 : ??? #

Patch Set 9 : multiple dll child #

Patch Set 10 : moar #

Unified diffs Side-by-side diffs Delta from patch set Stats (+477 lines, -533 lines) Patch
M build/json_schema_bundle_compile.gypi View 1 2 3 4 2 chunks +20 lines, -20 lines 0 comments Download
A + build/json_schema_bundle_registration_compile.gypi View 1 2 3 4 3 chunks +28 lines, -26 lines 0 comments Download
M build/json_schema_compile.gypi View 1 2 3 3 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/devtools/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/BUILD.gn View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/api_registration.gyp View 1 2 3 4 5 6 7 1 chunk +41 lines, -0 lines 0 comments Download
M chrome/browser/extensions/chrome_extensions_browser_client.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/performance_monitor/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +12 lines, -32 lines 0 comments Download
M chrome/common/extensions/api/api.gyp View 1 2 3 2 chunks +1 line, -210 lines 0 comments Download
A chrome/common/extensions/api/schemas.gni View 1 2 3 4 5 6 7 1 chunk +34 lines, -0 lines 0 comments Download
A + chrome/common/extensions/api/schemas.gypi View 1 2 3 4 5 2 chunks +43 lines, -81 lines 0 comments Download
M content/app/content_main_runner.cc View 1 2 3 4 5 6 7 8 9 4 chunks +7 lines, -2 lines 0 comments Download
M extensions/BUILD.gn View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M extensions/browser/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A extensions/browser/api/api_registration.gyp View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
M extensions/common/api/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +9 lines, -21 lines 0 comments Download
M extensions/common/api/api.gyp View 1 2 3 1 chunk +1 line, -48 lines 0 comments Download
A extensions/common/api/schemas.gni View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
A extensions/common/api/schemas.gypi View 1 2 3 4 5 1 chunk +51 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M extensions/generated_extensions_api.gni View 1 2 3 4 6 chunks +88 lines, -44 lines 0 comments Download
M extensions/shell/app_shell.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A extensions/shell/browser/api/api_registration.gyp View 1 2 3 4 5 1 chunk +21 lines, -0 lines 0 comments Download
M extensions/shell/browser/shell_extensions_browser_client.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/shell/common/api/api.gyp View 1 2 3 1 chunk +1 line, -18 lines 0 comments Download
A extensions/shell/common/api/schemas.gypi View 1 2 3 4 5 1 chunk +20 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/compiler.py View 1 6 chunks +25 lines, -14 lines 0 comments Download
M tools/json_schema_compiler/cpp_bundle_generator.py View 1 chunk +3 lines, -2 lines 0 comments Download
M ui/accessibility/BUILD.gn View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M ui/accessibility/accessibility.gyp View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 63 (0 generated)
Yoyo Zhou
Please take a look at the gyp changes here. The equivalent gn changes are in ...
6 years, 4 months ago (2014-08-21 00:54:26 UTC) #1
not at google - send to devlin
json schema compiler changes lgtm https://chromiumcodereview.appspot.com/489153003/diff/20001/tools/json_schema_compiler/compiler.py File tools/json_schema_compiler/compiler.py (right): https://chromiumcodereview.appspot.com/489153003/diff/20001/tools/json_schema_compiler/compiler.py#newcode125 tools/json_schema_compiler/compiler.py:125: output_dir = os.path.join(destdir, src_path) ...
6 years, 4 months ago (2014-08-21 01:02:52 UTC) #2
Yoyo Zhou
https://chromiumcodereview.appspot.com/489153003/diff/20001/tools/json_schema_compiler/compiler.py File tools/json_schema_compiler/compiler.py (right): https://chromiumcodereview.appspot.com/489153003/diff/20001/tools/json_schema_compiler/compiler.py#newcode125 tools/json_schema_compiler/compiler.py:125: output_dir = os.path.join(destdir, src_path) On 2014/08/21 01:02:52, kalman wrote: ...
6 years, 4 months ago (2014-08-21 01:06:14 UTC) #3
Yoyo Zhou
Got the GN build working! Scott, ready for your review.
6 years, 4 months ago (2014-08-21 17:44:48 UTC) #4
scottmg
On 2014/08/21 17:44:48, Yoyo Zhou wrote: > Got the GN build working! Scott, ready for ...
6 years, 4 months ago (2014-08-21 18:17:17 UTC) #5
scottmg
On 2014/08/21 18:17:17, scottmg wrote: > On 2014/08/21 17:44:48, Yoyo Zhou wrote: > > Got ...
6 years, 4 months ago (2014-08-21 18:27:11 UTC) #6
scottmg
On 2014/08/21 18:27:11, scottmg wrote: > On 2014/08/21 18:17:17, scottmg wrote: > > On 2014/08/21 ...
6 years, 4 months ago (2014-08-21 18:32:51 UTC) #7
Yoyo Zhou
On 2014/08/21 18:32:51, scottmg wrote: > On 2014/08/21 18:27:11, scottmg wrote: > > On 2014/08/21 ...
6 years, 4 months ago (2014-08-21 22:01:03 UTC) #8
scottmg
On 2014/08/21 22:01:03, Yoyo Zhou wrote: > On 2014/08/21 18:32:51, scottmg wrote: > > On ...
6 years, 4 months ago (2014-08-22 18:49:41 UTC) #9
Yoyo Zhou
On 2014/08/22 18:49:41, scottmg wrote: > On 2014/08/21 22:01:03, Yoyo Zhou wrote: > > On ...
6 years, 4 months ago (2014-08-22 19:12:21 UTC) #10
Yoyo Zhou
This patch should work in both gn and gyp. It's similar to the last one ...
6 years, 4 months ago (2014-08-23 01:15:03 UTC) #11
scottmg
Thanks for doing this, LGTM once all the flavours of build are OK. I confirmed ...
6 years, 4 months ago (2014-08-25 17:09:01 UTC) #12
scottmg
On 2014/08/25 17:09:01, scottmg wrote: > Thanks for doing this, LGTM once all the flavours ...
6 years, 4 months ago (2014-08-25 19:47:12 UTC) #13
Yoyo Zhou
On 2014/08/25 19:47:12, scottmg wrote: > On 2014/08/25 17:09:01, scottmg wrote: > > Thanks for ...
6 years, 4 months ago (2014-08-25 21:57:54 UTC) #14
Yoyo Zhou
yoz@chromium.org changed reviewers: + sky@chromium.org
6 years, 4 months ago (2014-08-25 22:45:42 UTC) #15
Yoyo Zhou
sky: TBR for the uninteresting gyp/gn changes in chrome/browser, chrome/browser/devtools, chrome/browser/ui
6 years, 4 months ago (2014-08-25 22:45:42 UTC) #16
Yoyo Zhou
The CQ bit was checked by yoz@chromium.org
6 years, 4 months ago (2014-08-25 22:47:01 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/489153003/120001
6 years, 4 months ago (2014-08-25 22:48:59 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-26 00:11:14 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-26 00:13:48 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/46099) ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/8851) ios_rel_device ...
6 years, 4 months ago (2014-08-26 00:13:49 UTC) #21
Yoyo Zhou
The CQ bit was checked by yoz@chromium.org
6 years, 4 months ago (2014-08-26 01:27:20 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/489153003/140001
6 years, 4 months ago (2014-08-26 01:28:29 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-26 02:15:54 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-26 02:21:01 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg/builds/9525) android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/2186)
6 years, 4 months ago (2014-08-26 02:21:03 UTC) #26
Yoyo Zhou
The CQ bit was checked by yoz@chromium.org
6 years, 4 months ago (2014-08-26 02:44:49 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/489153003/160001
6 years, 4 months ago (2014-08-26 02:46:03 UTC) #28
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-26 03:38:50 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-26 03:48:30 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_rel/builds/6306)
6 years, 4 months ago (2014-08-26 03:48:31 UTC) #31
scottmg
The CQ bit was checked by scottmg@chromium.org
6 years, 3 months ago (2014-08-26 16:57:27 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/489153003/160001
6 years, 3 months ago (2014-08-26 16:58:16 UTC) #33
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu on tryserver.chromium.gpu ...
6 years, 3 months ago (2014-08-26 17:49:41 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-26 18:01:53 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_swarming/builds/3070)
6 years, 3 months ago (2014-08-26 18:01:55 UTC) #36
scottmg
I'm confused by the compile errors. Compiling with at 7a32920fbe0a3 with this patch git cl ...
6 years, 3 months ago (2014-08-26 20:04:36 UTC) #37
Yoyo Zhou
On 2014/08/26 20:04:36, scottmg wrote: > I'm confused by the compile errors. > > Compiling ...
6 years, 3 months ago (2014-08-26 20:15:37 UTC) #38
scottmg
On 2014/08/26 20:15:37, Yoyo Zhou wrote: > On 2014/08/26 20:04:36, scottmg wrote: > > I'm ...
6 years, 3 months ago (2014-08-26 20:23:11 UTC) #39
scottmg
I have no idea. I know this is silly, but I'm going to click it ...
6 years, 3 months ago (2014-08-26 21:12:15 UTC) #40
scottmg
The CQ bit was checked by scottmg@chromium.org
6 years, 3 months ago (2014-08-26 21:12:21 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/489153003/160001
6 years, 3 months ago (2014-08-26 21:13:44 UTC) #42
sky
On 2014/08/26 20:23:11, scottmg wrote: > On 2014/08/26 20:15:37, Yoyo Zhou wrote: > > On ...
6 years, 3 months ago (2014-08-26 21:23:12 UTC) #43
Yoyo Zhou
On 2014/08/26 21:23:12, sky wrote: > On 2014/08/26 20:23:11, scottmg wrote: > > On 2014/08/26 ...
6 years, 3 months ago (2014-08-26 22:05:31 UTC) #44
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu on tryserver.chromium.gpu ...
6 years, 3 months ago (2014-08-26 22:06:04 UTC) #45
scottmg
On 2014/08/26 21:23:12, sky wrote: > On 2014/08/26 20:23:11, scottmg wrote: > > On 2014/08/26 ...
6 years, 3 months ago (2014-08-26 22:08:00 UTC) #46
Yoyo Zhou
On 2014/08/26 22:08:00, scottmg wrote: > On 2014/08/26 21:23:12, sky wrote: > > On 2014/08/26 ...
6 years, 3 months ago (2014-08-26 22:15:07 UTC) #47
Yoyo Zhou
The CQ bit was checked by yoz@chromium.org
6 years, 3 months ago (2014-08-26 22:15:15 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/489153003/180001
6 years, 3 months ago (2014-08-26 22:17:14 UTC) #49
scottmg
Sorry, that's not quite enough. Here's another random inline diff to try. :/ diff --git ...
6 years, 3 months ago (2014-08-26 22:33:16 UTC) #50
sky
Shouldn't we just fix the gyp* files and add the dependency if it needs to ...
6 years, 3 months ago (2014-08-26 22:55:46 UTC) #51
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu on tryserver.chromium.gpu ...
6 years, 3 months ago (2014-08-26 23:14:23 UTC) #52
Yoyo Zhou
The CQ bit was unchecked by yoz@chromium.org
6 years, 3 months ago (2014-08-26 23:15:46 UTC) #53
Yoyo Zhou
On 2014/08/26 22:33:16, scottmg wrote: > Sorry, that's not quite enough. Here's another random inline ...
6 years, 3 months ago (2014-08-26 23:17:46 UTC) #54
Yoyo Zhou
The CQ bit was checked by yoz@chromium.org
6 years, 3 months ago (2014-08-26 23:18:49 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/489153003/200001
6 years, 3 months ago (2014-08-26 23:19:57 UTC) #56
scottmg
On 2014/08/26 22:55:46, sky wrote: > Shouldn't we just fix the gyp* files and add ...
6 years, 3 months ago (2014-08-26 23:42:53 UTC) #57
sky
Then why do we want ContentBrowserClient used at all in content/app/content_main_runner.cc? On Tue, Aug 26, ...
6 years, 3 months ago (2014-08-26 23:49:57 UTC) #58
scottmg
content_main_runner.cc is in content_app.gypi content_app.gypi is included into two targets, content_app_browser and content_app_child. Those are ...
6 years, 3 months ago (2014-08-27 00:10:41 UTC) #59
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_compile_dbg on tryserver.chromium.win ...
6 years, 3 months ago (2014-08-27 00:13:48 UTC) #60
commit-bot: I haz the power
Committed patchset #10 (200001) as 596ff54335b2a1b393af10657bc4945114f3beed
6 years, 3 months ago (2014-08-27 00:51:45 UTC) #61
sky
Tricky. I like breaking into two files to make it clear which parts are used ...
6 years, 3 months ago (2014-08-27 14:34:28 UTC) #62
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:48:20 UTC) #63
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/3b70ef14be986a3252428cc6d9553bf2c69deb70
Cr-Commit-Position: refs/heads/master@{#292057}

Powered by Google App Engine
This is Rietveld 408576698