Disabled real-time visualization by default. SDL2 is no longer a dependency when building with the default flags.

This commit is contained in:
jpekkila
2019-07-04 22:30:26 +03:00
parent ad7a497eef
commit c71711ec36
2 changed files with 20 additions and 6 deletions

View File

@@ -26,6 +26,7 @@
*/
#include "run.h"
#if AC_BUILD_RT_VISUALIZATION
#include <SDL.h> // Note: using local version in src/3rdparty dir
#include <math.h> // ceil
#include <string.h> // memcpy
@@ -421,3 +422,12 @@ run_renderer(void)
return 0;
}
#else // BUILD_RT_VISUALIZATION == 0
#include "core/errchk.h"
int
run_renderer(void)
{
WARNING("Real-time visualization module not built. Set BUILD_RT_VISUALIZATION=ON with cmake.");
return 1;
}
#endif // BUILD_RT_VISUALIZATION