blob: 429d74ccb81453b3be9fc675625325ae46d84905 [file] [log] [blame]
xians@google.comd3185fe2011-09-12 12:24:39 +00001# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
niklase@google.com470e71d2011-07-07 08:21:25 +00008
9{
niklase@google.com470e71d2011-07-07 08:21:25 +000010 'targets': [
11 {
12 'target_name': 'video_processing',
wjia@webrtc.orga3c82bf2013-01-18 23:42:21 +000013 'type': 'static_library',
niklase@google.com470e71d2011-07-07 08:21:25 +000014 'dependencies': [
xians@google.comd3185fe2011-09-12 12:24:39 +000015 'webrtc_utility',
andrew@webrtc.org34235372013-04-30 23:43:26 +000016 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
andrew@webrtc.orgfa418ac2012-09-11 01:34:21 +000017 '<(webrtc_root)/common_video/common_video.gyp:common_video',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000018 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
niklase@google.com470e71d2011-07-07 08:21:25 +000019 ],
niklase@google.com470e71d2011-07-07 08:21:25 +000020 'sources': [
Henrik Kjellander0f59a882015-11-18 22:31:24 +010021 'include/video_processing.h',
22 'include/video_processing_defines.h',
Henrik Kjellander0f59a882015-11-18 22:31:24 +010023 'content_analysis.cc',
24 'content_analysis.h',
Henrik Kjellander0f59a882015-11-18 22:31:24 +010025 'frame_preprocessor.cc',
26 'frame_preprocessor.h',
27 'spatial_resampler.cc',
28 'spatial_resampler.h',
29 'video_decimator.cc',
30 'video_decimator.h',
31 'video_processing_impl.cc',
32 'video_processing_impl.h',
jackychen8f9902a2015-11-26 02:59:48 -080033 'video_denoiser.cc',
34 'video_denoiser.h',
35 'util/denoiser_filter.cc',
36 'util/denoiser_filter.h',
37 'util/denoiser_filter_c.cc',
38 'util/denoiser_filter_c.h',
jackychenfa0befe2016-04-01 07:46:58 -070039 'util/noise_estimation.cc',
40 'util/noise_estimation.h',
jackychen8f9902a2015-11-26 02:59:48 -080041 'util/skin_detection.cc',
42 'util/skin_detection.h',
andrew@webrtc.orgc8d012f2012-01-13 19:43:09 +000043 ],
44 'conditions': [
45 ['target_arch=="ia32" or target_arch=="x64"', {
46 'dependencies': [ 'video_processing_sse2', ],
47 }],
jackychen8f9902a2015-11-26 02:59:48 -080048 ['target_arch=="arm" or target_arch == "arm64"', {
49 'dependencies': [ 'video_processing_neon', ],
50 }],
andrew@webrtc.orgc8d012f2012-01-13 19:43:09 +000051 ],
52 },
andrew@webrtc.org737c0232012-02-14 19:57:50 +000053 ],
54 'conditions': [
55 ['target_arch=="ia32" or target_arch=="x64"', {
56 'targets': [
57 {
58 'target_name': 'video_processing_sse2',
wjia@webrtc.orga3c82bf2013-01-18 23:42:21 +000059 'type': 'static_library',
andrew@webrtc.org737c0232012-02-14 19:57:50 +000060 'sources': [
Henrik Kjellander0f59a882015-11-18 22:31:24 +010061 'content_analysis_sse2.cc',
jackychen8f9902a2015-11-26 02:59:48 -080062 'util/denoiser_filter_sse2.cc',
63 'util/denoiser_filter_sse2.h',
andrew@webrtc.org737c0232012-02-14 19:57:50 +000064 ],
andrew@webrtc.org737c0232012-02-14 19:57:50 +000065 'conditions': [
66 ['os_posix==1 and OS!="mac"', {
67 'cflags': [ '-msse2', ],
68 }],
69 ['OS=="mac"', {
70 'xcode_settings': {
71 'OTHER_CFLAGS': [ '-msse2', ],
72 },
73 }],
74 ],
75 },
andrew@webrtc.orgc8d012f2012-01-13 19:43:09 +000076 ],
andrew@webrtc.org737c0232012-02-14 19:57:50 +000077 }],
jackychen8f9902a2015-11-26 02:59:48 -080078 ['target_arch=="arm" or target_arch == "arm64"', {
79 'targets': [
80 {
81 'target_name': 'video_processing_neon',
82 'type': 'static_library',
83 'includes': [ '../../build/arm_neon.gypi', ],
84 'sources': [
85 'util/denoiser_filter_neon.cc',
86 'util/denoiser_filter_neon.h',
87 ],
88 },
89 ],
90 }],
niklase@google.com470e71d2011-07-07 08:21:25 +000091 ],
92}
93