| 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 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 "ios_image_decoder_impl.h", |
| 10 "ios_image_decoder_impl.mm", |
| 9 "webp_decoder.h", | 11 "webp_decoder.h", |
| 10 "webp_decoder.mm", | 12 "webp_decoder.mm", |
| 11 ] | 13 ] |
| 12 deps = [ | 14 deps = [ |
| 13 "//base", | 15 "//base", |
| 14 "//components/image_fetcher", | 16 "//components/image_fetcher", |
| 17 "//ios/web", |
| 15 "//net", | 18 "//net", |
| 16 "//third_party/libwebp:libwebp_dec", | 19 "//third_party/libwebp:libwebp_dec", |
| 20 "//ui/gfx", |
| 17 ] | 21 ] |
| 18 configs += [ "//build/config/compiler:enable_arc" ] | 22 configs += [ "//build/config/compiler:enable_arc" ] |
| 19 } | 23 } |
| 20 | 24 |
| 21 source_set("unit_tests") { | 25 source_set("unit_tests") { |
| 22 testonly = true | 26 testonly = true |
| 23 sources = [ | 27 sources = [ |
| 24 "ios_image_data_fetcher_wrapper_unittest.mm", | 28 "ios_image_data_fetcher_wrapper_unittest.mm", |
| 29 "ios_image_decoder_impl_unittest.mm", |
| 25 "webp_decoder_unittest.mm", | 30 "webp_decoder_unittest.mm", |
| 26 ] | 31 ] |
| 27 deps = [ | 32 deps = [ |
| 28 ":ios", | 33 ":ios", |
| 29 ":webp_transcode_unit_tests_bundle_data", | 34 ":webp_transcode_unit_tests_bundle_data", |
| 30 "//base", | 35 "//base", |
| 31 "//net", | 36 "//net", |
| 32 "//net:test_support", | 37 "//net:test_support", |
| 33 "//testing/gmock", | 38 "//testing/gmock", |
| 34 "//testing/gtest", | 39 "//testing/gtest", |
| 40 "//ui/gfx", |
| 35 ] | 41 ] |
| 36 configs += [ "//build/config/compiler:enable_arc" ] | 42 configs += [ "//build/config/compiler:enable_arc" ] |
| 37 } | 43 } |
| 38 | 44 |
| 39 bundle_data("webp_transcode_unit_tests_bundle_data") { | 45 bundle_data("webp_transcode_unit_tests_bundle_data") { |
| 40 visibility = [ ":unit_tests" ] | 46 visibility = [ ":unit_tests" ] |
| 41 testonly = true | 47 testonly = true |
| 42 sources = [ | 48 sources = [ |
| 43 "//components/test/data/webp_transcode/test.jpg", | 49 "//components/test/data/webp_transcode/test.jpg", |
| 44 "//components/test/data/webp_transcode/test.webp", | 50 "//components/test/data/webp_transcode/test.webp", |
| 45 "//components/test/data/webp_transcode/test_alpha.png", | 51 "//components/test/data/webp_transcode/test_alpha.png", |
| 46 "//components/test/data/webp_transcode/test_alpha.webp", | 52 "//components/test/data/webp_transcode/test_alpha.webp", |
| 47 "//components/test/data/webp_transcode/test_small.tiff", | 53 "//components/test/data/webp_transcode/test_small.tiff", |
| 48 "//components/test/data/webp_transcode/test_small.webp", | 54 "//components/test/data/webp_transcode/test_small.webp", |
| 49 ] | 55 ] |
| 50 outputs = [ | 56 outputs = [ |
| 51 "{{bundle_resources_dir}}/{{source_root_relative_dir}}/" + | 57 "{{bundle_resources_dir}}/{{source_root_relative_dir}}/" + |
| 52 "{{source_file_part}}", | 58 "{{source_file_part}}", |
| 53 ] | 59 ] |
| 54 } | 60 } |
| OLD | NEW |