Changeset 83893 in webkit
- Timestamp:
- Apr 14, 2011 2:01:52 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r83892 r83893 1 2011-04-14 Kenneth Russell <kbr@google.com> 2 3 Reviewed by Dimitri Glazkov. 4 5 Enable building Web Audio with MKL in Chrome-branded builds 6 https://bugs.webkit.org/show_bug.cgi?id=58561 7 8 Factored out MKL support into a separate GYP file that is 9 incorporated in Chrome-branded builds. Changed how the FFTFrame 10 implementations are pulled in and chosen so that all files can be 11 unconditionally compiled. 12 13 Tested with both Chrome-branded build (incorporating MKL) and 14 Chromium build (building just FFTFrameStub.cpp) on Linux. 15 16 * WebCore.gyp/WebCore.gyp: 17 * platform/audio/fftw/FFTFrameFFTW.cpp: 18 * platform/audio/mkl/FFTFrameMKL.cpp: 19 1 20 2011-04-14 Ragner Magalhaes <ragner.magalhaes@openbossa.org> 2 21 -
trunk/Source/WebCore/WebCore.gyp/WebCore.gyp
r83641 r83893 960 960 }, 961 961 }], 962 # FIXME: (kbr) ideally this target should just depend on webcore_prerequisites963 # to pick up these include directories, but I'm nervous about making that change.964 ['(OS=="linux" or OS=="win") and "WTF_USE_WEBAUDIO_MKL=1" in feature_defines', {965 'include_dirs': [966 '<(chromium_src_dir)/third_party/mkl/include',967 ],968 }],969 962 ['(OS=="linux" or OS=="win") and "WTF_USE_WEBAUDIO_FFTW=1" in feature_defines', { 970 963 'include_dirs': [ … … 1171 1164 }, 1172 1165 }], 1173 ['(OS=="linux" or OS=="win") and "WTF_USE_WEBAUDIO_MKL=1" in feature_defines', { 1174 # This directory needs to be on the include path for multiple sub-targets of webcore. 1175 'direct_dependent_settings': { 1176 'include_dirs': [ 1177 '<(chromium_src_dir)/third_party/mkl/include', 1178 ], 1179 }, 1166 ['(OS=="linux" or OS=="win") and branding=="Chrome"', { 1167 'dependencies': [ 1168 '<(chromium_src_dir)/third_party/mkl/google/mkl.gyp:mkl_libs', 1169 ], 1180 1170 }], 1181 1171 ['(OS=="linux" or OS=="win") and "WTF_USE_WEBAUDIO_FFTW=1" in feature_defines', { … … 1260 1250 1261 1251 # FIXME: Figure out how to store these patterns in a variable. 1262 ['exclude', '(android|brew|cairo|ca|cf|cg|curl|efl|freetype| fftw|gstreamer|gtk|haiku|linux|mac|mkl|opengl|openvg|opentype|pango|posix|qt|soup|svg|symbian|texmap|iphone|win|wince|wx)/'],1252 ['exclude', '(android|brew|cairo|ca|cf|cg|curl|efl|freetype|gstreamer|gtk|haiku|linux|mac|opengl|openvg|opentype|pango|posix|qt|soup|svg|symbian|texmap|iphone|win|wince|wx)/'], 1263 1253 ['exclude', '(?<!Chromium)(Android|Cairo|CF|CG|Curl|Gtk|JSC|Linux|Mac|OpenType|POSIX|Posix|Qt|Safari|Soup|Symbian|Win|WinCE|Wx)\\.(cpp|mm?)$'], 1264 1254 … … 1424 1414 ], 1425 1415 }], 1426 ['(OS=="linux" or OS=="win") and "WTF_USE_WEBAUDIO_MKL=1" in feature_defines', {1427 'sources/': [1428 ['include', 'platform/audio/mkl/FFTFrameMKL\\.cpp$'],1429 ],1430 }],1431 ['(OS=="linux" or OS=="win") and "WTF_USE_WEBAUDIO_FFTW=1" in feature_defines', {1432 'sources/': [1433 ['include', 'platform/audio/fftw/FFTFrameFFTW\\.cpp$'],1434 ],1435 }],1436 1416 ], 1437 1417 }, … … 1451 1431 1452 1432 # FIXME: Figure out how to store these patterns in a variable. 1453 ['exclude', '(android|brew|cairo|ca|cf|cg|curl|efl|freetype| fftw|gstreamer|gtk|haiku|linux|mac|mkl|opengl|openvg|opentype|pango|posix|qt|soup|svg|symbian|texmap|iphone|win|wince|wx)/'],1433 ['exclude', '(android|brew|cairo|ca|cf|cg|curl|efl|freetype|gstreamer|gtk|haiku|linux|mac|opengl|openvg|opentype|pango|posix|qt|soup|svg|symbian|texmap|iphone|win|wince|wx)/'], 1454 1434 ['exclude', '(?<!Chromium)(Android|Cairo|CF|CG|Curl|Gtk|JSC|Linux|Mac|OpenType|POSIX|Posix|Qt|Safari|Soup|Symbian|Win|WinCE|Wx)\\.(cpp|mm?)$'], 1455 1435 … … 1525 1505 1526 1506 # FIXME: Figure out how to store these patterns in a variable. 1527 ['exclude', '(android|brew|cairo|ca|cf|cg|curl|efl|freetype| fftw|gstreamer|gtk|haiku|linux|mac|mkl|opengl|openvg|opentype|pango|posix|qt|soup|svg|symbian|texmap|iphone|win|wince|wx)/'],1507 ['exclude', '(android|brew|cairo|ca|cf|cg|curl|efl|freetype|gstreamer|gtk|haiku|linux|mac|opengl|openvg|opentype|pango|posix|qt|soup|svg|symbian|texmap|iphone|win|wince|wx)/'], 1528 1508 ['exclude', '(?<!Chromium)(Android|Cairo|CF|CG|Curl|Gtk|JSC|Linux|Mac|OpenType|POSIX|Posix|Qt|Safari|Soup|Symbian|Win|WinCE|Wx)\\.(cpp|mm?)$'], 1529 1509 … … 1692 1672 }, 1693 1673 }], 1694 ['OS=="win" and "WTF_USE_WEBAUDIO_MKL=1" in feature_defines', {1695 # FIXME: (kbr) figure out how to make these dependencies1696 # work in a cross-platform way. Attempts to use1697 # "link_settings" and "libraries" in conjunction with the1698 # msvs-specific settings didn't work so far.1699 'all_dependent_settings': {1700 'msvs_settings': {1701 'VCLinkerTool': {1702 'AdditionalLibraryDirectories': [1703 # This is a hack to make this directory correct1704 # relative to targets like chrome_dll. Should use1705 # <(chromium_src_dir).1706 '../third_party/mkl/lib/win/ia32',1707 ],1708 'AdditionalDependencies': [1709 'mkl_intel_c.lib',1710 'mkl_sequential.lib',1711 'mkl_core.lib',1712 ],1713 },1714 },1715 },1716 }],1717 1674 ['OS=="linux" and "WTF_USE_WEBAUDIO_FFTW=1" in feature_defines', { 1718 1675 # FIXME: (kbr) figure out how to make these dependencies -
trunk/Source/WebCore/platform/audio/fftw/FFTFrameFFTW.cpp
r78102 r83893 30 30 #if ENABLE(WEB_AUDIO) 31 31 32 #if !OS(DARWIN) && USE(WEBAUDIO_FFTW) 33 32 34 #include "FFTFrame.h" 33 35 … … 299 301 } // namespace WebCore 300 302 303 #endif // !OS(DARWIN) && USE(WEBAUDIO_FFTW) 304 301 305 #endif // ENABLE(WEB_AUDIO) -
trunk/Source/WebCore/platform/audio/mkl/FFTFrameMKL.cpp
r78102 r83893 31 31 #if ENABLE(WEB_AUDIO) 32 32 33 #if !OS(DARWIN) && USE(WEBAUDIO_MKL) 34 33 35 #include "FFTFrame.h" 34 36 … … 262 264 } // namespace WebCore 263 265 266 #endif // !OS(DARWIN) && USE(WEBAUDIO_MKL) 267 264 268 #endif // ENABLE(WEB_AUDIO)
Note: See TracChangeset
for help on using the changeset viewer.