2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:22 +04:00
|
|
|
# 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/.
|
|
|
|
|
2015-09-23 02:24:51 +03:00
|
|
|
libevent_path_prefix = "src/third_party"
|
|
|
|
include(libevent_path_prefix + "/libeventcommon.mozbuild")
|
2013-04-24 01:54:15 +04:00
|
|
|
|
2013-11-19 16:38:59 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-03 11:10:00 +04:00
|
|
|
"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",
|
2013-10-24 03:00:23 +04:00
|
|
|
"src/chrome/common/child_process.cc",
|
|
|
|
"src/chrome/common/child_process_host.cc",
|
|
|
|
"src/chrome/common/child_thread.cc",
|
|
|
|
"src/chrome/common/chrome_switches.cc",
|
2020-06-30 21:39:42 +03:00
|
|
|
"src/chrome/common/ipc_channel_utils.cc",
|
2013-10-24 03:00:23 +04:00
|
|
|
"src/chrome/common/ipc_message.cc",
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
if os_win:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-03 11:10:00 +04:00
|
|
|
"src/base/condition_variable_win.cc",
|
2013-10-24 03:00:23 +04:00
|
|
|
"src/base/lock_impl_win.cc",
|
2013-10-03 11:10:00 +04:00
|
|
|
"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",
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
2016-11-24 18:08:32 +03:00
|
|
|
|
2016-02-01 18:49:34 +03:00
|
|
|
elif not CONFIG["MOZ_SYSTEM_LIBEVENT"]:
|
2015-09-23 02:24:51 +03:00
|
|
|
DIRS += ["src/third_party"]
|
2013-04-24 01:54:15 +04:00
|
|
|
|
|
|
|
if os_posix:
|
2015-03-24 16:37:51 +03:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-03 11:10:00 +04:00
|
|
|
"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/file_descriptor_set_posix.cc",
|
|
|
|
"src/chrome/common/ipc_channel_posix.cc",
|
|
|
|
"src/chrome/common/process_watcher_posix_sigchld.cc",
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
if os_macosx:
|
2013-11-19 16:38:59 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-25 02:58:17 +04:00
|
|
|
"src/base/chrome_application_mac.mm",
|
|
|
|
"src/base/mac_util.mm",
|
|
|
|
"src/base/message_pump_mac.mm",
|
|
|
|
"src/base/process_util_mac.mm",
|
|
|
|
"src/base/scoped_nsautorelease_pool.mm",
|
|
|
|
"src/base/sys_string_conversions_mac.mm",
|
2015-03-24 16:37:51 +03:00
|
|
|
"src/base/time_mac.cc",
|
2013-10-25 02:58:17 +04:00
|
|
|
"src/chrome/common/mach_ipc_mac.mm",
|
2015-03-24 16:37:51 +03:00
|
|
|
"src/chrome/common/mach_message_source_mac.cc",
|
|
|
|
]
|
|
|
|
SOURCES += [
|
2015-09-23 02:24:51 +03:00
|
|
|
# This file cannot be built in unified mode because of the redefinition
|
|
|
|
# of NoOp.
|
2015-03-24 16:37:51 +03:00
|
|
|
"src/base/platform_thread_mac.mm",
|
2013-07-03 01:09:08 +04:00
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
|
2015-09-23 02:24:51 +03:00
|
|
|
if os_bsd:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2018-09-21 04:53:31 +03:00
|
|
|
"src/base/process_util_linux.cc",
|
2013-10-03 11:10:00 +04:00
|
|
|
"src/base/time_posix.cc",
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
2015-09-23 02:24:51 +03:00
|
|
|
if os_linux:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2015-09-23 02:24:51 +03:00
|
|
|
"src/base/process_util_linux.cc",
|
2013-10-03 11:10:00 +04:00
|
|
|
"src/base/time_posix.cc",
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
2015-09-23 02:24:51 +03:00
|
|
|
if CONFIG["OS_TARGET"] == "Android":
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
"src/base/message_pump_android.cc",
|
|
|
|
]
|
|
|
|
DEFINES["ANDROID"] = True
|
|
|
|
DEFINES["_POSIX_MONOTONIC_CLOCK"] = 0
|
2015-09-23 02:24:51 +03:00
|
|
|
|
|
|
|
if os_bsd or os_linux:
|
2019-08-21 15:25:42 +03:00
|
|
|
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-03 11:10:00 +04:00
|
|
|
"src/base/message_pump_glib.cc",
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
2017-09-25 16:53:41 +03:00
|
|
|
if os_solaris:
|
|
|
|
SOURCES += [
|
|
|
|
"src/base/process_util_linux.cc",
|
|
|
|
"src/base/time_posix.cc",
|
|
|
|
]
|
|
|
|
|
2015-11-10 13:51:44 +03:00
|
|
|
CXXFLAGS += CONFIG["TK_CFLAGS"]
|
|
|
|
|
2013-10-02 21:17:55 +04:00
|
|
|
include("/ipc/chromium/chromium-config.mozbuild")
|
|
|
|
|
2013-11-19 06:47:14 +04:00
|
|
|
FINAL_LIBRARY = "xul"
|
2016-03-18 19:24:21 +03:00
|
|
|
|
2017-12-08 00:09:15 +03:00
|
|
|
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
2016-05-11 10:00:01 +03:00
|
|
|
CXXFLAGS += ["-Wno-error=shadow"]
|