2 Commits
Author SHA1 Message Date
AramJonghu 9c29e3201d feat(makefile): makefile build & install + progress on cpp and py
C++ / fmt (pull_request) Successful in 5s
JS/TS / fmt & lint (pull_request) Successful in 14s
Python / fmt & lint (pull_request) Successful in 43s
C++ / build & lint (pull_request) Failing after 2m26s
Python / test & nuitka build (pull_request) Successful in 1m51s
Rust / build, clippy & fmt (pull_request) Failing after 4m39s
2026-10-23 04:59:30 +02:00
AramJonghu c215b52903 format(clang): make cpp-fmt result 2026-10-23 04:59:10 +02:00
4 changed files with 44 additions and 5 deletions
+1 -1
View File
@@ -218,7 +218,7 @@ void BlobInvertedRect::outerCornerRadii(float out[4]) const {
const auto base = std::min(static_cast<float>(m_outerRadius), maxR);
out[0] = std::min(
m_outerTopRightRadius >= 0 ? static_cast<float>(m_outerTopRightRadius)
: base,
: base,
maxR);
out[1] = std::min(
m_outerBottomRightRadius >= 0
+6 -2
View File
@@ -60,11 +60,15 @@ class BlobInvertedRect : public BlobShape {
void setOuterRadius(qreal v);
// Per-corner outer radii. -1 falls back to outerRadius (mirrors BlobRect).
[[nodiscard]] qreal outerTopLeftRadius() const { return m_outerTopLeftRadius; }
[[nodiscard]] qreal outerTopLeftRadius() const {
return m_outerTopLeftRadius;
}
void setOuterTopLeftRadius(qreal v);
[[nodiscard]] qreal outerTopRightRadius() const { return m_outerTopRightRadius; }
[[nodiscard]] qreal outerTopRightRadius() const {
return m_outerTopRightRadius;
}
void setOuterTopRightRadius(qreal v);
+1 -2
View File
@@ -240,8 +240,7 @@ void BlobShape::updatePolish() {
m_cachedInvertedRadius = 0;
memset(m_cachedInvertedOuter, 0, sizeof(m_cachedInvertedOuter));
memset(m_cachedInvertedInner, 0, sizeof(m_cachedInvertedInner));
memset(
m_cachedInvertedOuterRadii, 0, sizeof(m_cachedInvertedOuterRadii));
memset(m_cachedInvertedOuterRadii, 0, sizeof(m_cachedInvertedOuterRadii));
auto* inv = m_group->invertedRect();
if (inv) {
+36
View File
@@ -0,0 +1,36 @@
BUILD ?= cmake -B build -G Ninja
INSTALL ?= $(BUILD) \
&& ninja -C build \
&& sudo ninja -C build install
.DEFAULT_GOAL := help
help:
@echo "build cmake builds into build directory"
build:
$(BUILD)
install:
$(INSTALL)
# TODO: Anything below is not ready
cpp-fmt:
find . \( -name '*.cpp' -o -name '*.h' -o -name '*.hpp' \) \
-not -path './build/*' \
-exec clang-format -i --style=file {} +
# cpp-lint needs adjustments in ci and here
py-fmt:
ruff format --check
py-lint:
ruff check ./cli
py-check:
basedpyright
py-test:
python -m pytest ./cli/src/tests/ -v