summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/renderer.scons
blob: d0639baac961732ac203db236d772f08140f34af (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
# 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.Bit('windows'):
  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',
    'webmediaplayer_delegate_impl.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.Bit('linux'):
  to_be_ported_files = [
      'chrome_plugin_host.cc',
      'debug_message_handler.cc',
      'external_js_object.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.Bit('mac'):
  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 not env.Bit('mac'):
  env.ChromeLibrary('renderer', input_files)

env.ChromeMSVSProject('$CHROME_DIR/renderer/renderer.vcproj',
                dependencies = [
                    '$CHROME_DIR/app/generated_resources.vcproj',
                ],
                guid='{9301A569-5D2B-4D11-9332-B1E30AEACB8D}')