File tree 2 files changed +23
-2
lines changed
2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 4
4
5
5
TOOLS-Win32: "x:/MingW/mingw32/bin/"
6
6
TOOLS-Win64: "x:/MingW/mingw64/bin/"
7
+
8
+ ;@@ If you add or remove some of these defines bellow, you should `make clean`
9
+ ;@@ to make sure that all affected files will be recompiled!
10
+ Defines: [
11
+ USE_BMP_CODEC
12
+ USE_PNG_CODEC
13
+ USE_GIF_CODEC
14
+ USE_JPG_CODEC
15
+ ]
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ path-host: %../os/
26
26
path-make: %../../make/
27
27
path-incl: %../../src/include/
28
28
29
+ settings: attempt [load path-make/make-settings.r ]
30
+
29
31
;******************************************************************************
30
32
31
33
; (Warning: format is a bit sensitive to extra spacing. E.g. see macro+ func)
81
83
RAPI_FLAGS=
82
84
HOST_FLAGS= -DREB_EXE
83
85
RLIB_FLAGS=
86
+ USE_FLAGS=
84
87
85
88
# Flags for core and for host:
86
- RFLAGS= -c -D$(TO_OS) -DREB_API $(RAPI_FLAGS) $I
87
- HFLAGS= -c -D$(TO_OS) -DREB_CORE $(HOST_FLAGS) $I
89
+ RFLAGS= -c -D$(TO_OS) -DREB_API $(RAPI_FLAGS) $(USE_FLAGS) $ I
90
+ HFLAGS= -c -D$(TO_OS) -DREB_CORE $(HOST_FLAGS) $(USE_FLAGS) $ I
88
91
CLIB=
89
92
90
93
# REBOL is needed to build various include files:
@@ -412,6 +415,15 @@ unless flag? -SP [ ; Use standard paths:
412
415
macro+ UP ".."
413
416
macro+ CD "./"
414
417
]
418
+
419
+ if all [settings block? settings/defines ][
420
+ flags: copy ""
421
+ foreach flag settings/defines [
422
+ append flags join " -D" flag
423
+ ]
424
+ macro+ USE_FLAGS flags
425
+ ]
426
+
415
427
;Oldes: Why there was the next line?
416
428
;if os-plat/2 = 3 [macro+ REBOL ">NUL:"] ; Temporary workaround for R3 on Win7.
417
429
either flag? EXE [
You can’t perform that action at this time.
0 commit comments