• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1include $(top_srcdir)/src/gallium/Automake.inc
2
3AM_CFLAGS = \
4	$(GALLIUM_TARGET_CFLAGS)
5
6vadir = $(VA_LIB_INSTALL_DIR)
7va_LTLIBRARIES = gallium_drv_video.la
8
9nodist_EXTRA_gallium_drv_video_la_SOURCES = dummy.cpp
10gallium_drv_video_la_SOURCES =
11
12gallium_drv_video_la_LDFLAGS = \
13	-shared \
14	-module \
15	-no-undefined \
16	-avoid-version \
17	$(GC_SECTIONS) \
18	$(LD_NO_UNDEFINED)
19
20if HAVE_LD_VERSION_SCRIPT
21gallium_drv_video_la_LDFLAGS += \
22	-Wl,--version-script=$(top_srcdir)/src/gallium/targets/va/va.sym
23endif # HAVE_LD_VERSION_SCRIPT
24
25# NOTE: gallium_drv_video does not use(link against) libva
26gallium_drv_video_la_LIBADD = \
27	$(top_builddir)/src/gallium/state_trackers/va/libvatracker.la \
28	$(top_builddir)/src/gallium/auxiliary/libgalliumvlwinsys.la \
29	$(top_builddir)/src/gallium/auxiliary/libgalliumvl.la \
30	$(top_builddir)/src/gallium/auxiliary/libgallium.la \
31	$(top_builddir)/src/util/libmesautil.la \
32	$(VL_LIBS) \
33	$(LIBDRM_LIBS) \
34	$(GALLIUM_COMMON_LIB_DEPS)
35
36EXTRA_gallium_drv_video_la_DEPENDENCIES = va.sym
37EXTRA_DIST = va.sym
38
39if HAVE_GALLIUM_STATIC_TARGETS
40
41TARGET_DRIVERS =
42TARGET_CPPFLAGS =
43TARGET_LIB_DEPS =
44
45include $(top_srcdir)/src/gallium/drivers/nouveau/Automake.inc
46
47include $(top_srcdir)/src/gallium/drivers/r600/Automake.inc
48include $(top_srcdir)/src/gallium/drivers/radeonsi/Automake.inc
49
50gallium_drv_video_la_SOURCES += target.c
51gallium_drv_video_la_CPPFLAGS = $(TARGET_CPPFLAGS)
52gallium_drv_video_la_LIBADD += \
53	$(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader_static.la \
54	$(GALLIUM_PIPE_LOADER_WINSYS_LIBS) \
55	$(TARGET_LIB_DEPS) \
56	$(TARGET_RADEON_WINSYS) $(TARGET_RADEON_COMMON)
57
58else # HAVE_GALLIUM_STATIC_TARGETS
59
60gallium_drv_video_la_LIBADD += \
61	$(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader_dynamic.la
62
63endif # HAVE_GALLIUM_STATIC_TARGETS
64
65if HAVE_GALLIUM_LLVM
66gallium_drv_video_la_LIBADD += $(LLVM_LIBS)
67gallium_drv_video_la_LDFLAGS += $(LLVM_LDFLAGS)
68endif
69
70# hardlink each megadriver instance, but don't actually have
71# gallium_drv_video.so in the set of final installed files.
72install-data-hook:
73	for i in $(TARGET_DRIVERS); do                                  \
74		ln -f $(DESTDIR)$(vadir)/gallium_drv_video.so                \
75		      $(DESTDIR)$(vadir)/$${i}_drv_video.so;                 \
76	done;                                                           \
77	$(RM) $(DESTDIR)$(vadir)/gallium_drv_video.*
78
79uninstall-hook:
80	for i in $(TARGET_DRIVERS); do                                  \
81		$(RM) $(DESTDIR)$(vadir)/$${i}_drv_video.so;                 \
82	done;
83