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
135
136
137
138
139
140
141
142
143
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
libevent_path_prefix = "src/third_party"
include(libevent_path_prefix + "/libeventcommon.mozbuild")
UNIFIED_SOURCES += [
"src/base/at_exit.cc",
"src/base/command_line.cc",
"src/base/file_path.cc",
"src/base/histogram.cc",
"src/base/logging.cc",
"src/base/message_loop.cc",
"src/base/message_pump_default.cc",
"src/base/pickle.cc",
"src/base/rand_util.cc",
"src/base/revocable_store.cc",
"src/base/string_piece.cc",
"src/base/string_util.cc",
"src/base/thread.cc",
"src/base/time.cc",
"src/base/timer.cc",
"src/chrome/common/child_process.cc",
"src/chrome/common/child_thread.cc",
"src/chrome/common/chrome_switches.cc",
"src/chrome/common/ipc_channel_utils.cc",
"src/chrome/common/ipc_message.cc",
"src/chrome/common/ipc_message_utils.cc",
"src/mojo/core/ports/event.cc",
"src/mojo/core/ports/message_queue.cc",
"src/mojo/core/ports/name.cc",
"src/mojo/core/ports/node.cc",
"src/mojo/core/ports/port.cc",
"src/mojo/core/ports/port_locker.cc",
"src/mojo/core/ports/port_ref.cc",
"src/mojo/core/ports/user_message.cc",
]
if CONFIG["TARGET_KERNEL"] == "WINNT":
SOURCES += [
"src/base/condition_variable_win.cc",
"src/base/lock_impl_win.cc",
"src/base/message_pump_win.cc",
"src/base/object_watcher.cc",
"src/base/platform_thread_win.cc",
"src/base/process_util_win.cc",
"src/base/shared_memory_win.cc",
"src/base/sys_string_conversions_win.cc",
"src/base/thread_local_win.cc",
"src/base/time_win.cc",
"src/base/waitable_event_win.cc",
"src/base/win_util.cc",
"src/chrome/common/ipc_channel_win.cc",
"src/chrome/common/process_watcher_win.cc",
]
elif not CONFIG["MOZ_SYSTEM_LIBEVENT"]:
DIRS += ["src/third_party"]
if CONFIG["TARGET_KERNEL"] != "WINNT":
UNIFIED_SOURCES += [
"src/base/condition_variable_posix.cc",
"src/base/lock_impl_posix.cc",
"src/base/message_pump_libevent.cc",
"src/base/platform_thread_posix.cc",
"src/base/process_util_posix.cc",
"src/base/shared_memory_posix.cc",
"src/base/string16.cc",
"src/base/thread_local_posix.cc",
"src/base/waitable_event_posix.cc",
"src/chrome/common/ipc_channel_posix.cc",
"src/chrome/common/process_watcher_posix_sigchld.cc",
]
if CONFIG["TARGET_KERNEL"] == "Darwin":
UNIFIED_SOURCES += [
"src/base/message_pump_mac.mm",
"src/base/scoped_nsautorelease_pool.mm",
"src/base/sys_string_conversions_mac.mm",
"src/base/time_mac.cc",
"src/chrome/common/mach_ipc_mac.cc",
"src/chrome/common/mach_message_source_mac.cc",
]
SOURCES += [
# This file cannot be built in unified mode because of the redefinition
# of NoOp.
"src/base/platform_thread_mac.mm",
]
if CONFIG["TARGET_OS"] == "OSX":
UNIFIED_SOURCES += [
"src/base/chrome_application_mac.mm",
"src/base/mac_util.mm",
"src/base/process_util_mac.mm",
]
if CONFIG["TARGET_OS"] == "iOS":
UNIFIED_SOURCES += [
"src/base/process_util_ios.cpp",
]
if CONFIG["TARGET_KERNEL"] in ("DragonFly", "FreeBSD", "NetBSD", "OpenBSD"):
SOURCES += [
"src/base/process_util_linux.cc",
"src/base/time_posix.cc",
]
if CONFIG["TARGET_KERNEL"] == "Linux":
SOURCES += [
"src/base/process_util_linux.cc",
"src/base/set_process_title_linux.cc",
"src/base/time_posix.cc",
]
if CONFIG["OS_TARGET"] == "Android":
UNIFIED_SOURCES += [
"src/base/message_pump_android.cc",
]
DEFINES["ANDROID"] = True
DEFINES["_POSIX_MONOTONIC_CLOCK"] = 0
if CONFIG["TARGET_KERNEL"] == "SunOS":
SOURCES += [
"src/base/process_util_linux.cc",
"src/base/time_posix.cc",
]
elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
SOURCES += [
"src/base/message_pump_glib.cc",
]
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
CXXFLAGS += CONFIG["MOZ_GTK3_CFLAGS"]
TEST_DIRS += [
"gtest",
]
include("/ipc/chromium/chromium-config.mozbuild")
FINAL_LIBRARY = "xul"
|