michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': michael@0: TEST_DIRS += ['test'] michael@0: michael@0: EXPORTS += [ michael@0: 'CameraCommon.h', michael@0: 'CameraPreviewMediaStream.h', michael@0: 'DOMCameraManager.h', michael@0: 'GonkCameraControl.h', michael@0: ] michael@0: michael@0: SOURCES += [ michael@0: 'CameraControlImpl.cpp', michael@0: 'CameraPreviewMediaStream.cpp', michael@0: 'CameraRecorderProfiles.cpp', michael@0: 'DOMCameraCapabilities.cpp', michael@0: 'DOMCameraControl.cpp', michael@0: 'DOMCameraControlListener.cpp', michael@0: 'DOMCameraDetectedFace.cpp', michael@0: 'DOMCameraManager.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_B2G_CAMERA']: michael@0: SOURCES += [ michael@0: 'GonkCameraControl.cpp', michael@0: 'GonkCameraHwMgr.cpp', michael@0: 'GonkCameraManager.cpp', michael@0: 'GonkCameraParameters.cpp', michael@0: 'GonkCameraSource.cpp', michael@0: 'GonkRecorder.cpp', michael@0: 'GonkRecorderProfiles.cpp', michael@0: 'TestGonkCameraHardware.cpp', michael@0: ] michael@0: else: michael@0: SOURCES += [ michael@0: 'FallbackCameraControl.cpp', michael@0: 'FallbackCameraManager.cpp', michael@0: ] michael@0: michael@0: FAIL_ON_WARNINGS = True michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '../base', michael@0: ] michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: FINAL_LIBRARY = 'gklayout'