mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-27 11:17:52 +01:00
Also use system synctex in tests if possible
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
5a858846f7
commit
a9d3d390ad
1 changed files with 22 additions and 1 deletions
|
@ -8,7 +8,7 @@ PROJECT = tests
|
|||
SOURCE = tests.c $(wildcard test_*.c)
|
||||
OBJECTS = ${SOURCE:.c=.o}
|
||||
|
||||
ZOSOURCE = $(filter-out ../main.c,$(wildcard ../*.c) $(wildcard ../synctex/*.c))
|
||||
ZOSOURCE = $(filter-out ../main.c,$(wildcard ../*.c))
|
||||
|
||||
ifneq (${WITH_SQLITE},0)
|
||||
INCS += $(SQLITE_INC)
|
||||
|
@ -27,6 +27,27 @@ LIBS += $(MAGIC_LIB)
|
|||
CPPFLAGS += -DWITH_MAGIC
|
||||
endif
|
||||
|
||||
ifneq ($(WITH_SYSTEM_SYNCTEX),0)
|
||||
INCS += $(SYNCTEX_INC)
|
||||
LIBS += $(SYNCTEX_LIB)
|
||||
else
|
||||
INCS += $(ZLIB_INC)
|
||||
LIBS += $(ZLIB_LIB)
|
||||
ZSOURCE += $(wildcard ../synctex/*.c)
|
||||
CPPFLAGS += -I../synctex
|
||||
|
||||
ifeq (,$(findstring -DSYNCTEX_VERBOSE=0,${CPPFLAGS}))
|
||||
CPPFLAGS += -DSYNCTEX_VERBOSE=0
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq (,$(findstring -Isynctex,${CPPFLAGS}))
|
||||
CPPFLAGS += -Isynctex
|
||||
endif
|
||||
ifeq (,$(findstring -DSYNCTEX_VERBOSE=0,${CPPFLAGS}))
|
||||
CPPFLAGS += -DSYNCTEX_VERBOSE=0
|
||||
endif
|
||||
|
||||
ZOBJECTS = ${ZSOURCE:.c=.o}
|
||||
|
||||
all: ${PROJECT}
|
||||
|
|
Loading…
Reference in a new issue