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: SOURCES += [ michael@0: 'BootAnimation.cpp', michael@0: ] michael@0: michael@0: if CONFIG['ANDROID_VERSION'] >= '18': michael@0: SOURCES += [ michael@0: 'FramebufferSurface.cpp', michael@0: 'GonkDisplayJB.cpp', michael@0: ] michael@0: elif CONFIG['ANDROID_VERSION'] == '17': michael@0: SOURCES += [ michael@0: 'FramebufferSurface.cpp', michael@0: 'GonkDisplayJB.cpp', michael@0: 'GraphicBufferAlloc.cpp', michael@0: ] michael@0: elif CONFIG['ANDROID_VERSION'] == '15': michael@0: SOURCES += [ michael@0: 'GonkDisplayICS.cpp' michael@0: ] michael@0: elif CONFIG['ANDROID_VERSION'] and CONFIG['COMPILE_ENVIRONMENT']: michael@0: error('Unsupported platform version: %s' % (CONFIG['ANDROID_VERSION'])) michael@0: michael@0: LIBRARY_NAME = 'display' michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: FORCE_STATIC_LIB = True michael@0: michael@0: DEFINES['XPCOM_GLUE'] = True michael@0: michael@0: DISABLE_STL_WRAPPING = True michael@0: michael@0: CXXFLAGS += [ michael@0: '-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [ michael@0: 'frameworks/native/include/gui', michael@0: 'frameworks/native/opengl/include', michael@0: 'hardware/libhardware/include', michael@0: 'hardware/libhardware_legacy/include', michael@0: 'system/core/libsuspend/include', michael@0: ] michael@0: ]