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