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

Issue 23464051: Avoid MSB8012 in GYP (Closed)

Created:
7 years, 3 months ago by sigbjorn
Modified:
7 years, 2 months ago
CC:
gyp-developer_googlegroups.com
Base URL:
https://chromium.googlesource.com/external/gyp.git@master
Visibility:
Public.

Description

Avoid MSB8012 on Windows If using product extension only in build files, MSVS will complain that the target extension does not match the product extension, MSB8012. Add gyp support for specifying target extension to fix this warning. Used for e.g. PyAuto/OpAuto .pyd files. Patch from sigbjorn@opera.com. R=scottmg@chromium.org Committed: https://code.google.com/p/gyp/source/detail?r=1749

Patch Set 1 #

Patch Set 2 : Add test #

Total comments: 6

Patch Set 3 : Use product_extension for TargetExt, ignore target_extension #

Patch Set 4 : #

Patch Set 5 : only windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -0 lines) Patch
M pylib/gyp/generator/msvs.py View 1 2 3 5 chunks +28 lines, -0 lines 0 comments Download
M test/lib/TestGyp.py View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A test/target/gyptest-target.py View 1 2 3 4 1 chunk +37 lines, -0 lines 0 comments Download
A test/target/hello.c View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A test/target/target.gyp View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
operatest
Hope you will be able to check if this patch is OK.
7 years, 3 months ago (2013-09-10 09:47:46 UTC) #1
Nico
Can you add a test? Run `python gyptest.py -a` to run all tests. They are ...
7 years, 3 months ago (2013-09-10 14:14:30 UTC) #2
sigbjorn
Had to install pywin32 and change devenv.com to vcexpress.exe in TestGyp.py in order to run ...
7 years, 3 months ago (2013-09-11 14:36:36 UTC) #3
Nico
scottmg might know how to upload gyp patches on windows
7 years, 3 months ago (2013-09-11 18:20:03 UTC) #4
scottmg
On 2013/09/11 18:20:03, Nico wrote: > scottmg might know how to upload gyp patches on ...
7 years, 3 months ago (2013-09-11 18:25:09 UTC) #5
sigbjorn
Test added. Turns out that 'git cl upload', new files and core.autocrlf set to true ...
7 years, 3 months ago (2013-09-12 07:46:56 UTC) #6
sigbjorn
Ping. Is there something more wanted from my side?
7 years, 3 months ago (2013-09-17 07:25:15 UTC) #7
Nico
https://codereview.chromium.org/23464051/diff/11001/test/target/hello.c File test/target/hello.c (right): https://codereview.chromium.org/23464051/diff/11001/test/target/hello.c#newcode1 test/target/hello.c:1: /* Copyright (C) 2013 Opera Software ASA. All rights ...
7 years, 3 months ago (2013-09-17 17:11:54 UTC) #8
Nico
(And sorry for the delay! I'm somewhat clueless about Windows, so I was hoping someone ...
7 years, 3 months ago (2013-09-17 17:12:18 UTC) #9
sigbjorn
https://codereview.chromium.org/23464051/diff/11001/test/target/target.gyp File test/target/target.gyp (right): https://codereview.chromium.org/23464051/diff/11001/test/target/target.gyp#newcode11 test/target/target.gyp:11: 'target_extension': 'stuff', MSB8012 is thrown when the two are ...
7 years, 3 months ago (2013-09-18 08:21:26 UTC) #10
Nico
https://codereview.chromium.org/23464051/diff/11001/test/target/target.gyp File test/target/target.gyp (right): https://codereview.chromium.org/23464051/diff/11001/test/target/target.gyp#newcode11 test/target/target.gyp:11: 'target_extension': 'stuff', On 2013/09/18 08:21:27, sigbjorn wrote: > MSB8012 ...
7 years, 3 months ago (2013-09-18 17:38:23 UTC) #11
sigbjorn
https://codereview.chromium.org/23464051/diff/11001/test/target/target.gyp File test/target/target.gyp (right): https://codereview.chromium.org/23464051/diff/11001/test/target/target.gyp#newcode11 test/target/target.gyp:11: 'target_extension': 'stuff', On 2013/09/18 17:38:24, Nico wrote: > On ...
7 years, 3 months ago (2013-09-19 07:49:02 UTC) #12
Nico
On 2013/09/19 07:49:02, sigbjorn wrote: > https://codereview.chromium.org/23464051/diff/11001/test/target/target.gyp > File test/target/target.gyp (right): > > https://codereview.chromium.org/23464051/diff/11001/test/target/target.gyp#newcode11 > ...
7 years, 3 months ago (2013-09-23 18:15:20 UTC) #13
sigbjorn
On 2013/09/23 18:15:20, Nico wrote: > On 2013/09/19 07:49:02, sigbjorn wrote: > > https://codereview.chromium.org/23464051/diff/11001/test/target/target.gyp > ...
7 years, 3 months ago (2013-09-24 08:08:57 UTC) #14
sigbjorn
7 years, 3 months ago (2013-09-24 08:09:40 UTC) #15
scottmg
Sorry, I don't use VS either, but I think this is fine. lgtm https://codereview.chromium.org/23464051/diff/11001/test/target/hello.c File ...
7 years, 3 months ago (2013-09-24 17:23:19 UTC) #16
sigbjorn
My apologies, I am still new to Chromium code review workflow, and I didn't find ...
7 years, 2 months ago (2013-09-30 15:14:36 UTC) #17
scottmg
On 2013/09/30 15:14:36, sigbjorn wrote: > My apologies, I am still new to Chromium code ...
7 years, 2 months ago (2013-09-30 16:01:43 UTC) #18
scottmg
On 2013/09/30 16:01:43, scottmg wrote: > On 2013/09/30 15:14:36, sigbjorn wrote: > > My apologies, ...
7 years, 2 months ago (2013-09-30 16:02:23 UTC) #19
sigbjorn
Now using product_extension to set TargetExt, ignoring any target_extension. input.py has been changed back, though ...
7 years, 2 months ago (2013-10-01 10:08:23 UTC) #20
sigbjorn
Ping
7 years, 2 months ago (2013-10-04 07:20:59 UTC) #21
scottmg
Thanks, lgtm. I can land it for you.
7 years, 2 months ago (2013-10-04 16:37:58 UTC) #22
scottmg
Test needs to be guarded on sys.platform in ('win32', 'cygwin') per failing trybots.
7 years, 2 months ago (2013-10-04 16:56:54 UTC) #23
scottmg
7 years, 2 months ago (2013-10-04 22:05:19 UTC) #24
Message was sent while issue was closed.
Committed patchset #5 manually as r1749.

Powered by Google App Engine
This is Rietveld 408576698