Upstream version 11.40.271.0
[platform/framework/web/crosswalk.git] / src / components / data_reduction_proxy / core / common / BUILD.gn
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import("//components/data_reduction_proxy/core/common/version.gni")
6
7 static_library("common") {
8   sources = [
9     "data_reduction_proxy_headers.cc",
10     "data_reduction_proxy_headers.h",
11     "data_reduction_proxy_params.cc",
12     "data_reduction_proxy_params.h",
13     "data_reduction_proxy_pref_names.cc",
14     "data_reduction_proxy_pref_names.h",
15     "data_reduction_proxy_switches.cc",
16     "data_reduction_proxy_switches.h",
17   ]
18
19   deps = [
20     ":version_header",
21     "//base",
22   ]
23 }
24
25 static_library("test_support") {
26   testonly = true
27   sources = [
28     "data_reduction_proxy_params_test_utils.cc",
29     "data_reduction_proxy_params_test_utils.h",
30   ]
31
32   deps = [
33     ":common",
34     "//base",
35     "//net",
36     "//net:test_support",
37     "//testing/gmock",
38     "//testing/gtest",
39  ]
40 }
41
42 source_set("unit_tests") {
43   testonly = true
44   sources = [
45     "data_reduction_proxy_headers_unittest.cc",
46     "data_reduction_proxy_params_unittest.cc",
47   ]
48
49   deps = [
50     ":common",
51     "//testing/gtest",
52   ]
53 }
54
55 process_version("version_header") {
56   source = "version.h.in"
57   output = "$target_gen_dir/version.h"
58
59