1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
|
# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
Import('env')
env = env.Clone()
env.Append()
if env['PLATFORM'] == 'win32':
env.Prepend(
CCFLAGS = [
'/TP',
'/wd4244',
'/wd4291',
'/wd4345',
'/wd4521',
'/wd4800',
],)
elif env['PLATFORM'] == 'posix':
env.Append(
# For the image readers and decoders:
CXXFLAGS = "-Wno-sign-compare",
LIBS = 'libpng'
)
input_files = [
'$PORT_DIR/css/RGBColor.cpp',
'$PORT_DIR/history/BackForwardList.cpp',
'$PORT_DIR/history/CachedPage.cpp',
'$PORT_DIR/loader/IconLoader.cpp',
'$PORT_DIR/loader/IconDatabaseNone.cpp',
'$PORT_DIR/page/Console.cpp',
'$PORT_DIR/page/Location.cpp',
'$PORT_DIR/page/Navigator.cpp',
'$PORT_DIR/platform/BString.cpp',
'$PORT_DIR/platform/FramelessScrollView.cpp',
'$PORT_DIR/platform/GKURL.cpp',
'$PORT_DIR/platform/Language.cpp',
'$PORT_DIR/platform/TemporaryLinkStubs.cpp',
'$PORT_DIR/platform/UniscribeStateTextRun.cpp',
'$PORT_DIR/platform/WCDataObject.cpp',
'$PORT_DIR/platform/graphics/AffineTransformSkia.cpp',
'$PORT_DIR/platform/graphics/ColorSkia.cpp',
'$PORT_DIR/platform/graphics/FloatPointSkia.cpp',
'$PORT_DIR/platform/graphics/FloatRectSkia.cpp',
'$PORT_DIR/platform/graphics/FontCustomPlatformData.cpp',
'$PORT_DIR/platform/graphics/GradientSkia.cpp',
'$PORT_DIR/platform/graphics/GraphicsContextPlatformPrivate.cpp',
'$PORT_DIR/platform/graphics/GraphicsContextSkia.cpp',
'$PORT_DIR/platform/graphics/ImageBufferSkia.cpp',
'$PORT_DIR/platform/graphics/ImageSkia.cpp',
'$PORT_DIR/platform/graphics/ImageSourceSkia.cpp',
'$PORT_DIR/platform/graphics/IntPointSkia.cpp',
'$PORT_DIR/platform/graphics/IntRectSkia.cpp',
'$PORT_DIR/platform/graphics/NativeImageSkia.cpp',
'$PORT_DIR/platform/graphics/PathSkia.cpp',
'$PORT_DIR/platform/graphics/PatternSkia.cpp',
'$PORT_DIR/platform/graphics/PlatformContextSkia.cpp',
'$PORT_DIR/platform/graphics/SkGraphicsContext.cpp',
'$PORT_DIR/platform/graphics/SkiaUtils.cpp',
'$PORT_DIR/platform/graphics/SkPaintContext.cpp',
'$PORT_DIR/platform/graphics/svg/RenderPathSkia.cpp',
'$PORT_DIR/platform/graphics/svg/SkiaSupport.cpp',
'$PORT_DIR/platform/graphics/svg/SVGPaintServerGradientSkia.cpp',
'$PORT_DIR/platform/graphics/svg/SVGPaintServerPatternSkia.cpp',
'$PORT_DIR/platform/graphics/svg/SVGPaintServerSkia.cpp',
'$PORT_DIR/platform/graphics/svg/SVGPaintServerSolidSkia.cpp',
'$PORT_DIR/platform/graphics/svg/SVGResourceClipperSkia.cpp',
'$PORT_DIR/platform/graphics/svg/SVGResourceFilterSkia.cpp',
'$PORT_DIR/platform/graphics/svg/SVGResourceMaskerSkia.cpp',
'$PORT_DIR/platform/image-decoders/bmp/BMPImageDecoder.cpp',
'$PORT_DIR/platform/image-decoders/bmp/BMPImageReader.cpp',
'$PORT_DIR/platform/image-decoders/gif/GIFImageDecoder.cpp',
#'$PENDING_DIR/GIFImageDecoder.cpp',
'$PORT_DIR/platform/image-decoders/gif/GIFImageReader.cpp',
'$PORT_DIR/platform/image-decoders/ico/ICOImageDecoder.cpp',
'$PORT_DIR/platform/image-decoders/jpeg/JPEGImageDecoder.cpp',
'$PORT_DIR/platform/image-decoders/png/PNGImageDecoder.cpp',
'$PORT_DIR/platform/image-decoders/xbm/XBMImageDecoder.cpp',
'$PORT_DIR/platform/network/AuthenticationChallenge.cpp',
'$PORT_DIR/platform/network/DNS.cpp',
'$PORT_DIR/plugins/PluginDataChromium.cpp',
]
if env['PLATFORM'] in ('posix', 'darwin'):
# Remove from the list files that haven't yet been made portable
# to Mac and Linux.
remove_files = [
'$PORT_DIR/page/Console.cpp',
'$PORT_DIR/page/Location.cpp',
'$PORT_DIR/page/Navigator.cpp',
'$PORT_DIR/platform/BString.cpp',
'$PORT_DIR/platform/FramelessScrollView.cpp',
'$PORT_DIR/platform/GKURL.cpp',
'$PORT_DIR/platform/UniscribeStateTextRun.cpp',
'$PORT_DIR/platform/WCDataObject.cpp',
'$PORT_DIR/platform/graphics/FontCustomPlatformData.cpp',
'$PORT_DIR/platform/graphics/GraphicsContextSkia.cpp',
'$PORT_DIR/platform/graphics/ImageBufferSkia.cpp',
'$PORT_DIR/platform/graphics/ImageSkia.cpp',
'$PORT_DIR/platform/graphics/PlatformContextSkia.cpp',
'$PORT_DIR/platform/graphics/SkiaUtils.cpp',
'$PORT_DIR/platform/graphics/SkGraphicsContext.cpp',
'$PORT_DIR/platform/network/AuthenticationChallenge.cpp',
'$PORT_DIR/platform/network/DNS.cpp',
'$PORT_DIR/plugins/PluginDataChromium.cpp',
]
for remove in remove_files:
input_files.remove(remove)
if env['PLATFORM'] == 'win32':
# These are win32 specific and will never be ported.
input_files.extend([
'$PORT_DIR/bridge/FrameWin.cpp',
'$PORT_DIR/bridge/PageWin.cpp',
'$PORT_DIR/bridge/PluginsWin.cpp',
'$PORT_DIR/page/AccessibilityObjectWin.cpp',
'$PORT_DIR/page/AXObjectCacheWin.cpp',
'$PORT_DIR/page/DragControllerWin.cpp',
'$PORT_DIR/page/EventHandlerWin.cpp',
'$PORT_DIR/platform/ClipboardUtilitiesWin.cpp',
'$PORT_DIR/platform/ClipboardWin.cpp',
'$PORT_DIR/platform/ContextMenuItemWin.cpp',
'$PORT_DIR/platform/ContextMenuWin.cpp',
'$PORT_DIR/platform/CursorWin.cpp',
'$PORT_DIR/platform/DragDataWin.cpp',
'$PORT_DIR/platform/DragImageWin.cpp',
'$PORT_DIR/platform/EditorWin.cpp',
'$PORT_DIR/platform/FileChooserWin.cpp',
'$PORT_DIR/platform/KeyEventWin.cpp',
'$PORT_DIR/platform/LogWin.cpp',
'$PORT_DIR/platform/MimeTypeRegistryWin.cpp',
'$PORT_DIR/platform/PasteboardWin.cpp',
'$PORT_DIR/platform/PlatformMouseEventWin.cpp',
'$PORT_DIR/platform/PlatformScrollBarWin.cpp',
'$PORT_DIR/platform/PopupMenuWin.cpp',
'$PORT_DIR/platform/SSLKeyGeneratorWin.cpp',
'$PORT_DIR/platform/ScreenWin.cpp',
'$PORT_DIR/platform/ScrollViewWin.cpp',
'$PORT_DIR/platform/SearchPopupMenuWin.cpp',
'$PORT_DIR/platform/SharedTimerWin.cpp',
'$PORT_DIR/platform/SoundWin.cpp',
'$PORT_DIR/platform/SystemTimeWin.cpp',
'$PORT_DIR/platform/TextBoundariesWin.cpp',
'$PORT_DIR/platform/TextBreakIteratorInternalICUWin.cpp',
'$PORT_DIR/platform/WheelEventWin.cpp',
'$PORT_DIR/platform/WidgetWin.cpp',
'$PORT_DIR/platform/graphics/FontCacheWin.cpp',
'$PORT_DIR/platform/graphics/FontPlatformDataWin.cpp',
'$PORT_DIR/platform/graphics/FontWin.cpp',
'$PORT_DIR/platform/graphics/GlyphPageTreeNodeWin.cpp',
'$PORT_DIR/platform/graphics/IconWin.cpp',
'$PORT_DIR/platform/graphics/IntPointWin.cpp',
'$PORT_DIR/platform/graphics/IntRectWin.cpp',
'$PORT_DIR/platform/graphics/IntSizeWin.cpp',
'$PORT_DIR/platform/graphics/SimpleFontDataWin.cpp',
'$PORT_DIR/platform/network/CookieJarWin.cpp',
'$PORT_DIR/platform/network/NetworkStateNotifierWin.cpp',
'$PORT_DIR/rendering/RenderThemeWin.cpp',
])
if env['PLATFORM'] == 'darwin':
input_files.extend([
'$PORT_DIR/bridge/mac/FrameMac.mm',
'$PORT_DIR/page/EventHandlerMac.mm',
'$PORT_DIR/page/WebCoreFrameBridge.mm',
'$PORT_DIR/platform/GKURLMac.mm',
'$PORT_DIR/platform/PluginStubsMac.cpp',
'$PORT_DIR/platform/mac/ClipboardMac.mm',
'$PORT_DIR/platform/mac/DragDataMac.mm',
'$PORT_DIR/platform/mac/IntRectMac.mm',
'$PORT_DIR/platform/mac/PasteboardMac.mm',
'$PORT_DIR/platform/mac/ScrollViewMac.mm',
'$PORT_DIR/platform/graphics/mac/FontCacheMacPending.cpp',
'$PORT_DIR/rendering/RenderThemeMac.mm',
])
if env.get('KJS'):
input_files.extend([
'$PORT_DIR/bridge/ScriptControllerKJS.cpp',
])
else:
input_files.extend([
'$PORT_DIR/bridge/ScriptControllerV8.cpp',
'$PORT_DIR/bridge/ExceptionContextV8.cpp',
])
env.ChromeStaticLibrary("port", input_files)
|