diff options
author | Pavel Labath <labath@google.com> | 2016-01-29 11:43:21 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2016-01-29 11:43:21 +0000 |
commit | 442b45266d69950f68869ca07c76a106f6c99b45 (patch) | |
tree | 061b9c9028b3d65631861e2eb478f2d673e77958 /src/common/common.gyp | |
parent | only build dump_syms_mac for x86 hosts (diff) | |
download | breakpad-442b45266d69950f68869ca07c76a106f6c99b45.tar.xz |
Improvements to GYP build
This updates the GYP build for the processor component (on windows).
- adds/removes references to files which were added or removed from the
repository
- includes build/common.gypi in the gyp files: needed to correctly
detect the OS (I think, the generated MSVC solutions were broken
without it)
- conditionally compiles code platform-specific code for the given
platform
After this minidump processor nearly compiles with VS2013: the generated
project is correct, but some files still have compilation errors.
Disclaimer: I have not tested the GYP changes on non-windows platform,
as there does not seem to be anyone using it there.
BUG=
R=mark@chromium.org
Review URL: https://codereview.chromium.org/1643633004 .
Diffstat (limited to 'src/common/common.gyp')
-rw-r--r-- | src/common/common.gyp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/common.gyp b/src/common/common.gyp index 5a666de6..177c0938 100644 --- a/src/common/common.gyp +++ b/src/common/common.gyp @@ -35,6 +35,11 @@ ['OS=="linux"', { 'defines': ['HAVE_A_OUT_H'], }], + ['OS!="android"', {'sources/': [['exclude', '(^|/)android/']]}], + ['OS!="linux"', {'sources/': [['exclude', '(^|/)linux/']]}], + ['OS!="mac"', {'sources/': [['exclude', '(^|/)mac/']]}], + ['OS!="solaris"', {'sources/': [['exclude', '(^|/)solaris/']]}], + ['OS!="win"', {'sources/': [['exclude', '(^|/)windows/']]}], ], }, 'targets': [ |