2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 13:20:02 -08: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 12:24:43 -07:00
|
|
|
EXPORTS += [
|
2013-12-05 06:29:07 -08:00
|
|
|
'GonkPermission.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'OrientationObserver.h',
|
|
|
|
]
|
|
|
|
|
2013-08-13 09:58:38 -07:00
|
|
|
DIRS += ['libdisplay', 'nativewindow']
|
2013-04-23 14:54:15 -07:00
|
|
|
|
2013-08-26 14:59:18 -07:00
|
|
|
# libui files
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += ['libui/' + src for src in [
|
2013-04-23 14:54:15 -07:00
|
|
|
'EventHub.cpp',
|
|
|
|
'Input.cpp',
|
|
|
|
'InputApplication.cpp',
|
2013-08-26 14:59:18 -07:00
|
|
|
'InputDevice.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'InputDispatcher.cpp',
|
|
|
|
'InputListener.cpp',
|
|
|
|
'InputReader.cpp',
|
|
|
|
'InputTransport.cpp',
|
|
|
|
'InputWindow.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'Keyboard.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'KeyCharacterMap.cpp',
|
|
|
|
'KeyLayoutMap.cpp',
|
|
|
|
'PointerController.cpp',
|
|
|
|
'SpriteController.cpp',
|
|
|
|
'Tokenizer.cpp',
|
2013-08-26 14:59:18 -07:00
|
|
|
'VelocityControl.cpp',
|
|
|
|
'VelocityTracker.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'VirtualKeyMap.cpp',
|
2013-10-03 00:10:00 -07:00
|
|
|
]]
|
2013-08-26 14:59:18 -07:00
|
|
|
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-08-26 14:59:18 -07:00
|
|
|
'Framebuffer.cpp',
|
|
|
|
'GfxInfo.cpp',
|
|
|
|
'GonkMemoryPressureMonitoring.cpp',
|
2013-12-05 06:29:07 -08:00
|
|
|
'GonkPermission.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'HwcComposer2D.cpp',
|
|
|
|
'HwcUtils.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsAppShell.cpp',
|
|
|
|
'nsIdleServiceGonk.cpp',
|
|
|
|
'nsLookAndFeel.cpp',
|
|
|
|
'nsWidgetFactory.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsWindow.cpp',
|
|
|
|
'OrientationObserver.cpp',
|
2013-09-16 14:45:31 -07:00
|
|
|
'ParentProcessController.cpp',
|
2014-02-05 10:53:53 -08:00
|
|
|
'ProcessOrientation.cpp',
|
|
|
|
'WidgetTraceEvent.cpp'
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
|
2013-08-15 06:02:09 -07:00
|
|
|
LIBRARY_NAME = 'widget_gonk'
|
|
|
|
|
2013-10-02 10:17:55 -07:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-18 18:47:14 -08:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-27 05:55:07 -08:00
|
|
|
|
2013-11-28 06:17:25 -08:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/content/media/omx/mediaresourcemanager',
|
2014-01-09 19:03:25 -08:00
|
|
|
'/dom/events',
|
2013-11-28 06:17:25 -08:00
|
|
|
'/dom/system/android',
|
2013-12-11 17:41:42 -08:00
|
|
|
'/gfx/skia/trunk/include/config',
|
|
|
|
'/gfx/skia/trunk/include/core',
|
2013-11-28 06:17:25 -08:00
|
|
|
'/widget/shared',
|
|
|
|
'/widget/xpwidgets',
|
|
|
|
]
|
|
|
|
|
2013-11-27 05:55:07 -08:00
|
|
|
DEFINES['HAVE_OFF64_T'] = True
|
|
|
|
DEFINES['SK_BUILD_FOR_ANDROID_NDK'] = True
|
|
|
|
|
|
|
|
if CONFIG['MOZ_OMX_DECODER']:
|
|
|
|
DEFINES['MOZ_OMX_DECODER'] = True
|