2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 12:47:20 -08:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2013-09-10 09:51:51 -07:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
2014-07-25 23:17:24 -07:00
|
|
|
MOCHITEST_MANIFESTS += ['test/mochitest.ini']
|
2013-09-10 09:51:51 -07:00
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS += [
|
|
|
|
'CameraCommon.h',
|
2014-06-19 06:20:49 -07:00
|
|
|
'CameraPreferences.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'DOMCameraManager.h',
|
|
|
|
]
|
|
|
|
|
2014-09-24 15:43:26 -07:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'CameraControlImpl.cpp',
|
2014-06-19 06:20:49 -07:00
|
|
|
'CameraPreferences.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'CameraPreviewMediaStream.cpp',
|
|
|
|
'DOMCameraCapabilities.cpp',
|
|
|
|
'DOMCameraControl.cpp',
|
2014-02-14 14:41:07 -08:00
|
|
|
'DOMCameraControlListener.cpp',
|
2014-04-09 08:52:10 -07:00
|
|
|
'DOMCameraDetectedFace.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'DOMCameraManager.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_B2G_CAMERA']:
|
2014-09-25 12:36:54 -07:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'GonkCameraControl.cpp',
|
|
|
|
'GonkCameraHwMgr.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'GonkCameraManager.cpp',
|
2014-02-14 14:41:07 -08:00
|
|
|
'GonkCameraParameters.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'GonkCameraSource.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'GonkRecorder.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'GonkRecorderProfiles.cpp',
|
2014-04-25 13:28:15 -07:00
|
|
|
'TestGonkCameraControl.cpp',
|
2014-02-19 20:18:52 -08:00
|
|
|
'TestGonkCameraHardware.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
else:
|
2014-09-24 15:43:26 -07:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'FallbackCameraControl.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'FallbackCameraManager.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
2013-08-21 23:55:59 -07:00
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2013-10-23 14:20:55 -07:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../base',
|
|
|
|
]
|
2013-10-02 10:17:55 -07:00
|
|
|
|
2013-10-23 14:20:55 -07:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
2013-11-18 18:47:14 -08:00
|
|
|
|
2014-11-24 16:43:19 -08:00
|
|
|
# Suppress some GCC warnings being treated as errors:
|
|
|
|
# - about attributes on forward declarations for types that are already
|
|
|
|
# defined, which complains about an important MOZ_EXPORT for android::AString
|
|
|
|
if CONFIG['GNU_CC']:
|
|
|
|
CXXFLAGS += ['-Wno-error=attributes']
|
|
|
|
|
2014-07-22 16:37:51 -07:00
|
|
|
FINAL_LIBRARY = 'xul'
|