visualtest/Makefile.in
author Ryan C. Gordon
Mon, 01 Jan 2018 19:16:51 -0500
changeset 11803 454f6dc9cb85
parent 7924 fcb86d323770
permissions -rwxr-xr-x
windows: Remove references to GetVersionExA (thanks, Andrew Pilley!).

"GetVersionExA is deprecated in windows 8.1 and above's SDK, causing a warning
when building against the win10 SDK. Attached patch cleans up the usage for a
warning-free build.

GetVersionExA was being used to test to see if SDL was running on win9x or
winnt. A quick chat with Ryan on twitter suggested that SDL doesn't
officially support win9x anymore, so the call to this can be outright removed.

As an aside, replacing the call to GetVersionExA with VerifyVersionInfoA (the
recommended path) would have been pointless, as VerifyVersionInfoA only
supports VER_PLATFORM_WIN32_NT and doesn't officially support any other value
for dwPlatformId currently. (And it's probable that win9x SDKs didn't have
VerifyVersionInfo* in them anyway.)"

Fixes Bugzilla #4019.
icculus@7924
     1
# Makefile to build the SDL tests
icculus@7924
     2
srcdir  = @srcdir@
icculus@7924
     3
CC      = @CC@
icculus@7924
     4
EXE	= @EXE@
icculus@7924
     5
CFLAGS  = @CFLAGS@ -I../include -I./include
icculus@7924
     6
LIBS	= @LIBS@
icculus@7924
     7
TARGETS = \
icculus@7924
     8
	testharness$(EXE) \
icculus@7924
     9
	testquit$(EXE)
icculus@7924
    10
all: Makefile $(TARGETS)
icculus@7924
    11
Makefile: $(srcdir)/Makefile.in
icculus@7924
    12
	$(SHELL) config.status $@
icculus@7924
    13
testharness$(EXE): $(srcdir)/src/action_configparser.c \
icculus@7924
    14
		   $(srcdir)/src/harness_argparser.c \
icculus@7924
    15
		   $(srcdir)/src/rwhelper.c \
icculus@7924
    16
		   $(srcdir)/src/testharness.c \
icculus@7924
    17
		   $(srcdir)/src/variator_exhaustive.c \
icculus@7924
    18
		   $(srcdir)/src/variators.c \
icculus@7924
    19
		   $(srcdir)/src/screenshot.c \
icculus@7924
    20
		   $(srcdir)/src/harness_argparser.c \
icculus@7924
    21
		   $(srcdir)/src/sut_configparser.c \
icculus@7924
    22
		   $(srcdir)/src/variator_common.c \
icculus@7924
    23
		   $(srcdir)/src/variator_random.c \
icculus@7924
    24
		   $(srcdir)/src/parsehelper.c \
icculus@7924
    25
		   $(srcdir)/src/mischelper.c \
icculus@7924
    26
		   $(srcdir)/src/linux/linux_process.c \
icculus@7924
    27
		   $(srcdir)/src/windows/windows_process.c \
icculus@7924
    28
		   $(srcdir)/src/windows/windows_screenshot.c
icculus@7924
    29
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@7924
    30
testquit$(EXE): $(srcdir)/unittest/testquit.c
icculus@7924
    31
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
icculus@7924
    32
clean:
icculus@7924
    33
	rm -f $(TARGETS)
icculus@7924
    34
distclean: clean
icculus@7924
    35
	rm -f Makefile
icculus@7924
    36
	rm -f config.status config.cache config.log
icculus@7924
    37
	rm -rf $(srcdir)/autom4te*