Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. # Copyright © 2012 Intel Corporation
  2. #
  3. # Permission is hereby granted, free of charge, to any person obtaining a
  4. # copy of this software and associated documentation files (the "Software"),
  5. # to deal in the Software without restriction, including without limitation
  6. # the rights to use, copy, modify, merge, publish, distribute, sublicense,
  7. # and/or sell copies of the Software, and to permit persons to whom the
  8. # Software is furnished to do so, subject to the following conditions:
  9. #
  10. # The above copyright notice and this permission notice (including the next
  11. # paragraph) shall be included in all copies or substantial portions of the
  12. # Software.
  13. #
  14. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  15. # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  16. # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  17. # NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  18. # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  19. # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  20. # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  21. # DEALINGS IN THE SOFTWARE.
  22.  
  23. include $(top_srcdir)/src/gallium/Automake.inc
  24.  
  25. AM_CPPFLAGS = \
  26.         $(GALLIUM_CFLAGS) \
  27.         -I$(top_srcdir)/include \
  28.         -I$(top_srcdir)/src/gallium/drivers \
  29.         -I$(top_srcdir)/src/gallium/winsys \
  30.         $(LIBDRM_CFLAGS) \
  31.         $(VISIBILITY_CFLAGS) \
  32.         -DGALLIUM_RBUG \
  33.         -DGALLIUM_TRACE
  34.  
  35. pipedir = $(libdir)/gallium-pipe
  36. pipe_LTLIBRARIES =
  37.  
  38. PIPE_LIBS =
  39.  
  40. if NEED_GALLIUM_VL
  41. PIPE_LIBS += \
  42.         $(top_builddir)/src/gallium/auxiliary/libgalliumvl.la
  43. else
  44. PIPE_LIBS += \
  45.         $(top_builddir)/src/gallium/auxiliary/libgalliumvl_stub.la
  46. endif
  47.  
  48. if NEED_GALLIUM_VL_WINSYS
  49. PIPE_LIBS+= \
  50.         $(top_builddir)/src/gallium/auxiliary/libgalliumvlwinsys.la
  51. endif
  52.  
  53. PIPE_LIBS += \
  54.         $(top_builddir)/src/gallium/auxiliary/libgallium.la \
  55.         $(top_builddir)/src/util/libmesautil.la \
  56.         $(top_builddir)/src/gallium/drivers/rbug/librbug.la \
  57.         $(top_builddir)/src/gallium/drivers/trace/libtrace.la \
  58.         $(GALLIUM_COMMON_LIB_DEPS)
  59.  
  60. AM_LDFLAGS = \
  61.         -module \
  62.         -no-undefined \
  63.         -avoid-version \
  64.         $(GC_SECTIONS) \
  65.         $(LD_NO_UNDEFINED)
  66.  
  67. if HAVE_LD_VERSION_SCRIPT
  68. AM_LDFLAGS += \
  69.         -Wl,--version-script=$(top_srcdir)/src/gallium/targets/pipe-loader/pipe.sym
  70. endif
  71.  
  72. if HAVE_MESA_LLVM
  73. PIPE_LIBS += $(LLVM_LIBS)
  74. AM_LDFLAGS += $(LLVM_LDFLAGS)
  75. endif
  76.  
  77. if HAVE_GALLIUM_I915
  78. pipe_LTLIBRARIES += pipe_i915.la
  79.  
  80. pipe_i915_la_SOURCES = pipe_i915.c
  81. nodist_EXTRA_pipe_i915_la_SOURCES = dummy.cpp
  82. pipe_i915_la_LIBADD = \
  83.         $(PIPE_LIBS) \
  84.         $(top_builddir)/src/gallium/winsys/i915/drm/libi915drm.la \
  85.         $(top_builddir)/src/gallium/drivers/i915/libi915.la \
  86.         $(LIBDRM_LIBS) \
  87.         $(INTEL_LIBS)
  88.  
  89. endif
  90.  
  91. if HAVE_GALLIUM_ILO
  92. pipe_LTLIBRARIES += pipe_i965.la
  93.  
  94. pipe_i965_la_SOURCES = pipe_i965.c
  95. nodist_EXTRA_pipe_i965_la_SOURCES = dummy.cpp
  96. pipe_i965_la_LIBADD = \
  97.         $(PIPE_LIBS) \
  98.         $(top_builddir)/src/gallium/winsys/intel/drm/libintelwinsys.la \
  99.         $(top_builddir)/src/gallium/drivers/ilo/libilo.la \
  100.         $(LIBDRM_LIBS) \
  101.         $(INTEL_LIBS)
  102.  
  103. endif
  104.  
  105. if HAVE_GALLIUM_NOUVEAU
  106. pipe_LTLIBRARIES += pipe_nouveau.la
  107.  
  108. pipe_nouveau_la_SOURCES = pipe_nouveau.c
  109. nodist_EXTRA_pipe_nouveau_la_SOURCES = dummy.cpp
  110. pipe_nouveau_la_LIBADD = \
  111.         $(PIPE_LIBS) \
  112.         $(top_builddir)/src/gallium/winsys/nouveau/drm/libnouveaudrm.la \
  113.         $(top_builddir)/src/gallium/drivers/nouveau/libnouveau.la \
  114.         $(LIBDRM_LIBS) \
  115.         $(NOUVEAU_LIBS)
  116.  
  117. endif
  118.  
  119. if HAVE_GALLIUM_R300
  120. pipe_LTLIBRARIES += pipe_r300.la
  121.  
  122. pipe_r300_la_SOURCES = pipe_r300.c
  123. nodist_EXTRA_pipe_r300_la_SOURCES = dummy.cpp
  124. pipe_r300_la_LIBADD = \
  125.         $(PIPE_LIBS) \
  126.         $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
  127.         $(top_builddir)/src/gallium/drivers/r300/libr300.la \
  128.         $(LIBDRM_LIBS) \
  129.         $(RADEON_LIBS)
  130.  
  131. endif
  132.  
  133. if HAVE_GALLIUM_R600
  134. pipe_LTLIBRARIES += pipe_r600.la
  135.  
  136. pipe_r600_la_SOURCES = pipe_r600.c
  137. nodist_EXTRA_pipe_r600_la_SOURCES = dummy.cpp
  138. pipe_r600_la_LIBADD = \
  139.         $(PIPE_LIBS) \
  140.         $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
  141.         $(top_builddir)/src/gallium/drivers/radeon/libradeon.la \
  142.         $(top_builddir)/src/gallium/drivers/r600/libr600.la \
  143.         $(LIBDRM_LIBS) \
  144.         $(RADEON_LIBS)
  145.  
  146. endif
  147.  
  148. if HAVE_GALLIUM_RADEONSI
  149. pipe_LTLIBRARIES += pipe_radeonsi.la
  150.  
  151. pipe_radeonsi_la_SOURCES = pipe_radeonsi.c
  152. nodist_EXTRA_pipe_radeonsi_la_SOURCES = dummy.cpp
  153. pipe_radeonsi_la_LIBADD = \
  154.         $(PIPE_LIBS) \
  155.         $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
  156.         $(top_builddir)/src/gallium/drivers/radeon/libradeon.la \
  157.         $(top_builddir)/src/gallium/drivers/radeonsi/libradeonsi.la \
  158.         $(LIBDRM_LIBS) \
  159.         $(RADEON_LIBS)
  160.  
  161. endif
  162.  
  163. if HAVE_GALLIUM_FREEDRENO
  164. pipe_LTLIBRARIES += pipe_msm.la
  165.  
  166. pipe_msm_la_SOURCES = pipe_msm.c
  167. nodist_EXTRA_pipe_msm_la_SOURCES = dummy.cpp
  168. pipe_msm_la_LIBADD = \
  169.         $(PIPE_LIBS) \
  170.         $(top_builddir)/src/gallium/winsys/freedreno/drm/libfreedrenodrm.la \
  171.         $(top_builddir)/src/gallium/drivers/freedreno/libfreedreno.la \
  172.         $(LIBDRM_LIBS) \
  173.         $(FREEDRENO_LIBS)
  174.  
  175. endif
  176.  
  177. if HAVE_GALLIUM_SVGA
  178. pipe_LTLIBRARIES += pipe_vmwgfx.la
  179.  
  180. pipe_vmwgfx_la_SOURCES = pipe_vmwgfx.c
  181. nodist_EXTRA_pipe_vmwgfx_la_SOURCES = dummy.cpp
  182.  
  183. pipe_vmwgfx_la_LIBADD = \
  184.         $(PIPE_LIBS) \
  185.         $(top_builddir)/src/gallium/winsys/svga/drm/libsvgadrm.la \
  186.         $(top_builddir)/src/gallium/drivers/svga/libsvga.la \
  187.         $(LIBDRM_LIBS)
  188.  
  189. endif
  190.  
  191. if HAVE_GALLIUM_SOFTPIPE
  192. AM_CPPFLAGS += -DGALLIUM_SOFTPIPE
  193.  
  194. pipe_LTLIBRARIES += pipe_swrast.la
  195. pipe_swrast_la_SOURCES = pipe_swrast.c
  196. nodist_EXTRA_pipe_swrast_la_SOURCES = dummy.cpp
  197.  
  198. pipe_swrast_la_LIBADD = \
  199.         $(PIPE_LIBS) \
  200.         $(top_builddir)/src/gallium/drivers/softpipe/libsoftpipe.la
  201.  
  202. if HAVE_GALLIUM_LLVMPIPE
  203. AM_CPPFLAGS += -DGALLIUM_LLVMPIPE
  204.  
  205. pipe_swrast_la_LIBADD += \
  206.         $(top_builddir)/src/gallium/drivers/llvmpipe/libllvmpipe.la
  207. endif
  208. endif
  209.  
  210. EXTRA_DIST = pipe.sym
  211.