WebHTTPBody: Keep track of whether the data includes passwords.
[WebKit-https.git] / Source / WebKit / chromium / WebKitUnitTests.gyp
1 #
2 # Copyright (C) 2011 Google Inc. All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
6 # met:
7 #
8 #         * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 #         * Redistributions in binary form must reproduce the above
11 # copyright notice, this list of conditions and the following disclaimer
12 # in the documentation and/or other materials provided with the
13 # distribution.
14 #         * Neither the name of Google Inc. nor the names of its
15 # contributors may be used to endorse or promote products derived from
16 # this software without specific prior written permission.
17 #
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 # (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.
29 #
30
31 {
32     'includes': [
33         'features.gypi',
34         'WebKit.gypi',
35     ],
36     'variables': {
37         'conditions': [
38             # Location of the chromium src directory and target type is different
39             # if webkit is built inside chromium or as standalone project.
40             ['inside_chromium_build==0', {
41                 # Webkit is being built outside of the full chromium project.
42                 # e.g. via build-webkit --chromium
43                 'chromium_src_dir': '../../WebKit/chromium',
44             },{
45                 # WebKit is checked out in src/chromium/third_party/WebKit
46                 'chromium_src_dir': '../../../../..',
47             }],
48         ],
49     },
50     'targets': [
51         {
52             'target_name': 'webkit_unit_tests',
53             'type': 'executable',
54             'variables': { 'enable_wexit_time_destructors': 1, },
55             'msvs_guid': '7CEFE800-8403-418A-AD6A-2D52C6FC3EAD',
56             'dependencies': [
57                 'WebKit.gyp:webkit',
58                 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
59                 '<(chromium_src_dir)/testing/gtest.gyp:gtest',
60                 '<(chromium_src_dir)/testing/gmock.gyp:gmock',
61                 '<(chromium_src_dir)/base/base.gyp:base',
62                 '<(chromium_src_dir)/base/base.gyp:base_i18n',
63                 '<(chromium_src_dir)/base/base.gyp:test_support_base',
64                 '<(chromium_src_dir)/third_party/zlib/zlib.gyp:zlib',
65                 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_support',
66                 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_user_agent',
67             ],
68             'sources': [
69                 'tests/RunAllTests.cpp',
70             ],
71             'include_dirs': [
72                 'public',
73                 'src',
74             ],
75             'conditions': [
76                 ['inside_chromium_build==1 and component=="shared_library"', {
77                     'defines': [
78                         'WEBKIT_DLL_UNITTEST',
79                     ],
80                 }, {
81                     'sources': [
82                         '<@(webkit_unittest_files)',
83                     ],
84                     'conditions': [
85                         ['toolkit_uses_gtk == 1', {
86                             'include_dirs': [
87                                 'public/gtk',
88                             ],
89                             'variables': {
90                             # FIXME: Enable warnings on other platforms.
91                             'chromium_code': 1,
92                             },
93                         }],
94                     ],
95                 }],
96                 ['inside_chromium_build==1 and OS=="win" and component!="shared_library"', {
97                     'configurations': {
98                         'Debug_Base': {
99                             'msvs_settings': {
100                                 'VCLinkerTool': {
101                                     'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
102                                 },
103                             },
104                         },
105                     },
106                 }],
107             ],
108         }                
109     ], # targets
110     'conditions': [
111         ['os_posix==1 and OS!="mac" and OS!="android" and gcc_version==46', {
112             'target_defaults': {
113                 # Disable warnings about c++0x compatibility, as some names (such
114                 # as nullptr) conflict with upcoming c++0x types.
115                 'cflags_cc': ['-Wno-c++0x-compat'],
116             },
117         }],
118     ],
119 }