Commit Graph

8 Commits

Author SHA1 Message Date
Matt Liberty
f382eecd90 bazel: dedup SWIG helpers and clean up build files
- Extract shared transitive-depset helpers into bazel/swig_common.bzl;
  tcl_wrap_cc and python_wrap_cc had identical copy-pasted helpers.
  Providers stay distinct so deps type safety is preserved.
- Delete empty bazel/build_helper.bzl (never loaded anywhere).
- Remove dead .tcl/.py endswith filter in tcl_encode_or.bzl; the
  attr.label_list(allow_files=[".tcl", ".py"]) already enforces it.
- Deduplicate -Wall/-Wextra/-Wno-sign-compare/-Wno-unused-parameter
  in OPENROAD_COPTS; these are already set globally via .bazelrc.
- Add missing doc= for runtime_header attr; drop stale "for google3"
  docstring and obsolete/incorrect narration comments.

Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
2026-04-13 05:50:18 +00:00
Henner Zeller
fee884118b Make tcl wrap working properly if used via downstream project.
Issues #9937

Co-authored-by: Paul Rigge <rigge@google.com>
Signed-off-by: Henner Zeller <h.zeller@acm.org>
2026-03-25 22:41:00 +01:00
Henner Zeller
b02bdbf6e3 Use swig from BCR, allowing to remove last dep on WORKSPACE
Signed-off-by: Henner Zeller <h.zeller@acm.org>
2026-03-02 19:08:42 +01:00
Henner Zeller
cee579b853 Use swig from BCR, allowing to remove last dep on WORKSPACE
Signed-off-by: Henner Zeller <h.zeller@acm.org>
2026-03-02 18:38:27 +01:00
Friedrich Beckmann
6d77389dba bazel/macos: central setting for linker settings for python extensions
I extended the mechanism that is used to supply the defines for
the python module. Now tha linker options are set in one place.

Signed-off-by: Friedrich Beckmann <friedrich.beckmann@tha.de>
2026-02-26 08:16:31 +01:00
Ethan Mahintorabi
07a3459f37 Adding further configuration to the py_wheel generation
Signed-off-by: Ethan Mahintorabi <ethanmoon@google.com>
2025-09-16 20:20:37 +00:00
Ethan Mahintorabi
0691c618c1 python: Add pypi package infrastructure to bazel
There is now infrastructure to build python wheels
that we could upload to pypi. This rule can be built
with `bazelisk build -c opt --features=thin_lto //openroad:openroad_wheel`.

This is a precursor to removing the -python option from the OpenROAD
binary, and adopting a more standard pypi distribution.

This will require CI changes to build the wheel on manylinux Docker
images.

Signed-off-by: Ethan Mahintorabi <ethanmoon@google.com>
2025-09-15 05:46:55 +00:00
Matt Liberty
83c47d1bf9 Add -python support for the bazel build of OR
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
2025-09-10 21:43:15 +00:00