2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 21:20:02 +00: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 19:24:43 +00:00
|
|
|
EXPORTS += [
|
2014-10-24 01:50:31 +00:00
|
|
|
'GeckoTouchDispatcher.h',
|
2013-12-05 14:29:07 +00:00
|
|
|
'GonkPermission.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'OrientationObserver.h',
|
|
|
|
]
|
|
|
|
|
2013-08-13 16:58:38 +00:00
|
|
|
DIRS += ['libdisplay', 'nativewindow']
|
2013-04-23 21:54:15 +00:00
|
|
|
|
2013-08-26 21:59:18 +00:00
|
|
|
# libui files
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += ['libui/' + src for src in [
|
2013-04-23 21:54:15 +00:00
|
|
|
'EventHub.cpp',
|
|
|
|
'Input.cpp',
|
|
|
|
'InputApplication.cpp',
|
2013-08-26 21:59:18 +00:00
|
|
|
'InputDevice.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'InputDispatcher.cpp',
|
|
|
|
'InputListener.cpp',
|
|
|
|
'InputReader.cpp',
|
|
|
|
'InputTransport.cpp',
|
|
|
|
'InputWindow.cpp',
|
2013-10-23 23:05:43 +00:00
|
|
|
'Keyboard.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'KeyCharacterMap.cpp',
|
|
|
|
'KeyLayoutMap.cpp',
|
|
|
|
'PointerController.cpp',
|
2014-12-17 01:43:41 +00:00
|
|
|
'sha1.c',
|
2013-04-23 21:54:15 +00:00
|
|
|
'SpriteController.cpp',
|
|
|
|
'Tokenizer.cpp',
|
2013-08-26 21:59:18 +00:00
|
|
|
'VelocityControl.cpp',
|
|
|
|
'VelocityTracker.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'VirtualKeyMap.cpp',
|
2013-10-03 07:10:00 +00:00
|
|
|
]]
|
2013-08-26 21:59:18 +00:00
|
|
|
|
2015-06-23 13:02:00 +00:00
|
|
|
# HwcHAL files
|
|
|
|
if CONFIG['ANDROID_VERSION'] >= '17':
|
|
|
|
SOURCES += [
|
|
|
|
'hwchal/HwcHAL.cpp',
|
|
|
|
]
|
|
|
|
elif CONFIG['ANDROID_VERSION'] == '15':
|
|
|
|
SOURCES += [
|
|
|
|
'hwchal/HwcICS.cpp',
|
|
|
|
]
|
|
|
|
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += [
|
2014-08-31 22:38:00 +00:00
|
|
|
'GeckoTouchDispatcher.cpp',
|
2013-08-26 21:59:18 +00:00
|
|
|
'GfxInfo.cpp',
|
|
|
|
'GonkMemoryPressureMonitoring.cpp',
|
2013-12-05 14:29:07 +00:00
|
|
|
'GonkPermission.cpp',
|
2013-10-23 23:00:23 +00:00
|
|
|
'HwcComposer2D.cpp',
|
|
|
|
'HwcUtils.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'nsAppShell.cpp',
|
2014-04-07 03:49:35 +00:00
|
|
|
'nsClipboard.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'nsIdleServiceGonk.cpp',
|
|
|
|
'nsLookAndFeel.cpp',
|
2015-05-22 08:40:09 +00:00
|
|
|
'nsScreenManagerGonk.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'nsWidgetFactory.cpp',
|
2013-10-23 23:05:43 +00:00
|
|
|
'nsWindow.cpp',
|
|
|
|
'OrientationObserver.cpp',
|
2014-02-05 18:53:53 +00:00
|
|
|
'ProcessOrientation.cpp',
|
|
|
|
'WidgetTraceEvent.cpp'
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
|
|
|
|
2013-10-02 17:17:55 +00:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-19 02:47:14 +00:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-27 13:55:07 +00:00
|
|
|
|
2013-11-28 14:17:25 +00:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/dom/system/android',
|
2013-12-12 01:41:42 +00:00
|
|
|
'/gfx/skia/trunk/include/config',
|
|
|
|
'/gfx/skia/trunk/include/core',
|
2014-10-23 17:16:45 +00:00
|
|
|
'/widget',
|
2013-11-28 14:17:25 +00:00
|
|
|
]
|
|
|
|
|
2013-11-27 13:55:07 +00:00
|
|
|
DEFINES['HAVE_OFF64_T'] = True
|
|
|
|
DEFINES['SK_BUILD_FOR_ANDROID_NDK'] = True
|
|
|
|
|
2014-10-14 19:16:45 +00:00
|
|
|
if CONFIG['ANDROID_VERSION'] != '15':
|
|
|
|
DEFINES['HAVE_POSIX_CLOCKS'] = True
|
|
|
|
|
2013-11-27 13:55:07 +00:00
|
|
|
if CONFIG['MOZ_OMX_DECODER']:
|
|
|
|
DEFINES['MOZ_OMX_DECODER'] = True
|
2014-03-13 23:31:18 +00:00
|
|
|
|
|
|
|
CXXFLAGS += [
|
|
|
|
'-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [
|
|
|
|
'hardware/libhardware/include',
|
|
|
|
'hardware/libhardware_legacy/include',
|
|
|
|
'frameworks/native/opengl/include',
|
|
|
|
]
|
|
|
|
]
|