2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-11-27 02:43:28 +00:00
Commit graph

590 commits

Author SHA1 Message Date
Gowroji Sunil 9949fce954
Add j2objc fragment to rules (#1175) 2024-02-20 09:25:40 +00:00
Gowroji Sunil 15da39ad4d
Fixes the CI failure at Bazel@HEAD (#1173) 2024-02-16 06:19:09 +00:00
Misha Zharov 25ed4c48ce
Fix windows examples CI by upgrading TLS trust store (#1171) 2024-02-15 10:15:21 +00:00
Misha Zharov 4831827e29
Increase resiliency of runnable_binary (#1134) 2024-02-01 20:21:01 +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
Mike Lundy 1ddd0ce6b5
Add make 4.4.1 (#1167) 2024-01-26 00:31:47 +00:00
James Sharpe be11c56219
chore(deps): Bump rules_apple. Fixes #1156 (#1166) 2024-01-25 23:54:35 +00:00
John Sun c5d7942243
Fix tool path for nmake (#1165) 2024-01-25 23:27:52 +00:00
James Sharpe c2e097455d
Update CMake versions (#1159) 2024-01-12 23:45:52 +00:00
James Sharpe 0461090a38
Simplify the toolchain registration for bzlmod (#1105) 2024-01-12 22:00:28 +00:00
Matt Smith 930dcb97b1
Build msvc cmake with prebuilt cmake (#1148) 2024-01-12 21:37:09 +00:00
Misha Zharov a87e7542ee
Add mirrors to external repositories (#1153) 2024-01-04 07:03:54 +00:00
James Sharpe ddda554d2a
Remove explicit mention of bazel 4.x support (#1146) 2023-12-21 11:26:27 +00:00
James Sharpe ff18c0a33a
Update to ubuntu 20.04 on RBE (#1145) 2023-12-21 11:15:44 +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
James Sharpe b088f4a9a1
Turn off bzlmod in CI for now (#1142) 2023-12-20 11:10:45 +00:00
tanx 51152aac9d
set CC and CXX and their flags in meson (#1098) 2023-12-11 09:35:14 +00:00
Sitaktif 83aeab38da
Allow file targets in native_tool_toolchain() (#1117)
Some users might want to specify simple files (such as pre-built tools)
in the target attribute of native_tool_toolchain.

Co-authored-by: UebelAndre <github@uebelandre.com>
2023-12-01 04:42:30 -08:00
Caleb Zulawski 0258d350a9
Advertise CcInfo provider (#1118)
Co-authored-by: Caleb Zulawski <caleb.zulawski@caci.com>
2023-11-10 09:41:52 +00:00
Attila Oláh bf8a7c2951
Set an empty tools_data attribute for boost (#1112) 2023-10-28 23:11:02 +01:00
Laurenz b3dc43d70a
Add missing sha256 for meson_src 1.1.1 (#1111) 2023-10-27 18:21:31 +01:00
James Sharpe 3a85c822bf
Update release_prep.sh
Fix TAG name
2023-10-25 22:46:56 +01:00
James Sharpe fa1d617e5e
Updating release process to use stable tarball urls (#1059) 2023-10-25 16:38:28 +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 e3003dd17f
Register pkgconfig by default (#1104) 2023-10-14 19:27:25 +00:00
Lukas bac2c19d23
cmake: use variable expansion on generator args (#1087) 2023-10-14 15:36:53 +00:00
James Sharpe 8fc5dbb559
Upgrade rules_python (#1058) 2023-10-14 15:10:57 +00:00
Donald Stufft c62e551f9f
Set the LD environment variable (#1068)
Co-authored-by: James Sharpe <james.sharpe@zenotech.com>
2023-10-14 14:38:09 +00:00
James Sharpe ed89d233c6
Fix .bcr config files (#1103) 2023-10-14 15:17:56 +01:00
Mike Lundy 01cf7897e5
Allow runnable_binary to work on non-external targets (#1100) 2023-10-14 14:24:09 +01:00
Caleb Zulawski 14ded03b9c
Advertise CcInfo provider (#1095) 2023-09-19 18:47:35 +01:00
Keith Smiley 60813d57a0
Update rules_apple (#1086) 2023-08-29 16:35:32 +01:00
Mike Lundy 7b673547a3
Fix multiple-definition error on windows_config_setting (#1084) 2023-08-25 23:23:56 +01:00
James Sharpe 816905a078
Update meson to 1.1.1 (#1072) 2023-07-17 19:19:59 +01:00
James Sharpe 26c7700830
Create hub repo for shell framework toolchains (#1066)
This simplifies the registration of the shell framework toolchains in
bzlmod.
2023-06-28 09:20:01 +00:00
James Sharpe 95419b72d3
Add cmake 3.26.4 (#1067) 2023-06-28 08:32:55 +01:00
Isaac Torres ea7ed42949
fix linux cross compiling on macos (#1062)
Fixes cross-compiling from macos to linux.

see #997 for background.

I had to make a couple of extra changes to support this:

Setting CMAKE_SYSTEM_NAME manually causes CMAKE_SYSTEM_PROCESSOR to not be set. This breaks some builds that expect this variable to be set like libjpeg-turbo.
I made it so that the above variables are only set when cross-compilation is detected so that rules_foreign_cc only takes on responsibility of setting them when necessary.
2023-06-27 23:16:22 +01:00
jheaff1 6ecc134b11
Fix issue where meson documentation was blank on docs site (#1060) 2023-06-14 08:22:50 +00:00
Filip Filmar d74623f0ad
Adds some documentation specific to the make rule. (#1050) 2023-06-13 22:22:52 +00:00
DolceTriade 4f0b6b8159
Allow selecting individual outputs from a rule (#1056)
Co-authored-by: James Sharpe <james.sharpe@zenotech.com>
2023-06-13 23:00:52 +01:00
jheaff1 2ee029a744
Add meson to docs (#1055) 2023-06-13 09:38:43 +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
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