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

Issue 389083002: GN: Add //ui/base/ime, fix up printing on mac (Closed)

Created:
6 years, 5 months ago by jamesr
Modified:
6 years, 5 months ago
CC:
chromium-reviews, nona+watch_chromium.org, James Su, yukishiino+watch_chromium.org, penghuang+watch_chromium.org, yusukes+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

GN: Add //ui/base/ime, fix up printing on mac This adds the //ui/base/ime target to the GN build, which is used everywhere except for ios. In the gyp build this isn't a real target, it's a set of properties that are included into the ui_base target which is the best you can do in GYP since you can't link a static library into a component without dropping some symbols. In GN, we can define this as a source_set with its own dependencies and settings. This also fixes up some miscellaneous mac issues. R=brettw@chromium.org,ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284981

Patch Set 1 #

Patch Set 2 : rebased #

Patch Set 3 : possible linux_gn ime pango fix #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -87 lines) Patch
M chrome/browser/ui/BUILD.gn View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M components/storage_monitor/BUILD.gn View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M media/audio/BUILD.gn View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M printing/BUILD.gn View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M sandbox/mac/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ui/base/BUILD.gn View 1 2 3 4 chunks +4 lines, -74 lines 0 comments Download
A ui/base/ime/BUILD.gn View 1 2 1 chunk +113 lines, -0 lines 2 comments Download
M ui/views/BUILD.gn View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
jamesr
6 years, 5 months ago (2014-07-13 01:09:16 UTC) #1
brettw
lgtm
6 years, 5 months ago (2014-07-14 18:23:54 UTC) #2
Ben Goodger (Google)
lgtm
6 years, 5 months ago (2014-07-14 19:13:25 UTC) #3
jamesr
The CQ bit was checked by jamesr@chromium.org
6 years, 5 months ago (2014-07-14 19:19:25 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/389083002/20001
6 years, 5 months ago (2014-07-14 19:21:27 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_gn_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-14 21:46:45 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-14 21:57:00 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_gn_rel/builds/25597)
6 years, 5 months ago (2014-07-14 21:57:01 UTC) #8
jamesr
The CQ bit was checked by jamesr@chromium.org
6 years, 5 months ago (2014-07-23 06:33:30 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/389083002/80001
6 years, 5 months ago (2014-07-23 06:34:31 UTC) #10
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 ...
6 years, 5 months ago (2014-07-23 09:05:48 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-23 11:20:19 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/31447)
6 years, 5 months ago (2014-07-23 11:20:20 UTC) #13
jamesr
The CQ bit was checked by jamesr@chromium.org
6 years, 5 months ago (2014-07-23 17:33:12 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/389083002/80001
6 years, 5 months ago (2014-07-23 17:35:14 UTC) #15
commit-bot: I haz the power
Change committed as 284981
6 years, 5 months ago (2014-07-23 17:45:55 UTC) #16
tfarina
I would love to have being copied before on this patch! To get an email ...
6 years, 5 months ago (2014-07-24 00:06:09 UTC) #17
tfarina
https://codereview.chromium.org/389083002/diff/80001/ui/base/ime/BUILD.gn File ui/base/ime/BUILD.gn (right): https://codereview.chromium.org/389083002/diff/80001/ui/base/ime/BUILD.gn#newcode8 ui/base/ime/BUILD.gn:8: # GYP version: ui/base/ime/ime.gypi, which is included into ui_base ...
6 years, 5 months ago (2014-07-24 00:06:56 UTC) #18
jamesr
On 2014/07/24 00:06:09, tfarina wrote: > I would love to have being copied before on ...
6 years, 5 months ago (2014-07-24 00:27:24 UTC) #19
jamesr
On 2014/07/24 00:06:56, tfarina wrote: > https://codereview.chromium.org/389083002/diff/80001/ui/base/ime/BUILD.gn > File ui/base/ime/BUILD.gn (right): > > https://codereview.chromium.org/389083002/diff/80001/ui/base/ime/BUILD.gn#newcode8 > ...
6 years, 5 months ago (2014-07-24 00:27:35 UTC) #20
tfarina
On Wed, Jul 23, 2014 at 9:27 PM, <jamesr@chromium.org> wrote: > On 2014/07/24 00:06:56, tfarina ...
6 years, 5 months ago (2014-07-24 00:29:33 UTC) #21
chromium-reviews
No, it's not. These are separate files with separate DEPS from the rest of ui/base/. ...
6 years, 5 months ago (2014-07-24 00:31:23 UTC) #22
tfarina
On Wed, Jul 23, 2014 at 9:31 PM, James Robinson <jamesr@google.com> wrote: > No, it's ...
6 years, 5 months ago (2014-07-24 00:34:08 UTC) #23
chromium-reviews
On Wed, Jul 23, 2014 at 5:34 PM, Thiago Farina <tfarina@chromium.org> wrote: > > > ...
6 years, 5 months ago (2014-07-24 01:14:20 UTC) #24
tfarina
6 years, 5 months ago (2014-07-24 01:36:59 UTC) #25
On Wednesday, July 23, 2014, James Robinson <jamesr@google.com> wrote:

>
>
>
> On Wed, Jul 23, 2014 at 5:34 PM, Thiago Farina <tfarina@chromium.org
> <javascript:_e(%7B%7D,'cvml','tfarina@chromium.org');>> wrote:
>
>>
>>
>>
>> On Wed, Jul 23, 2014 at 9:31 PM, James Robinson <jamesr@google.com
>> <javascript:_e(%7B%7D,'cvml','jamesr@google.com');>> wrote:
>>
>>> No, it's not.  These are separate files with separate DEPS from the rest
>>> of ui/base/.
>>>
>> They are not separate from ui/base. If they were they would be in ui/ime.
>> So it is not separate at this moment.
>>
>
> That's irrelevant.  As a general principle, all build files should be
> located as close to the source as possible.  I.e. the build file for
> a/b/c/foo.cc should be in a/b/c/BUILD.gn.  The same applies here.  GYP has
> restrictions that make it harder to do this, so we do suboptimal things
> like define build rules in parent directories and have .gypi's that are
> included into parents, but that's a restriction of GYP that GN does not
> share.
>
>
>>
>> The ime files are listed withing sources ui_base.gyp sources list.
>>
>>
https://chromium.googlesource.com/chromium/src/+/master/ui/base/ui_base.gyp#180
>>
>
> That's because ui_base is a component and in gyp the only way to make sure
> sources within a component end up in the final library is to have them
> listed directly in the sources list of the component meaning either listing
> them in the sources list directly or (as this code used to do) using a gypi
> to 'inject' into the sources list.
>
> In GN we invented source_set to get around this.  We can define a
> source_set in the proper location and depend on it from a component and the
> right thing works.  This is far better since it means that the build file
> is close to the source and we can express dependencies more precisely.
>
It is close to the source. OK. But ui/base/ime was never a separate target
and you are trying to imply that as if it was (I think just because you saw
the gypi).

Sorry, I just worked hard on this, that I feel I should have been consulted
before.

I see you want build files close to the source, but I don't see the benefit
to have part of the tree in one way (ui/base/ime/BUILD.gn) while *all* the
other ui/base files are being built by ui/base/BUILD.gn.



-- 
Thiago Farina

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698