diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-07-15 17:45:32 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-07-15 17:45:32 -0700 |
commit | b699465ca96070557feb9e69b898ddb0d4dca2dc (patch) | |
tree | 98e53869b3fd91c110dce2149a7225a925e48a2b /src/main.c | |
parent | 27263f8abc0233e09b2383ae8af9ebb888f10960 (diff) |
build: always build the rototiller bin
Now that there's the mem_fb backend, there's no need to disable
producing a rototiller binary in lieu of libdrm and libsdl2.
This commit also rejiggers some of the DEFAULT_VIDEO junk in
main.c to ensure it falls back on "mem" should there be no drm or
sdl2.
For now I'm going to leave the AM_CONDITIONAL junk surrounding
enabling rototiller in configure.ac, the define can just be
ignored for now.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -27,11 +27,22 @@ * another page so we can begin rendering another frame before vsync. With * just two pages we end up twiddling thumbs until the vsync arrives. */ + +#ifndef DEFAULT_VIDEO #ifdef HAVE_SDL #define DEFAULT_VIDEO "sdl" -#else +#endif +#endif + +#ifndef DEFAULT_VIDEO +#ifdef HAVE_DRM #define DEFAULT_VIDEO "drm" #endif +#endif + +#ifndef DEFAULT_VIDEO +#define DEFAULT_VIDEO "mem" +#endif extern til_fb_ops_t drm_fb_ops; extern til_fb_ops_t mem_fb_ops; |