option(LOTTIE_MODULE "Enable LOTTIE MODULE SUPPORT" ON)
option(LOTTIE_THREAD "Enable LOTTIE THREAD SUPPORT" ON)
-option(LOTTIE_RASTER_THREAD "Enable LOTTIE RASTER THREAD SUPPORT" OFF)
option(LOTTIE_CACHE "Enable LOTTIE CACHE SUPPORT" ON)
option(LOTTIE_TEST "Build LOTTIE AUTOTESTS" OFF)
option(LOTTIE_CCACHE "Enable LOTTIE ccache SUPPORT" OFF)
#ifdef LOTTIE_CACHE
#define LOTTIE_CACHE_SUPPORT
#endif
-
-#cmakedefine LOTTIE_RASTER_THREAD
-
-#ifdef LOTTIE_RASTER_THREAD
-#define LOTTIE_RASTER_THREAD_SUPPORT
-#endif
config_h.set10('LOTTIE_THREAD_SUPPORT', true)
endif
-if get_option('raster_thread') == true
- config_h.set10('LOTTIE_RASTER_THREAD_SUPPORT', true)
-endif
-
if get_option('module') == true
config_h.set10('LOTTIE_IMAGE_MODULE_SUPPORT', true)
)
message(summary)
+
+
+
value: true,
description: 'Enable threading in rlottie')
-option('raster_thread',
- type: 'boolean',
- value: false,
- description: 'Enable raster threading in rlottie')
-
option('cache',
type: 'boolean',
value: true,
type: 'boolean',
value: false,
description: 'Enable Generating CMake config files')
+
+
+
using VTask = std::shared_ptr<VRleTask>;
-#if defined(LOTTIE_THREAD_SUPPORT) && defined(LOTTIE_RASTER_THREAD_SUPPORT)
+#ifdef LOTTIE_THREAD_SUPPORT
#include <thread>
#include "vtaskqueue.h"