| Index: tools/gn/secondary/third_party/WebKit/Source/platform/BUILD.gn
|
| diff --git a/tools/gn/secondary/third_party/WebKit/Source/weborigin/BUILD.gn b/tools/gn/secondary/third_party/WebKit/Source/platform/BUILD.gn
|
| similarity index 44%
|
| rename from tools/gn/secondary/third_party/WebKit/Source/weborigin/BUILD.gn
|
| rename to tools/gn/secondary/third_party/WebKit/Source/platform/BUILD.gn
|
| index 64f8907919e46b93cfd32d347a4f28a76f441a9e..43b48b6a654ef6e2ee94a580fb765110185ae3ad 100644
|
| --- a/tools/gn/secondary/third_party/WebKit/Source/weborigin/BUILD.gn
|
| +++ b/tools/gn/secondary/third_party/WebKit/Source/platform/BUILD.gn
|
| @@ -2,65 +2,70 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| -component("weborigin") {
|
| +component("platform") {
|
| + output_name = "blink_platform"
|
| +
|
| 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",
|
| + "weborigin/DatabaseIdentifier.cpp",
|
| + "weborigin/DatabaseIdentifier.h",
|
| + "weborigin/KURL.cpp",
|
| + "weborigin/KURL.h",
|
| + "weborigin/KURLHash.h",
|
| + "weborigin/KnownPorts.cpp",
|
| + "weborigin/KnownPorts.h",
|
| + "weborigin/OriginAccessEntry.cpp",
|
| + "weborigin/OriginAccessEntry.h",
|
| + "weborigin/ReferrerPolicy.h",
|
| + "weborigin/SchemeRegistry.cpp",
|
| + "weborigin/SchemeRegistry.h",
|
| + "weborigin/SecurityOrigin.cpp",
|
| + "weborigin/SecurityOrigin.h",
|
| + "weborigin/SecurityOriginCache.h",
|
| + "weborigin/SecurityOriginHash.h",
|
| + "weborigin/SecurityPolicy.cpp",
|
| + "weborigin/SecurityPolicy.h",
|
| + "weborigin/WebOriginExport.h",
|
| ]
|
|
|
| configs -= [ "//build/config/compiler:chromium_code" ]
|
| configs += [
|
| - "//build/config/compiler:no_chromium_code",
|
| "../wtf:wtf-config"
|
| + "//build/config/compiler:no_chromium_code",
|
| ]
|
|
|
| + include_dirs = [ "../.." ]
|
| +
|
| defines = [ "WEBORIGIN_IMPLEMENTATION=1" ]
|
|
|
| deps = [
|
| + "//third_party/WebKit/Source/wtf",
|
| "//third_party/icu:icui18n",
|
| "//third_party/icu:icuuc",
|
| "//url",
|
| ]
|
| }
|
|
|
| -executable("weborigin_unittests") {
|
| +executable("blink_platform_unittests") {
|
| sources = [
|
| - "DatabaseIdentifierTest.cpp",
|
| - "KURLTest.cpp",
|
| - "SecurityOriginTest.cpp",
|
| + "weborigin/DatabaseIdentifierTest.cpp",
|
| + "weborigin/KURLTest.cpp",
|
| + "weborigin/SecurityOriginTest.cpp",
|
| ]
|
|
|
| configs -= [ "//build/config/compiler:chromium_code" ]
|
| configs += [
|
| - "../wtf:wtf-config"
|
| + "../wtf:wtf-config"
|
| "//build/config/compiler:no_chromium_code",
|
| "//third_party/icu:icu_config",
|
| ]
|
|
|
| deps = [
|
| - ":weborigin",
|
| + ":platform",
|
| "../wtf:run_all_tests",
|
| ]
|
|
|
| # if (is_linux && use_tcmalloc) {
|
| -# deps += [
|
| +# deps += [
|
| # "//base:base",
|
| # "//base/allocator:allocator",
|
| # ],
|
|
|