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

Last change on this file since 3627 was 3627, checked in by Sam Hocevar, 11 years ago

Move the whole makemovie logic to libpipi. It's really hackish
for now, but it seems to work.

File size: 2.4 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        resize.c \
29        dither.c \
30        accessors.c \
31        sequence.c \
32        $(codec_sources) \
33        $(paint_sources) \
34        $(render_sources) \
35        $(combine_sources) \
36        $(filter_sources) \
37        $(quantize_sources) \
38        $(dither_sources) \
39        $(analysis_sources) \
40        $(NULL)
41libpipi_la_CFLAGS = $(codec_cflags)
42libpipi_la_LDFLAGS = $(codec_libs) \
43        -no-undefined -version-number @LT_VERSION@ \
44        -lm
45# Submodules
46
47codec_cflags =
48codec_libs =
49codec_sources = \
50        codec/oric.c
51
52paint_sources = \
53        paint/floodfill.c \
54        paint/line.c \
55        paint/bezier.c \
56        paint/tile.c
57
58render_sources = \
59        render/noise.c \
60        render/screen.c
61
62combine_sources = \
63        combine/blit.c \
64        combine/rgb.c \
65        combine/merge.c \
66        combine/minmax.c \
67        combine/subadd.c \
68        combine/mulscreen.c
69
70filter_sources = \
71        filter/autocontrast.c \
72        filter/blur.c \
73        filter/convolution.c \
74        filter/color.c \
75        filter/rotate.c \
76        filter/transform.c \
77        filter/median.c \
78        filter/dilate.c \
79        filter/wave.c
80
81quantize_sources = \
82        quantize/reduce.c
83
84dither_sources = \
85        dither/ediff.c \
86        dither/ordered.c \
87        dither/ostromoukhov.c \
88        dither/dbs.c \
89        dither/random.c
90
91analysis_sources = \
92        analysis/measure.c \
93        analysis/histogram.c
94
95# Conditional sources
96
97if USE_SDL
98codec_cflags += `sdl-config --cflags`
99codec_libs += `sdl-config --libs` -lSDL_image
100codec_sources += codec/sdl.c
101endif
102
103if USE_IMLIB2
104codec_cflags += @IMLIB2_CFLAGS@
105codec_libs += @IMLIB2_LIBS@
106codec_sources += codec/imlib.c
107endif
108
109if USE_OPENCV
110codec_cflags += @OPENCV_CFLAGS@
111codec_libs += @OPENCV_LIBS@
112codec_sources += codec/opencv.c
113endif
114
115if USE_GDI
116codec_libs += -lgdi32
117codec_sources += codec/gdi.c
118endif
119
120if USE_GDIPLUS
121codec_libs += -Wl,--exclude-symbols,$$(printf '\x7f')gdiplus_NULL_THUNK_DATA -lgdiplus
122codec_sources += codec/gdiplus.cpp
123endif
124
125if USE_COCOA
126codec_objcflags = -I"/Developer//SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QuartzCore.framework/Versions/A/Headers/"
127codec_libs += -framework Cocoa -framework IOKit -framework CoreFoundation -framework QuartzCore
128codec_sources += codec/coreimage.m
129endif
130
131if USE_JPEG
132codec_libs += -ljpeg
133codec_sources += codec/jpeg.c
134endif
135
Note: See TracBrowser for help on using the repository browser.