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

Unified Diff: gyp/codec.gyp

Issue 930283002: Add SkCodec, including PNG implementation. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Handle rewinding. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: gyp/codec.gyp
diff --git a/gyp/codec.gyp b/gyp/codec.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..178e832b7a8a10027f01f0dc3cf5c9da08e6d309
--- /dev/null
+++ b/gyp/codec.gyp
@@ -0,0 +1,80 @@
+# GYP file for codec project.
+{
+ 'targets': [
+ {
+ 'target_name': 'codec',
+ 'product_name': 'skia_codec',
+ 'type': 'static_library',
+ 'standalone_static_library': 1,
+ 'dependencies': [
+ 'core.gyp:*',
+ 'libjpeg.gyp:*',
+ 'etc1.gyp:libetc1',
+ 'ktx.gyp:libSkKTX',
+ 'libwebp.gyp:libwebp',
+ 'utils.gyp:utils',
+ ],
+ 'include_dirs': [
+ '../include/codec',
+ '../src/codec',
+ ],
+ 'sources': [
+ '../src/codec/SkCodec.cpp',
+ '../src/codec/SkCodec_libpng.cpp',
+ '../src/codec/SkSwizzler.cpp',
+ ],
+ 'conditions': [
+ [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
+ 'export_dependent_settings': [
djsollen 2015/02/25 16:02:19 why do we want to expose these settings further up
scroggo 2015/02/25 18:00:54 This copies images.gyp almost exactly. Not sure wh
+ 'libpng.gyp:libpng',
+ 'giflib.gyp:giflib'
+ ],
+ 'dependencies': [
+ 'libpng.gyp:libpng',
+ 'giflib.gyp:giflib'
+ ],
+ # end libpng/libgif stuff
+ }],
+ # FIXME: NaCl should be just like linux, etc, above, but it currently is separated out
+ # to remove gif. Once gif is supported by naclports, this can be merged into the above
+ # condition.
+ [ 'skia_os == "nacl"', {
+ 'sources!': [
+ '../src/images/SkImageDecoder_libgif.cpp',
+ '../src/images/SkMovie_gif.cpp',
+ ],
+ }],
+ [ 'skia_os == "android"', {
+ 'dependencies': [
+ 'android_deps.gyp:gif',
+ 'android_deps.gyp:png',
djsollen 2015/02/25 16:02:19 for android we should link in the most recent copy
scroggo 2015/02/25 18:00:54 Done.
scroggo 2015/02/26 17:45:36 I neglected to pay attention to the fact that libp
+ ],
+ 'conditions': [
+ [ 'skia_android_framework == 0', {
+ 'export_dependent_settings': [
+ 'android_deps.gyp:png',
+ 'libjpeg.gyp:*'
+ ],
+ }],
+ ],
+ }],
+ [ 'skia_os == "chromeos"', {
+ 'dependencies': [
+ 'chromeos_deps.gyp:gif',
+ 'libpng.gyp:libpng',
+ ],
+ }],
+ [ 'skia_os == "ios"', {
+ 'include_dirs': [
+ '../include/utils/mac',
+ ],
+ }],
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '../include/codec',
+ ],
+ },
+ },
+ ],
+}

Powered by Google App Engine
This is Rietveld 408576698