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/.
|
|
|
|
|
2015-03-10 19:39:49 -04:00
|
|
|
if CONFIG['MOZ_B2G_CAMERA']:
|
2014-07-26 08:17:24 +02:00
|
|
|
MOCHITEST_MANIFESTS += ['test/mochitest.ini']
|
2013-09-10 12:51:51 -04:00
|
|
|
|
2013-04-16 15:24:43 -04:00
|
|
|
EXPORTS += [
|
|
|
|
'CameraCommon.h',
|
2014-06-19 09:20:49 -04:00
|
|
|
'CameraPreferences.h',
|
2013-04-16 15:24:43 -04:00
|
|
|
'DOMCameraManager.h',
|
|
|
|
]
|
|
|
|
|
2014-09-24 18:43:26 -04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 17:54:15 -04:00
|
|
|
'CameraControlImpl.cpp',
|
2014-06-19 09:20:49 -04:00
|
|
|
'CameraPreferences.cpp',
|
2013-04-23 17:54:15 -04:00
|
|
|
'CameraPreviewMediaStream.cpp',
|
|
|
|
'DOMCameraCapabilities.cpp',
|
|
|
|
'DOMCameraControl.cpp',
|
2014-02-14 17:41:07 -05:00
|
|
|
'DOMCameraControlListener.cpp',
|
2014-04-09 11:52:10 -04:00
|
|
|
'DOMCameraDetectedFace.cpp',
|
2013-04-23 17:54:15 -04:00
|
|
|
'DOMCameraManager.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_B2G_CAMERA']:
|
2015-03-01 13:48:37 -05:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsICameraTestHardware.idl',
|
|
|
|
]
|
|
|
|
|
|
|
|
XPIDL_MODULE = 'dom_camera'
|
|
|
|
|
2014-09-25 15:36:54 -04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 17:54:15 -04:00
|
|
|
'GonkCameraControl.cpp',
|
|
|
|
'GonkCameraHwMgr.cpp',
|
2013-10-24 08:00:23 +09:00
|
|
|
'GonkCameraManager.cpp',
|
2014-02-14 17:41:07 -05:00
|
|
|
'GonkCameraParameters.cpp',
|
2013-04-23 17:54:15 -04:00
|
|
|
'GonkRecorderProfiles.cpp',
|
2014-04-25 16:28:15 -04:00
|
|
|
'TestGonkCameraControl.cpp',
|
2014-02-19 23:18:52 -05:00
|
|
|
'TestGonkCameraHardware.cpp',
|
2013-04-23 17:54:15 -04:00
|
|
|
]
|
2015-03-01 13:48:37 -05:00
|
|
|
|
2015-03-10 19:39:49 -04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'GonkCameraSource.cpp',
|
|
|
|
'GonkRecorder.cpp',
|
|
|
|
]
|
|
|
|
else:
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'FallbackCameraPlatform.cpp',
|
|
|
|
]
|
|
|
|
|
2015-03-01 13:48:37 -05:00
|
|
|
EXTRA_COMPONENTS += [
|
|
|
|
'CameraTestHardware.js',
|
|
|
|
'CameraTestHardware.manifest',
|
|
|
|
]
|
2013-04-23 17:54:15 -04:00
|
|
|
else:
|
2014-09-24 18:43:26 -04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 17:54:15 -04:00
|
|
|
'FallbackCameraControl.cpp',
|
2013-10-24 08:00:23 +09:00
|
|
|
'FallbackCameraManager.cpp',
|
2013-04-23 17:54:15 -04:00
|
|
|
]
|
2013-08-22 08:55:59 +02:00
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2013-10-23 17:20:55 -04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../base',
|
2015-06-16 20:35:00 -04:00
|
|
|
'/media/libyuv/include',
|
2013-10-23 17:20:55 -04:00
|
|
|
]
|
2013-10-02 13:17:55 -04:00
|
|
|
|
2013-10-23 17:20:55 -04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
2013-11-19 11:47:14 +09:00
|
|
|
|
2014-11-24 19:43:19 -05: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-23 08:37:51 +09:00
|
|
|
FINAL_LIBRARY = 'xul'
|