mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
C++: rename SLINT_FEATURE_STD in SLINT_FEATURE_FREESTANDING with the opposite meaning
This commit is contained in:
parent
cc006e8baf
commit
146ed520e8
11 changed files with 33 additions and 30 deletions
|
@ -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()
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue