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

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

Move resize.c to an algorithm-specific file so that we can implement
other resizing methods.

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
56paint_sources = \
57        paint/floodfill.c \
58        paint/line.c \
59        paint/bezier.c \
60        paint/tile.c
61
62render_sources = \
63        render/noise.c \
64        render/screen.c
65
66combine_sources = \
67        combine/blit.c \
68        combine/rgb.c \
69        combine/merge.c \
70        combine/minmax.c \
71        combine/subadd.c \
72        combine/mulscreen.c
73
74filter_sources = \
75        filter/autocontrast.c \
76        filter/blur.c \
77        filter/convolution.c \
78        filter/color.c \
79        filter/rotate.c \
80        filter/transform.c \
81        filter/median.c \
82        filter/dilate.c \
83        filter/wave.c
84
85quantize_sources = \
86        quantize/reduce.c
87
88dither_sources = \
89        dither/ediff.c \
90        dither/ordered.c \
91        dither/ostromoukhov.c \
92        dither/dbs.c \
93        dither/random.c
94
95analysis_sources = \
96        analysis/measure.c \
97        analysis/histogram.c
98
99# Conditional sources
100
101if USE_SDL
102codec_cflags += `sdl-config --cflags`
103codec_libs += `sdl-config --libs` -lSDL_image
104codec_sources += codec/sdl.c
105endif
106
107if USE_IMLIB2
108codec_cflags += @IMLIB2_CFLAGS@
109codec_libs += @IMLIB2_LIBS@
110codec_sources += codec/imlib.c
111endif
112
113if USE_OPENCV
114codec_cflags += @OPENCV_CFLAGS@
115codec_libs += @OPENCV_LIBS@
116codec_sources += codec/opencv.c
117endif
118
119if USE_GDI
120codec_libs += -lgdi32
121codec_sources += codec/gdi.c
122endif
123
124if USE_GDIPLUS
125codec_libs += -Wl,--exclude-symbols,$$(printf '\x7f')gdiplus_NULL_THUNK_DATA -lgdiplus
126codec_sources += codec/gdiplus.cpp
127endif
128
129if USE_COCOA
130codec_objcflags = -I"/Developer//SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QuartzCore.framework/Versions/A/Headers/"
131codec_libs += -framework Cocoa -framework IOKit -framework CoreFoundation -framework QuartzCore
132codec_sources += codec/coreimage.m
133endif
134
135if USE_JPEG
136codec_libs += -ljpeg
137codec_sources += codec/jpeg.c
138endif
139
140if USE_FFMPEG
141codec_cflags += $(LIBAVFORMAT_CFLAGS) $(LIBAVCODEC_CFLAGS) $(LIBSWSCALE_CFLAGS)
142codec_libs += $(LIBAVFORMAT_LIBS) $(LIBAVCODEC_LIBS) $(LIBSWSCALE_LIBS)
143endif
144
Note: See TracBrowser for help on using the repository browser.