[chromium-dev] Re: How do I *undefine* a define in GYP?
Okay, I've figured out that I can do: snip 'msvs_settings': { 'VCCLCompilerTool': { 'UndefinePreprocessorDefinitions': 'WIN32_LEAN_AND_MEAN', }, }, /snip Though this works, it will cause a command line warning D9025 to be issued b/c you're undefining a previous define. I'd prefer if there was a way to remove the inclusion of /D WIN32_LEAN_AND_MEAN from common.gypi when my project is being generated. Is this possible? On Jun 27, 1:26 pm, Daniel Cowx daniel.c...@gmail.com wrote: I have a third_party project that assumes that WIN32_LEAN_AND_MEAN is *not* defined. Unfortunately, common.gypi defines it, so I'm getting lots of compiler errors that I dont particularly want to track down. What's teh best way to either a) undefine WIN32_LEAN_AND_MEAN from common.gypi, or b) ensure that it's excluded when my project is generated? Thanks --~--~-~--~~~---~--~~ Chromium Developers mailing list: chromium-dev@googlegroups.com View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~--~~~~--~~--~--~---
[chromium-dev] Re: How do I *undefine* a define in GYP?
You can undefine items with: 'defines!: [ 'WIN32_LEAN_AND_MEAN', ], -BradN On Sat, Jun 27, 2009 at 1:47 PM, Daniel Cowx daniel.c...@gmail.com wrote: Okay, I've figured out that I can do: snip 'msvs_settings': { 'VCCLCompilerTool': { 'UndefinePreprocessorDefinitions': 'WIN32_LEAN_AND_MEAN', }, }, /snip Though this works, it will cause a command line warning D9025 to be issued b/c you're undefining a previous define. I'd prefer if there was a way to remove the inclusion of /D WIN32_LEAN_AND_MEAN from common.gypi when my project is being generated. Is this possible? On Jun 27, 1:26 pm, Daniel Cowx daniel.c...@gmail.com wrote: I have a third_party project that assumes that WIN32_LEAN_AND_MEAN is *not* defined. Unfortunately, common.gypi defines it, so I'm getting lots of compiler errors that I dont particularly want to track down. What's teh best way to either a) undefine WIN32_LEAN_AND_MEAN from common.gypi, or b) ensure that it's excluded when my project is generated? Thanks --~--~-~--~~~---~--~~ Chromium Developers mailing list: chromium-dev@googlegroups.com View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~--~~~~--~~--~--~---
[chromium-dev] Re: How do I *undefine* a define in GYP?
Awesome. Thanks Brad! On Jun 27, 1:52 pm, Bradley Nelson bradnel...@google.com wrote: You can undefine items with: 'defines!: [ 'WIN32_LEAN_AND_MEAN', ], -BradN On Sat, Jun 27, 2009 at 1:47 PM, Daniel Cowx daniel.c...@gmail.com wrote: Okay, I've figured out that I can do: snip 'msvs_settings': { 'VCCLCompilerTool': { 'UndefinePreprocessorDefinitions': 'WIN32_LEAN_AND_MEAN', }, }, /snip Though this works, it will cause a command line warning D9025 to be issued b/c you're undefining a previous define. I'd prefer if there was a way to remove the inclusion of /D WIN32_LEAN_AND_MEAN from common.gypi when my project is being generated. Is this possible? On Jun 27, 1:26 pm, Daniel Cowx daniel.c...@gmail.com wrote: I have a third_party project that assumes that WIN32_LEAN_AND_MEAN is *not* defined. Unfortunately, common.gypi defines it, so I'm getting lots of compiler errors that I dont particularly want to track down. What's teh best way to either a) undefine WIN32_LEAN_AND_MEAN from common.gypi, or b) ensure that it's excluded when my project is generated? Thanks --~--~-~--~~~---~--~~ Chromium Developers mailing list: chromium-dev@googlegroups.com View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~--~~~~--~~--~--~---