targets/xvmc: limit the amount of exported symbols
[mesa.git] / src / gallium / Automake.inc
1 GALLIUM_CFLAGS = \
2 -I$(top_srcdir)/include \
3 -I$(top_srcdir)/src/gallium/include \
4 -I$(top_srcdir)/src/gallium/auxiliary \
5 $(DEFINES)
6
7 # src/gallium/auxiliary must appear before src/gallium/drivers
8 # because there are stupidly two rbug_context.h files in
9 # different directories, and which one is included by the
10 # preprocessor is determined by the ordering of the -I flags.
11 GALLIUM_DRIVER_CFLAGS = \
12 -I$(srcdir)/include \
13 -I$(top_srcdir)/include \
14 -I$(top_srcdir)/src/gallium/include \
15 -I$(top_srcdir)/src/gallium/auxiliary \
16 -I$(top_srcdir)/src/gallium/drivers \
17 $(DEFINES) \
18 $(VISIBILITY_CFLAGS)
19
20 GALLIUM_DRIVER_CXXFLAGS = \
21 -I$(srcdir)/include \
22 -I$(top_srcdir)/include \
23 -I$(top_srcdir)/src/gallium/include \
24 -I$(top_srcdir)/src/gallium/auxiliary \
25 -I$(top_srcdir)/src/gallium/drivers \
26 $(DEFINES) \
27 $(VISIBILITY_CXXFLAGS)
28
29 GALLIUM_DRI_CFLAGS = \
30 -I$(top_srcdir)/include \
31 -I$(top_srcdir)/src/gallium/include \
32 -I$(top_srcdir)/src/gallium/auxiliary \
33 -I$(top_srcdir)/src/gallium/drivers \
34 -I$(top_srcdir)/src/gallium/winsys \
35 -I$(top_srcdir)/src/mesa \
36 -I$(top_srcdir)/src/mapi \
37 $(DEFINES) \
38 $(PTHREAD_CFLAGS) \
39 $(LIBDRM_CFLAGS) \
40 $(VISIBILITY_CFLAGS)
41
42 GALLIUM_VIDEO_CFLAGS = \
43 -I$(top_srcdir)/include \
44 -I$(top_srcdir)/src/gallium/include \
45 -I$(top_srcdir)/src/gallium/auxiliary \
46 -I$(top_srcdir)/src/gallium/drivers \
47 -I$(top_srcdir)/src/gallium/winsys \
48 $(DEFINES) \
49 $(PTHREAD_CFLAGS) \
50 $(LIBDRM_CFLAGS) \
51 $(VISIBILITY_CFLAGS)
52
53
54 DRI_VERSION_SCRIPT ?= $(top_srcdir)/src/gallium/state_trackers/dri/dri.link
55
56 GALLIUM_DRI_LINKER_FLAGS = \
57 -shared \
58 -shrext .so \
59 -module \
60 -avoid-version \
61 $(GC_SECTIONS) \
62 -Wl,--version-script=$(DRI_VERSION_SCRIPT)
63
64 GALLIUM_VDPAU_LINKER_FLAGS = \
65 -shared \
66 -module \
67 -no-undefined \
68 -version-number $(VDPAU_MAJOR):$(VDPAU_MINOR) \
69 -export-symbols-regex $(VDPAU_EXPORTS) \
70 $(GC_SECTIONS) \
71 $(LD_NO_UNDEFINED)
72
73 GALLIUM_XVMC_LINKER_FLAGS = \
74 -shared \
75 -module \
76 -no-undefined \
77 -version-number $(XVMC_MAJOR):$(XVMC_MINOR) \
78 -Wl,--version-script=$(top_srcdir)/src/gallium/targets/xvmc.sym \
79 $(GC_SECTIONS) \
80 $(LD_NO_UNDEFINED)
81
82 GALLIUM_OMX_LINKER_FLAGS = \
83 -shared \
84 -module \
85 -no-undefined \
86 -export-symbols-regex $(EXPORTS) \
87 $(GC_SECTIONS) \
88 $(LD_NO_UNDEFINED)
89
90 GALLIUM_COMMON_LIB_DEPS = \
91 -lm \
92 $(CLOCK_LIB) \
93 $(PTHREAD_LIBS) \
94 $(DLOPEN_LIBS)
95
96 GALLIUM_DRI_LIB_DEPS = \
97 $(top_builddir)/src/mesa/libmesagallium.la \
98 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
99 $(SELINUX_LIBS) \
100 $(LIBDRM_LIBS) \
101 $(EXPAT_LIBS) \
102 $(GALLIUM_COMMON_LIB_DEPS)
103
104 GALLIUM_VDPAU_LIB_DEPS = \
105 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
106 $(top_builddir)/src/gallium/state_trackers/vdpau/libvdpautracker.la \
107 $(VDPAU_LIBS) \
108 $(LIBDRM_LIBS) \
109 $(GALLIUM_COMMON_LIB_DEPS)
110
111 GALLIUM_XVMC_LIB_DEPS = \
112 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
113 $(top_builddir)/src/gallium/state_trackers/xvmc/libxvmctracker.la \
114 $(XVMC_LIBS) \
115 $(LIBDRM_LIBS) \
116 $(GALLIUM_COMMON_LIB_DEPS)
117
118 GALLIUM_OMX_LIB_DEPS = \
119 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
120 $(top_builddir)/src/gallium/state_trackers/omx/libomxtracker.la \
121 $(OMX_LIBS) \
122 $(GALLIUM_COMMON_LIB_DEPS)
123
124 GALLIUM_WINSYS_CFLAGS = \
125 -I$(top_srcdir)/include \
126 -I$(top_srcdir)/src/gallium/include \
127 -I$(top_srcdir)/src/gallium/auxiliary \
128 $(DEFINES) \
129 $(VISIBILITY_CFLAGS)
130
131 if HAVE_MESA_LLVM
132
133 GALLIUM_DRI_LINKER_FLAGS += $(LLVM_LDFLAGS)
134 GALLIUM_VDPAU_LINKER_FLAGS += $(LLVM_LDFLAGS)
135 GALLIUM_XVMC_LINKER_FLAGS += $(LLVM_LDFLAGS)
136 GALLIUM_OMX_LINKER_FLAGS += $(LLVM_LDFLAGS)
137
138 GALLIUM_DRI_LIB_DEPS += $(LLVM_LIBS)
139 GALLIUM_VDPAU_LIB_DEPS += $(LLVM_LIBS)
140 GALLIUM_XVMC_LIB_DEPS += $(LLVM_LIBS)
141 GALLIUM_OMX_LIB_DEPS += $(LLVM_LIBS)
142
143 endif