Commit Graph

67 Commits

Author SHA1 Message Date
Matt Smith 979172f2fc
add support for cc_shared_library deps (#1243) 2024-08-13 11:52:54 +01:00
James Sharpe f055b5b586
Revert "fix(docs): Port docs generation to bzlmod to fix user facing doc generation" (#1194) 2024-04-12 12:14:48 +01:00
James Sharpe 50b7d9bc94
fix(docs): Port docs generation to bzlmod to fix user facing doc generation (#1193) 2024-04-11 23:38:00 +01:00
Misha Zharov 4831827e29
Increase resiliency of `runnable_binary` (#1134) 2024-02-01 20:21:01 +00:00
James Sharpe 18dcce582f
Use gazelle to generate bzl_library targets (#1127) 2023-12-21 10:42:09 +00:00
jheaff1 6ecc134b11
Fix issue where meson documentation was blank on docs site (#1060) 2023-06-14 08:22:50 +00:00
jheaff1 2ee029a744
Add meson to docs (#1055) 2023-06-13 09:38:43 +01:00
jheaff1 3cbd0a9938
Add meson support (#986)
* Add meson support

* Modify zlib to be detected via pkgconfig in dependent rules

* Modify zlib and expat to be linked to shared libs in dependent rules

* Add example usage of Meson rule

This commit adds the glib library to the "examples" build. glib requires
pcre2, so pcre and libgit2 (a dependent of pcre) have been
updated/modified

* Add example usage of meson_with_requirements macro

This commit adds mesa to the "examples" build.

This commit also changes the "examples" build to use the hermetic python
toolchain provided by rules_foreign_cc. As such, the python toolchain
built by rules_foreign_cc is no longer used, as it cannot be used in
workspace rules, .e.g pip_parse(). As such, the python2 build has been
removed from the examples as python2 is end-of-life.

Until Bazel 4.2.0, the built-in android toolchain required Python 2. As
such the minimum supported version has been upversioned to 4.2.0.

Note that the BAZEL_VC env var was removed from CI as mesa requires MSVC
2019.

* Set visibility for each target in foreign_cc_rule_variant

* Apply formatting changes

* Get meson examples working with bzlmod

Note that a newer version of pkgconfig than that installed in ubuntu 20
must be used to build libxau, therefore the built_pkgconfig_toolchain is
now registered
2023-06-09 11:29:12 +01:00
James Sharpe f1ac5b4726
Update build rules (#995) 2023-01-03 16:55:32 +00:00
James Sharpe 30fdd11935
Release 0.9.0 docs (#945) 2022-08-02 20:12:05 +00:00
kiron1 f63eefe720
Fix small typos in doc and comments (#924) 2022-06-17 18:05:28 +01:00
UebelAndre e7eebefe88
Release `v0.8.0` docs (#893) 2022-04-18 05:57:05 -07:00
James Sharpe 893db6a2e3
Release v0.7.1 (#852) 2022-01-03 11:54:19 +00:00
UebelAndre f76d9281bd
Fixed `0.7.0` docs (#838) 2021-12-14 12:48:32 +00:00
UebelAndre bdb0d9cbb7
Added `v0.7.0` docs (#829) 2021-12-03 17:18:25 +00:00
Yesudeep Mangalapilly a2f1e5d8c3
Adds toolchain for freebsd. (#794)
* Adds toolchain for freebsd.

* Address buildifier lint warnings.

* Use /usr/bin/env bash

* Leave the Linux-specific shebang alone.

* Adds note about Bazel CI issue requesting for FreeBSD support and experimental status.

* Fix typo.

* Clean up trailing whitespace.

* Updates bazel-skylib version for tests to pass on FreeBSD.

* Update foreign_cc/repositories.bzl

Co-authored-by: UebelAndre <github@uebelandre.com>
2021-11-29 10:54:06 +00:00
James Sharpe 1327fa3d4c
CMake 3.21.3, 3.21.4 and 3.22.0 support (#815) 2021-11-19 00:27:40 +00:00
UebelAndre 7da37f815b
Release 0.6.0 docs (#785)
* Release 0.6.0

* Release 0.6.0 docs
2021-09-13 09:35:46 -07:00
James Sharpe 8f6fc67384
Add cmake version 3.21.2 (#778) 2021-08-28 21:16:01 +01:00
UebelAndre db153c65c3
Added 0.5.1 docs (#748) 2021-07-30 14:35:21 +00:00
UebelAndre 4b024daf42
Updated 0.5.0 docs (#741) 2021-07-29 14:34:12 +00:00
UebelAndre 2eb510b5c6
Added `<rule>_variant` rules to docs (#739) 2021-07-28 09:18:48 -07:00
Alexander Turkin 721fd85881
added cmake 3.21.0 (#726) 2021-07-19 10:04:44 +01:00
UebelAndre 821d1efd24
Fixed build badge in docs. (#719) 2021-07-12 07:43:46 -07:00
UebelAndre 2caf8db522
Fixed docs root and added link for `0.4.0` docs (#704) 2021-06-28 10:50:13 -07:00
UebelAndre 8c20dfa264
Updated docs to be more appropriate when viewing `main` (#696) 2021-06-22 18:44:14 -07:00
UebelAndre 2c35d7361f
Fixed ability to generate docs (#695) 2021-06-22 20:26:07 +00:00
UebelAndre a7f1c9e604
Docs are now auto-generated using mdbook (#692) 2021-06-22 13:10:31 -07:00
UebelAndre 4a3b072f76
prep release 0.4.0 (#683) 2021-06-22 09:05:55 -07:00
jheaff1 5663d884a2
Provide out_data_dirs attribute (#419) (#622)
This change facilitates hermetic python toolchains, as demonstrated by
the test added in this commit.
2021-06-22 08:51:29 -07:00
UebelAndre 3dbe409720
Removed legacy `*env_vars` attributes from `cmake` and `configure_make` rule (#675)
* Removed legacy `*env_vars` attributes from `cmake` and `configure_make` rule. Use `env` instead.

* Updated examples

* Improved variable expansion

* Fixed missing `build_data` attribute for `configure_make`

* Fix environment variable quotes

* Attempt to address quoted environment variables.

* Updated documentation
2021-06-21 08:24:34 -07:00
UebelAndre 63305da85d Set theme jekyll-theme-midnight 2021-06-20 15:29:46 -07:00
UebelAndre 4e45a4f6b6
Restored generated docs (#691) 2021-06-20 15:25:43 -07:00
UebelAndre f11977b484
Added documentation for providers (#681) 2021-06-16 13:58:55 +00:00
Alexander Turkin 23907e5972
update cmake to 3.20.4 (#680)
* update cmake to 3.20.4

* update cmake to 3.20.4

* update cmake to 3.20.4
2021-06-16 12:46:23 +01:00
UebelAndre 2407938f22
Fixed setup instructions in docs (#660) 2021-06-07 09:09:10 -07:00
UebelAndre beddf776f9
Fixed naming convention issues in common providers (#659) 2021-06-02 20:34:20 +01:00
UebelAndre f471bbfeb2
Updated documentation and removed the need to commit updated docs (#652) 2021-06-02 19:58:56 +01:00
Alex Eagle 578aefa621
Update docgen to be a pair of diff_test and sh_binary to accept new content (#658) 2021-06-01 21:33:36 +01:00
James Sharpe b9685b507e
Update cmake to 3.20.2 (#636)
* Update cmake to 3.20.2

* Update docs
2021-05-09 09:17:54 -07:00
UebelAndre 32b0c10972
configure_make hard requires `configure_in_place` for certain attributes (#633) 2021-05-09 05:24:30 +00:00
UebelAndre 1bd2a8c547
Refactored framework to avoid polymorphism complexity (#612)
* Refactored framework to be less complex

* Deleted default commands (aka 'stale linux commands')

* Restored toolchain name
2021-04-30 17:03:32 +01:00
UebelAndre 2d98051813
Removed all deprecated attributes (#600)
* Removed all deprecated attributes

* Updated documentation
2021-04-12 15:23:42 +00:00
James Sharpe 1f48d7756c
Update CMake versions (#605) 2021-04-09 07:00:16 -07:00
James Sharpe 322732bef7
Add CMake 3.20.0 and 3.19.7 (#587)
* Add CMake 3.20.0 and 3.19.7

* Update docs
2021-03-28 16:04:35 -07:00
UebelAndre 46047ae15c
Set CMAKE_INSTALL_PREFIX to the actual install directory to avoid copy (#575) 2021-03-26 19:31:07 +00:00
UebelAndre bf8c42f883
Ran buildifier (#581) 2021-03-22 08:13:48 -07:00
UebelAndre 07e1645dcc
Added test for ensuring docs are always appropriately updated (#576)
* Added test for ensuring docs are always appropriately updated

* Updated docs
2021-03-20 20:11:57 +00:00
UebelAndre 88338f1ce6
Updated cmake docs (#571) 2021-03-17 16:31:04 +00:00
UebelAndre e4399415b8
Added "targets" API (#556)
* Added `targets` API to all existing build rules

* Updated examples

* Restore making the make toolchain always available.

* Add support for generator cmake parsing and setting CMAKE_MAKE_PROGRAM

* Cleaned up duplicate generator arguments

* Fixed cmake tests

* Updated docs

* Addressed PR feedback

* Fixed missing and incorrect generators

* Fixed `generate_args` name
2021-03-17 13:42:44 +00:00