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 += [
|
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',
|
|
|
|
'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
|
|
|
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-08-27 01:59:18 +04:00
|
|
|
'Framebuffer.cpp',
|
|
|
|
'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',
|
|
|
|
'nsIdleServiceGonk.cpp',
|
|
|
|
'nsLookAndFeel.cpp',
|
|
|
|
'nsWidgetFactory.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'nsWindow.cpp',
|
|
|
|
'OrientationObserver.cpp',
|
2013-09-17 01:45:31 +04:00
|
|
|
'ParentProcessController.cpp',
|
2014-02-05 22:53:53 +04:00
|
|
|
'ProcessOrientation.cpp',
|
|
|
|
'WidgetTraceEvent.cpp'
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
2013-08-15 17:02:09 +04:00
|
|
|
LIBRARY_NAME = 'widget_gonk'
|
|
|
|
|
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 += [
|
|
|
|
'/content/media/omx/mediaresourcemanager',
|
2014-01-10 07:03:25 +04:00
|
|
|
'/dom/events',
|
2013-11-28 18:17:25 +04:00
|
|
|
'/dom/system/android',
|
2013-12-12 05:41:42 +04:00
|
|
|
'/gfx/skia/trunk/include/config',
|
|
|
|
'/gfx/skia/trunk/include/core',
|
2013-11-28 18:17:25 +04:00
|
|
|
'/widget/shared',
|
|
|
|
'/widget/xpwidgets',
|
|
|
|
]
|
|
|
|
|
2013-11-27 17:55:07 +04:00
|
|
|
DEFINES['HAVE_OFF64_T'] = True
|
|
|
|
DEFINES['SK_BUILD_FOR_ANDROID_NDK'] = True
|
|
|
|
|
|
|
|
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',
|
|
|
|
]
|
|
|
|
]
|