Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / tools / gn / secondary / third_party / WebKit / Source / platform / 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 component("platform") {
6   output_name = "blink_platform"
7
8   sources = [
9     "weborigin/DatabaseIdentifier.cpp",
10     "weborigin/DatabaseIdentifier.h",
11     "weborigin/KURL.cpp",
12     "weborigin/KURL.h",
13     "weborigin/KURLHash.h",
14     "weborigin/KnownPorts.cpp",
15     "weborigin/KnownPorts.h",
16     "weborigin/OriginAccessEntry.cpp",
17     "weborigin/OriginAccessEntry.h",
18     "weborigin/ReferrerPolicy.h",
19     "weborigin/SchemeRegistry.cpp",
20     "weborigin/SchemeRegistry.h",
21     "weborigin/SecurityOrigin.cpp",
22     "weborigin/SecurityOrigin.h",
23     "weborigin/SecurityOriginCache.h",
24     "weborigin/SecurityOriginHash.h",
25     "weborigin/SecurityPolicy.cpp",
26     "weborigin/SecurityPolicy.h",
27     "weborigin/WebOriginExport.h",
28   ]
29
30   configs -= [ "//build/config/compiler:chromium_code" ]
31   configs += [
32     "../wtf:wtf-config"
33     "//build/config/compiler:no_chromium_code",
34   ]
35
36   include_dirs = [ "../.." ]
37
38   defines = [ "WEBORIGIN_IMPLEMENTATION=1" ]
39
40   deps = [
41     "//third_party/WebKit/Source/wtf",
42     "//third_party/icu",
43     "//url",
44   ]
45 }
46
47 executable("blink_platform_unittests") {
48   sources = [
49     "weborigin/DatabaseIdentifierTest.cpp",
50     "weborigin/KURLTest.cpp",
51     "weborigin/SecurityOriginTest.cpp",
52   ]
53
54   configs -= [ "//build/config/compiler:chromium_code" ]
55   configs += [
56     "../wtf:wtf-config"
57     "//build/config/compiler:no_chromium_code",
58     "//third_party/icu:icu_config",
59   ]
60
61   deps = [
62     ":platform",
63     "../wtf:run_all_tests",
64   ]
65
66 #  if (is_linux && use_tcmalloc) {
67 #    deps += [
68 #      "//base:base",
69 #      "//base/allocator:allocator",
70 #    ],
71 #  }
72
73 }