widget/gonk/moz.build

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
michael@0 2 # vim: set filetype=python:
michael@0 3 # Copyright 2013 Mozilla Foundation and Mozilla contributors
michael@0 4 #
michael@0 5 # Licensed under the Apache License, Version 2.0 (the "License");
michael@0 6 # you may not use this file except in compliance with the License.
michael@0 7 # You may obtain a copy of the License at
michael@0 8 #
michael@0 9 # http://www.apache.org/licenses/LICENSE-2.0
michael@0 10 #
michael@0 11 # Unless required by applicable law or agreed to in writing, software
michael@0 12 # distributed under the License is distributed on an "AS IS" BASIS,
michael@0 13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
michael@0 14 # See the License for the specific language governing permissions and
michael@0 15 # limitations under the License.
michael@0 16
michael@0 17 EXPORTS += [
michael@0 18 'GonkPermission.h',
michael@0 19 'OrientationObserver.h',
michael@0 20 ]
michael@0 21
michael@0 22 DIRS += ['libdisplay', 'nativewindow']
michael@0 23
michael@0 24 # libui files
michael@0 25 SOURCES += ['libui/' + src for src in [
michael@0 26 'EventHub.cpp',
michael@0 27 'Input.cpp',
michael@0 28 'InputApplication.cpp',
michael@0 29 'InputDevice.cpp',
michael@0 30 'InputDispatcher.cpp',
michael@0 31 'InputListener.cpp',
michael@0 32 'InputReader.cpp',
michael@0 33 'InputTransport.cpp',
michael@0 34 'InputWindow.cpp',
michael@0 35 'Keyboard.cpp',
michael@0 36 'KeyCharacterMap.cpp',
michael@0 37 'KeyLayoutMap.cpp',
michael@0 38 'PointerController.cpp',
michael@0 39 'SpriteController.cpp',
michael@0 40 'Tokenizer.cpp',
michael@0 41 'VelocityControl.cpp',
michael@0 42 'VelocityTracker.cpp',
michael@0 43 'VirtualKeyMap.cpp',
michael@0 44 ]]
michael@0 45
michael@0 46 SOURCES += [
michael@0 47 'Framebuffer.cpp',
michael@0 48 'GfxInfo.cpp',
michael@0 49 'GonkMemoryPressureMonitoring.cpp',
michael@0 50 'GonkPermission.cpp',
michael@0 51 'HwcComposer2D.cpp',
michael@0 52 'HwcUtils.cpp',
michael@0 53 'nsAppShell.cpp',
michael@0 54 'nsClipboard.cpp',
michael@0 55 'nsIdleServiceGonk.cpp',
michael@0 56 'nsLookAndFeel.cpp',
michael@0 57 'nsWidgetFactory.cpp',
michael@0 58 'nsWindow.cpp',
michael@0 59 'OrientationObserver.cpp',
michael@0 60 'ParentProcessController.cpp',
michael@0 61 'ProcessOrientation.cpp',
michael@0 62 'WidgetTraceEvent.cpp'
michael@0 63 ]
michael@0 64
michael@0 65 LIBRARY_NAME = 'widget_gonk'
michael@0 66
michael@0 67 include('/ipc/chromium/chromium-config.mozbuild')
michael@0 68
michael@0 69 FINAL_LIBRARY = 'xul'
michael@0 70
michael@0 71 LOCAL_INCLUDES += [
michael@0 72 '/content/media/omx/mediaresourcemanager',
michael@0 73 '/dom/system/android',
michael@0 74 '/gfx/skia/trunk/include/config',
michael@0 75 '/gfx/skia/trunk/include/core',
michael@0 76 '/widget/shared',
michael@0 77 '/widget/xpwidgets',
michael@0 78 ]
michael@0 79
michael@0 80 DEFINES['HAVE_OFF64_T'] = True
michael@0 81 DEFINES['SK_BUILD_FOR_ANDROID_NDK'] = True
michael@0 82
michael@0 83 if CONFIG['MOZ_OMX_DECODER']:
michael@0 84 DEFINES['MOZ_OMX_DECODER'] = True
michael@0 85
michael@0 86 CXXFLAGS += [
michael@0 87 '-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [
michael@0 88 'hardware/libhardware/include',
michael@0 89 'hardware/libhardware_legacy/include',
michael@0 90 'frameworks/native/opengl/include',
michael@0 91 ]
michael@0 92 ]

mercurial