Commit Graph

365 Commits

Author SHA1 Message Date
twinaphex d82a65089f Checking for retro_init symbol inside libretro.a causes more issues than
it solves - .a file can be either a C++ or C-oriented core, hence we'd
need two consecutive checks, but both just do exit 0 on error
2016-12-16 11:28:57 +01:00
twinaphex 83c6db746e Add libcaca switch 2016-12-01 18:24:07 +01:00
Gregor Richards 65355994b3 NAT traversal
Adding NAT traveral interface to libretro-common, with (currently) a
backend support MiniUPNPC. Sensible future backends would be libupnp and
a direct implementation of PCP/NAT-PMP.
2016-11-29 21:00:53 -05:00
Alcaro 7d7e83ce73 Clarify error 2016-11-10 08:34:08 +01:00
Higor Eurípedes 330a8d7594 Make thread local storage optional 2016-10-17 21:24:03 -03:00
Higor Eurípedes f20925a329 (qb) Try to find -lz if the zlib package doesnt exist 2016-10-14 19:43:18 -03:00
twinaphex 9257844a8b Disable cheevos as well when --disable-networking is set 2016-10-01 10:23:01 +02:00
twinaphex 9384875ab0 Don't use HAVE_NETPLAY any more 2016-09-29 21:07:10 +02:00
twinaphex 8831d19008 Rename GLES_LIBS/GLES_CFLAGS to OPENGLES_LIBS/OPENGLES_CFLAGS 2016-09-21 12:45:31 +02:00
twinaphex e3c560014c Turn HAVE_GLES into HAVE_OPENGLES 2016-09-17 00:38:35 +02:00
Nicolas Guillaumin 05df632bd8 WIP: Fixes #2026 Screensaver suspend on Linux via Dbus
One some systems (tested with Gnome 3 on Arch Linux) the current method
of using `xdg-screensaver` to suspend the screensaver does not work.
Instead, using DBus to issue an `Inhibit` request is recommended.

The request returns a cookie that needs to be re-used to un-inhibit the
screensaver later. Additionally if the DBus connection is closed the
current inhibition is discarded. Thus, the DBus connection needs to stay
connected for the duration of the screenshot inhibition.

