summaryrefslogtreecommitdiffstats
path: root/chrome/common/common.scons
blob: 5b82155f1493275867ab3b6e0ad96ea2df2b318e (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
# 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.SConscript([
    '$BREAKPAD_DIR/using_breakpad.scons',
    '$CHROME_DIR/third_party/wtl/using_wtl.scons',
    '$ICU38_DIR/using_icu38.scons',
    '$LIBJPEG_DIR/using_libjpeg.scons',
    '$LIBPNG_DIR/using_libpng.scons',
    '$LIBXML_DIR/using_libxml.scons',
    '$NPAPI_DIR/using_npapi.scons',
    '$SKIA_DIR/using_skia.scons',
    '$ZLIB_DIR/using_zlib.scons',
], {'env':env})

env.Prepend(
    CPPPATH = [
        '$TARGET_ROOT/grit_derived_sources',
        '$CHROME_DIR/app',
        '$CHROME_SRC_DIR',
    ],
)

env.Append(
    CPPPATH = [
        '$WEBKIT_DIR/build/localized_strings',
    ],
)

if env.Bit('windows'):
  env.Prepend(
      CPPPATH = [
          '$CHROME_DIR/tools/build/win',
      ],
  )

input_files = []

if not env.Bit('mac'):
  # TODO(port): Port to Mac.
  input_files.extend([
      'animation.cc',
      'chrome_constants.cc',
      'chrome_counters.cc',
      'chrome_paths.cc',
      'chrome_switches.cc',
      'common_glue.cc',
      'debug_flags.cc',
      'env_vars.cc',
      'gfx/chrome_canvas.cc',
      'gfx/color_utils.cc',
      'ipc_message.cc',
      'ipc_message_utils.cc',
      'jpeg_codec.cc',
      'json_value_serializer.cc',
      'libxml_utils.cc',
      'logging_chrome.cc',
      'net/cookie_monster_sqlite.cc',
      'notification_registrar.cc',
      'notification_service.cc',
      'pref_member.cc',
      'pref_names.cc',
      'pref_service.cc',
      'property_bag.cc',
      'slide_animation.cc',
      'sqlite_compiled_statement.cc',
      'sqlite_utils.cc',
      'task_queue.cc',
      'throb_animation.cc',
      'thumbnail_score.cc',
      'time_format.cc',
      'visitedlink_common.cc',
  ])

if env.Bit('windows'):
  # TODO(port): Port these.
  input_files.extend([
      'child_process.cc',
      'chrome_plugin_lib.cc',
      'chrome_plugin_util.cc',
      'chrome_process_filter.cc',
      'classfactory.cc',
      'drag_drop_types.cc',
      'gfx/chrome_canvas_win.cc',
      'gfx/emf.cc',
      'gfx/icon_util.cc',
      'gfx/path.cc',
      'gfx/text_elider.cc',
      'ipc_channel_proxy.cc',
      'ipc_logging.cc',
      'ipc_sync_channel.cc',
      'ipc_sync_message.cc',
      'jstemplate_builder.cc',
      'l10n_util.cc',
      'message_router.cc',
      'net/url_request_intercept_job.cc',
      'os_exchange_data.cc',
      'plugin_messages.cc',
      'process_watcher.cc',
      'render_messages.cc',
      'resource_bundle.cc',
      'resource_dispatcher.cc',
      'security_filter_peer.cc',
      'win_safe_util.cc',
      'win_util.cc',
      'worker_thread_ticker.cc',
  ])

if env.Bit('windows'):
  # Windows specific files
  input_files.extend([
      'gfx/chrome_font_win.cc',
      'ipc_channel_win.cc',
  ])
elif env.Bit('linux'):
  input_files.extend([
      'gfx/chrome_canvas_skia.cc',
      'gfx/chrome_font_skia.cc',
  ])

if env.Bit('posix'):
  input_files.extend([
      'ipc_channel_posix.cc',
  ])


if not env.Bit('mac'):
  # TODO(port): This should be enabled for all platforms.
  env.ChromeStaticLibrary('common', input_files)