Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame^] | 1 | From 3d53d02af7c45763eb33f7bbe5f9e389fbcb7e21 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Fri, 2 Sep 2022 17:55:48 -0700 |
| 4 | Subject: [PATCH 2/4] Add ImageProcessor only when DISBALE_IMAGEPROCESSOR_BUILD |
| 5 | is not set |
| 6 | |
| 7 | Upstream-Status: Pending |
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 9 | --- |
| 10 | Makefile.am | 6 +++++- |
| 11 | 1 file changed, 5 insertions(+), 1 deletion(-) |
| 12 | |
| 13 | diff --git a/Makefile.am b/Makefile.am |
| 14 | index 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 | -- |
| 31 | 2.37.3 |
| 32 | |