2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 01:20:02 +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/.
|
|
|
|
|
2017-04-14 12:54:36 +03:00
|
|
|
with Files("**"):
|
|
|
|
BUG_COMPONENT = ("Core", "Widget: Android")
|
2019-03-05 20:27:48 +03:00
|
|
|
SCHEDULES.exclusive = ['android']
|
2017-04-14 12:54:36 +03:00
|
|
|
|
2017-05-30 05:29:22 +03:00
|
|
|
with Files("*CompositorWidget*"):
|
|
|
|
BUG_COMPONENT = ("Core", "Graphics")
|
|
|
|
|
2014-11-13 21:47:23 +03:00
|
|
|
DIRS += [
|
|
|
|
'bindings',
|
2015-01-10 03:33:57 +03:00
|
|
|
'jni',
|
2014-11-13 21:47:23 +03:00
|
|
|
]
|
|
|
|
|
2013-03-12 21:17:46 +04:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIAndroidBridge.idl',
|
|
|
|
]
|
|
|
|
|
2013-03-12 09:00:00 +04:00
|
|
|
XPIDL_MODULE = 'widget_android'
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS += [
|
|
|
|
'AndroidBridge.h',
|
2018-03-07 07:09:37 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS += [
|
|
|
|
'!GeneratedJNINatives.h',
|
|
|
|
'!GeneratedJNIWrappers.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
2016-10-03 19:26:00 +03:00
|
|
|
EXPORTS.mozilla.widget += [
|
|
|
|
'AndroidCompositorWidget.h',
|
2016-12-29 01:12:41 +03:00
|
|
|
'AndroidUiThread.h',
|
2018-11-16 20:30:26 +03:00
|
|
|
'EventDispatcher.h',
|
|
|
|
'nsWindow.h',
|
2016-10-03 19:26:00 +03:00
|
|
|
]
|
|
|
|
|
2018-03-07 07:09:37 +03:00
|
|
|
SOURCES += [
|
|
|
|
'!GeneratedJNIWrappers.cpp',
|
2019-12-06 23:55:26 +03:00
|
|
|
'MediaKeysEventSourceFactory.cpp',
|
2018-03-07 07:09:37 +03:00
|
|
|
]
|
|
|
|
|
2015-08-05 00:47:28 +03:00
|
|
|
UNIFIED_SOURCES += [
|
2016-08-04 16:17:54 +03:00
|
|
|
'AndroidAlerts.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'AndroidBridge.cpp',
|
2016-10-03 19:26:00 +03:00
|
|
|
'AndroidCompositorWidget.cpp',
|
2015-04-25 05:26:51 +03:00
|
|
|
'AndroidContentController.cpp',
|
2016-12-01 01:59:57 +03:00
|
|
|
'AndroidUiThread.cpp',
|
2018-10-22 12:00:29 +03:00
|
|
|
'EventDispatcher.cpp',
|
2017-03-01 23:29:30 +03:00
|
|
|
'GeckoEditableSupport.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'GfxInfo.cpp',
|
2019-11-18 19:48:55 +03:00
|
|
|
'ImageDecoderSupport.cpp',
|
2014-06-04 23:28:04 +04:00
|
|
|
'nsAndroidProtocolHandler.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsAppShell.cpp',
|
|
|
|
'nsClipboard.cpp',
|
|
|
|
'nsDeviceContextAndroid.cpp',
|
|
|
|
'nsIdleServiceAndroid.cpp',
|
|
|
|
'nsLookAndFeel.cpp',
|
2017-09-05 17:44:42 +03:00
|
|
|
'nsNativeThemeAndroid.cpp',
|
2017-12-19 13:06:39 +03:00
|
|
|
'nsPrintSettingsServiceAndroid.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsWidgetFactory.cpp',
|
|
|
|
'nsWindow.cpp',
|
2019-02-23 21:07:59 +03:00
|
|
|
'ProcInfo.cpp',
|
2018-07-27 21:24:49 +03:00
|
|
|
'ScreenHelperAndroid.cpp',
|
2019-05-10 19:40:17 +03:00
|
|
|
'WebAuthnTokenManager.cpp',
|
2018-10-18 16:28:09 +03:00
|
|
|
'WebExecutorSupport.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
2019-04-05 04:34:58 +03:00
|
|
|
XPCOM_MANIFESTS += [
|
|
|
|
'components.conf',
|
|
|
|
]
|
|
|
|
|
2013-10-02 21:17:55 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2018-03-07 07:09:37 +03:00
|
|
|
# The recursive make backend treats the first output specially: it's passed as
|
|
|
|
# an open FileAvoidWrite to the invoked script. That doesn't work well with
|
|
|
|
# the Gradle task that generates all of the outputs, so we add a dummy first
|
|
|
|
# output.
|
2019-10-08 00:15:19 +03:00
|
|
|
GeneratedFile(
|
|
|
|
'generated_jni_wrappers', 'GeneratedJNINatives.h', 'GeneratedJNIWrappers.h',
|
|
|
|
'GeneratedJNIWrappers.cpp', script='/mobile/android/gradle.py',
|
|
|
|
entry_point='generate_generated_jni_wrappers')
|
2018-03-07 07:09:37 +03:00
|
|
|
|
2013-11-19 06:47:14 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-27 17:55:07 +04:00
|
|
|
|
2013-11-28 18:17:25 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/docshell/base',
|
2014-04-22 18:53:48 +04:00
|
|
|
'/dom/base',
|
2013-11-28 18:17:25 +04:00
|
|
|
'/dom/system/android',
|
2017-09-05 17:44:57 +03:00
|
|
|
'/gfx/2d',
|
2017-11-01 02:40:41 +03:00
|
|
|
'/gfx/vr',
|
2017-09-05 17:44:57 +03:00
|
|
|
'/layout/painting',
|
2015-01-20 11:58:00 +03:00
|
|
|
'/netwerk/base',
|
2013-11-28 18:17:25 +04:00
|
|
|
'/netwerk/cache',
|
2019-08-09 07:51:10 +03:00
|
|
|
'/toolkit/components/telemetry',
|
2014-10-23 21:16:45 +04:00
|
|
|
'/widget',
|
2016-12-01 01:59:57 +03:00
|
|
|
'/xpcom/threads',
|
2013-11-28 18:17:25 +04:00
|
|
|
]
|
|
|
|
|
2016-05-11 10:00:01 +03:00
|
|
|
CXXFLAGS += ['-Wno-error=shadow']
|
|
|
|
|
2016-05-25 23:07:47 +03:00
|
|
|
OS_LIBS += ['android']
|
|
|
|
|
2017-12-07 07:28:04 +03:00
|
|
|
if CONFIG['MOZ_NATIVE_DEVICES']:
|
|
|
|
DEFINES['MOZ_NATIVE_DEVICES'] = True
|
2016-05-25 23:07:47 +03:00
|
|
|
|
2017-12-07 07:28:04 +03:00
|
|
|
#DEFINES['DEBUG_WIDGETS'] = True
|