blob: 2cfe1255e90620cb140ad8774f75acaefeadc53a [file] [log] [blame]
Andrew Geissler87f5cff2022-09-30 13:13:31 -05001From 3d53d02af7c45763eb33f7bbe5f9e389fbcb7e21 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 2 Sep 2022 17:55:48 -0700
4Subject: [PATCH 2/4] Add ImageProcessor only when DISBALE_IMAGEPROCESSOR_BUILD
5 is not set
6
7Upstream-Status: Pending
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 Makefile.am | 6 +++++-
11 1 file changed, 5 insertions(+), 1 deletion(-)
12
13diff --git a/Makefile.am b/Makefile.am
14index 5f75759..73421b1 100644
15--- a/Makefile.am
16+++ b/Makefile.am
17@@ -597,7 +597,11 @@ hpcups_SOURCES = prnt/hpcups/HPCupsFilter.cpp prnt/hpcups/HPCupsFilter.h prnt/hp
18 prnt/hpcups/ImageProcessor.h
19
20 hpcups_CXXFLAGS = $(APDK_ENDIAN_FLAG) $(DBUS_CFLAGS)
21-hpcups_LDADD = -L./prnt/hpcups/ -ljpeg -ldl -lImageProcessor -lcups -lcupsimage -lz $(DBUS_LIBS)
22+hpcups_LDADD = -L./prnt/hpcups/ -ljpeg -ldl -lcups -lcupsimage -lz $(DBUS_LIBS)
23+if !DISBALE_IMAGEPROCESSOR_BUILD
24+hpcups_LDADD += "-lImageProcessor"
25+endif #DISABLE_IMAGEPROCESSOR
26+
27 #else
28 #hpcupsdir = $(cupsfilterdir)
29 #hpcups_PROGRAMS = hpcups
30--
312.37.3
32