Commit Graph

544 Commits

Author SHA1 Message Date
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
Gary Miguel 12ecb0419a
Specify path to sed on MacOS and FreeBSD (#961)
Co-authored-by: James Sharpe <james.sharpe@zenotech.com>
2023-05-10 19:37:44 +00: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
Jeremy Volkman 020854719e
Pass must_keep_debug = False to cc_common.create_link_variables (#1046) 2023-04-26 09:27:11 +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 a8a4aedc0c
Bump zlib version in examples (#1043) 2023-04-23 20:00:57 +00:00
lifengxiang1025 c327fbfdab
installdir_copy seems meaningless as output (#1038)
Co-authored-by: James Sharpe <james.sharpe@zenotech.com>
2023-04-23 19:19:20 +00:00
James Sharpe c6980bc2a2
Bump buildifier to 6.1.0 (#1040) 2023-04-12 09:29:29 +01:00
James Sharpe 1fb8a1ed91
Updated cmake versions (#1039) 2023-04-11 17:12:49 +00:00
Wangchong Zhou 1023d7ed6b
Use python3 instead of python2 in macos commands (#1037) 2023-04-11 14:14:24 +01:00
Keith Smiley d33d862abb
Add new darwin CC toolchain for tests (#1017) 2023-03-04 12:12:42 +00:00
Zhongpeng Lin 798242e04d
Disable coverage when a C library is not instrumented (#1021) 2023-02-28 23:26:33 +00:00
Keith Smiley b7074f111e
Fix cross compiling for android on macOS (#997) 2023-02-22 22:01:22 +00:00
James Sharpe 7914d08e12
Add dependency shared libs to sandbox (#990)
Co-authored-by: jheaff1 <jheaff1@outlook.com>
2023-02-21 14:23:17 +00:00
James Sharpe 4d4a678974
Fix pkgconfig built by MSVC on Windows (#992)
Co-authored-by: jheaff1 <jheaff1@outlook.com>
2023-02-21 11:43:07 +00:00
jheaff1 228f9eb96a
Remove tests that depend on shared libraries (#1016) 2023-02-21 10:07:01 +00:00
James Sharpe e3699b940f
Update cmake and ninja versions (#996) 2023-02-05 20:07:54 +00:00
Richard Levasseur 34fa6a796d
Remove Python 2 configuration and targets (#1006) 2023-01-27 22:02:42 +00:00
Richard O'Grady 1e66c02ea8
Disable fdo features. (#1002) 2023-01-25 21:40:30 +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
James Sharpe 15ef44c443
Add runfiles of dependency tools to the build (#994)
Co-authored-by: jheaff1 <jheaff1@outlook.com>
2023-01-03 16:07:20 +00:00
James Sharpe 2094b4ab82
Rename make_variant to foreign_cc_rule_variant (#993)
Co-authored-by: jheaff1 <jheaff1@outlook.com>
2023-01-03 11:50:47 +00:00
James Sharpe 41c937a7a9
Fix runnable_binary_wrapper when used as a tool in a dependant rule (#991)
Co-authored-by: jheaff1 <jheaff1@outlook.com>
2023-01-03 11:26:05 +00:00
UebelAndre baeee718db
Disable stale-issue automation (#989) 2022-12-20 23:41:34 -08:00
jheaff1 0ed27c13b1
Add toolchain executables to the PATH (#987) 2022-12-10 20:16:40 +00:00
jheaff1 2c6262f8f4
Hermetic pkg config (#979) 2022-11-09 11:54:39 +00:00
jheaff1 6425a21252
Reduce build times (especially on windows) by symlinking directories (#983) 2022-11-09 00:14:43 +00:00
James Sharpe 78acc733fb
Add make 4.4 (#980) 2022-11-04 17:29:42 +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
cmburn eb83556a59
Add prefix flag config option to make_configure (#973) 2022-11-03 21:17:01 +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
Ivo List a7f9e8b38c
Disable cc toolchain resolution in examples on Mac (#967) 2022-09-23 01:57:56 +01:00
Peter Majchrak e5c7d6df61
Expand variables in `user_options` for boost_build (#957) 2022-09-13 09:00:27 +00:00
Yun Peng c4a10670ef
Ping MSVC version to 2017 (#964) 2022-09-12 16:03:43 +00:00
Ara Nguyen c65e8cfbaa
migrating to rbe_preconfig (#952) 2022-08-18 18:18:24 +01:00
jheaff1 52edc1c70d
Add ninja 11 to prebuilt_toolchains.py (#950) 2022-08-16 13:07:40 +01:00
James Sharpe 30fdd11935
Release 0.9.0 docs (#945) 2022-08-02 20:12:05 +00:00
James Sharpe 8d54060580
Release version 0.9.0 (#944) 2022-08-02 19:56:49 +00: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 21b0c40493
Add tool runfiles to action (#942) 2022-07-26 09:47:53 +01:00
jheaff1 0dafcb29a8
Hermetic ninja build (#935) 2022-06-23 18:38:19 +01:00
Randolf J 5a0f5739f7
Fix `RANLIB` for `configure_make` (#928) 2022-06-23 04:15:53 +00:00
jheaff1 3b0cf7dacb
Faciliate usage of jom (#932) 2022-06-22 19:35:28 +00:00
jheaff1 2f7658cf02
Speed up CI by preventing the python2 build from running tests (#930) 2022-06-22 20:27:10 +01:00
george-enf b1e65fec98
fix replace_in_files for file names with spaces (#923) 2022-06-19 13:59:50 +00: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