| OLD | NEW |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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 import("//third_party/WebKit/Source/build/scripts/scripts.gni") | 5 import("//third_party/WebKit/Source/build/scripts/scripts.gni") |
| 6 import("//third_party/WebKit/Source/platform/platform_generated.gni") | 6 import("//third_party/WebKit/Source/platform/platform_generated.gni") |
| 7 | 7 |
| 8 make_names("make_platform_loader_generated_fetch_initiator_type_names") { | 8 make_names("make_platform_loader_generated_fetch_initiator_type_names") { |
| 9 in_files = [ "fetch/FetchInitiatorTypeNames.json5" ] | 9 in_files = [ "fetch/FetchInitiatorTypeNames.json5" ] |
| 10 outputs = [ | 10 outputs = [ |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 "fetch/IntegrityMetadata.cpp", | 39 "fetch/IntegrityMetadata.cpp", |
| 40 "fetch/IntegrityMetadata.h", | 40 "fetch/IntegrityMetadata.h", |
| 41 "fetch/MemoryCache.cpp", | 41 "fetch/MemoryCache.cpp", |
| 42 "fetch/MemoryCache.h", | 42 "fetch/MemoryCache.h", |
| 43 "fetch/RawResource.cpp", | 43 "fetch/RawResource.cpp", |
| 44 "fetch/RawResource.h", | 44 "fetch/RawResource.h", |
| 45 "fetch/Resource.cpp", | 45 "fetch/Resource.cpp", |
| 46 "fetch/Resource.h", | 46 "fetch/Resource.h", |
| 47 "fetch/ResourceClient.h", | 47 "fetch/ResourceClient.h", |
| 48 "fetch/ResourceClientWalker.h", | 48 "fetch/ResourceClientWalker.h", |
| 49 "fetch/ResourceError.cpp", |
| 50 "fetch/ResourceError.h", |
| 49 "fetch/ResourceFetcher.cpp", | 51 "fetch/ResourceFetcher.cpp", |
| 50 "fetch/ResourceFetcher.h", | 52 "fetch/ResourceFetcher.h", |
| 53 "fetch/ResourceLoadInfo.h", |
| 54 "fetch/ResourceLoadPriority.h", |
| 55 "fetch/ResourceLoadTiming.cpp", |
| 56 "fetch/ResourceLoadTiming.h", |
| 51 "fetch/ResourceLoader.cpp", | 57 "fetch/ResourceLoader.cpp", |
| 52 "fetch/ResourceLoader.h", | 58 "fetch/ResourceLoader.h", |
| 53 "fetch/ResourceLoaderOptions.h", | 59 "fetch/ResourceLoaderOptions.h", |
| 54 "fetch/ResourceLoadingLog.h", | 60 "fetch/ResourceLoadingLog.h", |
| 61 "fetch/ResourceRequest.cpp", |
| 62 "fetch/ResourceRequest.h", |
| 63 "fetch/ResourceResponse.cpp", |
| 64 "fetch/ResourceResponse.h", |
| 55 "fetch/ResourceStatus.h", | 65 "fetch/ResourceStatus.h", |
| 66 "fetch/ResourceTimingInfo.cpp", |
| 67 "fetch/ResourceTimingInfo.h", |
| 56 "fetch/SubstituteData.h", | 68 "fetch/SubstituteData.h", |
| 57 "fetch/UniqueIdentifier.cpp", | 69 "fetch/UniqueIdentifier.cpp", |
| 58 "fetch/UniqueIdentifier.h", | 70 "fetch/UniqueIdentifier.h", |
| 59 ] | 71 ] |
| 60 | 72 |
| 61 sources += get_target_outputs( | 73 sources += get_target_outputs( |
| 62 ":make_platform_loader_generated_fetch_initiator_type_names") | 74 ":make_platform_loader_generated_fetch_initiator_type_names") |
| 63 | 75 |
| 64 defines = [ "BLINK_PLATFORM_IMPLEMENTATION=1" ] | 76 defines = [ "BLINK_PLATFORM_IMPLEMENTATION=1" ] |
| 65 | 77 |
| 66 configs += [ | 78 configs += [ |
| 67 "//third_party/WebKit/Source:config", | 79 "//third_party/WebKit/Source:config", |
| 68 "//third_party/WebKit/Source:non_test_config", | 80 "//third_party/WebKit/Source:non_test_config", |
| 69 "//third_party/WebKit/Source:inside_blink", | 81 "//third_party/WebKit/Source:inside_blink", |
| 70 | 82 |
| 71 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 83 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 72 "//build/config/compiler:no_size_t_to_int_warning", | 84 "//build/config/compiler:no_size_t_to_int_warning", |
| 73 ] | 85 ] |
| 74 | 86 |
| 75 deps = [ | 87 deps = [ |
| 76 ":make_platform_loader_generated_fetch_initiator_type_names", | 88 ":make_platform_loader_generated_fetch_initiator_type_names", |
| 77 "//components/link_header_util:link_header_util", | 89 "//components/link_header_util:link_header_util", |
| 78 ] | 90 ] |
| 79 | 91 |
| 80 public_deps = [ | 92 public_deps = [ |
| 81 "//base", | 93 "//base", |
| 94 "//net", |
| 82 "//skia", | 95 "//skia", |
| 83 "//third_party/icu", | 96 "//third_party/icu", |
| 84 "//v8", | 97 "//v8", |
| 85 ] | 98 ] |
| 86 } | 99 } |
| 87 | 100 |
| 88 source_set("unit_tests") { | 101 source_set("unit_tests") { |
| 89 # This target defines test files for blink_platform_unittests and only the | 102 # This target defines test files for blink_platform_unittests and only the |
| 90 # blink_platform_unittests target should depend on it. | 103 # blink_platform_unittests target should depend on it. |
| 91 visibility = [ "//third_party/WebKit/Source/platform:*" ] | 104 visibility = [ "//third_party/WebKit/Source/platform:*" ] |
| 92 testonly = true | 105 testonly = true |
| 93 | 106 |
| 94 # Source files for blink_platform_unittests. | 107 # Source files for blink_platform_unittests. |
| 95 sources = [ | 108 sources = [ |
| 96 "LinkHeaderTest.cpp", | 109 "LinkHeaderTest.cpp", |
| 97 "fetch/ClientHintsPreferencesTest.cpp", | 110 "fetch/ClientHintsPreferencesTest.cpp", |
| 98 "fetch/CrossOriginAccessControlTest.cpp", | 111 "fetch/CrossOriginAccessControlTest.cpp", |
| 99 "fetch/FetchUtilsTest.cpp", | 112 "fetch/FetchUtilsTest.cpp", |
| 100 "fetch/MemoryCacheCorrectnessTest.cpp", | 113 "fetch/MemoryCacheCorrectnessTest.cpp", |
| 101 "fetch/MemoryCacheTest.cpp", | 114 "fetch/MemoryCacheTest.cpp", |
| 102 "fetch/RawResourceTest.cpp", | 115 "fetch/RawResourceTest.cpp", |
| 103 "fetch/ResourceFetcherTest.cpp", | 116 "fetch/ResourceFetcherTest.cpp", |
| 104 "fetch/ResourceLoaderOptionsTest.cpp", | 117 "fetch/ResourceLoaderOptionsTest.cpp", |
| 118 "fetch/ResourceRequestTest.cpp", |
| 105 "fetch/ResourceTest.cpp", | 119 "fetch/ResourceTest.cpp", |
| 106 ] | 120 ] |
| 107 | 121 |
| 108 defines = [ "INSIDE_BLINK" ] | 122 defines = [ "INSIDE_BLINK" ] |
| 109 | 123 |
| 110 configs += [ | 124 configs += [ |
| 111 "//third_party/WebKit/Source/wtf:wtf_config", | 125 "//third_party/WebKit/Source/wtf:wtf_config", |
| 112 "//third_party/WebKit/Source:config", | 126 "//third_party/WebKit/Source:config", |
| 113 ] | 127 ] |
| 114 | 128 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 141 | 155 |
| 142 configs += [ | 156 configs += [ |
| 143 "//third_party/WebKit/Source/wtf:wtf_config", | 157 "//third_party/WebKit/Source/wtf:wtf_config", |
| 144 "//third_party/WebKit/Source:config", | 158 "//third_party/WebKit/Source:config", |
| 145 ] | 159 ] |
| 146 | 160 |
| 147 deps = [ | 161 deps = [ |
| 148 "//third_party/WebKit/Source/platform", | 162 "//third_party/WebKit/Source/platform", |
| 149 ] | 163 ] |
| 150 } | 164 } |
| OLD | NEW |