blob: 43df0802adce5d78c8c5ef2e5c691e04d3975690 [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 = [
Henrik Kjellander0f59a882015-11-18 22:31:24 +010015 "brighten.cc",
16 "brighten.h",
17 "brightness_detection.cc",
18 "brightness_detection.h",
19 "content_analysis.cc",
20 "content_analysis.h",
21 "deflickering.cc",
22 "deflickering.h",
23 "frame_preprocessor.cc",
24 "frame_preprocessor.h",
25 "include/video_processing.h",
26 "include/video_processing_defines.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",
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000033 ]
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.org42ee5b52014-08-25 14:15:35 +000044
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +000045 configs += [ "../..:common_config" ]
46 public_configs = [ "../..:common_inherited_config" ]
47
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +000048 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") {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020057 sources = [
Henrik Kjellander0f59a882015-11-18 22:31:24 +010058 "content_analysis_sse2.cc",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020059 ]
kjellander@webrtc.org4a251992014-08-18 17:56:28 +000060
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +000061 configs += [ "../..:common_config" ]
62 public_configs = [ "../..:common_inherited_config" ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +000063
64 if (is_clang) {
65 # Suppress warnings from Chrome's Clang plugins.
66 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
67 configs -= [ "//build/config/clang:find_bad_constructs" ]
68 }
kjellander@webrtc.org4a251992014-08-18 17:56:28 +000069
stefan@webrtc.org73823ca2014-07-07 11:46:43 +000070 if (is_posix) {
71 cflags = [ "-msse2" ]
72 }
73 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000074}