blob: 42ef94bfa9da470ab8546d3e0b75e7ea4c88cd97 [file] [log] [blame]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001# 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
9import("../../build/webrtc.gni")
10
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000011build_video_processing_sse2 = cpu_arch == "x86" || cpu_arch == "x64"
12
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000013source_set("video_processing") {
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000014 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",
21 "main/source/color_enhancement.cc",
22 "main/source/color_enhancement.h",
23 "main/source/color_enhancement_private.h",
24 "main/source/content_analysis.cc",
25 "main/source/content_analysis.h",
26 "main/source/deflickering.cc",
27 "main/source/deflickering.h",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000028 "main/source/frame_preprocessor.cc",
29 "main/source/frame_preprocessor.h",
30 "main/source/spatial_resampler.cc",
31 "main/source/spatial_resampler.h",
32 "main/source/video_decimator.cc",
33 "main/source/video_decimator.h",
34 "main/source/video_processing_impl.cc",
35 "main/source/video_processing_impl.h",
36 ]
37
38 deps = [
39 "../../common_audio",
40 "../../common_video",
41 "../../modules/utility",
42 "../../system_wrappers",
43 ]
44 if (build_video_processing_sse2) {
45 deps += [ ":video_processing_sse2" ]
46 }
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +000047
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.org73823ca2014-07-07 11:46:43 +000053}
54
55if (build_video_processing_sse2) {
56 source_set("video_processing_sse2") {
57 sources = [ "main/source/content_analysis_sse2.cc" ]
kjellander@webrtc.org4a251992014-08-18 17:56:28 +000058
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +000059 configs += [ "../..:common_inherited_config" ]
60
61 if (is_clang) {
62 # Suppress warnings from Chrome's Clang plugins.
63 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
64 configs -= [ "//build/config/clang:find_bad_constructs" ]
65 }
kjellander@webrtc.org4a251992014-08-18 17:56:28 +000066
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000067 if (is_posix) {
68 cflags = [ "-msse2" ]
69 }
70 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000071}