File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 78
78
DLL_SUFFIX ?= .so
79
79
WXL_LIBDIR ?= .
80
80
# wx-config
81
- WXL_CONFIG ?= $(WXL_DIR)/$(WXL_CMAKEDIR)/wx-config
81
+ WXL_CONFIG ?= $(WXL_DIR)/$(WXL_CMAKEDIR)/wx-config-install
82
82
endif
83
83
84
84
ifneq ("$(WXL_CONFIG)","")
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ WXCONF ?= \
29
29
-DwxUSE_LIBTIFF=OFF \
30
30
-DwxUSE_NANOSVG=OFF \
31
31
-DwxUSE_LIBLZMA=OFF \
32
- -DwxUSE_WXHTML_HELP=OFF
32
+ -DwxUSE_WXHTML_HELP=OFF \
33
+ -DwxUSE_LIBSDL=OFF
33
34
34
35
# WXCONF_EXTRA can be be used to provide extra configuration
35
36
@@ -61,8 +62,17 @@ submodules:
61
62
wxlib: submodules
62
63
mkdir -p $(WXOUT)/$(WXCMAKE)
63
64
(cd $(WXOUT)/$(WXCMAKE) && cmake $(WXREL) $(WXCONF) $(WXCONF_EXTRA) $(WXBUILD_TYPE))
64
- (cd $(WXOUT)/$(WXCMAKE) && cmake --build .)
65
+ (cd $(WXOUT)/$(WXCMAKE) && && cmake --build .)
65
66
(cd $(WXOUT)/$(WXCMAKE) && cmake --install . --prefix ..)
67
+ (cd $(WXOUT)/$(WXCMAKE) && echo '#!/bin/sh' > wx-config-install)
68
+ (cd $(WXOUT)/$(WXCMAKE) && echo "this_prefix=\"$PWD/..\"" >> wx-config-install)
69
+ (cd $(WXOUT)/$(WXCMAKE) && echo "this_exec_prefix=\"$PWD/..\"" >> wx-config-install)
70
+ (cd $(WXOUT)/$(WXCMAKE) && tail -n 2 wx-config | sed 's/\/lib\/wx\/config\//\/..\/$(WXCMAKE)\/lib\/wx\/config\//g' >> wx-config-install)
71
+ (cd $(WXOUT)/$(WXCMAKE) && chmod +x wx-config-install)
72
+
73
+ # For some strange reason wx-config references the source and output folders of cmake,
74
+ # rather than the products of --install. for this reason I've cobbled together wx-config-install
75
+ # to act as a substitute.
66
76
67
77
clean:
68
78
rm -f -r $(WXOUT)/$(WXCMAKE)
Original file line number Diff line number Diff line change 37
37
@ set WXCONF = %WXCONF% -DwxUSE_NANOSVG=OFF
38
38
@ set WXCONF = %WXCONF% -DwxUSE_LIBLZMA=OFF
39
39
@ set WXCONF = %WXCONF% -DwxUSE_WXHTML_HELP=OFF
40
+ @ set WXCONF = %WXCONF% -DwxUSE_LIBSDL=OFF
40
41
@ echo set WXCONF=%WXCONF%
41
42
42
43
REM ensure wx exists
You can’t perform that action at this time.
0 commit comments