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.
5 component("platform") {
6 output_name = "blink_platform"
9 "weborigin/DatabaseIdentifier.cpp",
10 "weborigin/DatabaseIdentifier.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",
30 configs -= [ "//build/config/compiler:chromium_code" ]
33 "//build/config/compiler:no_chromium_code",
36 include_dirs = [ "../.." ]
38 defines = [ "WEBORIGIN_IMPLEMENTATION=1" ]
41 "//third_party/WebKit/Source/wtf",
47 executable("blink_platform_unittests") {
49 "weborigin/DatabaseIdentifierTest.cpp",
50 "weborigin/KURLTest.cpp",
51 "weborigin/SecurityOriginTest.cpp",
54 configs -= [ "//build/config/compiler:chromium_code" ]
57 "//build/config/compiler:no_chromium_code",
58 "//third_party/icu:icu_config",
63 "../wtf:run_all_tests",
66 # if (is_linux && use_tcmalloc) {
69 # "//base/allocator:allocator",