>> On Mon, May 7, 2012 at 5:15 PM, Peter Kasting <
pkas...@chromium.org>
>> wrote:
>> > Is it possible to set up the GYP files so that hitting "build" in Visual
>> > Studio will invoke Ninja to perform the build?
>>
>> I think it'd depend what you want from the VS project. Just having a
>> 'shell' project that lists all the files and shells to ninja to build
>> would be relatively easy. Having VS also be able to build (and keep
>> its browse information up-to-date), while building with ninja would be
>> harder (at least on 2008, might be more possible on 2010+). I haven't
>> investigated too deeply for lack of personally wanting it.
>>
>> Maybe it'd work for you to add an External Tool that shells to ninja,
>> and use GYP_GENERATORS=msvs,ninja?
>
>
> I've had success in the past creating a Makefile Project in VS and having it
> call out to external build tools. I haven't done it with GYP but have with
> other similar tech.
Yeah, that's what I meant by the shell project. I would consider it a
non-success though. :-) People inevitably want Intellisense, or Go To
Definition, or Open Document under cursor which break because the IDE
lacks the full build information.
I think Peter's case is probably best handled by setting up an
External Tool to run ninja, rebinding F7 to run that command, and
telling gyp to generate both VS and ninja build files. Drop me an
(off)line if you want to work that way and would like a hand setting
it up.
>>
>>
>> > Has this been tested with VS2010 Express?
>>
>> alexeypa@ put some effort into getting that working (actually with the
>> compiler that's included in the Windows SDK), and I believe it's
>> buildable. There might be some minor env vars futzing needed though.
>>
>> >
>> > PK
>>