Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
[gecko.git] / dom / camera / moz.build
blobe7ff01620714c8dc8fa7ae39ba5b03eb0b012f36
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 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
8     MOCHITEST_MANIFESTS += ['test/mochitest.ini']
10 EXPORTS += [
11     'CameraCommon.h',
12     'CameraPreferences.h',
13     'DOMCameraManager.h',
16 SOURCES += [
17     'CameraControlImpl.cpp',
18     'CameraPreferences.cpp',
19     'CameraPreviewMediaStream.cpp',
20     'CameraRecorderProfiles.cpp',
21     'DOMCameraCapabilities.cpp',
22     'DOMCameraControl.cpp',
23     'DOMCameraControlListener.cpp',
24     'DOMCameraDetectedFace.cpp',
25     'DOMCameraManager.cpp',
28 if CONFIG['MOZ_B2G_CAMERA']:
29     SOURCES += [
30         'GonkCameraControl.cpp',
31         'GonkCameraHwMgr.cpp',
32         'GonkCameraManager.cpp',
33         'GonkCameraParameters.cpp',
34         'GonkCameraSource.cpp',
35         'GonkRecorder.cpp',
36         'GonkRecorderProfiles.cpp',
37         'TestGonkCameraControl.cpp',
38         'TestGonkCameraHardware.cpp',
39     ]
40 else:
41     SOURCES += [
42         'FallbackCameraControl.cpp',
43         'FallbackCameraManager.cpp',
44     ]
46 FAIL_ON_WARNINGS = True
48 LOCAL_INCLUDES += [
49     '../base',
52 include('/ipc/chromium/chromium-config.mozbuild')
54 FINAL_LIBRARY = 'xul'