From c627375b106932ca8303552ba9aa5d3409fa8e41 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Tue, 28 Jan 2020 07:49:10 -0500 Subject: [PATCH] build: Include libtdl and libusb in the windows release zip file (Still need to bundle a copy of the LGPL-2.1 license and some sort of README.LIB) Now on my Win7 VM, the backend doesn't seem to find anything. Don't know why, but I will need to try it on a non-VM system first. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index fe9d647..9a9ab3a 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ # Windows stuff needs to end in .exe ifneq (,$(findstring mingw,$(CC))) +MINGW_LIBS=/usr/x86_64-w64-mingw32/sys-root/mingw/bin EXEC_SUFFIX=.exe LIB_SUFFIX=dll else @@ -163,6 +164,7 @@ ifeq (,$(findstring mingw,$(CC))) tar -czvf selphy_print-src$(REVISION).tar.gz selphy_print$(REVISION) else cp -a $(EXEC_NAME) $(LIBRARIES) selphy_print$(REVISION) + cp -a $(MINGW_LIBS)/libltdl*.dll $(MINGW_LIBS)/libusb*.dll selphy_print$(REVISION) $(MKDIR) -p selphy_print$(REVISION)/$(BACKEND_DATA_DIR) cp -a hiti_data lib70x/data/* selphy_print$(REVISION)/$(BACKEND_DATA_DIR) cp -a lib70x/README selphy_print$(REVISION)/$(BACKEND_DATA_DIR)/README-lib70x