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