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

Side by Side Diff: ui/gfx/codec/BUILD.gn

Issue 2755563002: Move ui/gfx/codec/ into its own component. (Closed)
Patch Set: none Created 3 years, 9 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 | « ui/gfx/chromeos/codec/jpeg_codec_robust_slow_unittest.cc ('k') | ui/gfx/codec/chromeos/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
5 import("//build/config/ui.gni")
6
7 component("codec") {
8 sources = [
9 "codec_export.h",
10 "jpeg_codec.cc",
11 "jpeg_codec.h",
12 "png_codec.cc",
13 "png_codec.h",
14 "skia_image_encoder_adapter.cc",
15 "skia_image_encoder_adapter.h",
16 ]
17
18 deps = [
19 "//base",
20 "//skia",
21 "//third_party/libpng",
22 "//ui/gfx:geometry_skia",
23 "//ui/gfx:gfx_export",
24 "//ui/gfx/geometry",
25 ]
26
27 if (is_ios) {
28 sources -= [
29 "jpeg_codec.cc",
30 "jpeg_codec.h",
31 ]
32 } else {
33 deps += [ "//third_party:jpeg" ]
34 }
35
36 if (is_chromeos) {
37 # Robust JPEG decoding for the login screen.
38 sources += [
39 "chromeos/jpeg_codec_robust_slow.cc",
40 "chromeos/jpeg_codec_robust_slow.h",
41 ]
42 deps += [ "//third_party/libjpeg" ]
43 }
44
45 if (is_win) {
46 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()),
47 # which is uninteresting.
48 }
49
50 defines = [ "CODEC_IMPLEMENTATION" ]
51 }
OLDNEW
« no previous file with comments | « ui/gfx/chromeos/codec/jpeg_codec_robust_slow_unittest.cc ('k') | ui/gfx/codec/chromeos/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698