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.
 
 
 
 
 
 

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