summaryrefslogtreecommitdiffstats
path: root/webkit/SConscript.port
blob: 73a7d92d50ab67125a5a0df8afc695a3baf96d22 (plain)
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
# 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()

if env.Bit('windows'):
  env.Prepend(
    CCFLAGS = [
      '/TP',

      '/wd4244',
      '/wd4291',
      '/wd4345',
      '/wd4521',
      '/wd4800',
      ],)
elif env.Bit('linux'):
  env.Append(
      # For the image readers and decoders:
      CXXFLAGS = ["-Wno-sign-compare"],
      LIBS = ['png'],
  )

input_files = [
    '$PORT_DIR/bridge/chromium/PluginsChromium.cpp',

    '$PORT_DIR/history/CachedPage.cpp',

    '$PORT_DIR/page/Location.cpp',
    '$PORT_DIR/page/chromium/AccessibilityObjectChromium.cpp',
    '$PORT_DIR/page/chromium/AXObjectCacheChromium.cpp',
    '$PORT_DIR/page/chromium/DragControllerChromium.cpp',
    '$PORT_DIR/page/chromium/EventHandlerChromium.cpp',
    '$PORT_DIR/page/chromium/FrameChromium.cpp',

    '$PORT_DIR/platform/GKURL.cpp',

    '$PORT_DIR/platform/chromium/ChromiumDataObject.cpp',
    '$PORT_DIR/platform/chromium/ClipboardChromium.cpp',
    '$PORT_DIR/platform/chromium/ClipboardUtilitiesChromium.cpp',
    '$PORT_DIR/platform/chromium/ContextMenuChromium.cpp',
    '$PORT_DIR/platform/chromium/ContextMenuItemChromium.cpp',
    '$PORT_DIR/platform/chromium/CursorChromium.cpp',
    '$PORT_DIR/platform/chromium/DragDataChromium.cpp',
    '$PORT_DIR/platform/chromium/DragImageChromium.cpp',
    '$PORT_DIR/platform/chromium/EditorChromium.cpp',
    '$PORT_DIR/platform/chromium/FileChooserChromium.cpp',
    '$PORT_DIR/platform/chromium/FileSystemChromium.cpp',
    '$PORT_DIR/platform/chromium/FramelessScrollView.cpp',
    '$PORT_DIR/platform/chromium/Language.cpp',
    '$PORT_DIR/platform/chromium/MimeTypeRegistryChromium.cpp',
    '$PORT_DIR/platform/chromium/PasteboardChromium.cpp',
    '$PORT_DIR/platform/chromium/PlatformKeyboardEventChromium.cpp',
    '$PORT_DIR/platform/chromium/PlatformScreenChromium.cpp',
    '$PORT_DIR/platform/chromium/PopupMenuChromium.cpp',
    '$PORT_DIR/platform/chromium/SearchPopupMenuChromium.cpp',
    '$PORT_DIR/platform/chromium/SharedTimerChromium.cpp',
    '$PORT_DIR/platform/chromium/SSLKeyGeneratorChromium.cpp',
    '$PORT_DIR/platform/chromium/SystemTimeChromium.cpp',
    '$PORT_DIR/platform/chromium/TemporaryLinkStubs.cpp',
    '$PORT_DIR/platform/chromium/TextBoundariesChromium.cpp',
    '$PORT_DIR/platform/chromium/TextBreakIteratorInternalICUChromium.cpp',
    '$PORT_DIR/platform/chromium/WidgetChromium.cpp',
    '$PORT_DIR/platform/chromium/ScrollbarThemeChromium.cpp',

    '$PORT_DIR/platform/graphics/skia/AffineTransformSkia.cpp',
    '$PORT_DIR/platform/graphics/skia/ColorSkia.cpp',
    '$PORT_DIR/platform/graphics/skia/FloatPointSkia.cpp',
    '$PORT_DIR/platform/graphics/skia/FloatRectSkia.cpp',
    '$PORT_DIR/platform/graphics/skia/GradientSkia.cpp',
    '$PORT_DIR/platform/graphics/skia/GraphicsContextSkia.cpp',
    '$PORT_DIR/platform/graphics/skia/ImageBufferSkia.cpp',
    '$PORT_DIR/platform/graphics/skia/ImageSkia.cpp',
    '$PORT_DIR/platform/graphics/skia/ImageSourceSkia.cpp',
    '$PORT_DIR/platform/graphics/skia/IntPointSkia.cpp',
    '$PORT_DIR/platform/graphics/skia/IntRectSkia.cpp',
    '$PORT_DIR/platform/graphics/skia/NativeImageSkia.cpp',
    '$PORT_DIR/platform/graphics/skia/PathSkia.cpp',
    '$PORT_DIR/platform/graphics/skia/PatternSkia.cpp',
    '$PORT_DIR/platform/graphics/skia/PlatformContextSkia.cpp',
    '$PORT_DIR/platform/graphics/skia/SkiaUtils.cpp',

    '$PORT_DIR/platform/graphics/chromium/FontCustomPlatformData.cpp',

    '$PORT_DIR/svg/graphics/skia/RenderPathSkia.cpp',
    '$PORT_DIR/svg/graphics/skia/SkiaSupport.cpp',
    '$PORT_DIR/svg/graphics/skia/SVGPaintServerGradientSkia.cpp',
    '$PORT_DIR/svg/graphics/skia/SVGPaintServerPatternSkia.cpp',
    '$PORT_DIR/svg/graphics/skia/SVGPaintServerSkia.cpp',
    '$PORT_DIR/svg/graphics/skia/SVGResourceFilterSkia.cpp',
    '$PORT_DIR/svg/graphics/skia/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',
    '$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/chromium/AuthenticationChallengeChromium.cpp',
    '$PORT_DIR/platform/network/chromium/CookieJarChromium.cpp',
    '$PORT_DIR/platform/network/chromium/DNSChromium.cpp',
    '$PORT_DIR/platform/network/chromium/NetworkStateNotifierChromium.cpp',

    '$PORT_DIR/plugins/chromium/PluginDataChromium.cpp',
]

