您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

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