mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-03 07:12:28 +00:00
Clarify static vs. import library on Windows (fixes #225)
This commit is contained in:
parent
8ca46d1ff0
commit
e37ce85190
@ -1,3 +1,11 @@
|
|||||||
|
2018-08-14 Jay Berkenbilt <ejb@ql.org>
|
||||||
|
|
||||||
|
* For the mingw builds, change the name of the DLL import library
|
||||||
|
from libqpdf.a to libqpdf.dll.a to avoid confusing it with a
|
||||||
|
static library. This potentially clears the way for supporting a
|
||||||
|
static library in the future, though presently, the qpdf Windows
|
||||||
|
build only builds the DLL and executables. Fixes #225.
|
||||||
|
|
||||||
2018-08-13 Jay Berkenbilt <ejb@ql.org>
|
2018-08-13 Jay Berkenbilt <ejb@ql.org>
|
||||||
|
|
||||||
* Add new class QPDFSystemError, derived from std::runtime_error,
|
* Add new class QPDFSystemError, derived from std::runtime_error,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
DEST=$(INSTALL_DIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
|
DEST=$(INSTALL_DIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
|
||||||
|
IMPORT_LIB_NAME := $(call libname,qpdf)
|
||||||
installwin: all
|
installwin: all
|
||||||
$(RM) -r $(INSTALL_DIR)
|
$(RM) -r $(INSTALL_DIR)
|
||||||
mkdir $(INSTALL_DIR)
|
mkdir $(INSTALL_DIR)
|
||||||
@ -8,7 +9,7 @@ installwin: all
|
|||||||
mkdir $(DEST)/include
|
mkdir $(DEST)/include
|
||||||
mkdir $(DEST)/include/qpdf
|
mkdir $(DEST)/include/qpdf
|
||||||
mkdir $(DEST)/doc
|
mkdir $(DEST)/doc
|
||||||
cp libqpdf/$(OUTPUT_DIR)/$(STATIC_LIB_NAME) $(DEST)/lib
|
cp libqpdf/$(OUTPUT_DIR)/$(IMPORT_LIB_NAME) $(DEST)/lib
|
||||||
cp libqpdf/$(OUTPUT_DIR)/qpdf*.dll $(DEST)/bin
|
cp libqpdf/$(OUTPUT_DIR)/qpdf*.dll $(DEST)/bin
|
||||||
perl copy_dlls libqpdf/$(OUTPUT_DIR)/qpdf*.dll $(DEST)/bin $(OBJDUMP) $(WINDOWS_WORDSIZE)
|
perl copy_dlls libqpdf/$(OUTPUT_DIR)/qpdf*.dll $(DEST)/bin $(OBJDUMP) $(WINDOWS_WORDSIZE)
|
||||||
cp qpdf/$(OUTPUT_DIR)/qpdf.exe $(DEST)/bin
|
cp qpdf/$(OUTPUT_DIR)/qpdf.exe $(DEST)/bin
|
||||||
|
@ -5,7 +5,7 @@ LOBJ=o
|
|||||||
|
|
||||||
# Usage: $(call libname,base)
|
# Usage: $(call libname,base)
|
||||||
define libname
|
define libname
|
||||||
lib$(1).a
|
lib$(1).dll.a
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# Usage: $(call binname,base)
|
# Usage: $(call binname,base)
|
||||||
@ -62,8 +62,8 @@ endef
|
|||||||
# 1 2 3 4 5 6 7
|
# 1 2 3 4 5 6 7
|
||||||
# Usage: $(call makelib,objs,library,ldflags,libs,current,revision,age)
|
# Usage: $(call makelib,objs,library,ldflags,libs,current,revision,age)
|
||||||
define makelib
|
define makelib
|
||||||
$(DLLTOOL) -l $(2) -D $$(basename `echo $(2) | sed -e 's,/lib\(.*\).a,/\1,'`$(shell expr $(5) - $(7)).dll) $(1); \
|
$(DLLTOOL) -l $(2) -D $$(basename `echo $(2) | sed -e 's,/lib\(.*\).dll.a,/\1,'`$(shell expr $(5) - $(7)).dll) $(1); \
|
||||||
$(CXX) -shared -o `echo $(2) | sed -e 's,/lib\(.*\).a,/\1,'`$(shell expr $(5) - $(7)).dll \
|
$(CXX) -shared -o `echo $(2) | sed -e 's,/lib\(.*\).dll.a,/\1,'`$(shell expr $(5) - $(7)).dll \
|
||||||
$(1) $(3) $(4)
|
$(1) $(3) $(4)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -76,7 +76,6 @@ endef
|
|||||||
# Install target
|
# Install target
|
||||||
|
|
||||||
INSTALL_DIR = install-mingw$(WINDOWS_WORDSIZE)
|
INSTALL_DIR = install-mingw$(WINDOWS_WORDSIZE)
|
||||||
STATIC_LIB_NAME = libqpdf.a
|
|
||||||
include make/installwin.mk
|
include make/installwin.mk
|
||||||
install: installwin
|
install: installwin
|
||||||
$(STRIP) $(DEST)/bin/*.exe
|
$(STRIP) $(DEST)/bin/*.exe
|
||||||
|
@ -92,6 +92,5 @@ endef
|
|||||||
# Install target
|
# Install target
|
||||||
|
|
||||||
INSTALL_DIR = install-msvc$(WINDOWS_WORDSIZE)
|
INSTALL_DIR = install-msvc$(WINDOWS_WORDSIZE)
|
||||||
STATIC_LIB_NAME = qpdf.lib
|
|
||||||
include make/installwin.mk
|
include make/installwin.mk
|
||||||
install: installwin
|
install: installwin
|
||||||
|
Loading…
Reference in New Issue
Block a user