summaryrefslogtreecommitdiffstats
path: root/webkit/SConscript.port
blob: 0a2d561b19f79205a9ba281aa28a4d5dec7bc2b0 (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
# 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 = [
]

if env.Bit('mac'):
  # Mac specific implementations.
  input_files.extend([
    '$PORT_DIR/platform/graphics/mac/FontCacheMacPending.cpp',
    '$PORT_DIR/rendering/RenderThemeMac.mm',
  ])

if env.get('KJS'):
  # These actually no longer exist, but since JSC build is super-broken, we'll
  # leave them here as stark reminders of our past.
  input_files.extend([
    '$PORT_DIR/bridge/KJSBridge.cpp',
    '$PORT_DIR/bridge/ScriptControllerKJS.cpp',
  ])
else:
  input_files.extend([
    '$PORT_DIR/bindings/v8/ScriptController.cpp',
  ])

env.ChromeLibrary("port", input_files)

env.ChromeMSVSProject('$WEBKIT_DIR/build/port/port.vcproj',
                name = 'Port',
                dependencies = [
                    '$WEBKIT_DIR/build/JSConfig/V8Config.vcproj',
                    '$WEBKIT_DIR/build/V8Bindings/V8Bindings_prebuild.vcproj',
                ],
                guid='{5597AD47-3494-4750-A235-4F9C2F864700}')