| 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("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 | 6 |
| 7 component("codec") { | 7 component("codec") { |
| 8 sources = [ | 8 sources = [ |
| 9 "codec_export.h", | 9 "codec_export.h", |
| 10 "jpeg_codec.cc", | 10 "jpeg_codec.cc", |
| 11 "jpeg_codec.h", | 11 "jpeg_codec.h", |
| 12 "png_codec.cc", | 12 "png_codec.cc", |
| 13 "png_codec.h", | 13 "png_codec.h", |
| 14 "skia_image_encoder_adapter.cc", | |
| 15 "skia_image_encoder_adapter.h", | |
| 16 ] | 14 ] |
| 17 | 15 |
| 18 deps = [ | 16 deps = [ |
| 19 "//base", | 17 "//base", |
| 20 "//skia", | 18 "//skia", |
| 21 "//third_party/libpng", | 19 "//third_party/libpng", |
| 22 "//ui/gfx:geometry_skia", | 20 "//ui/gfx:geometry_skia", |
| 23 "//ui/gfx:gfx_export", | 21 "//ui/gfx:gfx_export", |
| 24 "//ui/gfx/geometry", | 22 "//ui/gfx/geometry", |
| 25 ] | 23 ] |
| (...skipping 16 matching lines...) Expand all Loading... |
| 42 deps += [ "//third_party/libjpeg" ] | 40 deps += [ "//third_party/libjpeg" ] |
| 43 } | 41 } |
| 44 | 42 |
| 45 if (is_win) { | 43 if (is_win) { |
| 46 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()), | 44 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()), |
| 47 # which is uninteresting. | 45 # which is uninteresting. |
| 48 } | 46 } |
| 49 | 47 |
| 50 defines = [ "CODEC_IMPLEMENTATION" ] | 48 defines = [ "CODEC_IMPLEMENTATION" ] |
| 51 } | 49 } |
| OLD | NEW |