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

Issue 237663003: Make resource repacker work on Windows (Closed)

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

Description

Make resource repacker work on Windows Add pragma compatible with cl, and make parser less strict about the stuff around whitelisted_resource_NNNN. R=aurimas@chromium.org,thakis@chromium.org BUG=338759 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263820

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -3 lines) Patch
M build/common.gypi View 1 chunk +4 lines, -1 line 1 comment Download
M tools/resources/find_used_resources.py View 2 chunks +4 lines, -2 lines 3 comments Download

Messages

Total messages: 15 (0 generated)
scottmg
https://codereview.chromium.org/237663003/diff/1/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/237663003/diff/1/build/common.gypi#newcode1914 build/common.gypi:1914: ['enable_resource_whitelist_generation==1 and OS!="win"', { I guess we might want ...
6 years, 8 months ago (2014-04-14 23:35:26 UTC) #1
aurimas (slooooooooow)
On 2014/04/14 23:35:26, scottmg wrote: > https://codereview.chromium.org/237663003/diff/1/build/common.gypi > File build/common.gypi (right): > > https://codereview.chromium.org/237663003/diff/1/build/common.gypi#newcode1914 > ...
6 years, 8 months ago (2014-04-14 23:40:29 UTC) #2
Nico
lgtm https://codereview.chromium.org/237663003/diff/1/tools/resources/find_used_resources.py File tools/resources/find_used_resources.py (right): https://codereview.chromium.org/237663003/diff/1/tools/resources/find_used_resources.py#newcode24 tools/resources/find_used_resources.py:24: On Windows, the message is simply a message ...
6 years, 8 months ago (2014-04-14 23:42:00 UTC) #3
scottmg
https://codereview.chromium.org/237663003/diff/1/tools/resources/find_used_resources.py File tools/resources/find_used_resources.py (right): https://codereview.chromium.org/237663003/diff/1/tools/resources/find_used_resources.py#newcode24 tools/resources/find_used_resources.py:24: On Windows, the message is simply a message via ...
6 years, 8 months ago (2014-04-14 23:45:20 UTC) #4
scottmg
The CQ bit was checked by scottmg@chromium.org
6 years, 8 months ago (2014-04-14 23:45:24 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/237663003/1
6 years, 8 months ago (2014-04-14 23:47:01 UTC) #6
aurimas (slooooooooow)
https://codereview.chromium.org/237663003/diff/1/tools/resources/find_used_resources.py File tools/resources/find_used_resources.py (right): https://codereview.chromium.org/237663003/diff/1/tools/resources/find_used_resources.py#newcode24 tools/resources/find_used_resources.py:24: On Windows, the message is simply a message via ...
6 years, 8 months ago (2014-04-14 23:53:04 UTC) #7
Nico
On 2014/04/14 23:53:04, aurimas wrote: > https://codereview.chromium.org/237663003/diff/1/tools/resources/find_used_resources.py > File tools/resources/find_used_resources.py (right): > > https://codereview.chromium.org/237663003/diff/1/tools/resources/find_used_resources.py#newcode24 > ...
6 years, 8 months ago (2014-04-14 23:58:03 UTC) #8
aurimas (slooooooooow)
On 2014/04/14 23:58:03, Nico wrote: > On 2014/04/14 23:53:04, aurimas wrote: > > > https://codereview.chromium.org/237663003/diff/1/tools/resources/find_used_resources.py ...
6 years, 8 months ago (2014-04-15 00:07:41 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-15 06:24:07 UTC) #10
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
6 years, 8 months ago (2014-04-15 06:24:08 UTC) #11
scottmg
The CQ bit was checked by scottmg@chromium.org
6 years, 8 months ago (2014-04-15 06:42:22 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/237663003/1
6 years, 8 months ago (2014-04-15 06:42:48 UTC) #13
commit-bot: I haz the power
Change committed as 263820
6 years, 8 months ago (2014-04-15 12:51:26 UTC) #14
Nico
6 years, 8 months ago (2014-04-17 19:56:34 UTC) #15
Filed http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60875


On Mon, Apr 14, 2014 at 5:07 PM, <aurimas@chromium.org> wrote:

> On 2014/04/14 23:58:03, Nico wrote:
>
>> On 2014/04/14 23:53:04, aurimas wrote:
>> >
>>
>
> https://codereview.chromium.org/237663003/diff/1/tools/
> resources/find_used_resources.py
>
>> > File tools/resources/find_used_resources.py (right):
>> >
>> >
>>
>
> https://codereview.chromium.org/237663003/diff/1/tools/
> resources/find_used_resources.py#newcode24
>
>> > tools/resources/find_used_resources.py:24: On Windows, the message is
>> simply
>>
> a
>
>> > message via __pragma(message(...)).
>> > On 2014/04/14 23:45:20, scottmg wrote:
>> > > On 2014/04/14 23:42:00, Nico wrote:
>> > > > Hm, I wonder if we could do the same on non-win:
>> > > >
>> > > >           #define DO_PRAGMA(x) _Pragma (#x)
>> > > >           #define FOO(x) DO_PRAGMA(message ("TODO - " #x))
>> > > >
>> > > >
>> > > > (from http://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html)
>> > >
>> > > From the chromium-dev thread titled "generated_resources.grd" I got
>> the
>> > > impression it didn't work for some reason? Maybe it does on a newer
>> GCC or
>> > > something, Aurimas?
>> >
>> > pragma message is not supported on gcc used to build Chrome for Android
>> :(
>>
>
>  Huh? I thought it's supported since 4.4ish (?)
>>
>
> We are using gcc 4.6.3.
>
> If I modify the define to be:
> #define IDR_TRANSLATE_INTERNALS_TRANSLATE_INTERNALS_HTML
> _Pragma("message(\"aurimas\")") 28500
>
> I get an error:
> chrome/browser/ui/webui/translate_internals/translate_
> internals_ui.cc:51:1:
> error: '#pragma' is not allowed here
>
> Oddly, it is perfectly fine if I put _Pragma("message(\"aurimas\")") in
> that cc
> file directly outside of #define.
>
> My theory is that using pragma messages inside of #define is different in
> our
> gcc.
>
> https://codereview.chromium.org/237663003/
>

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