fixes for windoze build
[k8-i-v-a-n.git] / Jamrules.defines
blobf3c2647bd7d21da998dc370d697601464d60d91d
1 #####################################################################
2 # game defines
3 DEFINES += WIZARD ;
6 if $(DEBUG) { DEFINES += DEBUG_BUILD ; }
9 if ! $(GLOBAL_SAVES) {
10   Echo "MSG: using local saves" ;
11   DEFINES += LOCAL_SAVES ;
15 if $(USE_SOUND) {
16   Echo "MSG: sound support enabled" ;
17   LINKLIBS += -lSDL_mixer ;
18   C++LINKLIBS += -lSDL_mixer ;
19 } else {
20   Echo "MSG: sound support disabled; USE_SOUND=1 will enable it" ;
21   DEFINES += DISABLE_SOUND ;
25 if $(HAVE_IMLIB2) {
26   Echo "MSG: imlib2 found" ;
27   lib-config "pkg-config imlib2" ;
28   DEFINES += HAVE_IMLIB2 ;
31 if $(HAVE_LIBPNG) {
32   Echo "MSG: libpng found" ;
33   lib-config "pkg-config libpng" ;
34   DEFINES += HAVE_LIBPNG ;
37 if $(HAVE_IMLIB2) || $(HAVE_LIBPNG) {
38   if $(ENABLE_PNG_SHOTS) {
39     Echo "MSG: savegame screenshots will be in PNG format" ;
40   } else {
41     Echo "MSG: savegame screenshots will be in internal format" ;
42     DEFINES += SGAME_SHOTS_IPU ;
43   }