You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

120 lines
2.1 KiB

  1. # $Id$
  2. EXTRA_DIST = pipi_types.h.in pipi.pc.in
  3. DISTCLEANFILES = pipi.pc
  4. AM_CPPFLAGS = -I$(top_srcdir)
  5. pkgconfig_DATA = pipi.pc
  6. pkgconfigdir = $(libdir)/pkgconfig
  7. include_HEADERS = pipi.h pipi_types.h
  8. # The main library
  9. lib_LTLIBRARIES = libpipi.la
  10. libpipi_la_SOURCES = \
  11. pipi.c \
  12. pipi.h \
  13. pipi_types.h \
  14. pipi_internals.h \
  15. pipi_stubs.h \
  16. pipi_template.h \
  17. context.c \
  18. pixels.c \
  19. codec.c \
  20. stock.c \
  21. colorstring.c \
  22. resize.c \
  23. dither.c \
  24. measure.c \
  25. accessors.c \
  26. $(codec_sources) \
  27. $(paint_sources) \
  28. $(render_sources) \
  29. $(combine_sources) \
  30. $(filter_sources) \
  31. $(quantize_sources) \
  32. $(dither_sources) \
  33. $(histogram_sources) \
  34. $(NULL)
  35. libpipi_la_CFLAGS = $(codec_cflags)
  36. libpipi_la_LDFLAGS = $(codec_libs) \
  37. -no-undefined -version-number @LT_VERSION@
  38. # Submodules
  39. codec_cflags =
  40. codec_libs =
  41. codec_sources = \
  42. codec/oric.c
  43. paint_sources = \
  44. paint/floodfill.c \
  45. paint/line.c \
  46. paint/bezier.c \
  47. paint/tile.c
  48. render_sources = \
  49. render/noise.c \
  50. render/screen.c
  51. combine_sources = \
  52. combine/rgb.c \
  53. combine/mean.c \
  54. combine/minmax.c \
  55. combine/subadd.c \
  56. combine/mulscreen.c
  57. filter_sources = \
  58. filter/autocontrast.c \
  59. filter/blur.c \
  60. filter/convolution.c \
  61. filter/color.c \
  62. filter/transform.c \
  63. filter/median.c \
  64. filter/dilate.c
  65. quantize_sources = \
  66. quantize/reduce.c
  67. dither_sources = \
  68. dither/ediff.c \
  69. dither/ordered.c \
  70. dither/ostromoukhov.c \
  71. dither/dbs.c \
  72. dither/random.c
  73. histogram_sources = \
  74. histogram/histogram.c
  75. # Conditional sources
  76. if USE_SDL
  77. codec_cflags += `sdl-config --cflags`
  78. codec_libs += `sdl-config --libs` -lSDL_image
  79. codec_sources += codec/sdl.c
  80. endif
  81. if USE_IMLIB2
  82. codec_cflags += @IMLIB2_CFLAGS@
  83. codec_libs += @IMLIB2_LIBS@
  84. codec_sources += codec/imlib.c
  85. endif
  86. if USE_OPENCV
  87. codec_cflags += @OPENCV_CFLAGS@
  88. codec_libs += @OPENCV_LIBS@
  89. codec_sources += codec/opencv.c
  90. endif
  91. if USE_GDI
  92. codec_libs += -lgdi32
  93. codec_sources += codec/gdi.c
  94. endif
  95. if USE_COCOA
  96. codec_objcflags = -I"/Developer//SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QuartzCore.framework/Versions/A/Headers/"
  97. codec_libs += -framework Cocoa -framework IOKit -framework CoreFoundation -framework QuartzCore
  98. codec_sources += codec/coreimage.m
  99. endif