VirtualBox

source: vbox/trunk/src/VBox/Frontends/VBoxSDL/Makefile.kmk@ 35273

Last change on this file since 35273 was 33590, checked in by vboxsync, 14 years ago

VRDE: removed VBOX_WITH_VRDP from source code, also some obsolete code removed.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.2 KB
RevLine 
[2480]1# $Id: Makefile.kmk 33590 2010-10-29 08:55:09Z vboxsync $
2## @file
[6759]3# Sub-Makefile for VBoxSDL (a simple frontend based on SDL).
[1]4#
5
6#
[28800]7# Copyright (C) 2006-2007 Oracle Corporation
[4865]8#
[5999]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#
[1]17
[10058]18SUB_DEPTH = ../../../..
[8760]19include $(KBUILD_PATH)/subheader.kmk
[12262]20if !defined(VBOX_WITH_HARDENING) || "$(KBUILD_TARGET)" != "darwin" # No hardened VBoxSDL on darwin.
[1]21
[11725]22#
23# Targets.
24#
25ifdef VBOX_WITH_HARDENING
[12258]26 PROGRAMS += VBoxSDLHardened
27 DLLS += VBoxSDL
[11725]28else
29 PROGRAMS += VBoxSDL
30endif
31PROGRAMS += tstSDL
[1]32
[11725]33
[1]34#
[11725]35# Hardened VBoxSDL
36#
37VBoxSDLHardened_TEMPLATE = VBOXR3HARDENEDEXE
38VBoxSDLHardened_SOURCES = VBoxSDLHardened.cpp
39VBoxSDLHardened_NAME = VBoxSDL
40
41
42#
[1]43# VBoxSDL
44#
[11725]45VBoxSDL_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXMAINCLIENTDLL,VBOXMAINCLIENTEXE)
[1]46VBoxSDL_SDKS = LIBSDL
47VBoxSDL_SOURCES = \
48 VBoxSDL.cpp \
49 Framebuffer.cpp \
50 Helper.cpp
[5493]51VBoxSDL_SOURCES.darwin = \
52 VBoxSDLMain-darwin.m
[5359]53
[614]54VBoxSDL_DEFS =
[20433]55ifdef VBOX_WITH_SDL13
56 VBoxSDL_DEFS += VBOX_WITH_SDL13
57else
58 ifdef VBOX_WITH_SECURELABEL
59 VBoxSDL_DEFS += VBOX_SECURELABEL
60 endif
[1]61endif
[4637]62VBoxSDL_DEFS.freebsd = VBOXSDL_WITH_X11
63VBoxSDL_DEFS.linux = _GNU_SOURCE VBOXSDL_WITH_X11
64VBoxSDL_DEFS.solaris = VBOXSDL_WITH_X11
[614]65ifdef VBOX_OPENGL
66 #VBoxSDL_DEFS.linux += VBOX_OPENGL
67endif
[1]68ifndef VBOX_OSE
[12712]69# disable for now as this customer-specific GUI
70# VBoxSDL_DEFS.win = VBOX_WIN32_UI
[1]71endif
72VBoxSDL_DEFS.win.x86 = _WIN32_WINNT=0x0500
73VBoxSDL_DEFS.win.amd64 = _WIN32_WINNT=0x0510
[5359]74
[1]75VBoxSDL_INCS = \
[614]76 $(PATH_VBoxSDL)
[8758]77ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) # X11
[5359]78VBoxSDL_INCS += \
79 $(VBOX_XCURSOR_INCS)
80endif
[8758]81ifneq ($(filter-out win solaris,$(KBUILD_TARGET)),)
[5359]82
[3325]83VBoxSDL_LIBS = \
84 $(LIB_SDK_LIBSDL_SDLMAIN)
85endif
[8758]86ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) # X11
[4888]87VBoxSDL_LIBS += \
[29655]88 $(PATH_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL) \
[5374]89 $(VBOX_XCURSOR_LIBS) \
[5575]90 X11
[4888]91VBoxSDL_LIBPATH = \
92 $(VBOX_LIBPATH_X11)
93endif
[1]94ifdef VBOX_OPENGL
[614]95 #VBoxSDL_LIBS.linux += GL
[1]96endif
[5359]97
[4841]98VBoxSDL_LDFLAGS.darwin = \
99 -framework Foundation -framework AppKit
[1]100
101VBoxSDL_CLEAN = $(PATH_VBoxSDL)/Ico64x01.h
[11728]102VBoxSDL_INTERMEDIATES = $(PATH_VBoxSDL)/Ico64x01.h
[1]103
104
[12258]105# Convert the pnm-file to a byte array.
106$$(PATH_VBoxSDL)/Ico64x01.h: $(PATH_ROOT)/src/VBox/Frontends/VBoxSDL/ico64x01.pnm $(VBOX_BIN2C) | $$(dir $$@)
107 $(call MSG_TOOL,bin2c,VBoxSDL,$<,$@)
108 $(QUIET)$(VBOX_BIN2C) Ico64x01 $< $@
109
110# Icon include file.
[12267]111$$(PATH_VBoxSDL)/VBoxSDL-icon.rc: $(VBOX_WINDOWS_ICON_FILE) $$(VBoxSDL_PATH)/Makefile.kmk | $$(dir $$@)
[12258]112 $(RM) -f $@
113 $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
114
115
116
[1]117#
118# tstSDL
119#
120tstSDL_TEMPLATE = VBOXR3NPEXE
[5493]121tstSDL_SDKS = LIBSDL
122tstSDL_INST = $(INST_TESTCASE)
123tstSDL_SOURCES = \
[1]124 VBoxSDLTest.cpp
[5493]125tstSDL_SOURCES.darwin = \
126 VBoxSDLMain-darwin.m
127tstSDL_DEFS = IN_RING3 IN_RT_R3 _GNU_SOURCE
[1]128tstSDL_DEFS.win.x86 = _WIN32_WINNT=0x0500
129ifdef VBOX_OPENGL
130tstSDL_DEFS.linux = VBOX_OPENGL
131endif
132tstSDL_INCS = \
133 $(PATH_tstSDL)
134
135tstSDL_LIBS = \
136 $(LIB_RUNTIME)
[8758]137ifneq ($(filter-out win solaris,$(KBUILD_TARGET)),)
[1]138tstSDL_LIBS += \
[200]139 $(LIB_SDK_LIBSDL_SDLMAIN)
[1]140endif
[4888]141
[1]142ifdef VBOX_OPENGL
143tstSDL_LIBS.linux += GL
144endif
[8758]145ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(KBUILD_TARGET)),) # X11
[4888]146tstSDL_LIBPATH = \
147 $(VBOX_LIBPATH_X11)
148endif
149
[4841]150tstSDL_LDFLAGS.darwin = \
151 -framework Foundation -framework AppKit
[1]152
[18422]153## @todo What was this stuff doing here? The exception config is saying two different things, and why just -O for release builds?
154#tstSDL_CXXFLAGS.win = \
155# -EHsc
156#tstSDL_CXXFLAGS.linux = \
157# -DNDEBUG -DTRIMMED -O -Wall -fno-rtti -fno-exceptions \
158# -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe
159# Is this what's intended? Why -fshort-wchar?
160tstSDL_DEFS.linux = NDEBUG TRIMMED
161tstSDL_CXXFLAGS.linux = -O -Wall -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar
[1]162
163
[12258]164endif # !VBOX_WITH_HARDENING || "$(KBUILD_TARGET)" != "darwin"
[8760]165include $(KBUILD_PATH)/subfooter.kmk
[1]166
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