summaryrefslogtreecommitdiffstats
path: root/webkit/default_plugin/SConscript
blob: 571e64d445ba77982d43fe30420fcfacfec01bca (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
# 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.Prepend(
    CPPPATH = [
        '#/../webkit/glue',
        '$ICU38/public/common',
        '$ICU38/public/i18n',
        '#/../third_party/libxml/include',
        '#/../third_party/npapi',
        '#/..',
    ],
)

env.Append(
  CPPDEFINES = [
      'U_STATIC_IMPLEMENTATION',
      'LIBXML_STATIC',
  ],
)

if env['PLATFORM'] == 'win32':
  env.Append(
      CCFLAGS = [
          '/TP',

          '/WX',
          '/Wp64',
      ],
  )

# Platform-independent files.
input_files = [
]

# TODO: Quarantine files -- need porting to platform-specific blocks above.
if env['PLATFORM'] == 'win32':
  input_files.extend([
      'activex_installer.cc',
      'default_plugin.cc',
      'plugin_main.cc',
      'plugin_impl.cc',
      'plugin_database_handler.cc',
      'plugin_install_job_monitor.cc',
      'install_dialog.cc',
  ])

env.ChromeStaticLibrary('default_plugin', input_files)