Backout a74bd5095902, Bug 959405 - Please update the Buri Moz-central, 1.3, 1.2 with...
[gecko.git] / dom / camera / moz.build
bloba7dc8869483c9f5e59094e812ee48ef8fa4be98d
1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 XPIDL_SOURCES += [
8     'nsIDOMCameraManager.idl',
11 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
12     TEST_DIRS += ['test']
14 XPIDL_MODULE = 'dom_camera'
16 EXPORTS += [
17     'CameraCommon.h',
18     'CameraPreviewMediaStream.h',
19     'DOMCameraManager.h',
20     'GonkCameraControl.h',
23 SOURCES += [
24     'CameraControlImpl.cpp',
25     'CameraPreviewMediaStream.cpp',
26     'CameraRecorderProfiles.cpp',
27     'DOMCameraCapabilities.cpp',
28     'DOMCameraControl.cpp',
29     'DOMCameraManager.cpp',
30     'DOMCameraPreview.cpp',
33 if CONFIG['MOZ_B2G_CAMERA']:
34     SOURCES += [
35         'GonkCameraControl.cpp',
36         'GonkCameraHwMgr.cpp',
37         'GonkCameraManager.cpp',
38         'GonkCameraSource.cpp',
39         'GonkRecorder.cpp',
40         'GonkRecorderProfiles.cpp',
41     ]
42 else:
43     SOURCES += [
44         'FallbackCameraControl.cpp',
45         'FallbackCameraManager.cpp',
46     ]
48 FAIL_ON_WARNINGS = True
50 LOCAL_INCLUDES += [
51     '../base',
54 include('/ipc/chromium/chromium-config.mozbuild')
56 FINAL_LIBRARY = 'gklayout'