OLD | NEW |
---|---|
(Empty) | |
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 | |
3 # found in the LICENSE file. | |
4 ## "//cc/paint", | |
sky
2017/03/15 19:27:41
Remove this line?
chrishtr
2017/03/15 19:52:17
Done.
| |
5 | |
6 import("//build/config/ui.gni") | |
7 | |
8 component("codec") { | |
9 sources = [ | |
10 "codec_export.h", | |
11 "jpeg_codec.cc", | |
12 "jpeg_codec.h", | |
13 "png_codec.cc", | |
14 "png_codec.h", | |
15 "skia_image_encoder_adapter.cc", | |
16 "skia_image_encoder_adapter.h", | |
17 ] | |
18 | |
19 deps = [ | |
20 "//base", | |
21 "//skia", | |
22 "//third_party/libpng", | |
23 "//ui/gfx:geometry_skia", | |
24 "//ui/gfx:gfx_export", | |
25 "//ui/gfx/geometry", | |
26 ] | |
27 | |
28 if (is_ios) { | |
29 sources -= [ | |
30 "jpeg_codec.cc", | |
31 "jpeg_codec.h", | |
32 ] | |
33 } else { | |
34 deps += [ "//third_party:jpeg" ] | |
35 } | |
36 | |
37 if (is_chromeos) { | |
38 # Robust JPEG decoding for the login screen. | |
39 sources += [ | |
40 "../chromeos/codec/jpeg_codec_robust_slow.cc", | |
sky
2017/03/15 19:27:41
Please move these files into this directory.
sky
2017/03/15 19:56:42
Did you see this comment?
chrishtr
2017/03/15 19:59:59
Sorry saw this two minutes ago. Done.
| |
41 "../chromeos/codec/jpeg_codec_robust_slow.h", | |
42 ] | |
43 deps += [ "//third_party/libjpeg" ] | |
44 } | |
45 | |
46 if (is_win) { | |
47 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()), | |
48 # which is uninteresting. | |
49 } | |
50 | |
51 defines = [ "CODEC_IMPLEMENTATION" ] | |
52 } | |
OLD | NEW |