• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
23include $(top_srcdir)/src/gallium/Automake.inc
24
25AM_CFLAGS = \
26	-I$(top_srcdir)/include/D3D9 \
27	-I$(top_srcdir)/src/loader \
28	-I$(top_srcdir)/src/mapi/ \
29	-I$(top_srcdir)/src/mesa/ \
30	-I$(top_builddir)/src/util \
31	-I$(top_srcdir)/src/mesa/drivers/dri/common/ \
32	-I$(top_srcdir)/src/gallium/winsys \
33	-I$(top_srcdir)/src/gallium/state_trackers/nine \
34	$(GALLIUM_TARGET_CFLAGS) \
35	$(VISIBILITY_CFLAGS)
36
37AM_CPPFLAGS = \
38	$(DEFINES) \
39	-DGALLIUM_DDEBUG \
40	-DGALLIUM_RBUG \
41	-DGALLIUM_TRACE
42
43ninedir = $(D3D_DRIVER_INSTALL_DIR)
44nine_LTLIBRARIES = d3dadapter9.la
45
46pkgconfigdir = $(libdir)/pkgconfig
47pkgconfig_DATA = d3d.pc
48
49d3dadapter9_la_SOURCES = \
50	description.c \
51	getproc.c \
52	drm.c
53
54d3dadapter9_la_LDFLAGS = \
55	-shared \
56	-shrext .so \
57	-module \
58	-no-undefined \
59	-version-number $(NINE_MAJOR):$(NINE_MINOR):$(NINE_PATCH) \
60	$(GC_SECTIONS) \
61	$(LD_NO_UNDEFINED)
62
63if HAVE_LD_VERSION_SCRIPT
64d3dadapter9_la_LDFLAGS += \
65	-Wl,--version-script=$(top_srcdir)/src/gallium/targets/d3dadapter9/d3dadapter9.sym
66endif # HAVE_LD_VERSION_SCRIPT
67
68d3dadapter9_la_LIBADD = \
69	$(top_builddir)/src/gallium/auxiliary/libgalliumvl_stub.la \
70	$(top_builddir)/src/gallium/auxiliary/libgallium.la \
71	$(top_builddir)/src/gallium/state_trackers/nine/libninetracker.la \
72	$(top_builddir)/src/util/libmesautil.la \
73	$(top_builddir)/src/gallium/drivers/ddebug/libddebug.la \
74	$(top_builddir)/src/gallium/drivers/rbug/librbug.la \
75	$(top_builddir)/src/gallium/drivers/trace/libtrace.la \
76	$(EXPAT_LIBS) \
77	$(GALLIUM_COMMON_LIB_DEPS)
78
79EXTRA_d3dadapter9_la_DEPENDENCIES = d3dadapter9.sym
80EXTRA_DIST = d3dadapter9.sym meson.build
81
82TARGET_DRIVERS =
83TARGET_CPPFLAGS =
84TARGET_LIB_DEPS =
85
86include $(top_srcdir)/src/gallium/drivers/i915/Automake.inc
87
88include $(top_srcdir)/src/gallium/drivers/nouveau/Automake.inc
89
90include $(top_srcdir)/src/gallium/drivers/r300/Automake.inc
91include $(top_srcdir)/src/gallium/drivers/r600/Automake.inc
92include $(top_srcdir)/src/gallium/drivers/radeonsi/Automake.inc
93
94include $(top_srcdir)/src/gallium/drivers/svga/Automake.inc
95
96include $(top_srcdir)/src/gallium/drivers/softpipe/Automake.inc
97include $(top_srcdir)/src/gallium/drivers/llvmpipe/Automake.inc
98
99if HAVE_GALLIUM_STATIC_TARGETS
100
101d3dadapter9_la_CPPFLAGS = $(AM_CPPFLAGS) $(TARGET_CPPFLAGS)
102d3dadapter9_la_LIBADD += \
103	$(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader_static.la \
104	$(GALLIUM_PIPE_LOADER_WINSYS_LIBS) \
105	$(TARGET_LIB_DEPS) \
106	$(TARGET_COMPILER_LIB_DEPS) \
107	$(TARGET_RADEON_WINSYS) $(TARGET_RADEON_COMMON)
108
109else # HAVE_GALLIUM_STATIC_TARGETS
110
111d3dadapter9_la_LIBADD += \
112	$(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader_dynamic.la
113
114endif # HAVE_GALLIUM_STATIC_TARGETS
115
116if HAVE_GALLIUM_LLVM
117nodist_EXTRA_d3dadapter9_la_SOURCES = dummy.cpp
118d3dadapter9_la_LDFLAGS += $(LLVM_LDFLAGS)
119d3dadapter9_la_LIBADD += $(LLVM_LIBS)
120endif
121
122d3dadapterdir = $(includedir)/d3dadapter
123d3dadapter_HEADERS = \
124	$(top_srcdir)/include/d3dadapter/d3dadapter9.h \
125	$(top_srcdir)/include/d3dadapter/drm.h \
126	$(top_srcdir)/include/d3dadapter/present.h
127