Lucas De Marchi
8a9a08ed9b
build: generalize link fix
8 years ago
Miguel Arroyo
a2f327678b
waf: Fix for lttng linking
8 years ago
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
8 years ago
Julien Beraud
c6107d812d
waf: Don't use lttng in static builds
...
already done for libiio and libdl
8 years ago
Lucas De Marchi
2b1b23cabf
build: fix static linking through --static option
9 years ago
Lucas De Marchi
8967220652
waf: pass uselib_store in check_package()
...
This guarantees waf will always add the flags with our known prefix.
9 years ago
Andrew Tridgell
1b12371e25
waf: use define_name in libdl check
9 years ago
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
9 years ago
Lucas De Marchi
8a27680fbb
build: check for endian.h and byteswap.h
9 years ago
Siddharth Bharat Purohit
71c2f69a63
waf: add support for sitl build on mac
9 years ago
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.
9 years ago
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.
9 years ago
Lucas De Marchi
563614e84b
waf: check for libiio for all linux boards
9 years ago
Lucas De Marchi
04fc1e22da
waf: check for lttng-ust for all linux boards
9 years ago
Lucas De Marchi
9ac6c399e9
waf: accept env variable to append library
...
Change check_librt() to do everything it needs to check for librt.
9 years ago
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.
9 years ago
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.
9 years ago
Gustavo Jose de Sousa
83244dfe10
waf: cxx_checks: add copyright notice
9 years ago
Gustavo Jose de Sousa
468e8284f0
waf: cxx_checks: use check() instead of check_cxx()
...
check_cxx() is deprecated.
9 years ago
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
9 years ago
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.
9 years ago
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.
9 years ago