Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Side by Side Diff: components/image_fetcher/ios/BUILD.gn

Issue 2699633006: Move WebpDecoder from ios/web to components/image_fetcher (Closed)
Patch Set: Separate header Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/image_fetcher/ios/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 source_set("ios") { 5 source_set("ios") {
6 sources = [ 6 sources = [
7 "ios_image_data_fetcher_wrapper.h", 7 "ios_image_data_fetcher_wrapper.h",
8 "ios_image_data_fetcher_wrapper.mm", 8 "ios_image_data_fetcher_wrapper.mm",
9 "webp_decoder.h",
10 "webp_decoder.mm",
9 ] 11 ]
10 deps = [ 12 deps = [
11 "//base", 13 "//base",
12 "//components/image_fetcher", 14 "//components/image_fetcher",
13 "//ios/web/public/image_fetcher",
14 "//net", 15 "//net",
16 "//third_party/libwebp:libwebp_dec",
15 ] 17 ]
16 configs += [ "//build/config/compiler:enable_arc" ] 18 configs += [ "//build/config/compiler:enable_arc" ]
17 } 19 }
18 20
19 source_set("unit_tests") { 21 source_set("unit_tests") {
20 testonly = true 22 testonly = true
21 sources = [ 23 sources = [
22 "ios_image_data_fetcher_wrapper_unittest.mm", 24 "ios_image_data_fetcher_wrapper_unittest.mm",
25 "webp_decoder_unittest.mm",
23 ] 26 ]
24 deps = [ 27 deps = [
25 ":ios", 28 ":ios",
29 ":webp_transcode_unit_tests_bundle_data",
26 "//base", 30 "//base",
27 "//ios/web/public/image_fetcher",
28 "//net", 31 "//net",
29 "//net:test_support", 32 "//net:test_support",
30 "//testing/gmock", 33 "//testing/gmock",
31 "//testing/gtest", 34 "//testing/gtest",
32 ] 35 ]
33 configs += [ "//build/config/compiler:enable_arc" ] 36 configs += [ "//build/config/compiler:enable_arc" ]
34 } 37 }
38
39 bundle_data("webp_transcode_unit_tests_bundle_data") {
40 visibility = [ ":unit_tests" ]
41 testonly = true
42 sources = [
43 "//components/test/data/webp_transcode/test.jpg",
44 "//components/test/data/webp_transcode/test.webp",
45 "//components/test/data/webp_transcode/test_alpha.png",
46 "//components/test/data/webp_transcode/test_alpha.webp",
47 "//components/test/data/webp_transcode/test_small.tiff",
48 "//components/test/data/webp_transcode/test_small.webp",
49 ]
50 outputs = [
51 "{{bundle_resources_dir}}/{{source_root_relative_dir}}/" +
52 "{{source_file_part}}",
53 ]
54 }
OLDNEW
« no previous file with comments | « no previous file | components/image_fetcher/ios/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698