Andrew Tridgell
f60a43ed74
waf: stop build if OSD libs missing and requested
2018-08-02 12:38:21 +09:00
Andrew Tridgell
8ba137bd9a
waf: moved ROMFS embed script into waf folder
2018-07-02 10:43:48 +10:00
Lucas De Marchi
9342bc5050
build: invert default for lttng
...
Since it's a debug option, particularly for the scheduler, leave it
disabled by default and let the user enable on demand.
2018-05-04 11:47:04 -07:00
Lucas De Marchi
8a9a08ed9b
build: generalize link fix
2017-08-16 10:51:59 -07:00
Miguel Arroyo
a2f327678b
waf: Fix for lttng linking
2017-08-16 10:51:59 -07:00
Andrew Tridgell
6747f42986
waf: ensure that we can link to a package before using it
...
this copes with a PKG_CONFIG_PATH that points at a package for the
wrong architecture
2017-01-30 13:55:57 +11:00
Julien Beraud
c6107d812d
waf: Don't use lttng in static builds
...
already done for libiio and libdl
2016-11-16 01:23:10 -02:00
Lucas De Marchi
2b1b23cabf
build: fix static linking through --static option
2016-07-20 18:03:20 -03:00
Lucas De Marchi
8967220652
waf: pass uselib_store in check_package()
...
This guarantees waf will always add the flags with our known prefix.
2016-07-13 15:24:42 -03:00
Andrew Tridgell
1b12371e25
waf: use define_name in libdl check
2016-07-13 15:24:42 -03:00
Andrew Tridgell
2980d47e23
waf: added check_package() function for pkg-config checks
...
this converts existing pkg-config checks to use check_package, which
sets up all the needed variables after a check.
This also disables libdl and libiio for static builds, where they make
no sense
2016-07-13 15:24:41 -03:00
Lucas De Marchi
8a27680fbb
build: check for endian.h and byteswap.h
2016-07-08 19:49:32 -03:00
Siddharth Bharat Purohit
71c2f69a63
waf: add support for sitl build on mac
2016-07-07 11:35:17 -03:00
Lucas De Marchi
a9919420c6
waf: allow to disable libiio at configuration
...
We default to autodetection for libiio so if the libraries are available
we enable it. However this may not always be desired.
2016-06-23 19:08:13 -03:00
Lucas De Marchi
348678888b
waf: allow to disable lttng at configuration
...
We default to autodetection for LTTNG so if the libraries are available
we enable it. However this may not always be desired.
2016-06-23 19:07:26 -03:00
Lucas De Marchi
563614e84b
waf: check for libiio for all linux boards
2016-05-23 12:06:42 -03:00
Lucas De Marchi
04fc1e22da
waf: check for lttng-ust for all linux boards
2016-05-23 12:06:42 -03:00
Lucas De Marchi
9ac6c399e9
waf: accept env variable to append library
...
Change check_librt() to do everything it needs to check for librt.
2016-05-23 12:06:42 -03:00
Gustavo Jose de Sousa
f10c150e70
waf: cxx_checks: add check_librt()
...
That function verifies for the necessity of linking against librt. If so, then
it checks if it is possible to do so.
2016-05-19 18:15:06 -03:00
Gustavo Jose de Sousa
e630c2b33f
waf: cxx_checks: define ap_common_checks() instead of configure()
...
That allow loading the cxx_checks tool before the calls to configure_env().
That way, we can add check functions to be used across boards.
2016-05-19 18:15:06 -03:00
Gustavo Jose de Sousa
83244dfe10
waf: cxx_checks: add copyright notice
2016-05-19 18:15:06 -03:00
Gustavo Jose de Sousa
468e8284f0
waf: cxx_checks: use check() instead of check_cxx()
...
check_cxx() is deprecated.
2016-05-19 18:15:06 -03:00
Lucas De Marchi
cc24f323d2
waf: add messages to the things we are checking for
...
Before:
Checking for code snippet : yes
Checking for code snippet : yes
Checking for code snippet : yes
Checking for code snippet : yes
Checking for code snippet : no
Checking for code snippet : no
After:
Checking for HAVE_CMATH_ISFINITE : yes
Checking for HAVE_CMATH_ISINF : yes
Checking for HAVE_CMATH_ISNAN : yes
Checking for NEED_CMATH_ISFINITE_STD_NAMESPACE : yes
Checking for NEED_CMATH_ISINF_STD_NAMESPACE : no
Checking for NEED_CMATH_ISNAN_STD_NAMESPACE : no
2016-04-05 21:06:25 -07:00
Lucas De Marchi
169c350e85
waf: rename AP_Config.h to ap_config.h
...
The usual name for this header is config.h, but that's already used by
vehicles. Using uppercase could give the impression this is a
file to be modified, but it's not. Use lowercase instead.
2016-04-05 21:06:25 -07:00
Ricardo de Almeida Gonzaga
5e45c9dfb0
waf: add cxx_checks tool
...
In order to start generating AP_Config header and detect
parameter such as the existence of cmath functions.
2016-04-05 20:44:15 -07:00