Commit Graph

6 Commits

Author SHA1 Message Date
orbea 8f861d438b qb: Fix checking the CXX compiler
This does the following.

1. Fixes checking if the CXX compiler works on platforms other than windows.
2. Turns the error when the CXX compiler is missing or doesn't work into a warning.
3. Adds HAVE_CC and HAVE_CXX.
4. Only adds CC and CXX to config.mk when HAVE_CC or HAVE_CXX are true.
5. Disables Qt companion, Vulkan, CXX_BUILD and NEED_CXX_LINKER if HAVE_CXX is false.
6. Explicitly errors when the CXX compiler is broken or missing and Qt or vulkan support is enabled.
7. No longer explicitly links with the CXX compiler on windows since this should no longer be needed.

This also adds the function `check_enabled` to `qb/qb.lib.sh` which
can be used to dynamically disable any libraries that require C++
support.
2018-05-03 12:24:32 -07:00
orbea 631f0c4a8b qb: Create a check_val function for the no pkg-config fallback path. 2017-11-25 17:42:41 -08:00
Higor Eurípedes 6e3662953d (qb) Make C++ compiler optional in non-Win32 builds 2015-06-16 20:46:54 -03:00
Themaister e5a5d5e861 Revert "(Pointed out by Alcaro) configure shouldn't require a C++ compiler"
qb.libs.sh uses CXX for a few things. E.g. Cg has to be linked with C++
compiler or it breaks on some distros.
2013-06-28 21:14:54 +02:00
twinaphex 53c549690d (Pointed out by Alcaro) configure shouldn't require a C++ compiler
as a necessary dependency
2013-06-28 18:59:02 +02:00
Themaister 59c92dddc3 Slight QB cleanup. 2011-06-25 17:11:18 +02:00