Skip to content

Commit 90f7934

Browse files
committed
attempt to fix Ubuntu build cache fail: wx-config wrongly references the source/build instead of the installed product
creating a cludgy wx-config-install substitute also USE_LIBSDL=OFF
1 parent 0eddc17 commit 90f7934

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

makefile.common

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ else
7878
DLL_SUFFIX ?= .so
7979
WXL_LIBDIR ?= .
8080
# wx-config
81-
WXL_CONFIG ?= $(WXL_DIR)/$(WXL_CMAKEDIR)/wx-config
81+
WXL_CONFIG ?= $(WXL_DIR)/$(WXL_CMAKEDIR)/wx-config-install
8282
endif
8383

8484
ifneq ("$(WXL_CONFIG)","")

makefile.wx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ WXCONF ?= \
2929
-DwxUSE_LIBTIFF=OFF \
3030
-DwxUSE_NANOSVG=OFF \
3131
-DwxUSE_LIBLZMA=OFF \
32-
-DwxUSE_WXHTML_HELP=OFF
32+
-DwxUSE_WXHTML_HELP=OFF \
33+
-DwxUSE_LIBSDL=OFF
3334

3435
# WXCONF_EXTRA can be be used to provide extra configuration
3536

@@ -61,8 +62,17 @@ submodules:
6162
wxlib: submodules
6263
mkdir -p $(WXOUT)/$(WXCMAKE)
6364
(cd $(WXOUT)/$(WXCMAKE) && cmake $(WXREL) $(WXCONF) $(WXCONF_EXTRA) $(WXBUILD_TYPE))
64-
(cd $(WXOUT)/$(WXCMAKE) && cmake --build .)
65+
(cd $(WXOUT)/$(WXCMAKE) && && cmake --build .)
6566
(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.
6676

6777
clean:
6878
rm -f -r $(WXOUT)/$(WXCMAKE)

wxlib.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
@set WXCONF=%WXCONF% -DwxUSE_NANOSVG=OFF
3838
@set WXCONF=%WXCONF% -DwxUSE_LIBLZMA=OFF
3939
@set WXCONF=%WXCONF% -DwxUSE_WXHTML_HELP=OFF
40+
@set WXCONF=%WXCONF% -DwxUSE_LIBSDL=OFF
4041
@echo set WXCONF=%WXCONF%
4142

4243
REM ensure wx exists

0 commit comments

Comments
 (0)