Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # | 1 # |
| 2 # Copyright (C) 2013 Google Inc. All rights reserved. | 2 # Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 # | 3 # |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 37 'targets': [{ | 37 'targets': [{ |
| 38 'target_name': 'blink_common', | 38 'target_name': 'blink_common', |
| 39 'type': '<(component)', | 39 'type': '<(component)', |
| 40 'variables': { 'enable_wexit_time_destructors': 1 }, | 40 'variables': { 'enable_wexit_time_destructors': 1 }, |
| 41 'dependencies': [ | 41 'dependencies': [ |
| 42 '../config.gyp:config', | 42 '../config.gyp:config', |
| 43 '../wtf/wtf.gyp:wtf', | 43 '../wtf/wtf.gyp:wtf', |
| 44 # FIXME: Can we remove the dependency on Skia? | 44 # FIXME: Can we remove the dependency on Skia? |
| 45 '<(DEPTH)/skia/skia.gyp:skia', | 45 '<(DEPTH)/skia/skia.gyp:skia', |
| 46 ], | 46 ], |
| 47 'all_dependent_settings': { | |
|
Stephen White
2013/12/05 19:28:12
I'm no gyp jedi, but I do see that "all_dependent_
Nico
2013/12/09 17:36:10
+1.
| |
| 48 'include_dirs': [ | |
| 49 '..', | |
| 50 ], | |
| 51 }, | |
| 47 'export_dependent_settings': [ | 52 'export_dependent_settings': [ |
| 48 '<(DEPTH)/skia/skia.gyp:skia', | 53 '<(DEPTH)/skia/skia.gyp:skia', |
| 49 ], | 54 ], |
| 50 'defines': [ | 55 'defines': [ |
| 51 'BLINK_COMMON_IMPLEMENTATION=1', | 56 'BLINK_COMMON_IMPLEMENTATION=1', |
| 52 'INSIDE_BLINK', | 57 'INSIDE_BLINK', |
| 53 ], | 58 ], |
| 54 'sources': [ | 59 'sources': [ |
| 55 'exported/WebCString.cpp', | 60 'exported/WebCString.cpp', |
| 56 'exported/WebString.cpp', | 61 'exported/WebString.cpp', |
| 57 'exported/WebCommon.cpp', | 62 'exported/WebCommon.cpp', |
| 58 ], | 63 ], |
| 59 }, { | 64 }, { |
| 60 'target_name': 'blink_platform', | 65 'target_name': 'blink_platform', |
| 61 'type': '<(component)', | 66 'type': '<(component)', |
| 62 'dependencies': [ | 67 'dependencies': [ |
| 63 '../config.gyp:config', | 68 '../config.gyp:config', |
| 64 '../wtf/wtf.gyp:wtf', | 69 '../wtf/wtf.gyp:wtf', |
| 70 'blink_common', | |
| 71 '<(DEPTH)/gpu/gpu.gyp:gles2_c_lib', | |
| 65 '<(DEPTH)/skia/skia.gyp:skia', | 72 '<(DEPTH)/skia/skia.gyp:skia', |
| 66 # FIXME: This dependency exists for CSS Custom Filters, via the file ANGLE PlatformBridge | 73 # FIXME: This dependency exists for CSS Custom Filters, via the file ANGLE PlatformBridge |
| 67 # The code touching ANGLE should really be moved into the ANGLE directory. | 74 # The code touching ANGLE should really be moved into the ANGLE directory. |
| 68 '<(angle_path)/src/build_angle.gyp:translator', | 75 '<(angle_path)/src/build_angle.gyp:translator', |
| 69 '<(DEPTH)/third_party/icu/icu.gyp:icui18n', | 76 '<(DEPTH)/third_party/icu/icu.gyp:icui18n', |
| 70 '<(DEPTH)/third_party/icu/icu.gyp:icuuc', | 77 '<(DEPTH)/third_party/icu/icu.gyp:icuuc', |
| 78 '<(DEPTH)/third_party/libpng/libpng.gyp:libpng', | |
| 79 '<(DEPTH)/third_party/libwebp/libwebp.gyp:libwebp', | |
| 80 '<(DEPTH)/third_party/ots/ots.gyp:ots', | |
| 81 '<(DEPTH)/third_party/qcms/qcms.gyp:qcms', | |
| 71 '<(DEPTH)/url/url.gyp:url_lib', | 82 '<(DEPTH)/url/url.gyp:url_lib', |
| 83 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', | |
| 72 'platform_derived_sources.gyp:make_platform_derived_sources', | 84 'platform_derived_sources.gyp:make_platform_derived_sources', |
| 73 'blink_common', | 85 '<(DEPTH)/third_party/iccjpeg/iccjpeg.gyp:iccjpeg', |
| 86 '<(libjpeg_gyp_path):libjpeg', | |
| 74 ], | 87 ], |
| 75 'export_dependent_settings': [ | 88 'export_dependent_settings': [ |
| 89 '<(DEPTH)/gpu/gpu.gyp:gles2_c_lib', | |
| 90 '<(DEPTH)/skia/skia.gyp:skia', | |
| 91 '<(DEPTH)/third_party/libpng/libpng.gyp:libpng', | |
| 92 '<(DEPTH)/third_party/libwebp/libwebp.gyp:libwebp', | |
| 93 '<(DEPTH)/third_party/ots/ots.gyp:ots', | |
| 94 '<(DEPTH)/third_party/qcms/qcms.gyp:qcms', | |
| 95 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', | |
| 76 # FIXME: This dependency exists for CSS Custom Filters, via the file ANGLE PlatformBridge | 96 # FIXME: This dependency exists for CSS Custom Filters, via the file ANGLE PlatformBridge |
| 77 # The code touching ANGLE should really be moved into the ANGLE directory. | 97 # The code touching ANGLE should really be moved into the ANGLE directory. |
| 78 '<(angle_path)/src/build_angle.gyp:translator', | 98 '<(angle_path)/src/build_angle.gyp:translator', |
| 79 '<(DEPTH)/url/url.gyp:url_lib', | 99 '<(DEPTH)/url/url.gyp:url_lib', |
| 100 '<(DEPTH)/third_party/iccjpeg/iccjpeg.gyp:iccjpeg', | |
| 101 '<(libjpeg_gyp_path):libjpeg', | |
| 80 ], | 102 ], |
| 81 'defines': [ | 103 'defines': [ |
| 82 'BLINK_PLATFORM_IMPLEMENTATION=1', | 104 'BLINK_PLATFORM_IMPLEMENTATION=1', |
| 83 'INSIDE_BLINK', | 105 'INSIDE_BLINK', |
| 84 ], | 106 ], |
| 85 'include_dirs': [ | 107 'include_dirs': [ |
| 86 '<(angle_path)/include', | 108 '<(angle_path)/include', |
| 87 '<(SHARED_INTERMEDIATE_DIR)/blink', | 109 '<(SHARED_INTERMEDIATE_DIR)/blink', |
| 88 ], | 110 ], |
| 89 'xcode_settings': { | 111 'xcode_settings': { |
| 90 # Some Mac-specific parts of WebKit won't compile without having this | 112 # Some Mac-specific parts of WebKit won't compile without having this |
| 91 # prefix header injected. | 113 # prefix header injected. |
| 92 # FIXME: make this a first-class setting. | 114 # FIXME: make this a first-class setting. |
| 93 'GCC_PREFIX_HEADER': '../core/WebCorePrefixMac.h', | 115 'GCC_PREFIX_HEADER': '../core/WebCorePrefixMac.h', |
| 94 }, | 116 }, |
| 95 'sources': [ | 117 'sources': [ |
| 96 '<@(platform_files)', | 118 '<@(platform_files)', |
| 97 | 119 |
| 98 # Additional .cpp files from platform_derived_sources.gyp:make_platform_de rived_sources actions. | 120 # Additional .cpp files from platform_derived_sources.gyp:make_platform_de rived_sources actions. |
| 99 '<(SHARED_INTERMEDIATE_DIR)/blink/FontFamilyNames.cpp', | 121 '<(SHARED_INTERMEDIATE_DIR)/blink/FontFamilyNames.cpp', |
| 100 '<(SHARED_INTERMEDIATE_DIR)/blink/RuntimeEnabledFeatures.cpp', | 122 '<(SHARED_INTERMEDIATE_DIR)/blink/RuntimeEnabledFeatures.cpp', |
| 101 '<(SHARED_INTERMEDIATE_DIR)/blink/RuntimeEnabledFeatures.h', | 123 '<(SHARED_INTERMEDIATE_DIR)/blink/RuntimeEnabledFeatures.h', |
| 102 '<(SHARED_INTERMEDIATE_DIR)/blink/ColorData.cpp', | 124 '<(SHARED_INTERMEDIATE_DIR)/blink/ColorData.cpp', |
| 103 ], | 125 ], |
| 126 'sources/': [ | |
| 127 # Exclude all platform specific things, reinclude them below on a per-plat form basis | |
| 128 # FIXME: Figure out how to store these patterns in a variable. | |
| 129 ['exclude', '(cf|cg|harfbuzz|mac|opentype|win)/'], | |
| 130 ['exclude', '(?<!Chromium)(CF|CG|Mac|Win)\\.(cpp|mm?)$'], | |
| 131 | |
| 132 # *NEON.cpp files need special compile options. | |
| 133 # They are moved to the webcore_0_neon target. | |
| 134 ['exclude', 'graphics/cpu/arm/.*NEON\\.(cpp|h)'], | |
| 135 ['exclude', 'graphics/cpu/arm/filters/.*NEON\\.(cpp|h)'], | |
| 136 ], | |
| 104 # Disable c4267 warnings until we fix size_t to int truncations. | 137 # Disable c4267 warnings until we fix size_t to int truncations. |
| 105 # Disable c4724 warnings which is generated in VS2012 due to improper | 138 # Disable c4724 warnings which is generated in VS2012 due to improper |
| 106 # compiler optimizations, see crbug.com/237063 | 139 # compiler optimizations, see crbug.com/237063 |
| 107 'msvs_disabled_warnings': [ 4267, 4334, 4724 ], | 140 'msvs_disabled_warnings': [ 4267, 4334, 4724 ], |
| 108 'conditions': [ | 141 'conditions': [ |
| 142 ['OS=="linux" or OS=="android"', { | |
| 143 'sources/': [ | |
| 144 # Cherry-pick files excluded by the broader regular expressions above. | |
| 145 ['include', 'fonts/harfbuzz/FontHarfBuzz\\.cpp$'], | |
| 146 ['include', 'fonts/harfbuzz/FontPlatformDataHarfBuzz\\.cpp$'], | |
| 147 ['include', 'fonts/harfbuzz/HarfBuzzFace\\.(cpp|h)$'], | |
| 148 ['include', 'fonts/harfbuzz/HarfBuzzFaceSkia\\.cpp$'], | |
| 149 ['include', 'fonts/harfbuzz/HarfBuzzShaper\\.(cpp|h)$'], | |
| 150 ['include', 'fonts/opentype/OpenTypeTypes\\.h$'], | |
| 151 ['include', 'fonts/opentype/OpenTypeVerticalData\\.(cpp|h)$'], | |
| 152 ['include', 'fonts/skia/SimpleFontDataSkia\\.cpp$'], | |
| 153 ], | |
| 154 'dependencies': [ | |
| 155 '<(DEPTH)/third_party/harfbuzz-ng/harfbuzz.gyp:harfbuzz-ng', | |
| 156 ], | |
| 157 }, { # OS!="linux" and OS!="android" | |
| 158 'sources/': [ | |
| 159 ['exclude', 'Harfbuzz[^/]+\\.(cpp|h)$'], | |
| 160 ], | |
| 161 }], | |
| 109 ['OS=="mac"', { | 162 ['OS=="mac"', { |
| 163 'dependencies': [ | |
| 164 '<(DEPTH)/third_party/harfbuzz-ng/harfbuzz.gyp:harfbuzz-ng', | |
| 165 ], | |
| 110 'link_settings': { | 166 'link_settings': { |
| 111 'libraries': [ | 167 'libraries': [ |
| 112 '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework', | 168 '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework', |
| 113 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', | 169 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', |
| 114 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | 170 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 115 ] | 171 ] |
| 116 }, | 172 }, |
| 117 'sources/': [ | 173 'sources/': [ |
| 118 # We use LocaleMac.mm instead of LocaleICU.cpp | 174 # We use LocaleMac.mm instead of LocaleICU.cpp |
| 119 ['exclude', 'LocaleICU\\.(cpp|h)$'], | 175 ['exclude', 'text/LocaleICU\\.(cpp|h)$'], |
| 176 ['include', 'text/LocaleMac\\.mm$'], | |
| 120 | 177 |
| 121 # The Mac uses mac/KillRingMac.mm instead of the dummy | 178 # The Mac uses mac/KillRingMac.mm instead of the dummy |
| 122 # implementation. | 179 # implementation. |
| 123 ['exclude', 'KillRingNone\\.cpp$'], | 180 ['exclude', 'KillRingNone\\.cpp$'], |
| 124 | 181 |
| 182 # The Mac build is USE(CF). | |
| 183 ['include', 'CF\\.cpp$'], | |
| 184 | |
| 185 # Use native Mac font code from core. | |
| 186 ['include', '(fonts/)?mac/[^/]*Font[^/]*\\.(cpp|mm?)$'], | |
| 187 ['include', 'fonts/mac/ComplexText[^/]*\\.(cpp|h)$'], | |
| 188 | |
| 189 # Cherry-pick some files that can't be included by broader regexps. | |
| 190 # Some of these are used instead of Chromium platform files, see | |
| 191 # the specific exclusions in the "exclude" list below. | |
| 192 ['include', 'audio/mac/FFTFrameMac\\.cpp$'], | |
| 193 ['include', 'fonts/mac/GlyphPageTreeNodeMac\\.cpp$'], | |
| 194 ['include', 'fonts/mac/ComplexTextControllerCoreText\\.mm$'], | |
| 195 ['include', 'mac/ColorMac\\.mm$'], | |
| 196 ['include', 'mac/BlockExceptions\\.mm$'], | |
| 197 ['include', 'mac/KillRingMac\\.mm$'], | |
| 198 ['include', 'mac/LocalCurrentGraphicsContext\\.mm$'], | |
| 199 ['include', 'mac/NSScrollerImpDetails\\.mm$'], | |
| 200 ['include', 'mac/ScrollAnimatorMac\\.mm$'], | |
| 201 ['include', 'mac/ScrollElasticityController\\.mm$'], | |
| 202 | |
| 203 # Mac uses only ScrollAnimatorMac. | |
| 204 ['exclude', 'scroll/ScrollbarThemeNonMacCommon\\.(cpp|h)$'], | |
| 205 ['exclude', 'scroll/ScrollAnimatorNone\\.cpp$'], | |
| 206 ['exclude', 'scroll/ScrollAnimatorNone\\.h$'], | |
| 207 | |
| 208 # The Mac currently uses FontCustomPlatformDataMac.cpp, | |
| 209 # included by regex above, instead. | |
| 210 ['exclude', 'fonts/skia/FontCustomPlatformDataSkia\\.cpp$'], | |
| 211 | |
| 212 ['exclude', 'fonts/skia/FontCacheSkia\\.cpp$'], | |
| 213 ['exclude', 'fonts/skia/GlyphPageTreeNodeSkia\\.cpp$'], | |
| 214 ['exclude', 'fonts/skia/SimpleFontDataSkia\\.cpp$'], | |
| 215 | |
| 216 # Mac uses Harfbuzz. | |
| 217 ['include', 'fonts/harfbuzz/HarfBuzzFaceCoreText\\.cpp$'], | |
| 218 ['include', 'fonts/harfbuzz/HarfBuzzFace\\.(cpp|h)$'], | |
| 219 ['include', 'fonts/harfbuzz/HarfBuzzShaper\\.(cpp|h)$'], | |
| 220 | |
| 125 ['include', 'geometry/mac/FloatPointMac\\.mm$'], | 221 ['include', 'geometry/mac/FloatPointMac\\.mm$'], |
| 126 ['include', 'geometry/mac/FloatRectMac\\.mm$'], | 222 ['include', 'geometry/mac/FloatRectMac\\.mm$'], |
| 127 ['include', 'geometry/mac/FloatSizeMac\\.mm$'], | 223 ['include', 'geometry/mac/FloatSizeMac\\.mm$'], |
| 128 ['include', 'geometry/mac/IntPointMac\\.mm$'], | 224 ['include', 'geometry/mac/IntPointMac\\.mm$'], |
| 129 ['include', 'geometry/mac/IntRectMac\\.mm$'], | 225 ['include', 'geometry/mac/IntRectMac\\.mm$'], |
| 130 | 226 |
| 131 ['include', 'geometry/cg/FloatPointCG\\.cpp$'], | 227 ['include', 'geometry/cg/FloatPointCG\\.cpp$'], |
| 132 ['include', 'geometry/cg/FloatRectCG\\.cpp$'], | 228 ['include', 'geometry/cg/FloatRectCG\\.cpp$'], |
| 133 ['include', 'geometry/cg/FloatSizeCG\\.cpp$'], | 229 ['include', 'geometry/cg/FloatSizeCG\\.cpp$'], |
| 134 ['include', 'geometry/cg/IntPointCG\\.cpp$'], | 230 ['include', 'geometry/cg/IntPointCG\\.cpp$'], |
| 135 ['include', 'geometry/cg/IntRectCG\\.cpp$'], | 231 ['include', 'geometry/cg/IntRectCG\\.cpp$'], |
| 136 ['include', 'geometry/cg/IntSizeCG\\.cpp$'], | 232 ['include', 'geometry/cg/IntSizeCG\\.cpp$'], |
| 137 | |
| 138 ], | 233 ], |
| 139 'defines': [ | 234 'defines': [ |
| 140 'WebFontCache=ChromiumWebCoreObjCWebFontCache', | 235 'WebFontCache=ChromiumWebCoreObjCWebFontCache', |
| 141 ], | 236 ], |
| 142 }, { # OS!="mac" | 237 }, { # OS!="mac" |
| 143 'sources/': [ | 238 'sources/': [ |
| 144 ['exclude', 'mac/'], | 239 ['exclude', 'mac/'], |
| 145 ['exclude', 'geometry/mac/'], | 240 ['exclude', 'geometry/mac/'], |
| 146 ['exclude', 'geometry/cg/'], | 241 ['exclude', 'geometry/cg/'], |
| 242 ['exclude', 'scroll/ScrollbarThemeMac'], | |
| 243 | |
| 244 # FIXME: We will eventually compile this too, but for now it's | |
| 245 # only used on mac. | |
| 246 ['exclude', 'fonts/FontPlatformData\\.cpp$'], | |
| 247 ['exclude', 'fonts/harfbuzz/HarfBuzzFaceCoreText\\.cpp$'], | |
| 248 ], | |
| 249 }], | |
| 250 ['OS != "linux" and OS != "mac" and (OS != "win" or (OS == "win" and "ENAB LE_GDI_FONTS_ON_WINDOWS=1" in feature_defines))', { | |
| 251 'sources/': [ | |
| 252 ['exclude', 'VDMX[^/]+\\.(cpp|h)$'], | |
| 147 ], | 253 ], |
| 148 }], | 254 }], |
| 149 ['OS=="win"', { | 255 ['OS=="win"', { |
| 150 'sources/': [ | 256 'sources/': [ |
| 151 # We use LocaleWin.cpp instead of LocaleICU.cpp | 257 # We use LocaleWin.cpp instead of LocaleICU.cpp |
| 152 ['exclude', 'LocaleICU\\.(cpp|h)$'], | 258 ['exclude', 'text/LocaleICU\\.(cpp|h)$'], |
| 259 ['include', 'text/LocaleWin\\.(cpp|h)$'], | |
| 260 | |
| 261 ['include', 'clipboard/ClipboardUtilitiesWin\\.(cpp|h)$'], | |
| 262 | |
| 263 ['include', 'fonts/win/FontFallbackWin\\.(cpp|h)$'], | |
| 264 ['include', 'fonts/win/FontPlatformDataWin\\.(cpp|h)$'], | |
| 265 ['include', 'fonts/win/FontWin\\.cpp$'], | |
| 266 ['include', 'fonts/opentype/'], | |
| 267 ['include', 'fonts/skia/SkiaFontWin\\.(cpp|h)$'], | |
| 268 ['include', 'fonts/win/UniscribeHelper\\.(cpp|h)$'], | |
| 269 ['include', 'fonts/win/UniscribeHelperTextRun\\.(cpp|h)$'], | |
| 270 | |
| 271 ['include', 'scroll/ScrollbarThemeWin\\.(cpp|h)$'], | |
| 272 | |
| 273 # SystemInfo.cpp is useful and we don't want to copy it. | |
| 274 ['include', 'win/SystemInfo\\.cpp$'], | |
| 275 ], | |
| 276 'conditions': [ | |
| 277 ['"ENABLE_GDI_FONTS_ON_WINDOWS=1" in feature_defines', { | |
| 278 'sources/': [ | |
| 279 ['include', 'fonts/win/FontCustomPlatformDataWin\\.cpp$'], | |
| 280 ['exclude', 'fonts/skia/SimpleFontDataSkia\\.cpp$'], | |
| 281 ['exclude', 'fonts/skia/GlyphPageTreeNodeSkia\\.cpp$'], | |
| 282 ['exclude', 'fonts/skia/FontCacheSkia\\.cpp$'], | |
| 283 ['exclude', 'fonts/skia/FontCacheSkiaWin\\.cpp$'], | |
| 284 ['exclude', 'fonts/skia/FontCustomPlatformDataSkia\\.cpp$'], | |
| 285 ], | |
| 286 },{ # ENABLE_GDI_FONTS_ON_WINDOWS!=1 | |
| 287 'sources/': [ | |
| 288 ['include', 'fonts/skia/SimpleFontDataSkia\\.cpp$'], | |
| 289 ['include', 'fonts/skia/GlyphPageTreeNodeSkia\\.cpp$'], | |
| 290 ['include', 'fonts/skia/FontCacheSkiaWin\\.cpp$'], | |
| 291 ['include', 'fonts/skia/FontCustomPlatformDataSkia\\.cpp$'], | |
| 292 ['include', 'fonts/skia/FontCustomPlatformDataSkia\\.cpp$'], | |
| 293 ['exclude', 'fonts/win/SimpleFontDataWin\\.cpp$'], | |
| 294 ['exclude', 'fonts/GlyphPageTreeNodeWin\\.cpp$'], | |
| 295 ['exclude', 'fonts/FontCacheWin\\.cpp$'], | |
| 296 ['exclude', 'fonts/FontCustomPlatformDataWin\\.cpp$'], | |
| 297 ], | |
| 298 }], | |
| 299 ['"ENABLE_HARFBUZZ_ON_WINDOWS=1" in feature_defines', { | |
| 300 'sources/': [ | |
| 301 ['include', 'fonts/harfbuzz/FontHarfBuzz\\.cpp$'], | |
| 302 ['include', 'fonts/harfbuzz/HarfBuzzFace\\.(cpp|h)$'], | |
| 303 ['include', 'fonts/harfbuzz/HarfBuzzFaceSkia\\.cpp$'], | |
| 304 ['include', 'fonts/harfbuzz/HarfBuzzShaper\\.(cpp|h)$'], | |
| 305 ['exclude', 'fonts/win/FontWin\\.cpp$'], | |
| 306 ['exclude', '/(Uniscribe)[^/]*\\.(cpp|h)$'], | |
| 307 ], | |
| 308 'dependencies': [ | |
| 309 '<(DEPTH)/third_party/harfbuzz-ng/harfbuzz.gyp:harfbuzz-ng', | |
| 310 ], | |
| 311 }], | |
| 153 ], | 312 ], |
| 154 }, { # OS!="win" | 313 }, { # OS!="win" |
| 155 'sources/': [ | 314 'sources/': [ |
| 156 ['exclude', 'win/'], | 315 ['exclude', 'win/'], |
| 157 ['exclude', 'Win\\.cpp$'], | 316 ['exclude', 'Win\\.cpp$'], |
| 317 ['exclude', '/(Windows|Uniscribe)[^/]*\\.cpp$'], | |
| 318 ['include', 'fonts/opentype/OpenTypeSanitizer\\.cpp$'], | |
| 319 ], | |
| 320 }], | |
| 321 ['OS=="android"', { | |
| 322 'sources/': [ | |
| 323 ['include', 'fonts/linux/GlyphPageTreeNodeLinux\\.cpp$'], | |
| 324 ['include', 'fonts/VDMXParser\\.cpp$'], | |
| 325 ], | |
| 326 }, { # OS!="android" | |
| 327 'sources/': [ | |
| 328 ['exclude', 'Android\\.cpp$'], | |
| 329 ], | |
| 330 }], | |
| 331 ['use_x11 == 1', { | |
| 332 'dependencies': [ | |
| 333 '<(DEPTH)/build/linux/system.gyp:fontconfig', | |
| 334 ], | |
| 335 'export_dependent_settings': [ | |
| 336 '<(DEPTH)/build/linux/system.gyp:fontconfig', | |
| 337 ], | |
| 338 'direct_dependent_settings': { | |
| 339 'cflags': [ | |
| 340 # WebCore does not work with strict aliasing enabled. | |
| 341 # https://bugs.webkit.org/show_bug.cgi?id=25864 | |
| 342 '-fno-strict-aliasing', | |
|
Nico
2013/12/09 17:36:10
You don't need this, it's set globally for all pro
| |
| 343 ], | |
| 344 }, | |
| 345 }], | |
| 346 ['use_default_render_theme==1', { | |
| 347 'sources/': [ | |
| 348 ['exclude', 'scroll/ScrollbarThemeWin\\.(cpp|h)'], | |
| 349 ], | |
| 350 }, { # use_default_render_theme==0 | |
| 351 'sources/': [ | |
| 352 ['exclude', 'scroll/ScrollbarThemeGtkOrAura\\.(cpp|h)'], | |
| 158 ], | 353 ], |
| 159 }], | 354 }], |
| 160 ['"WTF_USE_WEBAUDIO_FFMPEG=1" in feature_defines', { | 355 ['"WTF_USE_WEBAUDIO_FFMPEG=1" in feature_defines', { |
| 161 'include_dirs': [ | 356 'include_dirs': [ |
| 162 '<(DEPTH)/third_party/ffmpeg', | 357 '<(DEPTH)/third_party/ffmpeg', |
| 163 ], | 358 ], |
| 164 'dependencies': [ | 359 'dependencies': [ |
| 165 '<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg', | 360 '<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg', |
| 166 ], | 361 ], |
| 167 }], | 362 }], |
| 168 ['"WTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1" in feature_defines', { | 363 ['"WTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1" in feature_defines', { |
| 169 'include_dirs': [ | 364 'include_dirs': [ |
| 170 '<(DEPTH)/third_party/openmax_dl', | 365 '<(DEPTH)/third_party/openmax_dl', |
| 171 ], | 366 ], |
| 172 'dependencies': [ | 367 'dependencies': [ |
| 173 '<(DEPTH)/third_party/openmax_dl/dl/dl.gyp:openmax_dl', | 368 '<(DEPTH)/third_party/openmax_dl/dl/dl.gyp:openmax_dl', |
| 174 ], | 369 ], |
| 175 }], | 370 }], |
| 176 ], | 371 ], |
| 177 }], | 372 }], |
| 178 } | 373 } |
| OLD | NEW |