Commit Graph

111 Commits

Author SHA1 Message Date
orbea a37d624967 qb: Improve the check_val function.
This accomplishes two things for the fallback path without pkg-config.

1. If --disable-foo is passed to configure it will explicitly skip
   check_val. This has the benefit of reducing checks in
   qb/config.libs.sh which are easy to break due to human error.

2. When a fallback path exists and --enable-foo is passed to configure,
   but fails due to the missing -lfoo check_val will now bail and print
   a configure error. However --enable-foo will still be ignored if
   there is no fallback path and pkg-config is not installed.

One issue with this is that if pkg-config is installed and the package
foo is not, it will still check if -lfoo works. As not all pkg-config
implemenations can be trusted to work even if they exist this seems
unavoidable.
2017-12-30 20:56:40 -08:00
orbea fadea3730f qb: Silence some shellcheck warnings. 2017-11-27 10:03:13 -08:00
orbea a78f72ccd3 qb: Used explicit word splitting to silence shellcheck warnings. 2017-11-26 19:08:56 -08:00
orbea 5361950d1c qb: Use printf and safer quoting in the check_pkgconf and check_header functions. 2017-11-26 14:19:29 -08:00
orbea 631f0c4a8b qb: Create a check_val function for the no pkg-config fallback path. 2017-11-25 17:42:41 -08:00
orbea fc5f04a762 qb: Define $2_LIBS in the check_lib function. 2017-11-25 15:27:01 -08:00
orbea e0eb2b8a31 qb: Add $PKG_CONF_USED to the check_lib function to help avoid undefined referenecs. 2017-11-25 13:52:52 -08:00
orbea bc4d14149a qb: Clean up empty defines in config.mk 2017-11-25 12:27:41 -08:00
orbea 892c6b864a qb: Combine the add_include_dirs and add_library_dirs functions 2017-11-24 10:22:57 -08:00
orbea cf45945aa8 qb: Combine the check_switch_c and check_switch_cxx functions. 2017-11-24 08:21:38 -08:00
orbea 0c9308cd87 qb: Remove unused and redundant check_code_c and check_code_cxx functions. 2017-11-24 08:21:38 -08:00
orbea fbbaf7d5b1 qb: Check which c language is being used in its own function. 2017-11-24 08:21:12 -08:00
orbea f952f392b8 qb: Use printf and better quoting in the check_lib function. 2017-11-24 07:16:33 -08:00
orbea 1ca43bd819 qb: Combine the add_define_header and add_define_make functions. 2017-11-23 18:36:19 -08:00
orbea 6351e21d9e qb: Turn $CONFIG_DEFINES from a temporary file into a variable. 2017-11-23 17:40:28 -08:00
Twinaphex 2d3aa5b917
Merge pull request #5760 from orbea/config.h
qb: Rewrite the create_config_header function to use printf instead of echo.
2017-11-24 02:21:12 +01:00
orbea 2fb0cb79ec qb: Turn $MAKEFILE_DEFINES from a temporary file into a variable. 2017-11-23 14:53:39 -08:00
orbea ca534ffa56 qb: Rewrite the create_config_header function to use printf instead of echo. 2017-11-23 14:07:37 -08:00
orbea d3139754bc qb: Rewrite the create_config_make function to use printf instead of echo. 2017-11-23 10:30:59 -08:00
orbea 8ab308d9dd qb: Honor the --build option.
This makes some distros happy even if it does nothing.
2017-11-22 15:40:15 -08:00
orbea bf8863d360 qb: Add a function to print warning or exit messages. 2017-11-18 02:54:58 -08:00
orbea f2d70664a3 qb: Better use of rm. 2017-11-06 07:25:04 -08:00
orbea 10722920ed qb: Remove old commented code.
'echo -n' is not portable and should not be used even if it works on osx.
'printf' would be far preferable, but there really isn't any need.
2017-11-05 18:44:45 -08:00
orbea 595e69d34d Fix https://github.com/libretro/RetroArch/issues/5636 2017-11-01 11:32:41 -07:00
orbea 48db41a112 qb: Combine the check_lib and check_lib_cxx functions. 2017-10-27 14:53:24 -07:00
orbea e12d203a76 qb: Avoid using 'true' which could be a binary on some systems. 2017-10-24 12:43:40 -07:00
orbea 79ee19e2a5 qb: Clean up long lines in check_lib and check_lib_cxx 2017-10-21 14:49:26 -07:00
orbea b733807099 qb: Remove trailing white spaces from config.mk. 2017-10-21 14:49:26 -07:00
orbea 0ff7e829f0 qb: Explicitly word split libs and extralibs 2017-10-21 14:49:26 -07:00
orbea 514391b4d8 qb: Remove the leading whitespace from $INCLUDE_DIRS and $LIBRARY_DIRS. 2017-10-21 14:49:26 -07:00
orbea f50d755b45 qb: Don't use variables in the printf format string. 2017-10-18 16:05:09 -07:00
Alcaro 39ad441698 XShm detector works now. 2015-10-11 16:06:44 +02:00
Alcaro 40ca0baa07 Allow defining libraries as C89 incompatible in qb/config.params.sh. 2015-09-22 16:40:07 +02:00
Higor Eurípedes d3abc809c7 (qb) Fix for PKG_CONF_PATH=none 2015-04-19 10:56:57 -03:00
Higor Eurípedes 7c9154c181 (qb) Do not abort on missing pkg-config under Darwin 2015-04-19 09:47:20 -03:00
Higor Eurípedes ac91f46c3e (qb) Display pkg-config module version 2015-04-19 08:34:37 -03:00
Geoffrey Plitt 6e437c449b Mac OS X / CircleCI fixes
adding artifact step

