diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2021-03-02 15:25:21 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2021-03-20 17:30:37 +0000 |
commit | db7f4bfc013549b22d8c30fbb75fc639bfb35799 (patch) | |
tree | 7ff8f5eb9afa8f90ebdc84d21c9096afae506500 | |
parent | 4f11ff15600c9d6ed8032f671f2e693388d01cc1 (diff) | |
download | ghostpdl-db7f4bfc013549b22d8c30fbb75fc639bfb35799.tar.gz |
MSVC build: Detect and use 'extract' directory if it exists.
This can be overridden by setting EXTRACT_DIR.
-rw-r--r-- | psi/msvc.mak | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/psi/msvc.mak b/psi/msvc.mak index 0891a16d3..1a2e4d3ad 100644 --- a/psi/msvc.mak +++ b/psi/msvc.mak @@ -720,6 +720,14 @@ JBIG2SRCDIR=jbig2dec JPX_LIB=openjpeg !endif +# If $EXTRACT_DIR is unset, and the 'extract' directory exists, +# default it to that. +!if "$(EXTRACT_DIR)" == "" +! if exist("extract") +EXTRACT_DIR=extract +! endif +!endif + # If $EXTRACT_DIR is set, build with Extract library. # !if "$(EXTRACT_DIR)" != "" |