• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1include $(top_srcdir)/src/gallium/Automake.inc
2
3AM_CFLAGS = \
4	$(GALLIUM_TARGET_CFLAGS)
5
6omxdir = $(OMX_BELLAGIO_LIB_INSTALL_DIR)
7omx_LTLIBRARIES = libomx_mesa.la
8
9nodist_EXTRA_libomx_mesa_la_SOURCES = dummy.cpp
10libomx_mesa_la_SOURCES =
11
12libomx_mesa_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
21libomx_mesa_la_LDFLAGS += \
22	-Wl,--version-script=$(top_srcdir)/src/gallium/targets/omx-bellagio/omx.sym
23endif # HAVE_LD_VERSION_SCRIPT
24
25libomx_mesa_la_LIBADD = \
26	$(top_builddir)/src/gallium/state_trackers/omx_bellagio/libomxtracker.la \
27	$(top_builddir)/src/gallium/auxiliary/libgalliumvlwinsys.la \
28	$(top_builddir)/src/gallium/auxiliary/libgalliumvl.la \
29	$(top_builddir)/src/gallium/auxiliary/libgallium.la \
30	$(top_builddir)/src/util/libmesautil.la \
31	$(OMX_BELLAGIO_LIBS) \
32	$(LIBDRM_LIBS) \
33	$(GALLIUM_COMMON_LIB_DEPS)
34
35if HAVE_PLATFORM_X11
36libomx_mesa_la_LIBADD += \
37	$(VL_LIBS) \
38	$(XCB_DRI3_LIBS)
39endif
40
41EXTRA_libomx_mesa_la_DEPENDENCIES = omx.sym
42EXTRA_DIST = omx.sym meson.build
43
44if HAVE_GALLIUM_STATIC_TARGETS
45
46TARGET_DRIVERS =
47TARGET_CPPFLAGS =
48TARGET_LIB_DEPS =
49
50
51include $(top_srcdir)/src/gallium/drivers/nouveau/Automake.inc
52
53include $(top_srcdir)/src/gallium/drivers/r600/Automake.inc
54include $(top_srcdir)/src/gallium/drivers/radeonsi/Automake.inc
55
56libomx_mesa_la_SOURCES += target.c
57libomx_mesa_la_CPPFLAGS = $(TARGET_CPPFLAGS)
58libomx_mesa_la_LIBADD += \
59	$(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader_static.la \
60	$(GALLIUM_PIPE_LOADER_WINSYS_LIBS) \
61	$(TARGET_LIB_DEPS) \
62	$(TARGET_COMPILER_LIB_DEPS) \
63	$(TARGET_RADEON_WINSYS) $(TARGET_RADEON_COMMON)
64
65else # HAVE_GALLIUM_STATIC_TARGETS
66
67libomx_mesa_la_LIBADD += \
68	$(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader_dynamic.la
69
70endif # HAVE_GALLIUM_STATIC_TARGETS
71
72if HAVE_GALLIUM_LLVM
73libomx_mesa_la_LIBADD += $(LLVM_LIBS)
74libomx_mesa_la_LDFLAGS += $(LLVM_LDFLAGS)
75endif
76