VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedOpenGL/Makefile.kmk@ 26600

Last change on this file since 26600 was 25806, checked in by vboxsync, 15 years ago

*OpenGL/Makefile.kmk: Drop the -Wno-shadow as the template no longer sets -Wshadow.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 9.6 KB
Line 
1# $Id: Makefile.kmk 25806 2010-01-13 14:44:56Z vboxsync $
2## @file
3# Sub-Makefile for the VirtualBox HGCM Service.
4#
5
6#
7# Copyright (C) 2008 Sun Microsystems, Inc.
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22SUB_DEPTH = ../../../..
23include $(KBUILD_PATH)/subheader.kmk
24
25
26#
27# Target lists.
28#
29ifdef VBOX_WITH_MAIN
30DLLS += VBoxSharedCrOpenGL VBoxOGLrenderspu
31LIBRARIES += VBoxOGLcrserverlib VBoxOGLcrunpacker
32BLDDIRS += \
33 $(VBOX_PATH_CROGL_GENFILES)/
34endif
35
36ifeq ($(KBUILD_TARGET),darwin)
37 #
38 # We have to symlink the system headers of OpenGl cause they have some
39 # different directory hierarchy on Mac OS X (no /GL sub directory).
40 #
41 # See Config.kmk for the global variables.
42 #
43 INSTALLS += DarwinOpenGLHdrs
44 DarwinOpenGLHdrs_INST = $(VBOX_DARWIN_OPENGL_INST)
45 DarwinOpenGLHdrs_SYMLINKS = \
46 $(foreach hdr, $(VBOX_DARWIN_OPENGL_HEADERS),\
47 $(hdr)=>$(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/$(hdr))
48endif # darwin
49
50#
51# VBoxSharedCrOpenGL
52#
53VBoxSharedCrOpenGL_TEMPLATE = VBOXCROGLR3HOSTDLL
54ifdef VBOX_WITH_XPCOM
55 VBoxSharedCrOpenGL_DEFS = VBOX_WITH_XPCOM
56 VBoxSharedCrOpenGL_CXXFLAGS = -Wno-non-virtual-dtor
57endif
58VBoxSharedCrOpenGL_INTERMEDIATES = \
59 $(TEMPLATE_VBOXMAINEXE_INTERMEDIATES)
60VBoxSharedCrOpenGL_INCS.win = \
61 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_INC) \
62 $(VBOX_PATH_SDK)/bindings/mscom/include \
63 $(PATH_VBoxCOM)
64VBoxSharedCrOpenGL_INCS = \
65 . \
66 $(PATH_VBoxSVC)
67ifdef VBOX_WITH_XPCOM
68 VBoxSharedCrOpenGL_INCS += \
69 $(VBOX_XPCOM_INCS)
70endif
71VBoxSharedCrOpenGL_SOURCES = \
72 crserver/crservice.cpp
73VBoxSharedCrOpenGL_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSharedCrOpenGL.dylib
74VBoxSharedCrOpenGL_LIBS = \
75 $(PATH_LIB)/VBoxOGLcrserverlib$(VBOX_SUFF_LIB) \
76 $(PATH_LIB)/VBoxOGLhostcrstate$(VBOX_SUFF_LIB) \
77 $(PATH_LIB)/VBoxOGLcrunpacker$(VBOX_SUFF_LIB) \
78 $(PATH_LIB)/VBoxOGLhostcrpacker$(VBOX_SUFF_LIB) \
79 $(PATH_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \
80 $(VBOX_LIB_OGL_HOSTCRUTIL) \
81 $(LIB_RUNTIME) \
82 $(LIB_VMM)
83VBoxSharedCrOpenGL_LIBS.darwin = \
84 $(LIB_REM)
85ifeq ($(KBUILD_TARGET),win)
86 VBoxSharedCrOpenGL_LIBS += \
87 $(PATH_OBJ)/VBoxOGLrenderspu/VBoxOGLrenderspu$(VBOX_SUFF_LIB) \
88 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls$(VBOX_SUFF_LIB)
89else
90 VBoxSharedCrOpenGL_LIBS += \
91 $(PATH_BIN)/VBoxOGLrenderspu$(VBOX_SUFF_DLL)
92endif
93
94#
95# VBoxOGLcrserverlib
96#
97VBoxOGLcrserverlib_TEMPLATE = VBOXCROGLR3HOSTLIB
98VBoxOGLcrserverlib_INCS = \
99 crserverlib
100VBoxOGLcrserverlib_INTERMEDIATES = \
101 $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h \
102 $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.h \
103 $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \
104 $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h
105VBoxOGLcrserverlib_SOURCES := \
106 crserverlib/server_main.c \
107 crserverlib/server_boundsinfo.c \
108 crserverlib/server_bufferobject.c \
109 crserverlib/server_clear.c \
110 crserverlib/server_clip.c \
111 crserverlib/server_config.c \
112 crserverlib/server_context.c \
113 crserverlib/server_gentextures.c \
114 crserverlib/server_getmap.c \
115 crserverlib/server_getstring.c \
116 crserverlib/server_getpointer.c \
117 crserverlib/server_getpixelmap.c \
118 crserverlib/server_getteximage.c \
119 crserverlib/server_lists.c \
120 crserverlib/server_misc.c \
121 crserverlib/server_occlude.c \
122 crserverlib/server_papi.c \
123 crserverlib/server_projmatrix.c \
124 crserverlib/server_readpixels.c \
125 crserverlib/server_stream.c \
126 crserverlib/server_tiles.c \
127 crserverlib/server_viewport.c \
128 crserverlib/server_window.c \
129 crserverlib/server_winpos.c \
130 crserverlib/server_writeback.c \
131 crserverlib/server_getshaders.c \
132 crserverlib/server_framebuffer.c \
133 crserverlib/server_glsl.c \
134 $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.c \
135 $(VBOX_PATH_CROGL_GENFILES)/server_retval.c \
136 $(VBOX_PATH_CROGL_GENFILES)/server_get.c \
137 $(VBOX_PATH_CROGL_GENFILES)/server_simpleget.c
138VBoxOGLcrserverlib_CLEAN = \
139 $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.c \
140 $(VBOX_PATH_CROGL_GENFILES)/server_retval.c \
141 $(VBOX_PATH_CROGL_GENFILES)/server_get.c \
142 $(VBOX_PATH_CROGL_GENFILES)/server_simpleget.c \
143 $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.h
144
145#
146# Generate files for VBoxOGLcrserverlib
147#
148$(VBOX_PATH_CROGL_GENFILES)/server_dispatch.h: $(addprefix $(PATH_SUB_CURRENT)/crserverlib/, server_dispatch_header.py server_special) $(VBOX_CROGL_API_FILES) $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/state_tracker/state_special | $$(dir $$@)
149 $(call MSG_GENERATE,python,$@,$<)
150 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
151
152$(VBOX_PATH_CROGL_GENFILES)/server_dispatch.c: $(addprefix $(PATH_SUB_CURRENT)/crserverlib/, server_dispatch.py server_special) $(VBOX_CROGL_API_FILES) $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/state_tracker/state_special | $$(dir $$@)
153 $(call MSG_GENERATE,python,$@,$<)
154 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
155
156$(VBOX_PATH_CROGL_GENFILES)/server_retval.c: $(addprefix $(PATH_SUB_CURRENT)/crserverlib/, server_retval.py server_special) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
157 $(call MSG_GENERATE,python,$@,$<)
158 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
159
160$(VBOX_PATH_CROGL_GENFILES)/server_get.c: $(addprefix $(PATH_SUB_CURRENT)/crserverlib/, server_get.py server_special get_components.py) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
161 $(call MSG_GENERATE,python,$@,$<)
162 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
163
164$(VBOX_PATH_CROGL_GENFILES)/server_simpleget.c: $(addprefix $(PATH_SUB_CURRENT)/crserverlib/, server_simpleget.py get_sizes.py) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
165 $(call MSG_GENERATE,python,$@,$<)
166 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
167
168
169#
170# VBoxOGLcrunpacker
171#
172VBoxOGLcrunpacker_TEMPLATE = VBOXCROGLR3HOSTLIB
173VBoxOGLcrunpacker_INCS = \
174 unpacker
175VBoxOGLcrunpacker_INTERMEDIATES = \
176 $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h \
177 $(VBOX_PATH_CROGL_GENFILES)/cr_opcodes.h \
178 $(VBOX_PATH_CROGL_GENFILES)/unpack_extend.h \
179 $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \
180 $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h
181VBoxOGLcrunpacker_SOURCES = \
182 unpacker/unpack_arrays.c \
183 unpacker/unpack_bounds.c \
184 unpacker/unpack_bufferobject.c \
185 unpacker/unpack_calllists.c \
186 unpacker/unpack_clipplane.c \
187 unpacker/unpack_context.c \
188 unpacker/unpack_drawpixels.c \
189 unpacker/unpack_fence.c \
190 unpacker/unpack_fog.c \
191 unpacker/unpack_lights.c \
192 unpacker/unpack_map.c \
193 unpacker/unpack_materials.c \
194 unpacker/unpack_matrices.c \
195 unpacker/unpack_misc.c \
196 unpacker/unpack_pixelmap.c \
197 unpacker/unpack_point.c \
198 unpacker/unpack_program.c \
199 unpacker/unpack_readpixels.c \
200 unpacker/unpack_regcombiner.c \
201 unpacker/unpack_stipple.c \
202 unpacker/unpack_texture.c \
203 unpacker/unpack_writeback.c \
204 unpacker/unpack_visibleregion.c \
205 unpacker/unpack_shaders.c \
206 unpacker/unpack_framebuffer.c \
207 $(VBOX_PATH_CROGL_GENFILES)/unpack.c
208VBoxOGLcrunpacker_CLEAN = \
209 $(VBOX_PATH_CROGL_GENFILES)/unpack.c \
210 $(VBOX_PATH_CROGL_GENFILES)/unpack_extend.h
211
212#
213# Generate files for VBoxOGLcrunpacker.
214#
215$(VBOX_PATH_CROGL_GENFILES)/unpack.c: \
216 $(addprefix $(PATH_SUB_CURRENT)/unpacker/, unpack.py unpacker_special) \
217 $(VBOX_PATH_CROGL_GENFILES)/unpack_extend.h \
218 $(VBOX_CROGL_API_FILES) \
219 | $$(dir $$@)
220 $(call MSG_GENERATE,python,$@,$<)
221 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
222
223$(VBOX_PATH_CROGL_GENFILES)/unpack_extend.h: \
224 $(addprefix $(PATH_SUB_CURRENT)/unpacker/, unpack_extend.py unpacker_special) \
225 $(VBOX_CROGL_API_FILES) \
226 | $$(dir $$@)
227 $(call MSG_GENERATE,python,$@,$<)
228 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
229
230
231#
232# VBoxOGLrenderspu
233#
234VBoxOGLrenderspu_TEMPLATE = VBOXCROGLR3HOSTDLL
235VBoxOGLrenderspu_INTERMEDIATES = \
236 $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \
237 $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h
238VBoxOGLrenderspu_SOURCES = \
239 render/renderspu.c \
240 render/renderspu_config.c \
241 render/renderspu_init.c
242VBoxOGLrenderspu_SOURCES.win = render/renderspu_wgl.c render/render.def
243VBoxOGLrenderspu_SOURCES.linux = render/renderspu_glx.c
244VBoxOGLrenderspu_SOURCES.solaris = render/renderspu_glx.c
245VBoxOGLrenderspu_SOURCES.freebsd = render/renderspu_glx.c
246ifdef VBOX_WITH_COCOA_QT
247 VBoxOGLrenderspu_SOURCES.darwin = \
248 render/renderspu_cocoa.c \
249 render/renderspu_cocoa_helper.m
250else
251 VBoxOGLrenderspu_SOURCES.darwin = render/renderspu_agl.c
252endif
253VBoxOGLrenderspu_LDFLAGS.darwin += -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxOGLrenderspu.dylib
254VBoxOGLrenderspu_LIBS = \
255 $(PATH_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \
256 $(VBOX_LIB_OGL_HOSTCRUTIL) \
257 $(LIB_RUNTIME)
258if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # the X11 gang
259 VBoxOGLrenderspu_LIBS += \
260 Xmu \
261 X11 \
262 Xext
263 VBoxOGLrenderspu_LIBPATH = \
264 $(VBOX_LIBPATH_X11)
265endif
266
267include $(KBUILD_PATH)/subfooter.kmk
268
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette