Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 component("weborigin") { | 5 component("blink_platform") { |
|
brettw
2014/01/08 05:29:59
Can you call this "platform" so people can refer t
tfarina
2014/01/09 00:59:43
Done.
| |
| 6 sources = [ | 6 sources = [ |
| 7 "DatabaseIdentifier.cpp", | 7 "weborigin/DatabaseIdentifier.cpp", |
| 8 "DatabaseIdentifier.h", | 8 "weborigin/DatabaseIdentifier.h", |
| 9 "KURL.cpp", | 9 "weborigin/KURL.cpp", |
| 10 "KURL.h", | 10 "weborigin/KURL.h", |
| 11 "KURLHash.h", | 11 "weborigin/KURLHash.h", |
| 12 "KnownPorts.cpp", | 12 "weborigin/KnownPorts.cpp", |
| 13 "KnownPorts.h", | 13 "weborigin/KnownPorts.h", |
| 14 "OriginAccessEntry.cpp", | 14 "weborigin/OriginAccessEntry.cpp", |
| 15 "OriginAccessEntry.h", | 15 "weborigin/OriginAccessEntry.h", |
| 16 "ReferrerPolicy.h", | 16 "weborigin/ReferrerPolicy.h", |
| 17 "SchemeRegistry.cpp", | 17 "weborigin/SchemeRegistry.cpp", |
| 18 "SchemeRegistry.h", | 18 "weborigin/SchemeRegistry.h", |
| 19 "SecurityOrigin.cpp", | 19 "weborigin/SecurityOrigin.cpp", |
| 20 "SecurityOrigin.h", | 20 "weborigin/SecurityOrigin.h", |
| 21 "SecurityOriginCache.h", | 21 "weborigin/SecurityOriginCache.h", |
| 22 "SecurityOriginHash.h", | 22 "weborigin/SecurityOriginHash.h", |
| 23 "SecurityPolicy.cpp", | 23 "weborigin/SecurityPolicy.cpp", |
| 24 "SecurityPolicy.h", | 24 "weborigin/SecurityPolicy.h", |
| 25 "WebOriginExport.h", | 25 "weborigin/WebOriginExport.h", |
| 26 ] | 26 ] |
| 27 | 27 |
| 28 configs -= [ "//build/config/compiler:chromium_code" ] | 28 configs -= [ "//build/config/compiler:chromium_code" ] |
| 29 configs += [ | 29 configs += [ |
| 30 "../wtf:wtf-config" | |
| 30 "//build/config/compiler:no_chromium_code", | 31 "//build/config/compiler:no_chromium_code", |
| 31 "../wtf:wtf-config" | |
| 32 ] | 32 ] |
| 33 | 33 |
| 34 include_dirs = [ "../.." ] | |
| 35 | |
| 34 defines = [ "WEBORIGIN_IMPLEMENTATION=1" ] | 36 defines = [ "WEBORIGIN_IMPLEMENTATION=1" ] |
| 35 | 37 |
| 36 deps = [ | 38 deps = [ |
| 39 "//third_party/WebKit/Source/wtf", | |
| 37 "//third_party/icu:icui18n", | 40 "//third_party/icu:icui18n", |
| 38 "//third_party/icu:icuuc", | 41 "//third_party/icu:icuuc", |
| 39 "//url", | 42 "//url", |
| 40 ] | 43 ] |
| 41 } | 44 } |
| 42 | 45 |
| 43 executable("weborigin_unittests") { | 46 executable("blink_platform_unittests") { |
| 44 sources = [ | 47 sources = [ |
| 45 "DatabaseIdentifierTest.cpp", | 48 "weborigin/DatabaseIdentifierTest.cpp", |
| 46 "KURLTest.cpp", | 49 "weborigin/KURLTest.cpp", |
| 47 "SecurityOriginTest.cpp", | 50 "weborigin/SecurityOriginTest.cpp", |
| 48 ] | 51 ] |
| 49 | 52 |
| 50 configs -= [ "//build/config/compiler:chromium_code" ] | 53 configs -= [ "//build/config/compiler:chromium_code" ] |
| 51 configs += [ | 54 configs += [ |
| 52 "../wtf:wtf-config" | 55 "../wtf:wtf-config" |
| 53 "//build/config/compiler:no_chromium_code", | 56 "//build/config/compiler:no_chromium_code", |
| 54 "//third_party/icu:icu_config", | 57 "//third_party/icu:icu_config", |
| 55 ] | 58 ] |
| 56 | 59 |
| 57 deps = [ | 60 deps = [ |
| 58 ":weborigin", | 61 ":blink_platform", |
| 59 "../wtf:run_all_tests", | 62 "../wtf:run_all_tests", |
| 60 ] | 63 ] |
| 61 | 64 |
| 62 # if (is_linux && use_tcmalloc) { | 65 # if (is_linux && use_tcmalloc) { |
| 63 # deps += [ | 66 # deps += [ |
| 64 # "//base:base", | 67 # "//base:base", |
| 65 # "//base/allocator:allocator", | 68 # "//base/allocator:allocator", |
| 66 # ], | 69 # ], |
| 67 # } | 70 # } |
| 68 | 71 |
| 69 } | 72 } |
| OLD | NEW |