• 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	$(LIBDRM_LIBS) \
33	$(GALLIUM_COMMON_LIB_DEPS)
34
35if HAVE_PLATFORM_X11
36gallium_drv_video_la_LIBADD += \
37	$(VL_LIBS) \
38	$(XCB_DRI3_LIBS)
39endif
40
41EXTRA_gallium_drv_video_la_DEPENDENCIES = va.sym
42EXTRA_DIST = va.sym meson.build
43
44if HAVE_GALLIUM_STATIC_TARGETS
45
46TARGET_DRIVERS =
47TARGET_CPPFLAGS =
48TARGET_LIB_DEPS =
49
50include $(top_srcdir)/src/gallium/drivers/nouveau/Automake.inc
51
52include $(top_srcdir)/src/gallium/drivers/r600/Automake.inc
53include $(top_srcdir)/src/gallium/drivers/radeonsi/Automake.inc
54
55gallium_drv_video_la_SOURCES += target.c
56gallium_drv_video_la_CPPFLAGS = $(TARGET_CPPFLAGS)
57gallium_drv_video_la_LIBADD += \
58	$(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader_static.la \
59	$(GALLIUM_PIPE_LOADER_WINSYS_LIBS) \
60	$(TARGET_LIB_DEPS) \
61	$(TARGET_COMPILER_LIB_DEPS) \
62	$(TARGET_RADEON_WINSYS) $(TARGET_RADEON_COMMON)
63
64else # HAVE_GALLIUM_STATIC_TARGETS
65
66gallium_drv_video_la_LIBADD += \
67	$(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader_dynamic.la
68
69endif # HAVE_GALLIUM_STATIC_TARGETS
70
71if HAVE_GALLIUM_LLVM
72gallium_drv_video_la_LIBADD += $(LLVM_LIBS)
73gallium_drv_video_la_LDFLAGS += $(LLVM_LDFLAGS)
74endif
75
76# hardlink each megadriver instance, but don't actually have
77# gallium_drv_video.so in the set of final installed files.
78install-data-hook:
79	for i in $(TARGET_DRIVERS); do                                  \
80		ln -f $(DESTDIR)$(vadir)/gallium_drv_video.so                \
81		      $(DESTDIR)$(vadir)/$${i}_drv_video.so;                 \
82	done;                                                           \
83	$(RM) $(DESTDIR)$(vadir)/gallium_drv_video.*
84
85uninstall-hook:
86	for i in $(TARGET_DRIVERS); do                                  \
87		$(RM) $(DESTDIR)$(vadir)/$${i}_drv_video.so;                 \
88	done;
89