From b5e3d6b280890e598d9a6160c534fd167bea7d36 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Wed, 12 Jun 2013 19:20:55 -0700 Subject: [PATCH] Added logic to suggest libSDL might help with simulators what can use it when it isn't available. --- makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/makefile b/makefile index de222b42..f8b4304c 100644 --- a/makefile +++ b/makefile @@ -320,6 +320,16 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin) $(info using libSDL: $(call find_lib,SDL) $(call find_include,SDL/SDL)) endif endif + ifneq (,$(VIDEO_USEFUL)) + ifeq (,$(findstring HAVE_LIBSDL,$(OS_CCDEFS))) + $(info *** Warning ***) + $(info *** Warning *** The simulator$(BUILD_MULTIPLE) you are building could provide more) + $(info *** Warning *** functionality if video support were available on your system.) + $(info *** Warning *** Install the development components of libSDL and rebuild) + $(info *** Warning *** your simulator to enable this extra functionality.) + $(info *** Warning ***) + endif + endif ifneq (,$(NETWORK_USEFUL)) ifneq (,$(call find_include,pcap)) ifneq (,$(call find_lib,$(PCAPLIB))) @@ -511,6 +521,7 @@ else ifeq (libSDL,$(shell if exist ..\windows-build\libSDL\SDL-1.2.15\include\SDL.h echo libSDL)) OS_CCDEFS += -DHAVE_LIBSDL -I..\windows-build\libSDL\SDL-1.2.15\include OS_LDFLAGS += -lSDL -lSDLmain -L..\windows-build\libSDL\SDL-1.2.15\lib + VIDEO_FEATURES = - video capabilities provided by libSDL (Simple Directmedia Layer) else $(info ***********************************************************************) $(info ***********************************************************************) @@ -613,6 +624,9 @@ ifneq (clean,$(MAKECMDGOALS)) ifneq (,$(NETWORK_FEATURES)) $(info *** $(NETWORK_FEATURES).) endif + ifneq (,$(VIDEO_FEATURES)) + $(info *** $(VIDEO_FEATURES).) + endif ifneq (,$(GIT_COMMIT_ID)) $(info ***) $(info *** git commit id is $(GIT_COMMIT_ID).)