Chromium Code Reviews| 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..3df4182055f71231aab8787e76c086aa2ed78317 |
| --- /dev/null |
| +++ b/tools/gn/secondary/third_party/WebKit/Source/weborigin/BUILD.gn |
| @@ -0,0 +1,68 @@ |
| +# 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") { |
| + 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", |
| + ] |
| + |
| + sources = [ |
|
brettw
2013/10/18 17:23:42
Sources first, same below.
|
| + "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", |
| + ] |
| +} |
| + |
| +executable("weborigin_unittests") { |
| + 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", |
| + ] |
| + |
| + sources = [ |
| + "DatabaseIdentifierTest.cpp", |
| + "KURLTest.cpp", |
| + "SecurityOriginTest.cpp", |
| + ] |
| + |
| +# if (is_linux && use_tcmalloc) { |
| +# deps += [ |
| +# "//base:base", |
| +# "//base/allocator:allocator", |
| +# ], |
| +# } |
| + |
| +} |