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

Side by Side Diff: gyp/codec.gyp

Issue 1702533004: Individually enable and disable SkCodecs (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Only keep the ifdefs that we really need Created 4 years, 10 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
OLDNEW
1 # Copyright 2015 Google Inc. 1 # Copyright 2015 Google Inc.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 # Copyright 2015 Google Inc. 5 # Copyright 2015 Google Inc.
6 # 6 #
7 # Use of this source code is governed by a BSD-style license that can be 7 # Use of this source code is governed by a BSD-style license that can be
8 # found in the LICENSE file. 8 # found in the LICENSE file.
9 9
10 # GYP file for codec project. 10 # GYP file for codec project.
11 { 11 {
12 'targets': [ 12 'targets': [
13 { 13 {
14 'target_name': 'codec', 14 'target_name': 'codec',
15 'product_name': 'skia_codec', 15 'product_name': 'skia_codec',
16 'type': 'static_library', 16 'type': 'static_library',
17 'standalone_static_library': 1, 17 'standalone_static_library': 1,
18 'dependencies': [ 18 'dependencies': [
19 'core.gyp:*', 19 'core.gyp:*',
20 'giflib.gyp:giflib', 20 'giflib.gyp:giflib',
21 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector', 21 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector',
22 'libpng.gyp:libpng', 22 'libpng.gyp:libpng',
23 'libwebp.gyp:libwebp', 23 'libwebp.gyp:libwebp',
24 ], 24 ],
25 'cflags':[
26 # FIXME: This gets around a longjmp warning. See
scroggo 2016/02/17 14:55:55 Did this get fixed in this patch? Or maybe it was
msarett 2016/02/17 15:13:47 I *think* this was fixed before and we didn't noti
27 # http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu- GCC-x86_64-Release-Trybot/builds/113/steps/build%20most/logs/stdio
28 '-Wno-clobbered -Wno-error',
29 ],
30 'include_dirs': [ 25 'include_dirs': [
31 '../include/codec', 26 '../include/codec',
32 '../include/private', 27 '../include/private',
33 '../src/codec', 28 '../src/codec',
34 '../src/core', 29 '../src/core',
35 '../src/utils', 30 '../src/utils',
36 ], 31 ],
37 'sources': [ 32 'sources': [
38 '../src/codec/SkAndroidCodec.cpp', 33 '../src/codec/SkAndroidCodec.cpp',
39 '../src/codec/SkBmpCodec.cpp', 34 '../src/codec/SkBmpCodec.cpp',
(...skipping 18 matching lines...) Expand all
58 '../src/codec/SkWebpCodec.cpp', 53 '../src/codec/SkWebpCodec.cpp',
59 54
60 '../src/codec/SkCodecImageGenerator.cpp', 55 '../src/codec/SkCodecImageGenerator.cpp',
61 ], 56 ],
62 'direct_dependent_settings': { 57 'direct_dependent_settings': {
63 'include_dirs': [ 58 'include_dirs': [
64 '../include/codec', 59 '../include/codec',
65 ], 60 ],
66 }, 61 },
67 'defines': [ 62 'defines': [
63 # Allow the client to turn on/off individual codecs. This can be useful
scroggo 2016/02/17 14:55:55 Is the idea that a client would modify this file i
mtklein 2016/02/17 14:59:30 Let's not add switches no one's asking to flip yet
msarett 2016/02/17 15:13:47 Let's leave as is for now - if we find we need swi
scroggo 2016/02/17 15:20:00 Yes :)
msarett 2016/02/17 15:26:28 Improved this comment.
64 # when some of the dependencies are not present.
65 'SK_CODEC_DECODES_GIF',
66 'SK_CODEC_DECODES_JPEG',
67 'SK_CODEC_DECODES_PNG',
68 'SK_CODEC_DECODES_WEBP',
69
70 # Turn on optimizations when the appropriate version of libjpeg-turbo is
71 # present.
68 'TURBO_HAS_SKIP', 72 'TURBO_HAS_SKIP',
69 'TURBO_HAS_565', 73 'TURBO_HAS_565',
70 ], 74 ],
71 'conditions': [ 75 'conditions': [
72 ['skia_codec_decodes_raw', { 76 ['skia_codec_decodes_raw', {
73 'dependencies': [ 77 'dependencies': [
74 'raw_codec', 78 'raw_codec',
75 ], 79 ],
76 },], 80 },],
77 ], 81 ],
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 ['skia_os == "ios" or skia_os == "mac"', { 125 ['skia_os == "ios" or skia_os == "mac"', {
122 'xcode_settings': { 126 'xcode_settings': {
123 'OTHER_CFLAGS': ['-fexceptions'], 127 'OTHER_CFLAGS': ['-fexceptions'],
124 'OTHER_CPLUSPLUSFLAGS': ['-fexceptions'], 128 'OTHER_CPLUSPLUSFLAGS': ['-fexceptions'],
125 }, 129 },
126 }], 130 }],
127 ], 131 ],
128 }, 132 },
129 ], 133 ],
130 } 134 }
OLDNEW
« no previous file with comments | « cmake/CMakeLists.txt ('k') | public.bzl » ('j') | src/codec/SkAndroidCodec.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698