This reverts commit
eeb7137a0b421522de4c21c90fc3208e33e3a5a5.
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>
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")
]
}
-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
":gpu",
":hsw",
":jpeg",
- ":ktx_encoder",
":none",
":pdf",
":png",
"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",
# 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',
#define SkEncodeImageAsWEBP(...) false
#endif
-#ifdef SK_HAS_KTX_ENCODER
+#ifndef SK_BUILD_FOR_ANDROID_FRAMEWORK
bool SkEncodeImageAsKTX(SkWStream*, const SkPixmap&);
#else
#define SkEncodeImageAsKTX(...) false