The code is heavily inspired from the [SDL 2.x
code](http://hg.libsdl.org/SDL/file/default/src/core/linux/SDL_dbus.c#l172).
I didn't call the SDL 2 code though since this it to fix the issue with
the GL driver, and I assume one would want to have screensaver inhibited
even when SDL 2 is not available (but GL is).

I've set "WIP" because:
* I haven't done C in a long time so my code is probably not great
* There's a dependency on DBus which I don't know is acceptable or
not
* I've put my code where I could to check it works, but `x11_common` may
not be the best place
* The code need and "init" and "deinit" kind of method as it needs to
initialise the DBus connection, and on deinit close it properly. I've
used `x11_connect` and `x11_window_destroy` but they don't sound like
the best choices.
* I'm a bit unclear as to what happens when "suspend screensaver" is
ticked on/off in the menu. This doesn't seem to call
`x11_suspend_screensaver` everytime, so I'm not sure if there's a hook
somewhere (as disabling screensaver suspend in the menu should cause a
DBus unhinibit request to be sent).
* Should I just call the SDL 2.x code (meaning that the GL driver would
depend on SDL 2.x at runtime)?

So, first of all are you ok with the approach, and if yes I'd gladly get
feedback about the code, how to architecture it and the best place to
put it.

Thanks!
2016-09-08 15:23:41 -07:00
twinaphex 2c17d6a71e Add back SWRESAMPLE check 2016-08-30 18:31:42 +02:00
twinaphex 3b79182fa2 Add HAVE_AVRESAMPLE 2016-08-30 17:31:39 +02:00
twinaphex aa1e43b2fc Change notice to reflect that ffmpeg support now includes
built-in core
2016-08-30 17:25:51 +02:00
twinaphex 90e57f7a0d Check for libavdevice 2016-08-30 17:24:04 +02:00
orbea bfc7267c0e Kill empty lin 2016-08-27 20:04:12 -07:00
orbea ac606f8678 Allow setting assets install directory 2016-08-27 19:44:41 -07:00
orbea b3922555e2 Allow setting --with-bin_dir 2016-08-26 17:29:50 -07:00
Higor Eurípedes 8752313961 (gfx) Add OSMesa context 2016-08-02 02:16:02 +02:00
twinaphex 6742e135c9 Create HAVE_VIDEO_PROCESSOR ifdef 2016-07-28 20:01:38 +02:00
radius 6db150e312 windows configure script fix 2016-07-25 00:55:11 -05:00
twinaphex 3f29e731e2 Set HAVE_PLAIN_DRM to no by default 2016-07-11 15:57:52 +02:00
twinaphex c8349862e1 Lower libdrm requirements to 2.4.65 2016-07-04 21:51:06 +02:00
Logan McNaughton a9750e0232 Fix library dirs on Raspberry Pi 2016-07-04 12:25:17 -06:00
twinaphex 5d70242dee Check against libdrm version 2.4.68 in order to enable/disable
plain DRM video driver
2016-07-03 22:08:56 +02:00
twinaphex cf996f724e Rename HAVE_NETWORK_GAMEPAD to HAVE_NETWORKGAMEPAD - and
don't bake it in for the C89 build
2016-06-07 15:23:07 +02:00
orbea 7fc64b2c5e Set base man dir in MAN_DIR 2016-05-22 16:31:01 -07:00
twinaphex 08e637a573 Add Vulkan check back 2016-05-16 10:08:10 +02:00
twinaphex 0d833c903a Merge remote-tracking branch 'origin/vulkan-windows' 2016-05-16 07:51:01 +02:00
twinaphex 4100bf95b4 Able to compile without RPNG support 2016-05-11 21:22:45 +02:00
twinaphex 123025665d (Qb) When threads are disabled, disable cheevos and/or libusb too 2016-05-11 19:11:09 +02:00
Alcaro fe4ef69aaf Better check this one too. (Vulkan is the only user of that, right?) 2016-05-10 19:43:38 +02:00
twinaphex e15a385e70 Add HAVE_SYSTEMD check 2016-04-25 15:16:06 +02:00
Hans-Kristian Arntzen 72f65396c7 Fix cross-compile build on Linux. 2016-03-29 15:50:12 +02:00
twinaphex d15eb9a570 Add HAVE_SSA switch to qb 2016-03-03 18:17:48 +01:00
Alcaro eeccb63c4e Avoid build fails due to missing submodule. 2016-02-23 16:26:36 +01:00
twinaphex fde9f1ce2c Start making GL optional (previously we assumed pretty much - hardware
context = GL) Still have the issue where the menu driver auto-switches
back to rgui instead of glui/xmb
2016-02-20 06:16:34 +01:00
twinaphex 575cd4e3be Add xcb detection 2016-02-19 15:08:23 +01:00
Hans-Kristian Arntzen adbf9fed16 Vulkan implementation. 2016-02-16 20:42:02 +01:00
radius 9fb3fe6216 add defines for udp gamepad 2015-11-27 18:08:35 -05:00
twinaphex 66914232ab Replace most instances of GLUI (except for ident string) with
HAVE_MATERIALUI
2015-11-02 23:23:54 +01:00
Alcaro 4e3a313805 Autogenerate this huge ugly line. 2015-10-11 16:30:17 +02:00
Alcaro a3c61fc669 looks like I need this ridiculous thing too. 2015-10-11 16:09:59 +02:00
Alcaro 39ad441698 XShm detector works now. 2015-10-11 16:06:44 +02:00
Alcaro f4a5cbbe5b Add this half-finished (okay, 5%-finished) driver. 2015-10-11 09:50:49 +02:00
twinaphex a1ff4879f8 (Zarch) Integrate Zarch - can be heavily improved now - shows
promise
2015-10-02 02:15:46 +02:00
twinaphex 29cb6e06f9 (Win32) Don't assume HAVE_STRL can be defined for Windows 2015-09-05 14:14:10 +02:00
radius a59dde6cdb Disable QT for now 2015-08-31 21:07:24 -05:00
radius 9480bfbd9e Add QT to the configure script 2015-08-31 21:07:21 -05:00
Higor Eurípedes 42320c9726 Make stb font support optional 2015-07-14 12:00:28 -03:00
twinaphex 84c18a353d Create HAVE_IMAGEVIEWER ifdef 2015-06-28 18:55:00 +02:00
Higor Eurípedes 224dfb2570 (qb/Makefile.common) Add checks for GLUI and XMB 2015-06-26 11:55:06 -03:00
twinaphex d3f0954418 Start preparing internal ffmpeg core mechanisms 2015-06-21 00:03:27 +02:00
Higor Eurípedes e2ea001cb4 (qb) Improve OpenGL and Cg checks 2015-06-17 12:40:58 -03:00
Higor Eurípedes 134364ad1a (qb) Add check for GL/gl.h 2015-06-16 21:25:55 -03:00
Higor Eurípedes 38be1d90d7 (qb) Add check for -lGL 2015-06-16 20:59:17 -03:00
Higor Eurípedes 87d0ef8b7d (qb) Add --disable-libretrodb 2015-06-02 10:57:18 -03:00
Dugan Chen 347960093e Configure checks for libusb 1.0.16 2015-05-17 15:30:16 -07:00
vanfanel 72923f0913 Removed unneeded variables in qb/config.libs.sh when configuring DISPMANX because we use the VIDEOCORE includes and libs (DISPMANX implies we have VIDEOCORE hardware). 2015-04-29 14:13:16 +02:00
Twinaphex 1fb00bdac3 Add HAVE_IOHIDMANAGER to qb/config.libs.sh 2015-04-20 12:04:31 +02:00
Twinaphex 813a47d43c Change HAVE_LOCATION to HAVE_CORELOCATION 2015-04-20 11:41:33 +02:00
Twinaphex c62de6b3cf (qb) Add HAVE_AVFOUNDATION rules 2015-04-20 11:33:32 +02:00
Twinaphex 4220dffb55 (OSX) Detect zlib properly for OSX 2015-04-20 01:58:03 +02:00
twinaphex b1e15f3202 Treat detection of zlib differently for OSX 2015-04-20 01:56:48 +02:00
Twinaphex 2f169a42b1 (qb) Add COCOA 2015-04-20 00:38:55 +02:00
Twinaphex 3637dc7af7 (qb) Add CoreText 2015-04-20 00:13:02 +02:00
Higor Eurípedes 1970e8005a (qb) Fix ffmpeg detection 2015-04-19 10:46:50 -03:00
twinaphex f7569f265d Add check_pkgconf rule for libusb 2015-04-13 14:05:26 +02:00
twinaphex f2bc32b171 (qb/config.libs.sh) change -lusb to -lusb-1.0 2015-04-07 22:09:40 +02:00
twinaphex ad6dfcd144 (Libusb) Add libusb to qb/config.libs.sh and qb/config.params.sh 2015-04-07 06:34:49 +02:00
Monroe88 ba68a041b0 Fix XInput not being added to config.mk for msys2 2015-04-05 15:08:26 -05:00
twinaphex 592e5d9f4a Change HAVE_WINXINPUT to HAVE_XINPUT 2015-04-05 20:54:46 +02:00
Higor Eurípedes c28fa5ded0 (qb) Set HAVE_GETADDRINFO=yes on windows 2015-03-20 17:41:50 -03:00
vanfanel 9b6d336983 Fixed building with dispmanx only with no OpenGL/GLES. Corrected comment. 2015-03-15 16:20:03 +01:00
vanfanel 2f1e6600d9 Added native Raspebbry Pi Dispmanx API backend 2015-03-13 05:59:52 +01:00
vanfanel 9831f8f1d0 Added sunxi graphics backend. No additional libs or blobs required. 2016-01-10 11:04:32 +00:00
Higor Eurípedes 2107562658 (qb) Do not force netplay=yes when networking is enabled 2015-02-02 16:58:00 -03:00
twinaphex 362ab0e53a Define HAVE_NETPLAY on when HAVE_NETWORKING is enabled in qb/config.libs.sh 2015-01-28 09:00:53 +01:00
Higor Eurípedes 38fb0beaae (qb) Better configure messages 2015-01-27 20:50:55 -03:00
Higor Eurípedes 591cb56e6d (qb) Rename NETWORK to NETWORKING 2015-01-27 20:49:43 -03:00
Higor Eurípedes 1399fd9901 (qb) Separate socket library availability from netplay support 2015-01-27 20:29:47 -03:00
Higor Eurípedes 7a9cd53f15 (qb) Add header argument to check_lib 2014-10-28 22:30:29 -02:00
Higor Eurípedes 15158fce2e (qb) Fix exynos checks 2014-10-26 12:56:15 -03:00
Higor Eurípedes 8f455ee921 (qb) Fix for non Win32 builds 2014-10-22 14:18:56 -03:00
Jean-André Santoni 7018d58731 (XMB) Initial commit 2014-10-09 01:21:22 +02:00
Mike Robinson f3a0e58bd9 Add HAVE_PARPORT build option 2014-10-04 22:04:38 +01:00
Higor Eurípedes 9d69f81db9 (qb) Fix bashism in Cg checks 2014-09-16 19:11:02 -03:00
Higor Eurípedes b66cf0967b (qb) Always set CG_LIBS 2014-09-16 18:00:12 -03:00
Higor Eurípedes 399718fd18 Use -lcg on Win32-targeted builds 2014-09-16 17:45:45 -03:00
Jean-André Santoni 5e433abf8b (GLUI) GL based RGUI display driver clone 2014-09-11 04:07:07 +02:00
Mike Robinson 193801b35e Add --enable-preserve_dylib configure option
Valgrind requires shared objects to be kept open for meaningful
debug information. Add configure option to disable dlclose() in
dylib_close() for Valgrind support.
2014-09-02 21:12:24 +01:00
Timo Strunk 3d400468f9 Made 7zip compile and link with all tools requiring file access, also added HAVE_7ZIP var in qb params 2014-09-02 16:39:38 +02:00
Higor Eurípedes 2703fa7f66 Allow unix-like build under mingw 2014-08-29 16:40:25 -03:00
Higor Eurípedes fa11c2f2d6 (Haiku) Fix Build 2014-08-28 13:41:12 -03:00
Jean-André Santoni 991fe4a047 Fix vivante_fbdev build 2014-08-12 19:55:28 +02:00
twinaphex 08631a6a93 Fixup qb/config.libs.sh - change == to = for comparisons 2014-08-11 18:04:18 +02:00
twinaphex 67b3092b2d Fix qb/config.libs.sh and qb/config.params.sh so that SDL2 gets
detected
2014-08-11 06:56:44 +02:00
Higor Eurípedes 1ea504fcfe (SDL2) Added video driver 2014-08-10 13:39:31 -03:00
twinaphex 80a19ff0fd (Wayland) Adding preliminary work by maister - input hookup still
missing
2014-08-09 21:35:27 +02:00
Jean-André Santoni 3167709503 Add Vivante context driver 2014-07-27 22:19:11 +02:00
Themaister dbe3da76f6 Remove -lvchhostif. Breaks Pi builds. 2014-07-24 21:24:34 +02:00
Tobias Jakobi 9a38d77655 Remove the lima video driver
The driver is now superseded by the exynos video driver. Also limare
only works up to mali kernelspace driver version r3p2, which makes
the driver nonfunctional with the latest r4p0.
2014-07-17 14:55:56 +02:00
Tobias Jakobi 7efa9def07 Add exynos video driver
Documentation is provided in README-exynos.
2014-07-17 14:41:44 +02:00
Themaister d50b395ad8 Fix --disable-udev. 2014-06-24 20:16:31 +02:00
Themaister aa0950e65f Indent fix. 2014-06-17 21:01:19 +02:00
Richard Howell ba5c8edddf add a missing raspberry pi lib to the config 2014-06-17 20:37:03 +02:00
Themaister 88f10ae555 Check for libudev as plain lib as well. 2014-06-05 14:21:17 +02:00
Themaister 736c4147e9 Add initial Mali FBdev support. 2014-06-05 12:28:17 +02:00
Themaister 731e44ba60 Kill SDL_image with fire. 2014-05-28 21:19:38 +02:00
Hans-Kristian Arntzen b5a70f520e Check for xkbcommon 0.3.2 2014-05-22 16:53:33 +02:00
Jean-André Santoni 95e4cc6a97 Fix configure vars for lakka 2014-05-09 13:40:34 +02:00
Themaister 227a16f63c Check presence of avutil/channel_layout.h.
Apparently needed after all.
2014-04-01 00:09:18 +02:00
Tobias Jakobi 7cdb08b804 Add lima video driver
Documentation is provided in README-lima.
2014-01-26 04:43:00 +01:00
Themaister 528bb2687d Fix Rasperry Pi build. 2014-01-26 11:43:26 +00:00
Themaister 02f2dec2cd Make GLES3 optional in ./configure.
Is off by default.
2013-12-13 21:37:22 +01:00
Themaister 6a96909a2e Allow custom cflags/libs for GLES.
Useful for some embedded platforms.
2013-12-13 17:55:30 +01:00
Themaister f139e070fc Add strcasestr check to quickbuild. 2013-12-10 20:12:15 +01:00
Themaister 3a8608fb70 Handle key_event in udev.
Use libxkbcommon for this.
2013-12-08 01:09:00 +01:00
Tobias Jakobi ae3f005f54 video_omap: add to build system 2013-12-03 22:40:49 +01:00
twinaphex dc5cd2ccc7 (qb) add check_pkgconf for Video4Linux2 2013-11-10 16:05:54 +01:00
Themaister 299ef54a54 Add mmap() backend to zlib extract. 2013-10-14 18:10:17 +02:00
Themaister e5d0b09df5 Start adding Linux Udev joypad input. 2013-09-25 19:32:18 +02:00
twinaphex 1e83c59823 (ARM NEON) Define -marm for --enable-neon 2013-08-11 01:03:53 +02:00
twinaphex 5e508c7a34 Place HAVE_NEON before HAVE_FLOATHARD and HAVE_FLOATSOFT 2013-08-11 00:58:48 +02:00
twinaphex 1c17baa4c1 (config) Fix hard float/soft float's CXXFLAGS/ASFLAGS 2013-08-11 00:58:29 +02:00
twinaphex eac16d0d7f Add config params for hard float/soft float 2013-08-11 00:58:29 +02:00
Themaister e44249b73f Use glsym symbol loader instead of ugly poking. 2013-08-11 00:54:27 +02:00
Themaister c54af19076 Purge SDL/GL context.
Conflicts:
	gfx/context/sdl_ctx.c
2013-07-18 01:48:23 +02:00
twinaphex 397926bcf8 (ARM NEON) Define -marm for --enable-neon 2013-07-13 15:03:35 +02:00
twinaphex f2314e918b Place HAVE_NEON before HAVE_FLOATHARD and HAVE_FLOATSOFT 2013-07-13 04:07:38 +02:00
twinaphex 553f14e902 (config) Fix hard float/soft float's CXXFLAGS/ASFLAGS 2013-07-13 03:52:22 +02:00
twinaphex 8c9de74638 Add config params for hard float/soft float 2013-07-13 03:48:02 +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
Themaister 5a18424744 Don't check for FBO when compiling GLES2.
Adds FBO support to ARM/Linux which used quickbuild.
2013-05-18 14:29:42 +01:00
Themaister b2e8efef9f Add SSE/SSE2 enable options.
Add --enable-sse, similar to --enable-neon.
Only really useful for x86 as x86_64 always has SSE2.
2013-05-04 15:08:04 +02:00
Nea Gix a01defd01b Configure option for NEON optimizations.
Disabled by default, no auto logic.
2013-05-04 14:18:35 +02:00
Themaister eaecc6d6f5 Remove some references to configurability of SINC. 2013-04-07 10:33:46 +02:00
Themaister 20001fd578 Add -Wno-unused-variable if present. 2013-03-16 12:24:53 +01:00
Themaister 15099f8e4f RGUI builds on PC. 2013-03-16 09:55:08 +01:00
Themaister 73e98ca78a Fix build on updated Pi-firmware. 2013-01-26 11:53:30 +00:00
Themaister 291a0360a2 Add BGR24 saving mode. 2013-01-19 02:23:16 +01:00
Themaister f53d404024 Add RPNG, optional PNG loader. 2013-01-12 14:06:05 +01:00
Themaister 276b588217 Add custom xml parser. Use as fallback. 2013-01-02 15:18:42 +01:00
Themaister 9b58fac354 Always compile in config file support. 2012-12-23 13:55:59 +01:00
Themaister 359d5fa997 Cleanups and build fixes. 2012-12-22 23:52:05 +01:00
sparklewind ee242b31c7 Update qb/config.libs.sh 2012-12-22 20:06:20 +01:00
sparklewind 6e427b3e9d Update qb/config.libs.sh 2012-12-22 19:51:31 +01:00
sparklewind d032764e6b Update qb/config.libs.sh 2012-12-22 17:16:35 +01:00
sparklewind 8bcd7f1972 Update qb/config.libs.sh 2012-12-22 03:27:50 +01:00
Themaister 958bc9beb9 Don't force xml dep for GLES as it's not needed. 2012-12-13 10:33:43 +01:00