mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-11-11 21:08:40 +00:00
tests: include SDL_build_config.h when HAVE_BUILD_CONFIG is defined
This commit is contained in:
@@ -121,6 +121,7 @@ macro(add_sdl_test_executable TARGET)
|
|||||||
else()
|
else()
|
||||||
add_executable(${TARGET} ${AST_SOURCES} ${EXTRA_SOURCES})
|
add_executable(${TARGET} ${AST_SOURCES} ${EXTRA_SOURCES})
|
||||||
endif()
|
endif()
|
||||||
|
target_compile_definitions(${TARGET} PRIVATE HAVE_BUILD_CONFIG)
|
||||||
SDL_AddCommonCompilerFlags(${TARGET})
|
SDL_AddCommonCompilerFlags(${TARGET})
|
||||||
target_include_directories(${TARGET} PRIVATE "${SDL3_SOURCE_DIR}/src/video/khronos")
|
target_include_directories(${TARGET} PRIVATE "${SDL3_SOURCE_DIR}/src/video/khronos")
|
||||||
target_link_libraries(${TARGET} PRIVATE SDL3::SDL3_test SDL3::${sdl_name_component})
|
target_link_libraries(${TARGET} PRIVATE SDL3::SDL3_test SDL3::${sdl_name_component})
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Intrinsics test suite
|
* Intrinsics test suite
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef NO_BUILD_CONFIG
|
#ifdef HAVE_BUILD_CONFIG
|
||||||
/* Disable intrinsics that are unsupported by the current compiler */
|
/* Disable intrinsics that are unsupported by the current compiler */
|
||||||
#include "SDL_build_config.h"
|
#include "SDL_build_config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -9,7 +9,9 @@
|
|||||||
#include <SDL3/SDL.h>
|
#include <SDL3/SDL.h>
|
||||||
#include <SDL3/SDL_test.h>
|
#include <SDL3/SDL_test.h>
|
||||||
#include "testautomation_suites.h"
|
#include "testautomation_suites.h"
|
||||||
|
#ifdef HAVE_BUILD_CONFIG
|
||||||
#include "SDL_build_config.h"
|
#include "SDL_build_config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests SDL_InitSubSystem() and SDL_QuitSubSystem()
|
* Tests SDL_InitSubSystem() and SDL_QuitSubSystem()
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#define SDL_DYNAMIC_API 0
|
#define SDL_DYNAMIC_API 0
|
||||||
|
|
||||||
#ifndef NO_BUILD_CONFIG
|
#ifdef HAVE_BUILD_CONFIG
|
||||||
#include "../src/SDL_internal.h"
|
#include "../src/SDL_internal.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user