if env.Bit('windows'):
  # Windows specific implementations.
  input_files.extend([
    '$PORT_DIR/platform/chromium/FileSystemChromiumWin.cpp',
    '$PORT_DIR/platform/chromium/ScrollBarThemeChromiumWin.cpp',
    '$PORT_DIR/platform/chromium/SoundChromiumWin.cpp',

    '$PORT_DIR/platform/graphics/chromium/FontCacheChromiumWin.cpp',
    '$PORT_DIR/platform/graphics/chromium/FontPlatformDataChromiumWin.cpp',
    '$PORT_DIR/platform/graphics/chromium/FontUtilsChromiumWin.cpp',
    '$PORT_DIR/platform/graphics/chromium/FontChromiumWin.cpp',
    '$PORT_DIR/platform/graphics/chromium/GlyphPageTreeNodeChromiumWin.cpp',
    '$PORT_DIR/platform/graphics/chromium/IconChromiumWin.cpp',
    '$PORT_DIR/platform/graphics/chromium/SimpleFontDataChromiumWin.cpp',
    '$PORT_DIR/platform/graphics/chromium/ThemeHelperChromiumWin.cpp',
    '$PORT_DIR/platform/graphics/chromium/UniscribeHelper.cpp',
    '$PORT_DIR/platform/graphics/chromium/UniscribeHelperTextRun.cpp',

    '$PORT_DIR/rendering/RenderThemeWin.cpp',
  ])

if env.Bit('linux'):
  # Linux specific implementations.
  input_files.extend([
    '$PORT_DIR/platform/chromium/FileSystemChromiumLinux.cpp',
    '$PORT_DIR/platform/chromium/gtk2drawing.c',
    '$PORT_DIR/platform/chromium/KeyCodeConversionGtk.cpp',
    '$PORT_DIR/platform/chromium/RenderThemeGtk.cpp',
    '$PORT_DIR/platform/chromium/ScrollbarThemeChromiumLinux.cpp',
    '$PORT_DIR/platform/chromium/SoundChromiumPosix.cpp',

    '$PORT_DIR/platform/graphics/chromium/FontCacheLinux.cpp',
    '$PORT_DIR/platform/graphics/chromium/FontLinux.cpp',
    '$PORT_DIR/platform/graphics/chromium/FontPlatformDataLinux.cpp',
    '$PORT_DIR/platform/graphics/chromium/GlyphPageTreeNodeLinux.cpp',
    '$PORT_DIR/platform/graphics/chromium/IconChromiumLinux.cpp',
    '$PORT_DIR/platform/graphics/chromium/SimpleFontDataLinux.cpp',

    '$PORT_DIR/platform/graphics/skia/GdkSkia.cc',
  ])

  # Remove from the list files that haven't yet been made portable to Linux.
  to_be_ported_files = [
    '$PORT_DIR/platform/graphics/chromium/FontCustomPlatformData.cpp',
  ]
  input_files = list(set(input_files) - set(to_be_ported_files))

if env.Bit('mac'):
  # Mac specific implementations.
  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/DragDataMac.mm',
    '$PORT_DIR/platform/graphics/mac/FontCacheMacPending.cpp',
    '$PORT_DIR/platform/graphics/skia/public/PlatformCanvasMac.cpp',
    '$PORT_DIR/platform/graphics/skia/public/PlatformDeviceMac.cpp',
    '$PORT_DIR/rendering/RenderThemeMac.mm',
  ])

  # Remove from the list files that haven't yet been made portable to Mac.
  to_be_ported_files = [
    '$PORT_DIR/page/chromium/AXObjectCacheChromium.cpp',
    '$PORT_DIR/page/chromium/EventHandlerChromium.cpp',
    '$PORT_DIR/platform/chromium/CursorChromium.cpp',
    '$PORT_DIR/platform/chromium/DragDataChromium.cpp',
    '$PORT_DIR/platform/chromium/PopupMenuChromium.cpp',
    '$PORT_DIR/platform/chromium/WidgetChromium.cpp',
    '$PORT_DIR/platform/chromium/ScrollbarThemeChromium.cpp',
    '$PORT_DIR/platform/graphics/chromium/FontCustomPlatformData.cpp',
    '$PORT_DIR/platform/graphics/skia/ImageSkia.cpp',
  ]
  input_files = list(set(input_files) - set(to_be_ported_files))

if env.get('KJS'):
  input_files.extend([
    '$PORT_DIR/bridge/KJSBridge.cpp',
    '$PORT_DIR/bridge/ScriptControllerKJS.cpp',
  ])
else:
  input_files.extend([
    '$PORT_DIR/bindings/v8/ScriptController.cpp',
  ])

env.ChromeStaticLibrary("port", input_files)