2017-04-04 17:22:00 +03:00
|
|
|
# -*- 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/.
|
|
|
|
|
2017-04-14 12:54:36 +03:00
|
|
|
with Files("**"):
|
|
|
|
BUG_COMPONENT = ("Core", "Widget")
|
|
|
|
|
2017-04-04 17:22:00 +03:00
|
|
|
DIRS += ['tests']
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/widget',
|
2017-03-17 00:51:19 +03:00
|
|
|
'/widget/headless',
|
2017-04-04 17:22:00 +03:00
|
|
|
]
|
|
|
|
|
2017-07-06 05:41:21 +03:00
|
|
|
widget_dir = CONFIG['MOZ_WIDGET_TOOLKIT']
|
2018-01-10 12:04:59 +03:00
|
|
|
if widget_dir == 'gtk3':
|
2017-07-06 05:41:21 +03:00
|
|
|
widget_dir = 'gtk'
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/widget/%s' % widget_dir,
|
|
|
|
]
|
|
|
|
|
2017-04-04 17:22:00 +03:00
|
|
|
UNIFIED_SOURCES += [
|
2017-03-17 00:51:19 +03:00
|
|
|
'HeadlessClipboard.cpp',
|
|
|
|
'HeadlessClipboardData.cpp',
|
2017-06-21 18:50:02 +03:00
|
|
|
'HeadlessCompositorWidget.cpp',
|
2017-04-27 00:29:32 +03:00
|
|
|
'HeadlessScreenHelper.cpp',
|
|
|
|
'HeadlessSound.cpp',
|
2017-04-04 17:22:00 +03:00
|
|
|
'HeadlessWidget.cpp',
|
|
|
|
]
|
|
|
|
|
2017-07-06 05:41:21 +03:00
|
|
|
if widget_dir == 'gtk':
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'HeadlessLookAndFeelGTK.cpp',
|
2017-09-21 00:46:03 +03:00
|
|
|
'HeadlessThemeGTK.cpp',
|
2017-07-06 05:41:21 +03:00
|
|
|
]
|
|
|
|
|
2017-10-14 03:40:27 +03:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'HeadlessKeyBindingsCocoa.mm',
|
|
|
|
]
|
|
|
|
else:
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'HeadlessKeyBindings.cpp',
|
|
|
|
]
|
|
|
|
|
2017-04-04 17:22:00 +03:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
|
|
|
FINAL_LIBRARY = 'xul'
|