sam-lunt
f9dc5ebb0f
Build make commands from correct attribute dict ( #643 )
...
* build make commands from attrs, not ctx.attr
* do not replace all instances of make/ninja
2021-05-12 16:21:25 +01:00
James Sharpe
cef5ee61ff
Set MAKE env var ( #638 )
...
* Set MAKE env var
* Update foreign_cc/private/configure_script.bzl
Co-authored-by: UebelAndre <github@uebelandre.com>
Co-authored-by: UebelAndre <andre.brisco@gmail.com>
Co-authored-by: UebelAndre <github@uebelandre.com>
2021-05-09 15:44:57 -07:00
James Sharpe
2baa2e8948
Correct configuration for native_tools_toolchain ( #637 )
2021-05-09 15:15:52 -07:00
James Sharpe
b9685b507e
Update cmake to 3.20.2 ( #636 )
...
* Update cmake to 3.20.2
* Update docs
2021-05-09 09:17:54 -07:00
UebelAndre
32b0c10972
configure_make hard requires configure_in_place
for certain attributes ( #633 )
2021-05-09 05:24:30 +00:00
UebelAndre
62fcc5f143
Fixed silent failures replacing sandbox paths in outputs ( #635 )
2021-05-09 06:18:25 +01:00
James Sharpe
b8b88cd2d1
Add set of features to disable from the toolchain used to pass to the external build system ( #631 )
...
Co-authored-by: UebelAndre <github@uebelandre.com>
2021-05-07 08:39:57 -07: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
UebelAndre
4eb5c5c0c2
Added a new platform_info
target to the foreign_cc framework ( #629 )
...
* Added a new `platform_info` target to the foreign_cc framework
* Update foreign_cc/private/framework/platform.bzl
Co-authored-by: James Sharpe <james.sharpe@zenotech.com>
Co-authored-by: James Sharpe <james.sharpe@zenotech.com>
2021-05-05 21:35:54 +01:00
UebelAndre
923cd88ed4
Added new foreign_cc framework commands: ( #628 )
...
- enable_tracing
- disable_tracing
- script_extension
- shebang
2021-04-30 13:26:23 -07:00
UebelAndre
1bd2a8c547
Refactored framework to avoid polymorphism complexity ( #612 )
...
* Refactored framework to be less complex
* Deleted default commands (aka 'stale linux commands')
* Restored toolchain name
2021-04-30 17:03:32 +01:00
UebelAndre
98c88de5e0
Deleted unused tests/examples and performed some slight cleanup ( #613 )
2021-04-23 20:41:42 +01:00
UebelAndre
a2ec6c0d26
Fixed provider name which was violating naming conventions ( #620 )
2021-04-23 17:11:13 +00:00
Takeo Sawada
11e971d78b
Fix a typo in README.md ( #618 )
2021-04-22 08:59:46 +01:00
James Sharpe
b66074cdd2
Add incompatible_use_toolchain_transition = True as per https://github.com/bazelbuild/bazel/issues/11584 ( #617 )
2021-04-19 08:01:50 -07:00
UebelAndre
c734ca8446
Replaced uses of export
with ##export_var##
( #614 )
2021-04-19 15:37:56 +01:00
UebelAndre
bd3d0fbbc2
Add configuration for stale bot ( #609 )
2021-04-19 14:33:05 +00:00
UebelAndre
d9ef75e6fc
Fixed missing sha256 value for cmake v3.20.1 ( #610 )
2021-04-18 15:31:50 +00:00
Danny Wolf
b6135adb24
Fix string escaping for cmake and configure/make ( #567 )
...
* Fix string escaping for cmake and configure/make
Use raw strings where possible to make readability slightly less maddening.
* Example usage of __TIME__
* Allow expansion of environment variables in HEREDOC for cmake crosstool
* Add compile check that __TIME__ is correctly redacted
* Ran buildifier
* Remove comment that is now invalid
Co-authored-by: James Sharpe <james.sharpe@zenotech.com>
2021-04-15 16:44:41 -07:00
UebelAndre
b03693d108
Deleted deprecated bzl
files and packages ( #608 )
2021-04-13 20:09:46 +01:00
UebelAndre
2d98051813
Removed all deprecated attributes ( #600 )
...
* Removed all deprecated attributes
* Updated documentation
2021-04-12 15:23:42 +00:00
James Sharpe
1f48d7756c
Update CMake versions ( #605 )
2021-04-09 07:00:16 -07:00
jheaff1
619f3881db
absolutize tool paths for (configure_)make ( #593 ) ( #601 )
2021-04-08 14:39:27 -07:00
UebelAndre
2ac3b83c93
Addressed buildifier defects ( #599 )
2021-04-02 01:45:36 +00:00
James Sharpe
18b491b61d
Pass empty suffix to sed on macOS ( #598 )
2021-03-31 15:46:19 -07:00
UebelAndre
5686d0f832
built ninja tools no longer carry the entire source tree ( #580 )
2021-03-31 13:23:07 -07:00
David Marcin
bae11c9a50
Optimize methods in detect_root.bzl ( #591 )
...
* Faster method for detecting root
* Implement filter without sort
* Add comments
2021-03-29 17:34:01 -07:00
James Sharpe
322732bef7
Add CMake 3.20.0 and 3.19.7 ( #587 )
...
* Add CMake 3.20.0 and 3.19.7
* Update docs
2021-03-28 16:04:35 -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
46047ae15c
Set CMAKE_INSTALL_PREFIX to the actual install directory to avoid copy ( #575 )
2021-03-26 19:31:07 +00:00
Daniel Wagner-Hall
0a0f8fd6db
Use touch not cp -p to preserve timestamps ( #583 )
2021-03-25 09:01:12 -07:00
UebelAndre
bf8c42f883
Ran buildifier ( #581 )
2021-03-22 08:13:48 -07:00
UebelAndre
144814658a
Fixed min version in docs ( #579 )
2021-03-22 14:25:05 +00: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
d02390f136
Enabled error checking in the built_tools framework ( #574 )
2021-03-18 15:41:36 +00:00
UebelAndre
d4256561fa
Fixed cmake build and target arguments ( #573 )
2021-03-18 15:35:55 +00:00
James Sharpe
ede2c80a51
Keep lines of scripts as a list of commands until script creation ( #572 )
...
This reduced the large amount of `"\n".join()` calls
2021-03-17 14:50:25 -07:00
UebelAndre
88338f1ce6
Updated cmake docs ( #571 )
2021-03-17 16:31:04 +00:00
UebelAndre
3389401e19
Moved "news" into it's own file ( #570 )
2021-03-17 08:45:28 -07:00
UebelAndre
4b265b0e61
Updated top level docs ( #569 )
2021-03-17 08:34:02 -07:00
UebelAndre
e4399415b8
Added "targets" API ( #556 )
...
* Added `targets` API to all existing build rules
* Updated examples
* Restore making the make toolchain always available.
* Add support for generator cmake parsing and setting CMAKE_MAKE_PROGRAM
* Cleaned up duplicate generator arguments
* Fixed cmake tests
* Updated docs
* Addressed PR feedback
* Fixed missing and incorrect generators
* Fixed `generate_args` name
2021-03-17 13:42:44 +00:00
UebelAndre
eae19778d5
Update the macos os_name
from osx
to macos
( #568 )
2021-03-16 14:59:29 +00:00
James Sharpe
0171f55d0b
Update cfg for tools to use exec rather than host (And target in the case of additional_tools) configurations ( #565 )
2021-03-15 15:25:36 -07: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
ec65e18bb5
Added a common framework for built tools ( #559 )
...
Co-authored-by: James Sharpe <james.sharpe@zenotech.com>
2021-03-15 17:17:59 +00:00
UebelAndre
6aceb1e4c3
Cleanup bazelci yaml ( #563 )
2021-03-15 09:59:17 -07:00
UebelAndre
976530d54e
Moved make
script creation into it's own file ( #560 )
2021-03-15 16:00:46 +00:00
UebelAndre
af07e183f3
Fixed typo ( #558 )
2021-03-13 14:49:57 +00:00
UebelAndre
83e6cf48cf
Moved workspace_definitions.bzl
to foreign_cc/repositories.bzl
to solve for bzl-visibility issues. ( #557 )
2021-03-12 09:08:13 -08:00