| OLD | NEW |
| 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 Import('env') | 5 Import('env') |
| 6 | 6 |
| 7 env = env.Clone() | 7 env = env.Clone() |
| 8 | 8 |
| 9 if env['PLATFORM'] == 'win32': | 9 if env.Bit('windows'): |
| 10 env.Prepend( | 10 env.Prepend( |
| 11 CCFLAGS = [ | 11 CCFLAGS = [ |
| 12 '/TP', | 12 '/TP', |
| 13 | 13 |
| 14 '/wd4244', | 14 '/wd4244', |
| 15 '/wd4291', | 15 '/wd4291', |
| 16 '/wd4345', | 16 '/wd4345', |
| 17 '/wd4521', | 17 '/wd4521', |
| 18 '/wd4800', | 18 '/wd4800', |
| 19 ],) | 19 ],) |
| 20 elif env['PLATFORM'] == 'posix': | 20 elif env.Bit('linux'): |
| 21 env.Append( | 21 env.Append( |
| 22 # For the image readers and decoders: | 22 # For the image readers and decoders: |
| 23 CXXFLAGS = ["-Wno-sign-compare"], | 23 CXXFLAGS = ["-Wno-sign-compare"], |
| 24 LIBS = ['png'], | 24 LIBS = ['png'], |
| 25 ) | 25 ) |
| 26 | 26 |
| 27 input_files = [ | 27 input_files = [ |
| 28 '$PORT_DIR/bridge/chromium/PluginsChromium.cpp', | 28 '$PORT_DIR/bridge/chromium/PluginsChromium.cpp', |
| 29 | 29 |
| 30 '$PORT_DIR/history/CachedPage.cpp', | 30 '$PORT_DIR/history/CachedPage.cpp', |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 '$PORT_DIR/platform/image-decoders/xbm/XBMImageDecoder.cpp', | 103 '$PORT_DIR/platform/image-decoders/xbm/XBMImageDecoder.cpp', |
| 104 | 104 |
| 105 '$PORT_DIR/platform/network/chromium/AuthenticationChallengeChromium.cpp', | 105 '$PORT_DIR/platform/network/chromium/AuthenticationChallengeChromium.cpp', |
| 106 '$PORT_DIR/platform/network/chromium/CookieJarChromium.cpp', | 106 '$PORT_DIR/platform/network/chromium/CookieJarChromium.cpp', |
| 107 '$PORT_DIR/platform/network/chromium/DNSChromium.cpp', | 107 '$PORT_DIR/platform/network/chromium/DNSChromium.cpp', |
| 108 '$PORT_DIR/platform/network/chromium/NetworkStateNotifierChromium.cpp', | 108 '$PORT_DIR/platform/network/chromium/NetworkStateNotifierChromium.cpp', |
| 109 | 109 |
| 110 '$PORT_DIR/plugins/chromium/PluginDataChromium.cpp', | 110 '$PORT_DIR/plugins/chromium/PluginDataChromium.cpp', |
| 111 ] | 111 ] |
| 112 | 112 |
| 113 if env['PLATFORM'] == 'win32': | 113 if env.Bit('windows'): |
| 114 # Windows specific implementations. | 114 # Windows specific implementations. |
| 115 input_files.extend([ | 115 input_files.extend([ |
| 116 '$PORT_DIR/platform/chromium/FileSystemChromiumWin.cpp', | 116 '$PORT_DIR/platform/chromium/FileSystemChromiumWin.cpp', |
| 117 '$PORT_DIR/platform/chromium/ScrollBarThemeChromiumWin.cpp', | 117 '$PORT_DIR/platform/chromium/ScrollBarThemeChromiumWin.cpp', |
| 118 '$PORT_DIR/platform/chromium/SoundChromiumWin.cpp', | 118 '$PORT_DIR/platform/chromium/SoundChromiumWin.cpp', |
| 119 | 119 |
| 120 '$PORT_DIR/platform/graphics/chromium/FontCacheChromiumWin.cpp', | 120 '$PORT_DIR/platform/graphics/chromium/FontCacheChromiumWin.cpp', |
| 121 '$PORT_DIR/platform/graphics/chromium/FontPlatformDataChromiumWin.cpp', | 121 '$PORT_DIR/platform/graphics/chromium/FontPlatformDataChromiumWin.cpp', |
| 122 '$PORT_DIR/platform/graphics/chromium/FontUtilsChromiumWin.cpp', | 122 '$PORT_DIR/platform/graphics/chromium/FontUtilsChromiumWin.cpp', |
| 123 '$PORT_DIR/platform/graphics/chromium/FontChromiumWin.cpp', | 123 '$PORT_DIR/platform/graphics/chromium/FontChromiumWin.cpp', |
| 124 '$PORT_DIR/platform/graphics/chromium/GlyphPageTreeNodeChromiumWin.cpp', | 124 '$PORT_DIR/platform/graphics/chromium/GlyphPageTreeNodeChromiumWin.cpp', |
| 125 '$PORT_DIR/platform/graphics/chromium/IconChromiumWin.cpp', | 125 '$PORT_DIR/platform/graphics/chromium/IconChromiumWin.cpp', |
| 126 '$PORT_DIR/platform/graphics/chromium/SimpleFontDataChromiumWin.cpp', | 126 '$PORT_DIR/platform/graphics/chromium/SimpleFontDataChromiumWin.cpp', |
| 127 '$PORT_DIR/platform/graphics/chromium/ThemeHelperChromiumWin.cpp', | 127 '$PORT_DIR/platform/graphics/chromium/ThemeHelperChromiumWin.cpp', |
| 128 '$PORT_DIR/platform/graphics/chromium/UniscribeHelper.cpp', | 128 '$PORT_DIR/platform/graphics/chromium/UniscribeHelper.cpp', |
| 129 '$PORT_DIR/platform/graphics/chromium/UniscribeHelperTextRun.cpp', | 129 '$PORT_DIR/platform/graphics/chromium/UniscribeHelperTextRun.cpp', |
| 130 | 130 |
| 131 '$PORT_DIR/rendering/RenderThemeWin.cpp', | 131 '$PORT_DIR/rendering/RenderThemeWin.cpp', |
| 132 ]) | 132 ]) |
| 133 | 133 |
| 134 if env['PLATFORM'] == 'posix': | 134 if env.Bit('linux'): |
| 135 # Linux specific implementations. | 135 # Linux specific implementations. |
| 136 input_files.extend([ | 136 input_files.extend([ |
| 137 '$PORT_DIR/platform/chromium/FileSystemChromiumLinux.cpp', | 137 '$PORT_DIR/platform/chromium/FileSystemChromiumLinux.cpp', |
| 138 '$PORT_DIR/platform/chromium/gtk2drawing.c', | 138 '$PORT_DIR/platform/chromium/gtk2drawing.c', |
| 139 '$PORT_DIR/platform/chromium/KeyCodeConversionGtk.cpp', | 139 '$PORT_DIR/platform/chromium/KeyCodeConversionGtk.cpp', |
| 140 '$PORT_DIR/platform/chromium/RenderThemeGtk.cpp', | 140 '$PORT_DIR/platform/chromium/RenderThemeGtk.cpp', |
| 141 '$PORT_DIR/platform/chromium/ScrollbarThemeChromiumLinux.cpp', | 141 '$PORT_DIR/platform/chromium/ScrollbarThemeChromiumLinux.cpp', |
| 142 '$PORT_DIR/platform/chromium/SoundChromiumPosix.cpp', | 142 '$PORT_DIR/platform/chromium/SoundChromiumPosix.cpp', |
| 143 | 143 |
| 144 '$PORT_DIR/platform/graphics/chromium/FontCacheLinux.cpp', | 144 '$PORT_DIR/platform/graphics/chromium/FontCacheLinux.cpp', |
| 145 '$PORT_DIR/platform/graphics/chromium/FontLinux.cpp', | 145 '$PORT_DIR/platform/graphics/chromium/FontLinux.cpp', |
| 146 '$PORT_DIR/platform/graphics/chromium/FontPlatformDataLinux.cpp', | 146 '$PORT_DIR/platform/graphics/chromium/FontPlatformDataLinux.cpp', |
| 147 '$PORT_DIR/platform/graphics/chromium/GlyphPageTreeNodeLinux.cpp', | 147 '$PORT_DIR/platform/graphics/chromium/GlyphPageTreeNodeLinux.cpp', |
| 148 '$PORT_DIR/platform/graphics/chromium/IconChromiumLinux.cpp', | 148 '$PORT_DIR/platform/graphics/chromium/IconChromiumLinux.cpp', |
| 149 '$PORT_DIR/platform/graphics/chromium/SimpleFontDataLinux.cpp', | 149 '$PORT_DIR/platform/graphics/chromium/SimpleFontDataLinux.cpp', |
| 150 | 150 |
| 151 '$PORT_DIR/platform/graphics/skia/GdkSkia.cc', | 151 '$PORT_DIR/platform/graphics/skia/GdkSkia.cc', |
| 152 ]) | 152 ]) |
| 153 | 153 |
| 154 # Remove from the list files that haven't yet been made portable to Linux. | 154 # Remove from the list files that haven't yet been made portable to Linux. |
| 155 to_be_ported_files = [ | 155 to_be_ported_files = [ |
| 156 '$PORT_DIR/platform/graphics/chromium/FontCustomPlatformData.cpp', | 156 '$PORT_DIR/platform/graphics/chromium/FontCustomPlatformData.cpp', |
| 157 ] | 157 ] |
| 158 input_files = list(set(input_files) - set(to_be_ported_files)) | 158 input_files = list(set(input_files) - set(to_be_ported_files)) |
| 159 | 159 |
| 160 if env['PLATFORM'] == 'darwin': | 160 if env.Bit('mac'): |
| 161 # Mac specific implementations. | 161 # Mac specific implementations. |
| 162 input_files.extend([ | 162 input_files.extend([ |
| 163 '$PORT_DIR/bridge/mac/FrameMac.mm', | 163 '$PORT_DIR/bridge/mac/FrameMac.mm', |
| 164 '$PORT_DIR/page/EventHandlerMac.mm', | 164 '$PORT_DIR/page/EventHandlerMac.mm', |
| 165 '$PORT_DIR/page/WebCoreFrameBridge.mm', | 165 '$PORT_DIR/page/WebCoreFrameBridge.mm', |
| 166 '$PORT_DIR/platform/GKURLMac.mm', | 166 '$PORT_DIR/platform/GKURLMac.mm', |
| 167 '$PORT_DIR/platform/PluginStubsMac.cpp', | 167 '$PORT_DIR/platform/PluginStubsMac.cpp', |
| 168 '$PORT_DIR/platform/mac/DragDataMac.mm', | 168 '$PORT_DIR/platform/mac/DragDataMac.mm', |
| 169 '$PORT_DIR/platform/graphics/mac/FontCacheMacPending.cpp', | 169 '$PORT_DIR/platform/graphics/mac/FontCacheMacPending.cpp', |
| 170 '$PORT_DIR/platform/graphics/skia/public/PlatformCanvasMac.cpp', |
| 171 '$PORT_DIR/platform/graphics/skia/public/PlatformDeviceMac.cpp', |
| 170 '$PORT_DIR/rendering/RenderThemeMac.mm', | 172 '$PORT_DIR/rendering/RenderThemeMac.mm', |
| 171 ]) | 173 ]) |
| 172 | 174 |
| 173 # Remove from the list files that haven't yet been made portable to Mac. | 175 # Remove from the list files that haven't yet been made portable to Mac. |
| 174 to_be_ported_files = [ | 176 to_be_ported_files = [ |
| 175 '$PORT_DIR/page/chromium/AXObjectCacheChromium.cpp', | 177 '$PORT_DIR/page/chromium/AXObjectCacheChromium.cpp', |
| 176 '$PORT_DIR/page/chromium/EventHandlerChromium.cpp', | 178 '$PORT_DIR/page/chromium/EventHandlerChromium.cpp', |
| 177 '$PORT_DIR/platform/chromium/CursorChromium.cpp', | 179 '$PORT_DIR/platform/chromium/CursorChromium.cpp', |
| 178 '$PORT_DIR/platform/chromium/DragDataChromium.cpp', | 180 '$PORT_DIR/platform/chromium/DragDataChromium.cpp', |
| 179 '$PORT_DIR/platform/chromium/PopupMenuChromium.cpp', | 181 '$PORT_DIR/platform/chromium/PopupMenuChromium.cpp', |
| 180 '$PORT_DIR/platform/chromium/WidgetChromium.cpp', | 182 '$PORT_DIR/platform/chromium/WidgetChromium.cpp', |
| 181 '$PORT_DIR/platform/chromium/ScrollbarThemeChromium.cpp', | 183 '$PORT_DIR/platform/chromium/ScrollbarThemeChromium.cpp', |
| 182 '$PORT_DIR/platform/graphics/chromium/FontCustomPlatformData.cpp', | 184 '$PORT_DIR/platform/graphics/chromium/FontCustomPlatformData.cpp', |
| 183 '$PORT_DIR/platform/graphics/skia/ImageSkia.cpp', | 185 '$PORT_DIR/platform/graphics/skia/ImageSkia.cpp', |
| 184 ] | 186 ] |
| 185 input_files = list(set(input_files) - set(to_be_ported_files)) | 187 input_files = list(set(input_files) - set(to_be_ported_files)) |
| 186 | 188 |
| 187 if env.get('KJS'): | 189 if env.get('KJS'): |
| 188 input_files.extend([ | 190 input_files.extend([ |
| 189 '$PORT_DIR/bridge/KJSBridge.cpp', | 191 '$PORT_DIR/bridge/KJSBridge.cpp', |
| 190 '$PORT_DIR/bridge/ScriptControllerKJS.cpp', | 192 '$PORT_DIR/bridge/ScriptControllerKJS.cpp', |
| 191 ]) | 193 ]) |
| 192 else: | 194 else: |
| 193 input_files.extend([ | 195 input_files.extend([ |
| 194 '$PORT_DIR/bindings/v8/ScriptController.cpp', | 196 '$PORT_DIR/bindings/v8/ScriptController.cpp', |
| 195 ]) | 197 ]) |
| 196 | 198 |
| 197 env.ChromeStaticLibrary("port", input_files) | 199 env.ChromeStaticLibrary("port", input_files) |
| OLD | NEW |