Commit Graph

202 Commits

Author SHA1 Message Date
James Sharpe 35bf65674e
Fix macOS CI (#1251)
Relates to error seen in #1244
2024-08-08 09:06:50 +00:00
Gowroji Sunil 3d3d646016
Update rules_apple (#1190) 2024-04-05 16:25:40 +01:00
Gowroji Sunil 15da39ad4d
Fixes the CI failure at Bazel@HEAD (#1173) 2024-02-16 06:19:09 +00:00
James Sharpe be11c56219
chore(deps): Bump rules_apple. Fixes #1156 (#1166) 2024-01-25 23:54:35 +00:00
James Sharpe ddda554d2a
Remove explicit mention of bazel 4.x support (#1146) 2023-12-21 11:26:27 +00:00
James Sharpe b8c5967a1b
Use platform specific configs in bazelrc to reduce scope of settings (#1144) 2023-12-21 11:01:32 +00:00
James Sharpe 18dcce582f
Use gazelle to generate bzl_library targets (#1127) 2023-12-21 10:42:09 +00:00
bcsgh d4d22b75d7
Sort tests under examples/third_party and add zlib to the list. (#1136) 2023-12-20 11:42:57 +00:00
bcsgh 2778210851
Fix `//openssl/...` by calling `openssl_setup()` (#1137) 2023-12-20 11:20:56 +00:00
tanx 51152aac9d
set CC and CXX and their flags in meson (#1098) 2023-12-11 09:35:14 +00:00
tanx 21ef088758
update @rules_perl in examples (#1108) 2023-10-25 17:16:20 +01:00
James Sharpe ef3031e387
Expand locations and make variables in configure options (#1102) 2023-10-14 19:49:27 +00:00
James Sharpe 8fc5dbb559
Upgrade rules_python (#1058) 2023-10-14 15:10:57 +00:00
Keith Smiley 60813d57a0
Update rules_apple (#1086) 2023-08-29 16:35:32 +01:00
dependabot[bot] 62230f8a21
Bump mako from 1.2.1 to 1.2.2 in /examples (#1053)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-09 10:49:02 +00: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 7fa1a1259b
Add bzlmod support files. (#999)
* Bzlmod files

* Turn off android example with bzlmod

* Update .bcr/metadata.template.json
2023-05-06 08:56:00 +01:00
James Sharpe a8a4aedc0c
Bump zlib version in examples (#1043) 2023-04-23 20:00:57 +00:00
James Sharpe c6980bc2a2
Bump buildifier to 6.1.0 (#1040) 2023-04-12 09:29:29 +01:00
Keith Smiley d33d862abb
Add new darwin CC toolchain for tests (#1017) 2023-03-04 12:12:42 +00:00
jheaff1 228f9eb96a
Remove tests that depend on shared libraries (#1016) 2023-02-21 10:07:01 +00:00
Richard Levasseur 34fa6a796d
Remove Python 2 configuration and targets (#1006) 2023-01-27 22:02:42 +00:00
Keith Smiley 9acbb35691
Update buildifier (#998) 2023-01-06 19:56:01 +00:00
James Sharpe f1ac5b4726
Update build rules (#995) 2023-01-03 16:55:32 +00:00
jheaff1 2c6262f8f4
Hermetic pkg config (#979) 2022-11-09 11:54:39 +00:00
jheaff1 dd1e2850bd
Add macro that faciliates "bazel run" of binary generated by rules_foreign_cc (#971)
Co-authored-by: James Sharpe <james.sharpe@zenotech.com>
2022-11-03 21:24:31 +00:00
jheaff1 ee079b7261
Fix current toolchains (#978) 2022-11-02 22:02:55 +00:00
Greg c923238c6d
Bazel 6.0: Fix config_setting visibility failure on bazel CI (#975) 2022-10-27 23:39:03 +01:00
Ara Nguyen c65e8cfbaa
migrating to rbe_preconfig (#952) 2022-08-18 18:18:24 +01:00
James Sharpe 5bb0829e35
openssl 1.1.1o (#922) 2022-07-27 21:39:04 +00:00
jheaff1 cfe19aae68
Add ability to specify DLL dir (#939) 2022-07-27 16:46:15 +00:00
jheaff1 2f7658cf02
Speed up CI by preventing the python2 build from running tests (#930) 2022-06-22 20:27:10 +01:00
kiron1 f63eefe720
Fix small typos in doc and comments (#924) 2022-06-17 18:05:28 +01:00
James Sharpe 9e70029a5c
zlib 1.2.12 (#916) 2022-05-27 19:44:40 +00:00
Keith Smiley 78c5f77385
Update to new rules_apple release (#906)
I created a release just to get past this issue with bazel HEAD
2022-05-02 10:28:53 -07:00
Florian Weikert c57b55f2f6
Use an unreleased version of rules_apple. (#899)
rules_apple 0.34.0 is incompatible with Bazel @ HEAD since it does not contain df98f37ea7

Consequently, we need to use a newer, yet unreleased version to fix https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/2443#7266607a-bd84-4863-abe9-6543530aeed3

Eventually we should wait for a new release and use it instead.
2022-04-20 22:30:31 +00:00
Florian Weikert 35c36a5882
Upgrade rules_apple to 0.34.0 (#896) 2022-04-19 20:51:09 +01:00
Keith Smiley e0590b50e4
Set CMAKE_OSX_ARCHITECTURES to target architecture (#891) 2022-04-16 17:19:01 +01:00
Fabian Meumertzheim 26eadbcd0d
Replace `escape_locations` with `escape_locations_and_make_variables` everywhere (#861)
Co-authored-by: James Sharpe <james.sharpe@zenotech.com>
2022-02-09 22:34:12 +00:00
jheaff1 470a78047e
Remove unused BUILD.perl.bazel file (#871)
Co-authored-by: UebelAndre <github@uebelandre.com>
2022-02-09 21:56:02 +00:00
James Sharpe e24d9cecfe
Allow all source files to be modified in configure_make when using configure_in_place = True (#856) 2022-01-10 09:48:37 +00:00
James Sharpe 44ad191858
Update bazelignore files (#854) 2022-01-06 21:13:25 +00:00
jheaff1 7f8183f205
use rules_perl toolchain for Windows build of OpenSSL (#846)
* use rules_perl toolchain for Windows build of OpenSSL

* Update repositories.bzl

* Update openssl_repositories.bzl

* Update openssl_repositories.bzl

Co-authored-by: UebelAndre <github@uebelandre.com>
2021-12-30 17:07:10 +00:00
UebelAndre aa61b9ad8b
Minor cleanup for examples (#835)
* Remove `BUILD` files from source globs in examples

* Updated example urls
2021-12-30 16:37:31 +00:00
Fabian Meumertzheim 40b03b42eb
Adapt tests to new cc_binary file extension on macOS (#834)
As of https://github.com/bazelbuild/bazel/pull/14369, shared libraries
produced with cc_binary on macOS with the auto-configured toolchain use
the correct file extension for dynamic libraries
(.dylib rather than .so). This requires adapting a test.
2021-12-06 15:50:55 -08: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
Fabian Meumertzheim f61ce5d10b
Pass toolchain and user env variables to make invocation (#777)
* Pass toolchain and user env variables to make invocation

* Rename configure --> make

* Add integration test coverage for make flag passing

This requires making the make_simple Makefile more realistic by

* using CXX and forwarding it to the wrapper;
* using CXXFLAGS instead of CXX_FLAGS and not overwriting its contents.
2021-11-27 07:52:54 -08:00
James Sharpe 7baefc1a8c
Autotools examples (#754)
* Build files for autotools tools
* m4 1.4.19
2021-11-19 00:56:08 +00:00
UebelAndre 83ab86e632
Updated `pcre` example (#809)
* Updated `pcre` example

* Disable failing Bison test
2021-11-17 09:51:25 -08:00
UebelAndre e97f24e701
Updated `bazel_skylib`, `rules_cc` and `rules_python` (#801) 2021-10-19 16:28:21 +00:00