2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-11-30 16:42:07 +00:00
Commit graph

181 commits

Author SHA1 Message Date
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
James Sharpe f1ac5b4726
Update build rules (#995) 2023-01-03 16:55:32 +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
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
Ara Nguyen c65e8cfbaa
migrating to rbe_preconfig (#952) 2022-08-18 18:18:24 +01: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 2f7658cf02
Speed up CI by preventing the python2 build from running tests (#930) 2022-06-22 20:27:10 +01: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
Keith Smiley 78c5f77385
Update to new rules_apple release (#906)
I created a release just to get past this issue with bazel HEAD
2022-05-02 10:28:53 -07:00
Florian Weikert c57b55f2f6
Use an unreleased version of rules_apple. (#899)
rules_apple 0.34.0 is incompatible with Bazel @ HEAD since it does not contain df98f37ea7

Consequently, we need to use a newer, yet unreleased version to fix https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/2443#7266607a-bd84-4863-abe9-6543530aeed3

Eventually we should wait for a new release and use it instead.
2022-04-20 22:30:31 +00:00
Florian Weikert 35c36a5882
Upgrade rules_apple to 0.34.0 (#896) 2022-04-19 20:51:09 +01:00
Keith Smiley e0590b50e4
Set CMAKE_OSX_ARCHITECTURES to target architecture (#891) 2022-04-16 17:19:01 +01:00
Fabian Meumertzheim 26eadbcd0d
Replace escape_locations with escape_locations_and_make_variables everywhere (#861)
Co-authored-by: James Sharpe <james.sharpe@zenotech.com>
2022-02-09 22:34:12 +00:00
jheaff1 470a78047e
Remove unused BUILD.perl.bazel file (#871)
Co-authored-by: UebelAndre <github@uebelandre.com>
2022-02-09 21:56:02 +00:00
James Sharpe e24d9cecfe
Allow all source files to be modified in configure_make when using configure_in_place = True (#856) 2022-01-10 09:48:37 +00:00
James Sharpe 44ad191858
Update bazelignore files (#854) 2022-01-06 21:13:25 +00:00
jheaff1 7f8183f205
use rules_perl toolchain for Windows build of OpenSSL (#846)
* use rules_perl toolchain for Windows build of OpenSSL

* Update repositories.bzl

* Update openssl_repositories.bzl

* Update openssl_repositories.bzl

Co-authored-by: UebelAndre <github@uebelandre.com>
2021-12-30 17:07:10 +00:00
UebelAndre aa61b9ad8b
Minor cleanup for examples (#835)
* Remove `BUILD` files from source globs in examples

* Updated example urls
2021-12-30 16:37:31 +00:00
Fabian Meumertzheim 40b03b42eb
Adapt tests to new cc_binary file extension on macOS (#834)
As of https://github.com/bazelbuild/bazel/pull/14369, shared libraries
produced with cc_binary on macOS with the auto-configured toolchain use
the correct file extension for dynamic libraries
(.dylib rather than .so). This requires adapting a test.
2021-12-06 15:50:55 -08:00
Yesudeep Mangalapilly a2f1e5d8c3
Adds toolchain for freebsd. (#794)
* Adds toolchain for freebsd.

* Address buildifier lint warnings.

* Use /usr/bin/env bash

* Leave the Linux-specific shebang alone.

* Adds note about Bazel CI issue requesting for FreeBSD support and experimental status.

* Fix typo.

* Clean up trailing whitespace.

* Updates bazel-skylib version for tests to pass on FreeBSD.

* Update foreign_cc/repositories.bzl

Co-authored-by: UebelAndre <github@uebelandre.com>
2021-11-29 10:54:06 +00:00
Fabian Meumertzheim f61ce5d10b
Pass toolchain and user env variables to make invocation (#777)
* Pass toolchain and user env variables to make invocation

* Rename configure --> make

* Add integration test coverage for make flag passing

This requires making the make_simple Makefile more realistic by

* using CXX and forwarding it to the wrapper;
* using CXXFLAGS instead of CXX_FLAGS and not overwriting its contents.
2021-11-27 07:52:54 -08:00
James Sharpe 7baefc1a8c
Autotools examples (#754)
* Build files for autotools tools
* m4 1.4.19
2021-11-19 00:56:08 +00:00
UebelAndre 83ab86e632
Updated pcre example (#809)
* Updated `pcre` example

* Disable failing Bison test
2021-11-17 09:51:25 -08:00
UebelAndre e97f24e701
Updated bazel_skylib, rules_cc and rules_python (#801) 2021-10-19 16:28:21 +00:00
UebelAndre 0ae6a6d75a
Added libgit2 Google mirror (#800) 2021-10-19 08:54:17 -07:00
Daniel Wagner-Hall ec9c9a4612
Expand make variables in env (#788) 2021-10-19 07:51:53 -07:00
UebelAndre 091dc5d381
Updated libgit2 example (#799) 2021-10-18 12:29:00 -07:00
UebelAndre a7105dafb0
Updated rules_cc and bazel_skylib versions (#795) 2021-09-30 23:34:16 +00:00
Keith Smiley da8952e27c
Fix building for iOS (#767) 2021-08-21 08:55:10 +01:00
jheaff1 776f199f5d
Add log4cxx example to CI (#762)
Co-authored-by: UebelAndre <github@uebelandre.com>
2021-08-18 06:00:17 -07:00
UebelAndre 6d5dbf02f7
Move more example build config into example BUILD files (#763) 2021-08-17 14:05:12 +00:00
jheaff1 4febcea0b6
add expat dep to apr_util build (#750) (#753)
The build of apr_util would previously fail if expat libs and headers
were not preinstalled in the build environment.
2021-08-17 13:19:51 +00:00
jheaff1 f01fd353ee
Build apr for MSVC on Windows (#743) 2021-08-05 19:40:20 +01:00
jheaff1 3b72ab3468
Re-add setting of PREFIX variable in make invocation (#751) 2021-08-03 06:11:07 -07:00
James Sharpe bad4ab0c3d
Fix quoting for cmake (#703) 2021-07-28 18:12:53 +01:00
UebelAndre 3d97bed4a2
Added Google mirrors for new openssl repositories (#738) 2021-07-28 09:00:48 -07:00
UebelAndre bf6d54c470
Updated version of openssl (#737) 2021-07-28 15:46:08 +00:00
jheaff1 5163c3cec8
Build OpenSSL using MSVC toolchain on Windows (#729)
* build OpenSSL using MSVC toolchain on Windows

* Display lib name in progress message

Before this commit, when building OpenSSL using MSVC, the progress
message would display "Building openssl_msvc_".

After this commit, the progess message would display
"Building openssl".

* Add test to verify linkage with OpenSSL libs

* Add test to verify linkage with Curl libs

Note that linker errors occur in applications that link with libssl
and libcrypto if libcrypto comes before libssl on the linker
command-line. Swapping the order of libcrypto and libssl in
BUILD.openssl.bazel resolved the issue.
2021-07-28 08:13:03 -07:00
jheaff1 c7330faee5
Wrap tool paths that contain whitespaces in quotes (#732)
This change is required when using the MSVC toolchain on Windows,
as paths for tools such as the compiler contain whitespaces (e.g.
C:\Program Files\...)

Co-authored-by: UebelAndre <github@uebelandre.com>
2021-07-20 16:44:33 +00:00
James Sharpe a09b0954d4
Add missing includes for std::runtime_error (#728) 2021-07-19 18:40:31 +00: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
jheaff1 5663d884a2
Provide out_data_dirs attribute (#419) (#622)
This change facilitates hermetic python toolchains, as demonstrated by
the test added in this commit.
2021-06-22 08:51:29 -07:00
UebelAndre 3dbe409720
Removed legacy *env_vars attributes from cmake and configure_make rule (#675)
* Removed legacy `*env_vars` attributes from `cmake` and `configure_make` rule. Use `env` instead.

* Updated examples

* Improved variable expansion

* Fixed missing `build_data` attribute for `configure_make`

* Fix environment variable quotes

* Attempt to address quoted environment variables.

* Updated documentation
2021-06-21 08:24:34 -07:00
UebelAndre 12c3956e5c
Enabled tests from #650 (#682) 2021-06-16 15:35:46 +01:00