1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00
Commit Graph

554 Commits

Author SHA1 Message Date
orbea
e2b003a993 qb: Only look in /opt/vc/include if $HAVE_VIDEOCORE=yes. 2018-01-02 09:40:36 -08:00
orbea
48982de355 qb: Improve build without pkg-config. 2018-01-02 09:40:36 -08:00
orbea
8287a961e4 qb: Enable vulkan for Win32.
The check_lib function does not seem able to detect vulkan on windows,
this replaces a hack in Makefile.common that does the same, but while allowing
C89_BUILD=1 and --disable-vulkan to work.
2018-01-01 10:09:17 -08:00
orbea
f993355f71 qb: Fix undefined miniupnpc references with C89_BUILD=1
LD retroarch
obj-unix/./libretro-common/net/net_natt.o: In function `natt_open_port':
/RetroArch/libretro-common/net/net_natt.c:120: undefined reference to `UPNP_AddAnyPortMapping'
/RetroArch/libretro-common/net/net_natt.c:133: undefined reference to `UPNP_GetExternalIPAddress'
/RetroArch/libretro-common/net/net_natt.c:126: undefined reference to `UPNP_AddPortMapping'
obj-unix/./libretro-common/net/net_natt.o: In function `natt_init':
/RetroArch/libretro-common/net/net_natt.c:61: undefined reference to `upnpDiscover'
/RetroArch/libretro-common/net/net_natt.c:74: undefined reference to `miniwget'
/RetroArch/libretro-common/net/net_natt.c:77: undefined reference to `parserootdesc'
/RetroArch/libretro-common/net/net_natt.c:79: undefined reference to `GetUPNPUrls'
/RetroArch/libretro-common/net/net_natt.c:81: undefined reference to `freeUPNPDevlist'
collect2: error: ld returned 1 exit status
make: *** [Makefile:159: retroarch] Error 1
2017-12-31 14:18:02 -08:00
orbea
24f69cb537 qb: Fix undefined flac references with C89_BUILD=1 2017-12-30 22:40:02 -08:00
orbea
c96ae959b3 qb: Add a fallback path for jack audio without pkg-config
This is a proof of concept for the fallback path without pkg-config.
As jack is something often not installed by default it demonstrates
that when pkg-config exists and the dependency doesn't the check_val
function in qb/qb.libs.sh will redundantly check -ljack and as expected,
fail. It also shows that when pkg-config is not installed and jack is
enabled with --enable-jack it will bail and print a configure error.
2017-12-30 20:56:40 -08:00
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
7ab2254fc4 qb: Fix --disable-oss for openbsd.
If --disable-oss is passed to configure we should not check for any oss support.
2017-12-30 15:45:19 -08:00
orbea
1b404afc86 qb: Include /usr/local/lib for *bsd too 2017-12-29 16:06:04 -08:00
Twinaphex
22062fdf91
Merge pull request #5991 from orbea/gl
qb: Include /usr/local/include for bsd based systems.
2017-12-29 21:08:41 +01:00
orbea
6ab2244a43 qb: Do not check for x11 when using --disable-x11. 2017-12-29 11:25:35 -08:00
orbea
a34555c9a9 qb: Include /usr/local/include for bsd based systems.
This resolves an issue where the default freebsd compiler does not
include /usr/local/include which contains important headers such as
GL/gl.h and results in the check_header function failing to find them.

Unfortunately pkg-config/pkgconf will not work here for two reasons.
1. It does not seem able to actually check for gl.h which RetroArch
explicitly needs.

2. Not all systems have a pkg-config implementation so we will still
have to fall back to checking for gl.h...

Fixes https://github.com/libretro/RetroArch/issues/5958
2017-12-29 10:23:14 -08:00
orbea
eaccab5237
Revert "config.libs.sh: reintroduce HAVE_X11 check" 2017-12-29 18:04:07 +00:00
Conn O'Griofa
010aa8061f config.libs.sh: reintroduce HAVE_X11 check
Current behaviour would force check_val to check for X11 even if explicitly disabled.

Fixes Raspberry Pi build (which requires --disable-x11).
2017-12-29 02:10:19 +00:00
orbea
a2032a56a0 qb: Allow using the system flac. 2017-12-27 09:51:19 -08:00
Twinaphex
61b7b2e590
Merge pull request #5968 from pattheaux/leds
Leds
2017-12-27 18:01:33 +01:00
orbea
e07ce68e7f Makefile.common: Clean up zlib check. 2017-12-27 08:38:47 -08:00
Ian House
8178e21cda Merge branch 'master' of https://github.com/libretro/RetroArch into leds 2017-12-27 11:14:35 -05:00
Ian House
aa7c289708 Added an LED interface and a Raspberry Pi GPIO implementation 2017-12-27 11:11:08 -05:00
orbea
c63011db71 qb: Disable all miniupnpc support with --disable-miniupnpc. 2017-12-26 16:18:47 -08:00
orbea
ac044c47ee qb: HAVE_MINIUPNPC is needed for builtin miniupnpc 2017-12-26 00:52:04 -08:00
orbea
9e7882ec96 Makefile.common: Clean up the miniupnpc check 2017-12-26 00:15:54 -08:00
orbea
1ddcc7be82 Ifdef the broken dbus code better. 2017-12-16 05:19:05 -08:00
Twinaphex
54bf818372
Merge pull request #5810 from orbea/systemd
qb: Make systemd support configurable.
2017-11-27 23:57:15 +01:00
Zoltán Mizsei
4f46402afb Haiku build fix 2017-11-27 22:33:58 +01:00
orbea
4463c0c815 qb: Make systemd support configurable. 2017-11-27 13:25:20 -08:00
orbea
fadea3730f qb: Silence some shellcheck warnings. 2017-11-27 10:03:13 -08:00
Brad Parker
28c6237b47 FreeBSD: support libusb hid input driver 2017-11-27 11:30:29 -05: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
fec63ae8ed qb: Set configure paths without unset variables. 2017-11-26 12:26:33 -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
82db21ed0b qb: Fix undefined references to EGL without pkg-config. 2017-11-25 11:05:40 -08:00
orbea
51dfbd98b1 qb: Prefer pkgconf over the legacy GNU pkg-config. 2017-11-24 12:12:56 -08:00
orbea
06f10d1368 qb: Clean up qb.comp.sh 2017-11-24 12:12:56 -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
Twinaphex
3c0dc87c42
Merge pull request #5750 from orbea/build
qb: Honor the --build option.
2017-11-23 17:10:23 +01:00