blob: 22bb7c52d9bfcadf90803973a2c465915309a9a4 [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
kjellander@webrtc.org72273912015-02-23 19:08:31 +000011build_video_processing_sse2 = current_cpu == "x86" || current_cpu == "x64"
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000012
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
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +000048 configs += [ "../..:common_config" ]
49 public_configs = [ "../..:common_inherited_config" ]
50
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +000051 if (is_clang) {
52 # Suppress warnings from Chrome's Clang plugins.
53 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
54 configs -= [ "//build/config/clang:find_bad_constructs" ]
55 }
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000056}
57
58if (build_video_processing_sse2) {
59 source_set("video_processing_sse2") {
60 sources = [ "main/source/content_analysis_sse2.cc" ]
kjellander@webrtc.org4a251992014-08-18 17:56:28 +000061
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +000062 configs += [ "../..:common_config" ]
63 public_configs = [ "../..:common_inherited_config" ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +000064
65 if (is_clang) {
66 # Suppress warnings from Chrome's Clang plugins.
67 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
68 configs -= [ "//build/config/clang:find_bad_constructs" ]
69 }
kjellander@webrtc.org4a251992014-08-18 17:56:28 +000070
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000071 if (is_posix) {
72 cflags = [ "-msse2" ]
73 }
74 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000075}