Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

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