1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/widget/gonk/moz.build Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,92 @@ 1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- 1.5 +# vim: set filetype=python: 1.6 +# Copyright 2013 Mozilla Foundation and Mozilla contributors 1.7 +# 1.8 +# Licensed under the Apache License, Version 2.0 (the "License"); 1.9 +# you may not use this file except in compliance with the License. 1.10 +# You may obtain a copy of the License at 1.11 +# 1.12 +# http://www.apache.org/licenses/LICENSE-2.0 1.13 +# 1.14 +# Unless required by applicable law or agreed to in writing, software 1.15 +# distributed under the License is distributed on an "AS IS" BASIS, 1.16 +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1.17 +# See the License for the specific language governing permissions and 1.18 +# limitations under the License. 1.19 + 1.20 +EXPORTS += [ 1.21 + 'GonkPermission.h', 1.22 + 'OrientationObserver.h', 1.23 +] 1.24 + 1.25 +DIRS += ['libdisplay', 'nativewindow'] 1.26 + 1.27 +# libui files 1.28 +SOURCES += ['libui/' + src for src in [ 1.29 + 'EventHub.cpp', 1.30 + 'Input.cpp', 1.31 + 'InputApplication.cpp', 1.32 + 'InputDevice.cpp', 1.33 + 'InputDispatcher.cpp', 1.34 + 'InputListener.cpp', 1.35 + 'InputReader.cpp', 1.36 + 'InputTransport.cpp', 1.37 + 'InputWindow.cpp', 1.38 + 'Keyboard.cpp', 1.39 + 'KeyCharacterMap.cpp', 1.40 + 'KeyLayoutMap.cpp', 1.41 + 'PointerController.cpp', 1.42 + 'SpriteController.cpp', 1.43 + 'Tokenizer.cpp', 1.44 + 'VelocityControl.cpp', 1.45 + 'VelocityTracker.cpp', 1.46 + 'VirtualKeyMap.cpp', 1.47 +]] 1.48 + 1.49 +SOURCES += [ 1.50 + 'Framebuffer.cpp', 1.51 + 'GfxInfo.cpp', 1.52 + 'GonkMemoryPressureMonitoring.cpp', 1.53 + 'GonkPermission.cpp', 1.54 + 'HwcComposer2D.cpp', 1.55 + 'HwcUtils.cpp', 1.56 + 'nsAppShell.cpp', 1.57 + 'nsClipboard.cpp', 1.58 + 'nsIdleServiceGonk.cpp', 1.59 + 'nsLookAndFeel.cpp', 1.60 + 'nsWidgetFactory.cpp', 1.61 + 'nsWindow.cpp', 1.62 + 'OrientationObserver.cpp', 1.63 + 'ParentProcessController.cpp', 1.64 + 'ProcessOrientation.cpp', 1.65 + 'WidgetTraceEvent.cpp' 1.66 +] 1.67 + 1.68 +LIBRARY_NAME = 'widget_gonk' 1.69 + 1.70 +include('/ipc/chromium/chromium-config.mozbuild') 1.71 + 1.72 +FINAL_LIBRARY = 'xul' 1.73 + 1.74 +LOCAL_INCLUDES += [ 1.75 + '/content/media/omx/mediaresourcemanager', 1.76 + '/dom/system/android', 1.77 + '/gfx/skia/trunk/include/config', 1.78 + '/gfx/skia/trunk/include/core', 1.79 + '/widget/shared', 1.80 + '/widget/xpwidgets', 1.81 +] 1.82 + 1.83 +DEFINES['HAVE_OFF64_T'] = True 1.84 +DEFINES['SK_BUILD_FOR_ANDROID_NDK'] = True 1.85 + 1.86 +if CONFIG['MOZ_OMX_DECODER']: 1.87 + DEFINES['MOZ_OMX_DECODER'] = True 1.88 + 1.89 +CXXFLAGS += [ 1.90 + '-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [ 1.91 + 'hardware/libhardware/include', 1.92 + 'hardware/libhardware_legacy/include', 1.93 + 'frameworks/native/opengl/include', 1.94 + ] 1.95 +]