kjellander@webrtc.org f21ea918ad GN: Add common configs to all targets.
This is needed to ensure we have the same build with GN
as with GYP, since GYP includes the common.gypi on a global level.
Several fixes has been needed in the past because some code have
been built without the right defines.

BUG=3441
R=brettw@chromium.org

Review URL: https://webrtc-codereview.appspot.com/28589004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@7317 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-09-28 17:37:22 +00:00

76 lines
2.4 KiB
Plaintext

# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.
import("../../build/webrtc.gni")
build_video_processing_sse2 = cpu_arch == "x86" || cpu_arch == "x64"
source_set("video_processing") {
sources = [
"main/interface/video_processing.h",
"main/interface/video_processing_defines.h",
"main/source/brighten.cc",
"main/source/brighten.h",
"main/source/brightness_detection.cc",
"main/source/brightness_detection.h",
"main/source/color_enhancement.cc",
"main/source/color_enhancement.h",
"main/source/color_enhancement_private.h",
"main/source/content_analysis.cc",
"main/source/content_analysis.h",
"main/source/deflickering.cc",
"main/source/deflickering.h",
"main/source/frame_preprocessor.cc",
"main/source/frame_preprocessor.h",
"main/source/spatial_resampler.cc",
"main/source/spatial_resampler.h",
"main/source/video_decimator.cc",
"main/source/video_decimator.h",
"main/source/video_processing_impl.cc",
"main/source/video_processing_impl.h",
]
deps = [
"../../common_audio",
"../../common_video",
"../../modules/utility",
"../../system_wrappers",
]
if (build_video_processing_sse2) {
deps += [ ":video_processing_sse2" ]
}
configs += [ "../..:common_config" ]
public_configs = [ "../..:common_inherited_config" ]
if (is_clang) {
# Suppress warnings from Chrome's Clang plugins.
# See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
configs -= [ "//build/config/clang:find_bad_constructs" ]
}
}
if (build_video_processing_sse2) {
source_set("video_processing_sse2") {
sources = [ "main/source/content_analysis_sse2.cc" ]
configs += [ "../..:common_config" ]
public_configs = [ "../..:common_inherited_config" ]
if (is_clang) {
# Suppress warnings from Chrome's Clang plugins.
# See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
configs -= [ "//build/config/clang:find_bad_constructs" ]
}
if (is_posix) {
cflags = [ "-msse2" ]
}
}
}