kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 1 | # Copyright (c) 2014 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. |
| 8 | |
| 9 | import("../../build/webrtc.gni") |
| 10 | |
kjellander@webrtc.org | 7227391 | 2015-02-23 19:08:31 +0000 | [diff] [blame] | 11 | build_video_processing_sse2 = current_cpu == "x86" || current_cpu == "x64" |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 12 | |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 13 | source_set("video_processing") { |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 14 | sources = [ |
| 15 | "main/interface/video_processing.h", |
| 16 | "main/interface/video_processing_defines.h", |
| 17 | "main/source/brighten.cc", |
| 18 | "main/source/brighten.h", |
| 19 | "main/source/brightness_detection.cc", |
| 20 | "main/source/brightness_detection.h", |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 21 | "main/source/content_analysis.cc", |
| 22 | "main/source/content_analysis.h", |
| 23 | "main/source/deflickering.cc", |
| 24 | "main/source/deflickering.h", |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 25 | "main/source/frame_preprocessor.cc", |
| 26 | "main/source/frame_preprocessor.h", |
| 27 | "main/source/spatial_resampler.cc", |
| 28 | "main/source/spatial_resampler.h", |
| 29 | "main/source/video_decimator.cc", |
| 30 | "main/source/video_decimator.h", |
| 31 | "main/source/video_processing_impl.cc", |
| 32 | "main/source/video_processing_impl.h", |
| 33 | ] |
| 34 | |
| 35 | deps = [ |
| 36 | "../../common_audio", |
| 37 | "../../common_video", |
| 38 | "../../modules/utility", |
| 39 | "../../system_wrappers", |
| 40 | ] |
| 41 | if (build_video_processing_sse2) { |
| 42 | deps += [ ":video_processing_sse2" ] |
| 43 | } |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 44 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 45 | configs += [ "../..:common_config" ] |
| 46 | public_configs = [ "../..:common_inherited_config" ] |
| 47 | |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 48 | if (is_clang) { |
| 49 | # Suppress warnings from Chrome's Clang plugins. |
| 50 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 51 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 52 | } |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 53 | } |
| 54 | |
| 55 | if (build_video_processing_sse2) { |
| 56 | source_set("video_processing_sse2") { |
| 57 | sources = [ "main/source/content_analysis_sse2.cc" ] |
kjellander@webrtc.org | 4a25199 | 2014-08-18 17:56:28 +0000 | [diff] [blame] | 58 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 59 | configs += [ "../..:common_config" ] |
| 60 | public_configs = [ "../..:common_inherited_config" ] |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 61 | |
| 62 | if (is_clang) { |
| 63 | # Suppress warnings from Chrome's Clang plugins. |
| 64 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 65 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 66 | } |
kjellander@webrtc.org | 4a25199 | 2014-08-18 17:56:28 +0000 | [diff] [blame] | 67 | |
stefan@webrtc.org | 73823ca | 2014-07-07 11:46:43 +0000 | [diff] [blame] | 68 | if (is_posix) { |
| 69 | cflags = [ "-msse2" ] |
| 70 | } |
| 71 | } |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 72 | } |