3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-24 08:02:32 +00:00
Commit graph

5 commits

Author SHA1 Message Date
Gabriel Somlo
45ecf0c419 CMake: cxxopts: support building with distro-packaged dependency
Many linux distros (e.g., Fedora) strongly discourage bundling or
vendoring dependencies. Many of them also include a `cxxopts-devel`
package. This patch adds support for un-vendoring `cxxopts` by:

   1. `libs/cxxopts` vendored submodule build conditional on
      `YOSYS_WITH_PKG_DEPS == OFF`

   2. use implicit `<cxxopts.hpp>` instead of explicit hard-coded
      path to vendored header file

   3. conditionally provide additional implicit include path to
      `cxxopts.hpp` and library dependency for `kernel/CMakeLists.txt`

Note that the current existing behavior remains the default.

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
2026-07-12 10:51:00 -04:00
Miodrag Milanovic
88d4af94cf Fix share lookup for mingw builds 2026-06-17 10:40:13 +02:00
nella
a1d841bf64 Rebase + Cmake. 2026-06-08 13:47:56 +02:00
Catherine
afc0e78d11 Update top-level Python project for CMake compatibility.
This commit reimplements the (no longer recommended) setuptools based
build system using a standards-based in-tree PEP517 build backend.
The implementation is partially based on
  https://codeberg.org/ziglang/zig-pypi/src/branch/main/make_wheels.py
which is licensed under BSD-0-clause.

It also adds a new option `YOSYS_BUILD_PYTHON_ONLY` that is available
only if the binary or the library aren't going to be installed, which
turns off these targets entirely, as well as some dependent ones
(e.g. tests).

Co-authored-by: Mohamed Gaber <me@donn.website>
2026-06-03 09:03:23 +00:00
Catherine
a727e7f6e7 Migrate build system to CMake
See #5895 for details.

This commit does not include CI or documentation changes.
2026-06-03 08:58:10 +00:00