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: 'GonkBufferQueue.h', michael@0: 'GonkNativeWindow.h', michael@0: 'GonkNativeWindowClient.h', michael@0: ] michael@0: michael@0: if CONFIG['ANDROID_VERSION'] == '19': michael@0: EXPORTS += [ michael@0: 'GonkBufferQueueKK.h', michael@0: 'GonkConsumerBaseKK.h', michael@0: 'GonkNativeWindowClientKK.h', michael@0: 'GonkNativeWindowKK.h', michael@0: 'IGonkGraphicBufferConsumer.h', michael@0: ] michael@0: elif CONFIG['ANDROID_VERSION'] in ('17', '18'): michael@0: EXPORTS += [ michael@0: 'GonkBufferQueueJB.h', michael@0: 'GonkConsumerBaseJB.h', michael@0: 'GonkNativeWindowClientJB.h', michael@0: 'GonkNativeWindowJB.h', michael@0: ] michael@0: elif CONFIG['ANDROID_VERSION'] == '15': michael@0: EXPORTS += [ michael@0: 'GonkNativeWindowClientICS.h', michael@0: 'GonkNativeWindowICS.h', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_B2G_CAMERA'] or CONFIG['MOZ_OMX_DECODER'] or CONFIG['MOZ_WEBRTC']: michael@0: if CONFIG['ANDROID_VERSION'] == '19': michael@0: SOURCES += [ michael@0: 'GonkBufferQueueKK.cpp', michael@0: 'GonkConsumerBaseKK.cpp', michael@0: 'GonkNativeWindowClientKK.cpp', michael@0: 'GonkNativeWindowKK.cpp', michael@0: 'IGonkGraphicBufferConsumer.cpp', michael@0: ] michael@0: elif CONFIG['ANDROID_VERSION'] in ('17', '18'): michael@0: SOURCES += [ michael@0: 'GonkBufferQueueJB.cpp', michael@0: 'GonkConsumerBaseJB.cpp', michael@0: 'GonkNativeWindowClientJB.cpp', michael@0: 'GonkNativeWindowJB.cpp', michael@0: ] michael@0: elif CONFIG['ANDROID_VERSION'] == '15': michael@0: SOURCES += [ michael@0: 'GonkNativeWindowClientICS.cpp', michael@0: 'GonkNativeWindowICS.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_B2G_CAMERA'] or CONFIG['MOZ_OMX_DECODER']: michael@0: if CONFIG['ANDROID_VERSION'] >= '18': michael@0: SOURCES += [ michael@0: 'FakeSurfaceComposer.cpp', michael@0: ] michael@0: michael@0: FAIL_ON_WARNINGS = True michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: FINAL_LIBRARY = 'xul' michael@0: michael@0: DISABLE_STL_WRAPPING = True