1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-06-26 17:10:38 +00:00

Turns DEPENDENCY_... into variables instead of Consts

This commit is contained in:
Fellippe Heitor 2021-06-03 00:04:02 -03:00
parent 337055b2e5
commit 219840929e

View file

@ -65,22 +65,26 @@ END IF
DIM SHARED Include_GDB_Debugging_Info 'set using "options.bin"
DIM SHARED DEPENDENCY_LAST
CONST DEPENDENCY_LOADFONT = 1: DEPENDENCY_LAST = DEPENDENCY_LAST + 1
CONST DEPENDENCY_AUDIO_CONVERSION = 2: DEPENDENCY_LAST = DEPENDENCY_LAST + 1
CONST DEPENDENCY_AUDIO_DECODE = 3: DEPENDENCY_LAST = DEPENDENCY_LAST + 1
CONST DEPENDENCY_AUDIO_OUT = 4: DEPENDENCY_LAST = DEPENDENCY_LAST + 1
CONST DEPENDENCY_GL = 5: DEPENDENCY_LAST = DEPENDENCY_LAST + 1
CONST DEPENDENCY_IMAGE_CODEC = 6: DEPENDENCY_LAST = DEPENDENCY_LAST + 1
CONST DEPENDENCY_CONSOLE_ONLY = 7: DEPENDENCY_LAST = DEPENDENCY_LAST + 1 '=2 if via -g switch, =1 if via metacommand $CONSOLE:ONLY
CONST DEPENDENCY_SOCKETS = 8: DEPENDENCY_LAST = DEPENDENCY_LAST + 1
CONST DEPENDENCY_PRINTER = 9: DEPENDENCY_LAST = DEPENDENCY_LAST + 1
CONST DEPENDENCY_ICON = 10: DEPENDENCY_LAST = DEPENDENCY_LAST + 1
CONST DEPENDENCY_SCREENIMAGE = 11: DEPENDENCY_LAST = DEPENDENCY_LAST + 1
CONST DEPENDENCY_DEVICEINPUT = 12: DEPENDENCY_LAST = DEPENDENCY_LAST + 1 'removes support for gamepad input if not present
CONST DEPENDENCY_ZLIB = 13: DEPENDENCY_LAST = DEPENDENCY_LAST + 1 'ZLIB library linkage, if desired, for compression/decompression.
DIM SHARED DEPENDENCY_LAST AS LONG
DIM SHARED AS LONG DEPENDENCY_LOADFONT, DEPENDENCY_AUDIO_CONVERSION, DEPENDENCY_AUDIO_DECODE
DIM SHARED AS LONG DEPENDENCY_AUDIO_OUT, DEPENDENCY_GL, DEPENDENCY_IMAGE_CODEC
DIM SHARED AS LONG DEPENDENCY_CONSOLE_ONLY, DEPENDENCY_SOCKETS, DEPENDENCY_PRINTER
DIM SHARED AS LONG DEPENDENCY_ICON, DEPENDENCY_SCREENIMAGE, DEPENDENCY_DEVICEINPUT
DIM SHARED AS LONG DEPENDENCY_ZLIB
DEPENDENCY_LAST = DEPENDENCY_LAST + 1: DEPENDENCY_LOADFONT = DEPENDENCY_LAST
DEPENDENCY_LAST = DEPENDENCY_LAST + 1: DEPENDENCY_AUDIO_CONVERSION = DEPENDENCY_LAST
DEPENDENCY_LAST = DEPENDENCY_LAST + 1: DEPENDENCY_AUDIO_DECODE = DEPENDENCY_LAST
DEPENDENCY_LAST = DEPENDENCY_LAST + 1: DEPENDENCY_AUDIO_OUT = DEPENDENCY_LAST
DEPENDENCY_LAST = DEPENDENCY_LAST + 1: DEPENDENCY_GL = DEPENDENCY_LAST
DEPENDENCY_LAST = DEPENDENCY_LAST + 1: DEPENDENCY_IMAGE_CODEC = DEPENDENCY_LAST
DEPENDENCY_LAST = DEPENDENCY_LAST + 1: DEPENDENCY_CONSOLE_ONLY = DEPENDENCY_LAST '=2 if via -g switch, =1 if via metacommand $CONSOLE:ONLY
DEPENDENCY_LAST = DEPENDENCY_LAST + 1: DEPENDENCY_SOCKETS = DEPENDENCY_LAST
DEPENDENCY_LAST = DEPENDENCY_LAST + 1: DEPENDENCY_PRINTER = DEPENDENCY_LAST
DEPENDENCY_LAST = DEPENDENCY_LAST + 1: DEPENDENCY_ICON = DEPENDENCY_LAST
DEPENDENCY_LAST = DEPENDENCY_LAST + 1: DEPENDENCY_SCREENIMAGE = DEPENDENCY_LAST
DEPENDENCY_LAST = DEPENDENCY_LAST + 1: DEPENDENCY_DEVICEINPUT = DEPENDENCY_LAST 'removes support for gamepad input if not present
DEPENDENCY_LAST = DEPENDENCY_LAST + 1: DEPENDENCY_ZLIB = DEPENDENCY_LAST 'ZLIB library linkage, if desired, for compression/decompression.
DIM SHARED DEPENDENCY(1 TO DEPENDENCY_LAST)
@ -12068,6 +12072,10 @@ ELSE
defines$ = defines$ + defines_header$ + "DEPENDENCY_NO_ICON"
END IF
IF DEPENDENCY(DEPENDENCY_STRINGS_STRING) THEN
defines$ = defines$ + defines_header$ + "DEPENDENCY_STRINGS_STRING"
END IF
IF DEPENDENCY(DEPENDENCY_SCREENIMAGE) THEN
defines$ = defines$ + defines_header$ + "DEPENDENCY_SCREENIMAGE"
ELSE