Initial KTX file decoder
R=bsalomon@google.com, robertphillips@google.com, halcanary@google.com, reed@google.com
Author: krajcevski@google.com
Review URL: https://codereview.chromium.org/302333002
diff --git a/gyp/gpu.gyp b/gyp/gpu.gyp
index fd81d60..f61a515 100644
--- a/gyp/gpu.gyp
+++ b/gyp/gpu.gyp
@@ -85,6 +85,7 @@
'core.gyp:*',
'utils.gyp:*',
'etc1.gyp:libetc1',
+ 'ktx.gyp:libSkKTX',
],
'includes': [
'gpu.gypi',
diff --git a/gyp/images.gyp b/gyp/images.gyp
index 0062f24..eb9db0a 100644
--- a/gyp/images.gyp
+++ b/gyp/images.gyp
@@ -10,6 +10,7 @@
'core.gyp:*',
'libjpeg.gyp:*',
'etc1.gyp:libetc1',
+ 'ktx.gyp:libSkKTX',
'libwebp.gyp:libwebp',
'utils.gyp:utils',
],
@@ -61,6 +62,7 @@
# alphabetical order.
'../src/images/SkImageDecoder_wbmp.cpp',
'../src/images/SkImageDecoder_pkm.cpp',
+ '../src/images/SkImageDecoder_ktx.cpp',
'../src/images/SkImageDecoder_libbmp.cpp',
'../src/images/SkImageDecoder_libgif.cpp',
'../src/images/SkImageDecoder_libico.cpp',
diff --git a/gyp/ktx.gyp b/gyp/ktx.gyp
new file mode 100644
index 0000000..2eaa941
--- /dev/null
+++ b/gyp/ktx.gyp
@@ -0,0 +1,25 @@
+{
+ 'variables': {
+ 'skia_warnings_as_errors': 0,
+ },
+ 'targets': [
+ {
+ 'target_name': 'libSkKTX',
+ 'type': 'static_library',
+ 'include_dirs' : [
+ '../third_party/ktx',
+ '../src/gpu'
+ ],
+ 'sources': [
+ '../third_party/ktx/ktx.cpp',
+ ],
+ 'dependencies': [
+ 'core.gyp:*'
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '../third_party/ktx',
+ ],
+ },
+ }],
+}