2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 01:20:02 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# Copyright 2013 Mozilla Foundation and Mozilla contributors
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS += [
|
2014-10-24 05:50:31 +04:00
|
|
|
'GeckoTouchDispatcher.h',
|
2013-12-05 18:29:07 +04:00
|
|
|
'GonkPermission.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'OrientationObserver.h',
|
|
|
|
]
|
|
|
|
|
2013-08-13 20:58:38 +04:00
|
|
|
DIRS += ['libdisplay', 'nativewindow']
|
2013-04-24 01:54:15 +04:00
|
|
|
|
2013-08-27 01:59:18 +04:00
|
|
|
# libui files
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += ['libui/' + src for src in [
|
2013-04-24 01:54:15 +04:00
|
|
|
'EventHub.cpp',
|
|
|
|
'Input.cpp',
|
|
|
|
'InputApplication.cpp',
|
2013-08-27 01:59:18 +04:00
|
|
|
'InputDevice.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'InputDispatcher.cpp',
|
|
|
|
'InputListener.cpp',
|
|
|
|
'InputReader.cpp',
|
|
|
|
'InputTransport.cpp',
|
|
|
|
'InputWindow.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'Keyboard.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'KeyCharacterMap.cpp',
|
|
|
|
'KeyLayoutMap.cpp',
|
|
|
|
'PointerController.cpp',
|
2014-12-17 04:43:41 +03:00
|
|
|
'sha1.c',
|
2013-04-24 01:54:15 +04:00
|
|
|
'SpriteController.cpp',
|
|
|
|
'Tokenizer.cpp',
|
2013-08-27 01:59:18 +04:00
|
|
|
'VelocityControl.cpp',
|
|
|
|
'VelocityTracker.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'VirtualKeyMap.cpp',
|
2013-10-03 11:10:00 +04:00
|
|
|
]]
|
2013-08-27 01:59:18 +04:00
|
|
|
|
2015-06-23 16:02:00 +03:00
|
|
|
# HwcHAL files
|
|
|
|
if CONFIG['ANDROID_VERSION'] >= '17':
|
|
|
|
SOURCES += [
|
|
|
|
'hwchal/HwcHAL.cpp',
|
|
|
|
]
|
|
|
|
elif CONFIG['ANDROID_VERSION'] == '15':
|
|
|
|
SOURCES += [
|
|
|
|
'hwchal/HwcICS.cpp',
|
|
|
|
]
|
|
|
|
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2014-09-01 02:38:00 +04:00
|
|
|
'GeckoTouchDispatcher.cpp',
|
2013-08-27 01:59:18 +04:00
|
|
|
'GfxInfo.cpp',
|
|
|
|
'GonkMemoryPressureMonitoring.cpp',
|
2013-12-05 18:29:07 +04:00
|
|
|
'GonkPermission.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'HwcComposer2D.cpp',
|
|
|
|
'HwcUtils.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsAppShell.cpp',
|
2014-04-07 07:49:35 +04:00
|
|
|
'nsClipboard.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsIdleServiceGonk.cpp',
|
|
|
|
'nsLookAndFeel.cpp',
|
2015-05-22 11:40:09 +03:00
|
|
|
'nsScreenManagerGonk.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsWidgetFactory.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'nsWindow.cpp',
|
|
|
|
'OrientationObserver.cpp',
|
2014-02-05 22:53:53 +04:00
|
|
|
'ProcessOrientation.cpp',
|
|
|
|
'WidgetTraceEvent.cpp'
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
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'
|
2013-11-27 17:55:07 +04:00
|
|
|
|
2013-11-28 18:17:25 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/dom/system/android',
|
2013-12-12 05:41:42 +04:00
|
|
|
'/gfx/skia/trunk/include/config',
|
|
|
|
'/gfx/skia/trunk/include/core',
|
2014-10-23 21:16:45 +04:00
|
|
|
'/widget',
|
2013-11-28 18:17:25 +04:00
|
|
|
]
|
|
|
|
|
2013-11-27 17:55:07 +04:00
|
|
|
DEFINES['HAVE_OFF64_T'] = True
|
|
|
|
DEFINES['SK_BUILD_FOR_ANDROID_NDK'] = True
|
|
|
|
|
2014-10-14 23:16:45 +04:00
|
|
|
if CONFIG['ANDROID_VERSION'] != '15':
|
|
|
|
DEFINES['HAVE_POSIX_CLOCKS'] = True
|
|
|
|
|
2013-11-27 17:55:07 +04:00
|
|
|
if CONFIG['MOZ_OMX_DECODER']:
|
|
|
|
DEFINES['MOZ_OMX_DECODER'] = True
|
2014-03-14 03:31:18 +04:00
|
|
|
|
|
|
|
CXXFLAGS += [
|
|
|
|
'-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [
|
|
|
|
'hardware/libhardware/include',
|
|
|
|
'hardware/libhardware_legacy/include',
|
|
|
|
'frameworks/native/opengl/include',
|
|
|
|
]
|
|
|
|
]
|