Index: third_party/getopt/getopt.gyp |
diff --git a/build/crashpad.gypi b/third_party/getopt/getopt.gyp |
similarity index 64% |
copy from build/crashpad.gypi |
copy to third_party/getopt/getopt.gyp |
index 0dad63ca136f312eebecfad4cf2179c905ce5326..b7a2326902916959ffc1da43bfc8e7840a2e5da0 100644 |
--- a/build/crashpad.gypi |
+++ b/third_party/getopt/getopt.gyp |
@@ -13,11 +13,23 @@ |
# limitations under the License. |
{ |
- 'variables': { |
- # When building as a part of Chromium, this variable sets up the build to |
- # treat Crashpad as Chromium code. This enables warnings at an appropriate |
- # level and applies Chromium’s build/filename_rules.gypi. In a standalone |
- # build, this variable has no effect. |
- 'chromium_code': 1, |
- }, |
+ 'includes': [ |
+ '../../build/crashpad.gypi', |
+ ], |
+ 'conditions': [ |
+ ['OS=="win"', { |
+ 'targets': [ |
+ { |
+ 'target_name': 'getopt', |
+ 'type': 'static_library', |
+ 'sources': [ |
+ 'getopt.c', |
+ 'getopt.h', |
+ ], |
+ }, |
+ ], |
+ }, { |
+ 'targets': [] |
+ }] |
+ ], |
} |