Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # | |
| 2 # Copyright (C) 2013 Google Inc. All rights reserved. | 1 # Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 # | 2 # |
| 4 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
| 6 # met: | 5 # met: |
| 7 # | 6 # |
| 8 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
| 11 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
| 12 # in the documentation and/or other materials provided with the | 11 # in the documentation and/or other materials provided with the |
| 13 # distribution. | 12 # distribution. |
| 14 # * Neither the name of Google Inc. nor the names of its | 13 # * Neither the name of Google Inc. nor the names of its |
| 15 # contributors may be used to endorse or promote products derived from | 14 # contributors may be used to endorse or promote products derived from |
| 16 # this software without specific prior written permission. | 15 # this software without specific prior written permission. |
| 17 # | 16 # |
| 18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | 17 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | 18 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | 19 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | 20 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 21 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 22 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 # | |
| 30 { | 28 { |
| 31 'includes': [ | 29 'includes': [ |
| 32 '../WebKit/chromium/WinPrecompile.gypi', | 30 '../WebKit/chromium/WinPrecompile.gypi', |
| 33 'modules.gypi', | 31 'wtf.gypi', |
| 34 ], | 32 ], |
| 35 'targets': [{ | 33 'conditions': [ |
| 36 'target_name': 'modules', | 34 ['gcc_version>=46', { |
| 37 'type': 'static_library', | 35 'target_defaults': { |
| 38 'dependencies': [ | 36 # Disable warnings about c++0x compatibility, as some names (such as nul lptr) conflict |
| 39 '<(DEPTH)/third_party/zlib/zlib.gyp:zlib', | 37 # with upcoming c++0x types. |
| 40 '../config.gyp:config', | 38 'cflags_cc': ['-Wno-c++0x-compat'], |
| 41 '../core/core.gyp/core.gyp:webcore', | 39 }, |
| 42 ], | 40 }], |
| 43 'sources': [ | 41 ], |
| 44 '<@(modules_files)', | 42 'targets': [ |
| 45 ], | 43 { |
| 46 # Disable c4267 warnings until we fix size_t to int truncations. | 44 'target_name': 'wtf_unittests', |
| 47 'msvs_disabled_warnings': [ 4267, 4334, ] | 45 'type': 'executable', |
| 48 }], | 46 'include_dirs': [ |
| 47 '..', | |
| 48 ], | |
| 49 'dependencies': [ | |
| 50 'wtf.gyp:wtf', | |
| 51 '<(DEPTH)/testing/gmock.gyp:gmock', | |
| 52 '<(DEPTH)/testing/gtest.gyp:gtest', | |
| 53 ], | |
| 54 'sources': [ | |
| 55 '<@(wtf_unittest_files)', | |
| 56 ], | |
| 57 # Disable c4267 warnings until we fix size_t to int truncations. | |
| 58 'msvs_disabled_warnings': [4127, 4355, 4510, 4512, 4610, 4706, 4068, 4267] , | |
|
abarth-chromium
2013/05/26 00:29:59
Can we put all this junk into config.gyp? (Ideall
| |
| 59 }, | |
| 60 ] | |
| 49 } | 61 } |
| OLD | NEW |