1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # Copyright 2013 Mozilla Foundation and Mozilla contributors
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
18 'GeckoTouchDispatcher.h',
20 'OrientationObserver.h',
23 DIRS += ['libdisplay', 'nativewindow']
26 SOURCES += ['libui/' + src for src in [
29 'InputApplication.cpp',
31 'InputDispatcher.cpp',
37 'KeyCharacterMap.cpp',
39 'PointerController.cpp',
41 'SpriteController.cpp',
43 'VelocityControl.cpp',
44 'VelocityTracker.cpp',
49 'GeckoTouchDispatcher.cpp',
51 'GonkMemoryPressureMonitoring.cpp',
57 'nsIdleServiceGonk.cpp',
59 'nsWidgetFactory.cpp',
61 'OrientationObserver.cpp',
62 'ProcessOrientation.cpp',
63 'WidgetTraceEvent.cpp'
66 include('/ipc/chromium/chromium-config.mozbuild')
71 '/dom/media/omx/mediaresourcemanager',
72 '/dom/system/android',
73 '/gfx/skia/trunk/include/config',
74 '/gfx/skia/trunk/include/core',
78 DEFINES['HAVE_OFF64_T'] = True
79 DEFINES['SK_BUILD_FOR_ANDROID_NDK'] = True
81 if CONFIG['ANDROID_VERSION'] != '15':
82 DEFINES['HAVE_POSIX_CLOCKS'] = True
84 if CONFIG['MOZ_OMX_DECODER']:
85 DEFINES['MOZ_OMX_DECODER'] = True
88 '-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [
89 'hardware/libhardware/include',
90 'hardware/libhardware_legacy/include',
91 'frameworks/native/opengl/include',