installing Cg

curl instead of wget

specifying the xcodeproject path

fixing path

troubleshooting

adding configure step

fixing configure step

adding submodule fetch step

disabling artifact step

using zip to upload just one file to artifacts

fine tuning build.zip

bugfix

undoing whitespace changes

fixing zip step
2015-03-06 14:04:21 -08:00
Higor Eurípedes 7a9cd53f15 (qb) Add header argument to check_lib 2014-10-28 22:30:29 -02:00
Higor Eurípedes 8620cef48a (qb) Prefix the pkg-config path with $CROSS_COMPILE 2014-09-16 16:48:08 -03:00
Higor Eurípedes ef4b720c74 (qb) Check for windres 2014-09-14 17:50:50 -03:00
Higor Eurípedes f5a849216e (qb) Always call the correct pkg-config 2014-08-29 12:36:13 -03:00
Themaister 247059ad4d Use PKG_CONF_PATH in qb/. 2014-06-05 11:09:10 +02:00
Themaister 528bb2687d Fix Rasperry Pi build. 2014-01-26 11:43:26 +00:00
twinaphex b23379266c PACKAGE_VERSION is defined now in general.h for all versions 2013-07-19 16:20:14 +02:00
twinaphex 1209c04e8c Propagate ASFLAGS to config.mk as well 2013-07-13 04:00:53 +02:00
Themaister 70e99c30ab Style nits. 2013-05-28 09:43:13 +02:00
Yohann Bianchi cdfa97a41e Fixes issues pointed by Themaister
configure option is now --global-config-dir
2013-05-28 01:59:06 +02:00
Yohann Bianchi 937b112e71 Adds --config-dir option in configure script to let the user set a custom path for system wide config file 2013-05-27 17:58:59 +02:00
notaz 16edc7c80e Add ARM NEON support for main build. 2012-12-09 18:30:04 +02:00
Themaister 0241b463fc Fix build against static FFmpeg. 2012-10-06 10:30:45 +02:00
Themaister 031e37db9c Should clarify error message when pkg-config is missing. 2012-06-23 00:00:23 +02:00
tukuyomi ae33d8c899 Refactored quickbuild. 2012-06-13 20:46:56 +02:00
Themaister 59d9ff0d29 Add check_code_c/cxx. 2011-06-25 14:44:45 +02:00
Themaister d279ea79e8 Fix some standard compliance. 2011-06-25 14:17:31 +02:00
Themaister 77cf9423cc Abolish use of echo -n as it isn't perfectly standard. 2011-06-25 14:10:40 +02:00
Themaister 75d1155a23 Fix OSS build for BSD. 2011-06-16 23:20:12 +02:00
Themaister 8c6519a53b Should fix an awkward bug with Quickbuild. 2011-03-03 22:06:58 +01:00
Themaister bbf4804d12 Obey CFLAGS and LDFLAGS when testing libs (nice when profiling.) 2011-02-28 22:30:06 +01:00
Themaister d37bd214e6 Update build system to check for minimum SDL version. 2011-01-06 20:29:04 +01:00
Themaister 38616ee794 More cleanup... 2010-12-30 03:02:30 +01:00
Themaister e65d9f349d Add quickbuild. 2010-12-30 02:52:02 +01:00