Commit Graph

22764 Commits

Author SHA1 Message Date
Andrej730 649a869d9c build-deps/python: remove redundant PYTHON_AMD64_POSTFIX variable
It was only needed to set `PYTHON_INSTALLER` correctly, but
`PYTHON_INSTALLER` is actually only used when arch is not x64/arm64,
exactly the only cases when `PYTHON_AMD64_POSTFIX` is set.
2026-09-09 16:43:04 +05:00
Andrej730 865fd99eba build-deps/occt: drop cleaning up inc directory
Turned out it wasn't cmake/occt problem and was a general Windows issue - realtime protection is slowing down cmake reinstalls.
See https://redirect.github.com/Open-Cascade-SAS/OCCT/issues/901
2026-09-09 16:43:04 +05:00
Andrej730 69f5fca049 build-deps/occt: use CMAKE_INSTALL_PREFIX for consistency with build-all
Switched from custom `INSTALL_DIR` to generic `CMAKE_INSTALL_PREFIX` in build-all in f3d1c62f5, mirroring the change on Windows too.
2026-09-09 16:43:04 +05:00
Andrej730 01d489589e build-deps/occt: set dependency name just once 2026-09-09 16:43:04 +05:00
Andrej730 0e39abf88e build-deps/occt: drop -new-layout suffix on next version update automatically 2026-09-09 16:43:04 +05:00
Andrej730 eaae0072e4 build-deps/opencollada: drop stale helper comment
It's dating back to the original implementation in 5c0eb05, it was
needed to avoid rebuilding opencollada. Not needed anymore since
previous installations are now recognized.
2026-09-09 16:43:04 +05:00
Andrej730 b4687b5caa build-deps/opencollada: remove note about release/debug builds switching
It was since the beginning in 5c0eb0548, it's probably resolved after we
added coexisting debug/release installs.
2026-09-09 16:43:04 +05:00
Andrej730 5ae30c4264 build-deps: remove mark_based_on_artifacts workaround
We mark some dependency installations using empty `.release/debug_installation` files to support coexisting release/debug installations, which is needed on Windows to be able to easily switch between Release/Debug builds of IfcOpenShell and avoiding conflicts when different binaries are using different debubg/non-debug runtimes.

It was introduced in 517ba237f and `mark_based_on_artifacts` was pre-existing installations based on the found artifacts, all new installations were not relying on this for marking. Since it's been some time, dropping this workaround.
2026-09-09 16:43:04 +05:00
Andrej730 2d6ec159d2 build-deps/boost: don't specify runtime-link explicitly
As it is assumed `shared` by default.
2026-09-09 16:43:04 +05:00
Andrej730 35d5980959 build-deps/boost: drop check_boost_vc145_compatibility workaround
It's needed to support vc145 (vs2026) for boost versions <1.91. Since
05ba93a we're now building using 1.92, so the workaround is no longer
needed.
2026-09-09 16:43:04 +05:00
Andrej730 b6dd061f14 build-deps/boost: drop fallback for older archive names
Introduced in 2e35b07 when moving to github releases, removing it since
it's been 20 months already.
Added temporary clean up step to remove previous installation.
2026-09-09 16:43:04 +05:00
Andrej730 9624a17809 build-deps/mpfr: consider VS_TOOLSET override
Previously it constructed toolset from `VC_VER`, while it's possible
it's overridden using `VS_TOOLSET`.
2026-09-09 16:43:04 +05:00
Andrej730 2eba0addf2 build-deps/mpfr: clean up repo dir on the rebuild
For consistency with `mpir`
2026-09-09 16:43:04 +05:00
Andrej730 97caf8033c build-deps: note about mpfr/mpir missing some configurations 2026-09-09 16:43:04 +05:00
Andrej730 fe8753bb17 build-deps: document target arg in BuildSolution 2026-09-09 16:43:04 +05:00
Andrej730 71950f6b85 cmake/svgfill: drop undocumented USE_STATIC_MSVC_RUNTIME option
I've found this commit 4400a6e that was introducing this option to the main cmake, but I'm not sure if it ever was propagated to the main branch or was reverted inside one of the merges.

