OLD | NEW |
---|---|
1 # Copyright (C) 2012 Google Inc. All rights reserved. | 1 # Copyright (C) 2012 Google Inc. All rights reserved. |
2 # | 2 # |
3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
5 # met: | 5 # met: |
6 # | 6 # |
7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
(...skipping 13 matching lines...) Expand all Loading... | |
24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
26 # (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 |
27 # 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. |
28 { | 28 { |
29 'includes': [ | 29 'includes': [ |
30 '../build/win/precompile.gypi', | 30 '../build/win/precompile.gypi', |
31 '../build/features.gypi', | 31 '../build/features.gypi', |
32 'wtf.gypi', | 32 'wtf.gypi', |
33 ], | 33 ], |
34 'targets': [ | 34 'targets': [], |
35 { | 35 'conditions': [ |
36 # This target sets up defines and includes that are required by WTF and | 36 ['OS!="ios"', { |
37 # its dependents. | 37 'targets': [ |
38 'target_name': 'wtf_config', | 38 { |
39 'type': 'none', | 39 # This target sets up defines and includes that are required by WTF an d |
40 'direct_dependent_settings': { | 40 # its dependents. |
41 'defines': [ | 41 'target_name': 'wtf_config', |
Nico
2016/06/06 13:16:19
ditto
| |
42 # Import features_defines from features.gypi | 42 'type': 'none', |
43 '<@(feature_defines)', | 43 'direct_dependent_settings': { |
44 ], | |
45 'conditions': [ | |
46 ['OS=="win"', { | |
47 'defines': [ | 44 'defines': [ |
48 '__STD_C', | 45 # Import features_defines from features.gypi |
49 '_CRT_SECURE_NO_DEPRECATE', | 46 '<@(feature_defines)', |
50 '_SCL_SECURE_NO_DEPRECATE', | |
51 ], | 47 ], |
52 }], | 48 'conditions': [ |
53 ], | 49 ['OS=="win"', { |
54 }, | 50 'defines': [ |
55 }, | 51 '__STD_C', |
56 { | 52 '_CRT_SECURE_NO_DEPRECATE', |
57 'target_name': 'wtf', | 53 '_SCL_SECURE_NO_DEPRECATE', |
58 'type': '<(component)', | 54 ], |
59 'include_dirs': [ | 55 }], |
60 '..', | 56 ], |
61 ], | 57 }, |
62 'dependencies': [ | 58 }, |
63 'wtf_config', | 59 { |
64 '../config.gyp:config', | 60 'target_name': 'wtf', |
65 '<(DEPTH)/base/base.gyp:base', | 61 'type': '<(component)', |
66 '<(DEPTH)/third_party/icu/icu.gyp:icui18n', | 62 'include_dirs': [ |
67 '<(DEPTH)/third_party/icu/icu.gyp:icuuc', | 63 '..', |
68 ], | 64 ], |
69 'sources': [ | 65 'dependencies': [ |
70 '<@(wtf_files)', | 66 'wtf_config', |
71 ], | 67 '../config.gyp:config', |
72 'defines': [ | 68 '<(DEPTH)/base/base.gyp:base', |
73 'WTF_IMPLEMENTATION=1', | 69 '<(DEPTH)/third_party/icu/icu.gyp:icui18n', |
74 ], | 70 '<(DEPTH)/third_party/icu/icu.gyp:icuuc', |
75 'direct_dependent_settings': { | 71 ], |
76 'include_dirs': [ | 72 'sources': [ |
77 '..', | 73 '<@(wtf_files)', |
78 ], | 74 ], |
79 # Some warnings occur in WTF headers, so they must also be disabled | 75 'defines': [ |
80 # in targets that use WTF. | 76 'WTF_IMPLEMENTATION=1', |
81 'msvs_disabled_warnings': [ | 77 ], |
82 # Don't complain about calling specific versions of templatized | 78 'direct_dependent_settings': { |
83 # functions (e.g. in RefPtrHashMap.h). | 79 'include_dirs': [ |
84 4344, | 80 '..', |
85 # Don't complain about using "this" in an initializer list | 81 ], |
86 # (e.g. in StringImpl.h). | 82 # Some warnings occur in WTF headers, so they must also be disabled |
87 4355, | 83 # in targets that use WTF. |
84 'msvs_disabled_warnings': [ | |
85 # Don't complain about calling specific versions of templatized | |
86 # functions (e.g. in RefPtrHashMap.h). | |
87 4344, | |
88 # Don't complain about using "this" in an initializer list | |
89 # (e.g. in StringImpl.h). | |
90 4355, | |
91 # Disable c4267 warnings until we fix size_t to int truncations. | |
92 4267, | |
93 ], | |
94 }, | |
95 'export_dependent_settings': [ | |
96 'wtf_config', | |
97 '<(DEPTH)/base/base.gyp:base', | |
98 '<(DEPTH)/third_party/icu/icu.gyp:icui18n', | |
99 '<(DEPTH)/third_party/icu/icu.gyp:icuuc', | |
100 ], | |
88 # Disable c4267 warnings until we fix size_t to int truncations. | 101 # Disable c4267 warnings until we fix size_t to int truncations. |
89 4267, | 102 'msvs_disabled_warnings': [4127, 4355, 4510, 4512, 4610, 4706, 4068, 4 267], |
90 ], | |
91 }, | |
92 'export_dependent_settings': [ | |
93 'wtf_config', | |
94 '<(DEPTH)/base/base.gyp:base', | |
95 '<(DEPTH)/third_party/icu/icu.gyp:icui18n', | |
96 '<(DEPTH)/third_party/icu/icu.gyp:icuuc', | |
97 ], | |
98 # Disable c4267 warnings until we fix size_t to int truncations. | |
99 'msvs_disabled_warnings': [4127, 4355, 4510, 4512, 4610, 4706, 4068, 4267] , | |
100 'conditions': [ | |
101 ['OS=="android"', { | |
102 'link_settings': { 'libraries': [ '-llog' ] }, | |
103 }], | |
104 ['OS=="linux"', { | |
105 'link_settings': { 'libraries': [ '-ldl' ] }, | |
106 }], | |
107 ['OS=="win"', { | |
108 'sources/': [ | |
109 ['exclude', 'ThreadingPthreads\\.cpp$'], | |
110 ], | |
111 'include_dirs!': [ | |
112 '<(SHARED_INTERMEDIATE_DIR)/blink', | |
113 ], | |
114 'conditions': [ | 103 'conditions': [ |
115 ['component=="shared_library"', { | 104 ['OS=="android"', { |
116 # Chromium windows multi-dll build enables C++ exception and this | 105 'link_settings': { 'libraries': [ '-llog' ] }, |
117 # causes wtf to generate 4291 warning due to operator new/delete | 106 }], |
118 # implementations. Disable the warning for chromium windows | 107 ['OS=="linux"', { |
119 # multi-dll build. | 108 'link_settings': { 'libraries': [ '-ldl' ] }, |
120 'msvs_disabled_warnings': [4291], | 109 }], |
121 'direct_dependent_settings': { | 110 ['OS=="win"', { |
122 'msvs_disabled_warnings': [4291], | 111 'sources/': [ |
123 }, | 112 ['exclude', 'ThreadingPthreads\\.cpp$'], |
113 ], | |
114 'include_dirs!': [ | |
115 '<(SHARED_INTERMEDIATE_DIR)/blink', | |
116 ], | |
117 'conditions': [ | |
118 ['component=="shared_library"', { | |
119 # Chromium windows multi-dll build enables C++ exception and t his | |
120 # causes wtf to generate 4291 warning due to operator new/dele te | |
121 # implementations. Disable the warning for chromium windows | |
122 # multi-dll build. | |
123 'msvs_disabled_warnings': [4291], | |
124 'direct_dependent_settings': { | |
125 'msvs_disabled_warnings': [4291], | |
126 }, | |
127 }], | |
128 ], | |
129 }, { # OS!="win" | |
130 'sources/': [ | |
131 ['exclude', 'Win\\.cpp$'], | |
132 ], | |
133 }], | |
134 ['OS=="mac"', { | |
135 'link_settings': { | |
136 'libraries': [ | |
137 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework ', | |
138 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | |
139 ] | |
140 } | |
141 }, { # OS!="mac" | |
142 'sources/': [ | |
143 ['exclude', 'CF\\.cpp$'], | |
144 ['exclude', 'Mac\\.mm$'], | |
145 # mac is the only OS that uses WebKit's copy of TCMalloc. | |
146 ['exclude', 'TC.*\\.(cpp|h)$'], | |
147 ], | |
124 }], | 148 }], |
125 ], | 149 ], |
126 }, { # OS!="win" | 150 }, |
127 'sources/': [ | |
128 ['exclude', 'Win\\.cpp$'], | |
129 ], | |
130 }], | |
131 ['OS=="mac"', { | |
132 'link_settings': { | |
133 'libraries': [ | |
134 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', | |
135 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | |
136 ] | |
137 } | |
138 }, { # OS!="mac" | |
139 'sources/': [ | |
140 ['exclude', 'CF\\.cpp$'], | |
141 ['exclude', 'Mac\\.mm$'], | |
142 # mac is the only OS that uses WebKit's copy of TCMalloc. | |
143 ['exclude', 'TC.*\\.(cpp|h)$'], | |
144 ], | |
145 }], | |
146 ], | 151 ], |
147 }, | 152 }], |
148 ] | 153 ], |
149 } | 154 } |
OLD | NEW |