| Index: tools/gn/secondary/third_party/WebKit/Source/weborigin/BUILD.gn
|
| diff --git a/tools/gn/secondary/third_party/WebKit/Source/weborigin/BUILD.gn b/tools/gn/secondary/third_party/WebKit/Source/weborigin/BUILD.gn
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4ceed99da749801c33e2391767ceccf6cf70e5b5
|
| --- /dev/null
|
| +++ b/tools/gn/secondary/third_party/WebKit/Source/weborigin/BUILD.gn
|
| @@ -0,0 +1,69 @@
|
| +# Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +component("weborigin") {
|
| + sources = [
|
| + "DatabaseIdentifier.cpp",
|
| + "DatabaseIdentifier.h",
|
| + "KURL.cpp",
|
| + "KURL.h",
|
| + "KURLHash.h",
|
| + "KnownPorts.cpp",
|
| + "KnownPorts.h",
|
| + "OriginAccessEntry.cpp",
|
| + "OriginAccessEntry.h",
|
| + "ReferrerPolicy.h",
|
| + "SchemeRegistry.cpp",
|
| + "SchemeRegistry.h",
|
| + "SecurityOrigin.cpp",
|
| + "SecurityOrigin.h",
|
| + "SecurityOriginCache.h",
|
| + "SecurityOriginHash.h",
|
| + "SecurityPolicy.cpp",
|
| + "SecurityPolicy.h",
|
| + "WebOriginExport.h",
|
| + ]
|
| +
|
| + configs -= [ "//build/config/compiler:chromium_code" ]
|
| + configs += [
|
| + "//build/config/compiler:no_chromium_code",
|
| + "../wtf:wtf-config"
|
| + ]
|
| +
|
| + defines = [ "WEBORIGIN_IMPLEMENTATION=1" ]
|
| +
|
| + deps = [
|
| + "//third_party/icu:icui18n",
|
| + "//third_party/icu:icuuc",
|
| + "//url",
|
| + ]
|
| +}
|
| +
|
| +executable("weborigin_unittests") {
|
| + sources = [
|
| + "DatabaseIdentifierTest.cpp",
|
| + "KURLTest.cpp",
|
| + "SecurityOriginTest.cpp",
|
| + ]
|
| +
|
| + configs -= [ "//build/config/compiler:chromium_code" ]
|
| + configs += [
|
| + "../wtf:wtf-config"
|
| + "//build/config/compiler:no_chromium_code",
|
| + "//third_party/icu:icu_config",
|
| + ]
|
| +
|
| + deps = [
|
| + ":weborigin",
|
| + "../wtf:run_all_tests",
|
| + ]
|
| +
|
| +# if (is_linux && use_tcmalloc) {
|
| +# deps += [
|
| +# "//base:base",
|
| +# "//base/allocator:allocator",
|
| +# ],
|
| +# }
|
| +
|
| +}
|
|
|