Changeset 16281 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Jan 27, 2009 9:50:20 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/Makefile.kmk
r16279 r16281 54 54 TEMPLATE_VBOXOGLR3HOST_DEFS.solaris = SunOS 55 55 TEMPLATE_VBOXOGLR3HOST_DEFS.darwin = DARWIN GL_GLEXT_LEGACY 56 TEMPLATE_VBOXOGLR3HOST_INCS.darwin = $(VBOX_PATH_DARWIN_OPENGL)/.. 57 TEMPLATE_VBOXOGLR3HOST_INCS = $(VBOX_PATH_CROGL_INCLUDE) $(VBOX_PATH_CROGL_GENFILES) 58 ## @todo r=bird: try INTERMEDIATES.darwin here. 59 TEMPLATE_VBOXOGLR3HOST_DEPS.darwin = $(addprefix $(VBOX_PATH_DARWIN_OPENGL)/,$(VBOX_DARWIN_OPENGL_HEADERS)) 56 TEMPLATE_VBOXOGLR3HOST_INCS = \ 57 $(VBOX_PATH_CROGL_INCLUDE) \ 58 $(VBOX_PATH_CROGL_GENFILES) 60 59 TEMPLATE_VBOXOGLR3HOST_LDFLAGS.linux = -Wl,--no-as-needed 61 60 TEMPLATE_VBOXOGLR3HOST_LDFLAGS.darwin = -framework Carbon -framework OpenGL -current_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) … … 64 63 65 64 ifeq ($(KBUILD_TARGET),darwin) 66 # 67 # We have to symlink the system headers of OpenGl cause they have some 68 # different directory hierarchy on Mac OS X (no /GL sub directory). 69 # 70 VBOX_DARWIN_OPENGL_HEADERS := gl.h glu.h 71 VBOX_PATH_DARWIN_OPENGL := $(PATH_OBJ)/VBoxOGL/GL 72 73 $(foreach hdr, $(VBOX_DARWIN_OPENGL_HEADERS), \ 74 $(VBOX_PATH_DARWIN_OPENGL)/$(hdr): \ 75 $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/$(hdr) \ 76 | $(VBOX_PATH_DARWIN_OPENGL)/ \ 77 ; $$(LN_SYMLINK) $$< $$@ \ 78 $(NL)) 65 # 66 # We have to symlink the system headers of OpenGl cause they have some 67 # different directory hierarchy on Mac OS X (no /GL sub directory). 68 # 69 VBOX_DARWIN_OPENGL_HEADERS := gl.h glu.h 70 VBOX_PATH_DARWIN_OPENGL := $(PATH_OUT)/obj/VBoxOGL/GL 71 72 # Install target for creating the symlinks. 73 INSTALLS += DarwinOpenGLHdrs 74 DarwinOpenGLHdrs_INST := \ 75 $(patsubst $(PATH_OUT)/%,%/,$(VBOX_PATH_DARWIN_OPENGL)) 76 DarwinOpenGLHdrs_SYMLINKS := \ 77 $(foreach hdr, $(VBOX_DARWIN_OPENGL_HEADERS),\ 78 $(hdr)=>$(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/$(hdr)) 79 80 # Update the template. 81 TEMPLATE_VBOXOGLR3HOST_INCS.darwin := \ 82 $(dir $(VBOX_PATH_DARWIN_OPENGL)) 83 TEMPLATE_VBOXOGLR3HOST_INTERMEDIATES.darwin := \ 84 $(addprefix $(VBOX_PATH_DARWIN_OPENGL)/./,$(VBOX_DARWIN_OPENGL_HEADERS)) 85 79 86 endif # darwin 80 87
Note:
See TracChangeset
for help on using the changeset viewer.