Revert "Do not build the ktx encoder for android framework"

This reverts commit eeb7137a0b.

Reason for revert: well, duh, I guess we'd better update the GYP and Google3 builds...

Original change's description:
> Do not build the ktx encoder for android framework
> 
> Move SkKTXImageEncoder.cpp into an optional block, and disable that
> block for the android framework. Use a new define to determine whether
> to define the entry point, rather than using
> SK_BUILD_FOR_ANDROID_FRAMEWORK.
> 
> Change-Id: I41103459135af744cf5715f27783c63dc37a7ad1
> Reviewed-on: https://skia-review.googlesource.com/5982
> Commit-Queue: Leon Scroggins <scroggo@google.com>
> Commit-Queue: Mike Klein <mtklein@chromium.org>
> Reviewed-by: Mike Klein <mtklein@chromium.org>
> 

TBR=mtklein@chromium.org,mtklein@google.com,scroggo@google.com,reviews@skia.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true

Change-Id: I8da75db31884b5148f7f85a6a0c3e6913b71cfa8
Reviewed-on: https://skia-review.googlesource.com/6021
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Mike Klein <mtklein@chromium.org>
This commit is contained in:
Mike Klein 2016-12-14 01:31:40 +00:00 committed by Skia Commit-Bot
parent ecdb686a5c
commit bde5d5dc2e
3 changed files with 2 additions and 12 deletions

View File

@ -27,7 +27,6 @@ declare_args() {
skia_enable_android_framework_defines = false
skia_enable_gpu = true
skia_enable_ktx_encoder = true
skia_enable_tools = is_skia_standalone
skia_enable_vulkan_debug_layers = is_skia_standalone && is_debug
skia_vulkan_sdk = getenv("VULKAN_SDK")
@ -431,14 +430,6 @@ optional("jpeg") {
]
}
optional("ktx_encoder") {
enabled = skia_enable_ktx_encoder
public_defines = [ "SK_HAS_KTX_ENCODER" ]
sources = [
"src/images/SkKTXImageEncoder.cpp",
]
}
optional("pdf") {
enabled = skia_use_zlib
@ -545,7 +536,6 @@ component("skia") {
":gpu",
":hsw",
":jpeg",
":ktx_encoder",
":none",
":pdf",
":png",
@ -588,6 +578,7 @@ component("skia") {
"src/codec/SkSwizzler.cpp",
"src/codec/SkWbmpCodec.cpp",
"src/images/SkImageEncoder.cpp",
"src/images/SkKTXImageEncoder.cpp",
"src/ports/SkDiscardableMemory_none.cpp",
"src/ports/SkGlobalInitialization_default.cpp",
"src/ports/SkImageGenerator_skia.cpp",

View File

@ -109,7 +109,6 @@ cc_library {
# We'll run GN to get the main source lists and include directories for Skia.
gn_args = {
'skia_enable_ktx_encoder': 'false',
'skia_enable_vulkan_debug_layers': 'false',
'skia_use_system_expat': 'true',
'skia_use_vulkan': 'true',

View File

@ -28,7 +28,7 @@
#define SkEncodeImageAsWEBP(...) false
#endif
#ifdef SK_HAS_KTX_ENCODER
#ifndef SK_BUILD_FOR_ANDROID_FRAMEWORK
bool SkEncodeImageAsKTX(SkWStream*, const SkPixmap&);
#else
#define SkEncodeImageAsKTX(...) false