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

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

Implement pipi_rotate(). Currently nearest-neighbour only, supersample if
you need more precision.

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