Add unit test to prevent new dependencies from lib/framework to src/ from being added undetected.
parent
6c90f4a38e
commit
87e5e9074c
|
@ -9,10 +9,13 @@ qslint_SOURCES = qslint.cpp lint.cpp
|
|||
qslint_LDADD = $(PHYSFS_LIBS) $(QT4_LIBS)
|
||||
endif
|
||||
|
||||
check_PROGRAMS = maptest modeltest qtscripttest
|
||||
check_PROGRAMS = maptest modeltest qtscripttest framework_linktest
|
||||
qtscripttest_SOURCES = qtscripttest.cpp lint.cpp
|
||||
qtscripttest_LDADD = $(PHYSFS_LIBS) $(QT4_LIBS)
|
||||
|
||||
framework_linktest_SOURCES = framework_linktest.cpp
|
||||
framework_linktest_LDADD = $(PHYSFS_LIBS) $(LIBCRYPTO_LIBS) $(top_builddir)/lib/framework/libframework.a
|
||||
|
||||
modeltest_SOURCES = modeltest.c
|
||||
|
||||
maptest_SOURCES = ../tools/map/mapload.cpp maptest.cpp
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
#include "lib/framework/wzglobal.h"
|
||||
#include "lib/framework/types.h"
|
||||
#include "lib/framework/frame.h"
|
||||
|
||||
// --- dummy rendering library implementation ----
|
||||
|
||||
void wzToggleFullscreen()
|
||||
{
|
||||
}
|
||||
|
||||
bool wzIsFullscreen()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void wzFatalDialog(char const*)
|
||||
{
|
||||
}
|
||||
|
||||
int wzGetTicks()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
void inputInitialise()
|
||||
{
|
||||
}
|
||||
|
||||
// --- end linking hacks ---
|
||||
|
||||
int main(void)
|
||||
{
|
||||
frameInitialise();
|
||||
frameUpdate();
|
||||
frameShutDown();
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue