C++: rename SLINT_FEATURE_STD in SLINT_FEATURE_FREESTANDING with the opposite meaning

This commit is contained in:
Olivier Goffart 2023-08-21 16:52:30 +02:00 committed by GitHub
parent cc006e8baf
commit 146ed520e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 33 additions and 30 deletions

View file

@ -39,7 +39,7 @@ if(SLINT_FEATURE_INTERPRETER)
endif()
slint_test(properties)
if(SLINT_FEATURE_STD)
if(NOT SLINT_FEATURE_FREESTANDING)
slint_test(eventloop)
target_link_libraries(test_eventloop PRIVATE Threads::Threads)
endif()

View file

@ -161,7 +161,7 @@ TEST_CASE("Image")
REQUIRE(!img.path().has_value());
}
#ifdef SLINT_FEATURE_STD
#ifndef SLINT_FEATURE_FREESTANDING
img = Image::load_from_path(SOURCE_DIR "/../../../logo/slint-logo-square-light-128x128.png");
{
auto size = img.size();

View file

@ -72,7 +72,7 @@ struct TestPlatform : slint::platform::Platform
cv.notify_all();
}
#ifndef SLINT_FEATURE_STD
#ifdef SLINT_FEATURE_FREESTANDING
virtual std::chrono::milliseconds duration_since_start() const override
{
return std::chrono::duration_cast<std::chrono::milliseconds>(