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

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