Refactor CMake configuration for ImGuiTestEngine and feature flags
- Updated the CMake configuration to use target_compile_definitions for ImGuiTestEngine, improving clarity and maintainability. - Introduced IMGUI_TEST_ENGINE_DEFINITIONS to streamline the definition process for targets linking to ImGuiTestEngine. - Modified feature flags in features.h to conditionally enable the native file dialog based on the YAZE_ENABLE_NFD flag, enhancing flexibility in feature management.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
|
||||
#ifdef YAZE_LIB_PNG
|
||||
#if YAZE_LIB_PNG == 1
|
||||
#include <zlib.h>
|
||||
#endif
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace util {
|
||||
|
||||
namespace {
|
||||
|
||||
#ifdef YAZE_LIB_PNG
|
||||
#if YAZE_LIB_PNG == 1
|
||||
uint32_t crc32(const std::vector<uint8_t> &data) {
|
||||
uint32_t crc = ::crc32(0L, Z_NULL, 0);
|
||||
return ::crc32(crc, data.data(), data.size());
|
||||
|
||||
Reference in New Issue
Block a user