John Sun
bcd0ec409f
msvc: fix make var for windows deps ( #1324 )
2024-11-19 12:19:37 +00:00
John Sun
aaedbc0a65
feat: configurable ldflags ( #1226 )
2024-11-18 23:11:17 +00:00
John Sun
a8421af4cc
fix: let 'toolchain' attr be selectable ( #1321 )
2024-11-18 22:18:27 +00:00
Javier Maestro
9edaefe13c
fix: move all bazelbuild links to bazel-contrib ( #1315 )
2024-11-06 15:35:23 +00:00
Ed Schouten
3b0ebe8094
Remove deprecated use of incompatible_use_toolchain_transition ( #1314 )
2024-11-05 15:32:09 +00:00
Mike Lundy
77d4483fad
correct overeager slash conversion on windows ( #1285 )
2024-11-01 23:21:35 +00:00
Mike Lundy
7729ee38f3
fix undefined variables in the wrap_outputs script ( #1278 )
2024-11-01 16:29:46 +00:00
Matt Smith
6e542304f8
add foreign_cc deps to cmake prefix path ( #1311 )
2024-11-01 15:41:51 +00:00
Aaron Michaux
e67c45c8db
Fix for #1271 , set_file_prefix_map attribute ( #1288 )
2024-09-19 16:28:55 +01:00
Michael Allwright
d9367d28ad
Merge user provided CPPFLAGS with build system CPPFLAGS ( #1261 )
2024-08-14 16:18:09 +00:00
Mike Lundy
6cc82e7528
autotools: return darwin as os instead of cmake in xcompile ( #1258 )
2024-08-13 11:02:06 +00:00
Matt Smith
979172f2fc
add support for cc_shared_library deps ( #1243 )
2024-08-13 11:52:54 +01:00
Michael Allwright
d70efd6d8c
Fix `_get_make_variables` ignoring user environment variables ( #1230 )
...
Co-authored-by: James Sharpe <james.sharpe@zenotech.com>
2024-08-12 23:08:34 +00:00
Mike Lundy
3ffc4bda69
cmake: handle builds that use static toolchain libs ( #1256 )
2024-08-12 21:49:55 +00:00
Mike Lundy
10d47d4421
configure_make: support autotools cross-compilation ( #1247 )
2024-08-12 22:07:54 +01:00
Thomas Lam
509b5aa6d6
Portable copy_dir_contents_to_dir ( #1246 )
...
Co-authored-by: James Sharpe <james.sharpe@zenotech.com>
2024-08-08 11:22:40 +00:00
Misha Zharov
fb209674f3
Re-export runfiles env vars so that dependencies can use them ( #1235 )
2024-07-26 09:34:57 +01:00
Guillaume Maudoux
d2815388f8
Update framework.bzl to account for externalIncludes ( #1215 )
...
During our migration to Bazel 7, some of our cmake() rules broke. It
turns out there is a new field in CcCompilationContext to account for
external includes, as opposed to internal system_includes.
See
a6ef0b341a
2024-06-14 21:35:24 +01:00
John Sun
aec70d3d1a
fix: path expansion on windows ( #1207 )
2024-06-11 15:22:21 +01:00
John Sun
546e06e654
fix: change cygpath to mixed mode ( #1204 )
2024-05-29 17:09:29 +01:00
Matt Smith
6484d40492
adjust relative msvc paths ( #1180 )
...
Co-authored-by: James Sharpe <james.sharpe@zenotech.com>
2024-04-21 22:37:14 +00: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
Laurence Tews
5c34b7136f
Fix - Copy Dir ignores hidden files on macOS ( #1188 )
2024-04-06 21:15:15 +00:00
Michael Kaufmann
99d018f059
Use a sed delimiter that is unlikely to appear in the input ( #1184 )
2024-03-22 21:36:00 +00:00
Matt Smith
5547abc63b
Cater for different drive letters when normalizing path ( #1169 )
...
Co-authored-by: James Sharpe <james.sharpe@zenotech.com>
2024-02-20 09:34:17 +00:00
Misha Zharov
4831827e29
Increase resiliency of `runnable_binary` ( #1134 )
2024-02-01 20:21:01 +00:00
John Sun
c5d7942243
Fix tool path for nmake ( #1165 )
2024-01-25 23:27:52 +00:00
James Sharpe
18dcce582f
Use gazelle to generate bzl_library targets ( #1127 )
2023-12-21 10:42:09 +00:00
tanx
51152aac9d
set CC and CXX and their flags in meson ( #1098 )
2023-12-11 09:35:14 +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
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
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
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
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
Jeremy Volkman
020854719e
Pass must_keep_debug = False to cc_common.create_link_variables ( #1046 )
2023-04-26 09:27:11 +01: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
Wangchong Zhou
1023d7ed6b
Use python3 instead of python2 in macos commands ( #1037 )
2023-04-11 14:14:24 +01: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
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
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
jheaff1
0ed27c13b1
Add toolchain executables to the PATH ( #987 )
2022-12-10 20:16:40 +00:00