source: libpipi/trunk/pipi/Makefile.am @ 4696

Last change on this file since 4696 was 4696, checked in by Sam Hocevar, 9 years ago

Implement bicubic resampling. Lacks some blurring in the pre-pass, maybe.

File size: 2.7 KB
Line 
1# $Id$
2
3EXTRA_DIST = pipi_types.h.in pipi.pc.in
4DISTCLEANFILES = pipi.pc
5
6AM_CPPFLAGS = -I$(top_srcdir)
7
8pkgconfig_DATA = pipi.pc
9pkgconfigdir = $(libdir)/pkgconfig
10
11include_HEADERS = pipi.h pipi_types.h
12
13# The main library
14lib_LTLIBRARIES = libpipi.la
15libpipi_la_SOURCES = \
16        pipi.c \
17        pipi.h \
18        pipi_types.h \
19        pipi_internals.h \
20        pipi_stubs.h \
21        pipi_template.h \
22        context.c \
23        pixels.c \
24        tiles.c \
25        codec.c \
26        stock.c \
27        colorstring.c \
28        crop.c \
29        dither.c \
30        accessors.c \
31        sequence.c \
32        $(codec_sources) \
33        $(resample_sources) \
34        $(paint_sources) \
35        $(render_sources) \
36        $(combine_sources) \
37        $(filter_sources) \
38        $(quantize_sources) \
39        $(dither_sources) \
40        $(analysis_sources) \
41        $(NULL)
42libpipi_la_CFLAGS = $(codec_cflags)
43libpipi_la_LDFLAGS = $(codec_libs) \
44        -no-undefined -version-number @LT_VERSION@ \
45        -lm
46# Submodules
47
48codec_cflags =
49codec_libs =
50codec_sources = \
51        codec/oric.c
52
53resample_sources = \
54        resample/bresenham.c \
55        resample/bicubic.c
56
57paint_sources = \
58        paint/floodfill.c \
59        paint/line.c \
60        paint/bezier.c \
61        paint/tile.c
62
63render_sources = \
64        render/noise.c \
65        render/screen.c
66
67combine_sources = \
68        combine/blit.c \
69        combine/rgb.c \
70        combine/merge.c \
71        combine/minmax.c \
72        combine/subadd.c \
73        combine/mulscreen.c
74
75filter_sources = \
76        filter/autocontrast.c \
77        filter/blur.c \
78        filter/convolution.c \
79        filter/color.c \
80        filter/rotate.c \
81        filter/transform.c \
82        filter/median.c \
83        filter/dilate.c \
84        filter/wave.c
85
86quantize_sources = \
87        quantize/reduce.c
88
89dither_sources = \
90        dither/ediff.c \
91        dither/ordered.c \
92        dither/ostromoukhov.c \
93        dither/dbs.c \
94        dither/random.c
95
96analysis_sources = \
97        analysis/measure.c \
98        analysis/histogram.c
99
100# Conditional sources
101
102if USE_SDL
103codec_cflags += `sdl-config --cflags`
104codec_libs += `sdl-config --libs` -lSDL_image
105codec_sources += codec/sdl.c
106endif
107
108if USE_IMLIB2
109codec_cflags += @IMLIB2_CFLAGS@
110codec_libs += @IMLIB2_LIBS@
111codec_sources += codec/imlib.c
112endif
113
114if USE_OPENCV
115codec_cflags += @OPENCV_CFLAGS@
116codec_libs += @OPENCV_LIBS@
117codec_sources += codec/opencv.c
118endif
119
120if USE_GDI
121codec_libs += -lgdi32
122codec_sources += codec/gdi.c
123endif
124
125if USE_GDIPLUS
126codec_libs += -Wl,--exclude-symbols,$$(printf '\x7f')gdiplus_NULL_THUNK_DATA -lgdiplus
127codec_sources += codec/gdiplus.cpp
128endif
129
130if USE_COCOA
131codec_objcflags = -I"/Developer//SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QuartzCore.framework/Versions/A/Headers/"
132codec_libs += -framework Cocoa -framework IOKit -framework CoreFoundation -framework QuartzCore
133codec_sources += codec/coreimage.m
134endif
135
136if USE_JPEG
137codec_libs += -ljpeg
138codec_sources += codec/jpeg.c
139endif
140
141if USE_FFMPEG
142codec_cflags += $(LIBAVFORMAT_CFLAGS) $(LIBAVCODEC_CFLAGS) $(LIBSWSCALE_CFLAGS)
143codec_libs += $(LIBAVFORMAT_LIBS) $(LIBAVCODEC_LIBS) $(LIBSWSCALE_LIBS)
144endif
145
Note: See TracBrowser for help on using the repository browser.