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