| OLD | NEW |
| (Empty) |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 source_set("webp_transcode") { | |
| 6 configs += [ "//build/config/compiler:enable_arc" ] | |
| 7 sources = [ | |
| 8 "webp_decoder.h", | |
| 9 "webp_decoder.mm", | |
| 10 ] | |
| 11 deps = [ | |
| 12 "//base", | |
| 13 "//third_party/libwebp:libwebp_dec", | |
| 14 ] | |
| 15 } | |
| 16 | |
| 17 source_set("unit_tests") { | |
| 18 configs += [ "//build/config/compiler:enable_arc" ] | |
| 19 testonly = true | |
| 20 sources = [ | |
| 21 "webp_decoder_unittest.mm", | |
| 22 ] | |
| 23 deps = [ | |
| 24 ":webp_transcode", | |
| 25 ":webp_transcode_unit_tests_bundle_data", | |
| 26 "//base", | |
| 27 "//testing/gmock", | |
| 28 "//testing/gtest", | |
| 29 ] | |
| 30 libs = [ "CoreGraphics.framework" ] | |
| 31 } | |
| 32 | |
| 33 bundle_data("webp_transcode_unit_tests_bundle_data") { | |
| 34 visibility = [ ":unit_tests" ] | |
| 35 testonly = true | |
| 36 sources = [ | |
| 37 "//ios/chrome/test/data/webp_transcode/test.jpg", | |
| 38 "//ios/chrome/test/data/webp_transcode/test.webp", | |
| 39 "//ios/chrome/test/data/webp_transcode/test_alpha.png", | |
| 40 "//ios/chrome/test/data/webp_transcode/test_alpha.webp", | |
| 41 "//ios/chrome/test/data/webp_transcode/test_small.tiff", | |
| 42 "//ios/chrome/test/data/webp_transcode/test_small.webp", | |
| 43 ] | |
| 44 outputs = [ | |
| 45 "{{bundle_resources_dir}}/{{source_root_relative_dir}}/" + | |
| 46 "{{source_file_part}}", | |
| 47 ] | |
| 48 } | |
| OLD | NEW |