michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # Copyright 2013 Mozilla Foundation and Mozilla contributors michael@0: # michael@0: # Licensed under the Apache License, Version 2.0 (the "License"); michael@0: # you may not use this file except in compliance with the License. michael@0: # You may obtain a copy of the License at michael@0: # michael@0: # http://www.apache.org/licenses/LICENSE-2.0 michael@0: # michael@0: # Unless required by applicable law or agreed to in writing, software michael@0: # distributed under the License is distributed on an "AS IS" BASIS, michael@0: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. michael@0: # See the License for the specific language governing permissions and michael@0: # limitations under the License. michael@0: michael@0: EXPORTS += [ michael@0: 'GonkPermission.h', michael@0: 'OrientationObserver.h', michael@0: ] michael@0: michael@0: DIRS += ['libdisplay', 'nativewindow'] michael@0: michael@0: # libui files michael@0: SOURCES += ['libui/' + src for src in [ michael@0: 'EventHub.cpp', michael@0: 'Input.cpp', michael@0: 'InputApplication.cpp', michael@0: 'InputDevice.cpp', michael@0: 'InputDispatcher.cpp', michael@0: 'InputListener.cpp', michael@0: 'InputReader.cpp', michael@0: 'InputTransport.cpp', michael@0: 'InputWindow.cpp', michael@0: 'Keyboard.cpp', michael@0: 'KeyCharacterMap.cpp', michael@0: 'KeyLayoutMap.cpp', michael@0: 'PointerController.cpp', michael@0: 'SpriteController.cpp', michael@0: 'Tokenizer.cpp', michael@0: 'VelocityControl.cpp', michael@0: 'VelocityTracker.cpp', michael@0: 'VirtualKeyMap.cpp', michael@0: ]] michael@0: michael@0: SOURCES += [ michael@0: 'Framebuffer.cpp', michael@0: 'GfxInfo.cpp', michael@0: 'GonkMemoryPressureMonitoring.cpp', michael@0: 'GonkPermission.cpp', michael@0: 'HwcComposer2D.cpp', michael@0: 'HwcUtils.cpp', michael@0: 'nsAppShell.cpp', michael@0: 'nsClipboard.cpp', michael@0: 'nsIdleServiceGonk.cpp', michael@0: 'nsLookAndFeel.cpp', michael@0: 'nsWidgetFactory.cpp', michael@0: 'nsWindow.cpp', michael@0: 'OrientationObserver.cpp', michael@0: 'ParentProcessController.cpp', michael@0: 'ProcessOrientation.cpp', michael@0: 'WidgetTraceEvent.cpp' michael@0: ] michael@0: michael@0: LIBRARY_NAME = 'widget_gonk' michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: FINAL_LIBRARY = 'xul' michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '/content/media/omx/mediaresourcemanager', michael@0: '/dom/system/android', michael@0: '/gfx/skia/trunk/include/config', michael@0: '/gfx/skia/trunk/include/core', michael@0: '/widget/shared', michael@0: '/widget/xpwidgets', michael@0: ] michael@0: michael@0: DEFINES['HAVE_OFF64_T'] = True michael@0: DEFINES['SK_BUILD_FOR_ANDROID_NDK'] = True michael@0: michael@0: if CONFIG['MOZ_OMX_DECODER']: michael@0: DEFINES['MOZ_OMX_DECODER'] = True michael@0: michael@0: CXXFLAGS += [ michael@0: '-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [ michael@0: 'hardware/libhardware/include', michael@0: 'hardware/libhardware_legacy/include', michael@0: 'frameworks/native/opengl/include', michael@0: ] michael@0: ]