Commit Graph

57 Commits

Author SHA1 Message Date
Javier Maestro 3881d278c5
fix: move more bazelbuild links to bazel-contrib (#1317) 2024-11-18 21:47:51 +00:00
Xùdōng Yáng 780f59568b
Bazel CI config: explicitly enable workspace wherever Bzlmod is disabled (#1276) 2024-09-04 23:15:48 +00:00
Misha Zharov 25ed4c48ce
Fix windows examples CI by upgrading TLS trust store (#1171) 2024-02-15 10:15:21 +00:00
James Sharpe d873cace68
Skip min supported version tests in downstream pipeline
This duplicates testing of other tests and isn't configured correctly to be run in the downstream pipeline so skip these targets.
2024-01-28 23:42:41 +00:00
James Sharpe ff18c0a33a
Update to ubuntu 20.04 on RBE (#1145) 2023-12-21 11:15:44 +00:00
James Sharpe 18dcce582f
Use gazelle to generate bzl_library targets (#1127) 2023-12-21 10:42:09 +00:00
James Sharpe b088f4a9a1
Turn off bzlmod in CI for now (#1142) 2023-12-20 11:10:45 +00:00
James Sharpe 8fc5dbb559
Upgrade rules_python (#1058) 2023-10-14 15:10:57 +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
Yun Peng 362d02c262
Skip minimal Bazel version support tasks in Bazel's downstream pipeline (#1044) 2023-04-24 13:52:59 +01:00
James Sharpe c6980bc2a2
Bump buildifier to 6.1.0 (#1040) 2023-04-12 09:29:29 +01: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
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
Ivo List a7f9e8b38c
Disable cc toolchain resolution in examples on Mac (#967) 2022-09-23 01:57:56 +01:00
Yun Peng c4a10670ef
Ping MSVC version to 2017 (#964) 2022-09-12 16:03:43 +00:00
James Sharpe 8f6f272b4f
Pin buildifier version (#873) 2022-02-09 21:52:38 +00:00
UebelAndre cbfe9c0600
Update min tested Bazel version to 4.0.0 (#802) 2021-10-19 09:15:00 -07:00
UebelAndre e949e77629
Temporarily disable broken windows targets (#764) 2021-08-17 06:08:28 -07:00
UebelAndre 32e222aeff
Enable more examples tests on windows (#718)
* Enable examples tests on windows

* Fixed windows absolute paths being treated as relative.

* Escape windows backslashes for sed replacement

* Improve `//cmake_hello_world_lib/static:libhello` example
2021-07-14 09:37:35 -07:00
jheaff1 93d7c272cc
Build make windows (#716)
* Refactor _env_prelude method to be public (589)

In an upcoming commit, the method will be used to set the PATH,
INCLUDE and LIB environment variables in Windows when building GNU
Make from source

* Build make from source on Windows (#589)

The built_tools_framework.bzl file was modified so that the PATH,
INCLUDE and LIB environment variables are set from the C++ toolchain,
e.g. MSVC.

The PATH environment variable is prepended with the path to the
toolchain's linker, otherwise the MSYS2 linker would be used instead
of MSVC (as they are both named link.exe).
2021-07-12 07:17:18 -07:00
Philipp Wollermann 6d1d16d3bb
Remove ubuntu1604 from presubmit.yml (#706)
Ubuntu 16.04 is end-of-life, we're going to remove it from Bazel CI.
2021-06-30 20:09:55 -07:00
UebelAndre a7f1c9e604
Docs are now auto-generated using mdbook (#692) 2021-06-22 13:10:31 -07:00
Alex Eagle 118c55d424
chore: setup a buildifier pre-commit hook (#661)
Matches the one just landed in rules_apple: 61bc7c01ae
2021-06-03 13:30:26 -07: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 b136e6c52d
Add config for building with spawn_strategy=standalone (#603)
* Add config for building with spawn_strategy=standalone

* Always build RELEASE configuration to avoid having to select for the output due to change in artifact names for debug builds

* Fix for copy_contents_to_dir and symlink_contents_to_dir on macOS as per #512

* Update name of test files
2021-05-05 17:47:25 -07:00
James Sharpe 5dbe642ba6
Re-enable configure_with_bazel_transitive test (#586)
* Re-enable configure_with_bazel_transitive test

* Fix simple_lib build for RBE
2021-03-28 15:38:33 -07:00
James Sharpe 0379c97cb6
Built Make toolchains can now be used in RBE (#548)
* Enable more tests for RBE

* Turn off gn build for RBE

* Fix to make_simple example

* Turn off configure_with_bazel_transitive due to an issue with toolchain configuration

* Add CMAKE_MAKE_PROGRAM to generate_args

* Set CMP0074 policy for cmake to use the ZLIB_ROOT entry

* Disable libpng build on rbe

* Disable bison build on RBE

* Disable cmake_android example on RBE

* Fix typo in ZLIB_ROOT

* Reenable libpng build

* Address review comments
2021-03-28 14:01:15 -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 d4256561fa
Fixed cmake build and target arguments (#573) 2021-03-18 15:35:55 +00:00
UebelAndre f48ec05fed
Fixed incorrect tool paths for windows (#561)
Co-authored-by: James Sharpe <james.sharpe@zenotech.com>
2021-03-15 10:24:49 -07:00
UebelAndre 6aceb1e4c3
Cleanup bazelci yaml (#563) 2021-03-15 09:59:17 -07:00
James Sharpe c309ec1319
Enable testing on RBE (#525)
* Enable testing on RBE

* Attempting to fix ninja example on RBE

* Disable targets that aren't currently working on RBE
2021-03-09 13:28:28 -08:00
UebelAndre fc8efbdf7d
Added `ninja` rule for building Ninja projects (#527)
* Added `ninja` rule for building Ninja projects

* Third party ninja example
2021-03-01 15:46:25 +00:00
UebelAndre e285764b78
Restructed examples and enabled more testing (#515)
* Reorganized examples

* Documentation

* Third party
2021-02-26 20:21:13 +00:00
James Sharpe f77a9e12a3
Propagate defines into CFLAGS and CXXFLAGS passed to the framework (#498)
* Propagate defines into CFLAGS and CXXFLAGS passed to the framework

* Fix flags test

* Add example to test propagation of defines
2021-02-09 12:56:20 -08:00
UebelAndre 0da08c9714
Added some helpful issue links (#494) 2021-02-04 10:42:02 -08:00
UebelAndre 14520d220f
Made buildifier checks more aggressive (#485)
* Made buildifier checks more aggressive

* Ran buildifier to fix all warnings

* Added sorting to cmake script generation and updated tests
2021-02-02 20:09:33 +00:00
UebelAndre 898bed4efb
Enable Buildifier in CI (#458)
* Added Buildifier check to CI

* Addressed Buildifier lint defects
2021-01-25 22:01:43 +00:00
UebelAndre 9b6a8f675c
Add tests for checking the minimum supported version to CI (#469) 2021-01-25 19:07:05 +00:00
UebelAndre c18be7037a
Added `data` attr to common framework (#461)
* Added `data` attribute for files needed by the rule at runtime.

* Updated documentation

* Added examples

* Enable runfiles on windows

* Also gather transitive runfiles
2021-01-25 07:44:44 -08:00
UebelAndre 8b8f31dd1b
Created a `./docs` directory to house documentation (#466)
* Added links to docs to top level README

* Updated more docs

* Added generated header
2021-01-24 15:23:19 -08:00
irengrig 2ca2de6752
Test for detect_root function and example of usage (#373) 2020-04-30 11:17:48 +02:00
Simon Newton ed3db61a55 Fix the simple_make example so that it works on Mac & Linux (#339)
Fix the simple_make example so that it works on Mac and Debian and add it to Mac tests.
2019-11-26 19:13:54 +01:00
Keith Smiley adb04eed2c Build Android example on CI (#286)
* Build Android example on CI

Currently there aren't any actual test targets for the NDK example, but
building it is still useful to verify.

* Remove from windows
2019-08-06 14:35:02 +02:00
irengrig f00cd27f06
Pass --copt, --cxxopt, --conlyopt, --linkopt to cmake_external/configure_make rules (#235)
- explicitly pass the values of these options to corresponding compilation/link flags lists; add them to the end of the lists of they are not already there
- please see the test in test/standard_cxx_flags_test
2019-03-11 16:50:39 +01:00
irengrig a3593905f7
Explicitly name the nested workspace for tests on Bazel CI (#230)
Explicitly name the nested workspace for tests on Bazel CI
2019-03-07 14:25:20 +01:00