1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 libevent_path_prefix = "src/third_party"
8 include(libevent_path_prefix + "/libeventcommon.mozbuild")
11 "src/base/at_exit.cc",
12 "src/base/command_line.cc",
13 "src/base/file_path.cc",
14 "src/base/histogram.cc",
15 "src/base/logging.cc",
16 "src/base/message_loop.cc",
17 "src/base/message_pump_default.cc",
19 "src/base/rand_util.cc",
20 "src/base/revocable_store.cc",
21 "src/base/string_piece.cc",
22 "src/base/string_util.cc",
26 "src/chrome/common/child_process.cc",
27 "src/chrome/common/child_thread.cc",
28 "src/chrome/common/chrome_switches.cc",
29 "src/chrome/common/ipc_channel_utils.cc",
30 "src/chrome/common/ipc_message.cc",
31 "src/chrome/common/ipc_message_utils.cc",
32 "src/mojo/core/ports/event.cc",
33 "src/mojo/core/ports/message_queue.cc",
34 "src/mojo/core/ports/name.cc",
35 "src/mojo/core/ports/node.cc",
36 "src/mojo/core/ports/port.cc",
37 "src/mojo/core/ports/port_locker.cc",
38 "src/mojo/core/ports/port_ref.cc",
39 "src/mojo/core/ports/user_message.cc",
42 if CONFIG["TARGET_KERNEL"] == "WINNT":
44 "src/base/condition_variable_win.cc",
45 "src/base/lock_impl_win.cc",
46 "src/base/message_pump_win.cc",
47 "src/base/object_watcher.cc",
48 "src/base/platform_thread_win.cc",
49 "src/base/process_util_win.cc",
50 "src/base/shared_memory_win.cc",
51 "src/base/sys_string_conversions_win.cc",
52 "src/base/thread_local_win.cc",
53 "src/base/time_win.cc",
54 "src/base/waitable_event_win.cc",
55 "src/base/win_util.cc",
56 "src/chrome/common/ipc_channel_win.cc",
57 "src/chrome/common/process_watcher_win.cc",
60 elif not CONFIG["MOZ_SYSTEM_LIBEVENT"]:
61 DIRS += ["src/third_party"]
63 if CONFIG["TARGET_KERNEL"] != "WINNT":
65 "src/base/condition_variable_posix.cc",
66 "src/base/lock_impl_posix.cc",
67 "src/base/message_pump_libevent.cc",
68 "src/base/platform_thread_posix.cc",
69 "src/base/process_util_posix.cc",
70 "src/base/shared_memory_posix.cc",
71 "src/base/string16.cc",
72 "src/base/thread_local_posix.cc",
73 "src/base/waitable_event_posix.cc",
74 "src/chrome/common/ipc_channel_posix.cc",
75 "src/chrome/common/process_watcher_posix_sigchld.cc",
78 if CONFIG["TARGET_KERNEL"] == "Darwin":
80 "src/base/message_pump_mac.mm",
81 "src/base/scoped_nsautorelease_pool.mm",
82 "src/base/sys_string_conversions_mac.mm",
83 "src/base/time_mac.cc",
84 "src/chrome/common/mach_ipc_mac.cc",
85 "src/chrome/common/mach_message_source_mac.cc",
88 # This file cannot be built in unified mode because of the redefinition
90 "src/base/platform_thread_mac.mm",
93 if CONFIG["TARGET_OS"] == "OSX":
95 "src/base/chrome_application_mac.mm",
96 "src/base/mac_util.mm",
97 "src/base/process_util_mac.mm",
100 if CONFIG["TARGET_OS"] == "iOS":
102 "src/base/process_util_ios.cpp",
105 if CONFIG["TARGET_KERNEL"] in ("DragonFly", "FreeBSD", "NetBSD", "OpenBSD"):
107 "src/base/process_util_linux.cc",
108 "src/base/time_posix.cc",
111 if CONFIG["TARGET_KERNEL"] == "Linux":
113 "src/base/process_util_linux.cc",
114 "src/base/set_process_title_linux.cc",
115 "src/base/time_posix.cc",
117 if CONFIG["OS_TARGET"] == "Android":
119 "src/base/message_pump_android.cc",
121 DEFINES["ANDROID"] = True
122 DEFINES["_POSIX_MONOTONIC_CLOCK"] = 0
124 if CONFIG["TARGET_KERNEL"] == "SunOS":
126 "src/base/process_util_linux.cc",
127 "src/base/time_posix.cc",
129 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
131 "src/base/message_pump_glib.cc",
134 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
135 CXXFLAGS += CONFIG["MOZ_GTK3_CFLAGS"]
141 include("/ipc/chromium/chromium-config.mozbuild")
143 FINAL_LIBRARY = "xul"