But anyway, `USE_STATIC_MSVC_RUNTIME` is currently used only in svgfill, not used in the main cmake and works out of sync with main cmake (it sets `Boost_USE_STATIC_RUNTIME` to `OFF` instead of guard+setting it to `ON`).

So removing this option and syncing the code.
2026-09-09 16:43:04 +05:00
Andrej730 2be991fff4 build-deps: remove USE_STATIC_RUNTIME option in mpfr/mpir
Typically we always avoid using static runtime as it causes issues when
binaries are interacting.
2026-09-09 16:43:04 +05:00
Andrej730 0e9dc6a87f buld-deps/proj: fix use of deprecated variables
Resolves the warnings below:
```

CMake Deprecation Warning at CMakeLists.txt:207 (message):
  Use SQLite3_INCLUDE_DIR instead of SQLITE3_INCLUDE_DIR

CMake Deprecation Warning at CMakeLists.txt:211 (message):
  Use SQLite3_LIBRARY instead of SQLITE3_LIBRARY
```
2026-09-09 16:43:04 +05:00
Andrej730 cd9cc8cf2f build-deps/proj: use CMAKE_PREFIX_PATH instead of modifying PATH 2026-09-09 16:43:04 +05:00
Andrej730 94f724da13 build-deps: remove redundant GEN_SHORTHAND check
`vs-cfg` always sets it, so it's always defined.
2026-09-09 16:43:04 +05:00
Andrej730 843557b18d build-deps: remove unused PY_VER_MAJOR_MINOR var
It was removed in 0a5388f, but then reintroduced in b25c24a - looking at the code, there was no use for it added, so I guess it was just an accident.
2026-09-09 16:43:04 +05:00
Andrej730 9c311c19de win\readme: drop stale PY_VER_MAJOR_MINOR reference (0a5388f38) 2026-09-09 16:43:04 +05:00
Andrej730 ddcc9f4a0a build-type-cfg.cmd: drop unused POSTFIX_ variables
`POSTFIX_D` unused since ICU was eliminated as a dependency (0b2bd5d), other two were never used.
2026-09-09 16:43:04 +05:00
Andrej730 84daa22400 win: remove set-python-to-path.bat
It was introduced a (very) long time ago (c7bf03e), was barely changed since then and seems unused by now.
Apparently it was used mainly to get installation's Python to PATH (`set PATH=%PYTHONHOME%;%PATH%`). It was also setting and env variables based on the cache as a side effect.
If needed, we'll be able reintroduce it later, delegating most of the logic to Python.
2026-09-09 16:43:04 +05:00
Andrej730 89fe51fbb2 win: remove redundant TARGET_ARCH variable
`TARGET_ARCH` has exactly the same values as `VS_PLATFORM` - "x64", "ARM", "ARM64") except it has `x86` instead of `Win32`, but this value is never actually used, so both variables end up using interchangeably, making code harder to reason about - you needed to remember that they're exactly the same except the case when the variable is passed directly to VS (either through `cmake -A` or some `msbuild` command), then user must use `VS_PLATFORM`. So we might just use one variable always.
2026-09-09 16:43:04 +05:00
Andrej730 f2a6d7859b build-deps: drop VS 2008 leftovers (6a8d813) 2026-09-09 16:43:04 +05:00
Andrej730 d45d1ca0a6 win: remove Windows XP related code 2026-09-09 16:43:04 +05:00
Andrej730 2a49619e2a vs-cfg: drop unused VCPROJ_FILE_EXT
It was used in build-deps.cmd, but then was superseded by cmake calls (c6220b7)
2026-09-09 16:43:04 +05:00
Andrej730 c4aca06cb5 win: bump required cmake to 3.21.0 to match cmake_minimum_required 2026-09-09 16:43:04 +05:00
Andrej730 188d3faa37 readme: clean up stale references (38f6b7a) 2026-09-09 16:43:04 +05:00
Andrej730 20d56efdfc win: remove outdated msys2 scripts
They were very outdated and if we'll need msys2 support, we'll be able to introduce it later in our Python scripts.
2026-09-09 16:43:04 +05:00
Andrej730 7cfb146717 vs-cfg: remove redundant where cl check
`START` is set to `0` for "amd64" / "x64" and `1` in all other cases, effectively just skipping `GENERATORS[0]` in case when "amd64" or "x64" is present.
Which is now useless, since `GENERATORS[0]` doesn't exist anymore.
2026-09-09 16:43:04 +05:00
Andrej730 dc9218e9eb vs-cfg: remove unused Win64 code
We don't have any generators with `Win64` suffix (they were removed 36f51e1), so this code was unreachable.
2026-09-09 16:43:04 +05:00
Andrej730 d399581f11 vs-cfg: remove VS_HOST / VS_TOOLSET_HOST
They were added awhile ago in 67666ed for overcoming some win32 issues, which is not around anymore.
And now `VS_HOST` is never set (and therefore `VS_TOOLSET_HOST` is always empty too) and likely to be never used.
2026-09-09 16:43:04 +05:00
Andrej730 21691616fd vs-cfg: move examples next to debug prints 2026-09-09 16:43:04 +05:00
Andrej730 995f98d5fe vs-cfg: add support for missing toolsets in gen shortcut 2026-09-09 16:43:04 +05:00
Andrej730 550150b339 ci-lint: check whitespace issues
Was testing this script for a couple weeks on Linux, found no issues, seems reliable. Also tested it on Windows today.
2026-09-09 16:43:04 +05:00
Andrej730 dc69c19aa7 ifcopenshell-python: move mathutils related tests to Bonsai
Previously tests never ran since workflow targets 3.11 and running tests is gated by Python 3.13.
bonsai-0.9.0-alpha2609040826
2026-09-04 13:26:05 +05:00
Andrej730 253448c32a geometry_creation.rst: shape_build doesnt' depend on mathutils 2026-09-04 13:26:05 +05:00
Andrej730 9bd9af6211 svgfill: fix gcc -Wcomment
Example:
```
src/svgfill/src/progress.h:2:1: warning: ‘/*’ within comment [-Wcomment]
```
2026-09-03 19:55:54 +05:00
Andrej730 a4503f72af ci: use python available from PATH to retrieve include
One less place to update on version change.
2026-09-03 19:55:54 +05:00
Andrej730 aea6badbaa build-bonsaiviewer-autodesk: install missing libs
CI was failing:
```
  The system library `dbus-1` required by crate `libdbus-sys` was not found.
  The file `dbus-1.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
  The PKG_CONFIG_PATH environment variable is not set.
```
2026-09-03 19:55:54 +05:00
Andrej730 e5f7981729 bonsaiviewer-autodesk: fix clippy 2026-09-03 19:55:54 +05:00
Andrej730 a8b59ee296 ci-lint: reuse astral-sh/setup-uv 2026-09-03 19:55:54 +05:00
Andrej730 462a05e662 black_to_github_annotations: inline dependency 2026-09-03 19:55:54 +05:00
Andrej730 2b7970509e Move ci script to .github/scripts 2026-09-03 19:55:54 +05:00
Andrej730 75da4e950d Remove check_repo_ci_jobs.py
Seems to be orphaned since 9fe40c3
2026-09-03 19:55:54 +05:00
Andrej730 5114ae26ea ci-ifcwrap-standalone: deduplicate wrapper building code 2026-09-03 19:55:54 +05:00
Andrej730 2613fb53ba ci: add paths missing from paths filter 2026-09-03 19:55:54 +05:00
Andrej730 f6ca05e32c ifcgeom: remove commented out map_impl(IfcCompositeCurve)
It was specific to occt, now it's superseded by `map_impl` residing in the same file, but it's kernel-agnostic.
2026-09-03 19:55:54 +05:00