summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/renderer.scons
blob: d52b74389fb7a18a7db04215fa57bced2d150c06 (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
# 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([
    '$CHROME_DIR/third_party/wtl/using_wtl.scons',
    '$ICU38_DIR/using_icu38.scons',
    '$NPAPI_DIR/using_npapi.scons',
    '$SKIA_DIR/using_skia.scons',
], {'env':env})

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

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

input_files = [
    'about_handler.cc',
    'chrome_plugin_host.cc',
    'debug_message_handler.cc',
    'dom_ui_bindings.cc',
    'external_host_bindings.cc',
    'external_js_object.cc',
    'greasemonkey_slave.cc',
    'localized_error.cc',
    'plugin_channel_host.cc',
    'render_process.cc',
    'render_thread.cc',
    'render_view.cc',
    'render_widget.cc',
    'renderer_glue.cc',
    'renderer_main.cc',
    'visitedlink_slave.cc',
    'webplugin_delegate_proxy.cc',

    'automation/dom_automation_controller.cc',

    'net/render_dns_master.cc',
    'net/render_dns_queue.cc',
]

# TODO(port): Port these to Linux
if env['PLATFORM'] == 'posix':
  to_be_ported_files = [
      'automation/dom_automation_controller.cc',
      'chrome_plugin_host.cc',
      'debug_message_handler.cc',
      'dom_ui_bindings.cc',
      'external_js_object.cc',
      'external_host_bindings.cc',
      'greasemonkey_slave.cc',
      'localized_error.cc',
      'net/render_dns_master.cc',
      'plugin_channel_host.cc',
      'render_process.cc',
      'render_thread.cc',
      'render_view.cc',
      'render_widget.cc',
      'renderer_glue.cc',
      'renderer_main.cc',
      'webplugin_delegate_proxy.cc',
  ]
  for remove in to_be_ported_files:
    input_files.remove(remove)

# TODO(port): Port these to Mac
if env['PLATFORM'] == 'darwin':
  to_be_ported_files = [
      'about_handler.cc',
      'chrome_plugin_host.cc',
      'debug_message_handler.cc',
      'dom_ui_bindings.cc',
      'external_host_bindings.cc',
      'external_js_object.cc',
      'greasemonkey_slave.cc',
      'localized_error.cc',
      'plugin_channel_host.cc',
      'render_process.cc',
      'render_thread.cc',
      'render_view.cc',
      'render_widget.cc',
      'renderer_glue.cc',
      'renderer_main.cc',
      'visitedlink_slave.cc',
      'webplugin_delegate_proxy.cc',
      'automation/dom_automation_controller.cc',
      'net/render_dns_master.cc',
      'net/render_dns_queue.cc',
  ]
  for remove in to_be_ported_files:
    input_files.remove(remove)


# TODO(port): Enable for Mac.
if env['PLATFORM'] in ('posix', 'win32'):
  env.ChromeStaticLibrary('renderer', input_files)