VirtualBox

source: vbox/trunk/src/VBox/Additions/common/VBoxService/Makefile.kmk@ 26698

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

Host Service/Guest Control: Initial commit of basic files (no API/whatsoever yet. Not enabled by default).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.4 KB
Line 
1# $Id: Makefile.kmk 26698 2010-02-23 11:04:42Z vboxsync $
2## @file
3# Sub-Makefile for the Cross Platform Guest Addition Services.
4#
5
6#
7# Copyright (C) 2007-2010 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# Target lists.
27#
28PROGRAMS += VBoxService
29PROGRAMS.win.x86 += VBoxServiceNT
30
31#
32# VBoxService
33#
34VBoxService_TEMPLATE = VBOXGUESTR3EXE
35VBoxService_DEFS = VBOXSERVICE_TIMESYNC
36VBoxService_DEFS.win += _WIN32_WINNT=0x0501 VBOXSERVICE_MANAGEMENT
37VBoxService_DEFS.os2 = VBOX_WITH_HGCM VBOXSERVICE_CLIPBOARD
38ifdef VBOX_WITH_GUEST_PROPS
39 VBoxService_DEFS += VBOX_WITH_GUEST_PROPS VBOXSERVICE_VMINFO
40 if1of ($(KBUILD_TARGET), win)
41 VBoxService_DEFS += VBOX_WITH_HGCM VBOXSERVICE_EXEC
42 endif
43ifdef VBOX_WITH_GUEST_CONTROL
44 if1of ($(KBUILD_TARGET), win)
45 VBoxService_DEFS += VBOXSERVICE_CONTROL
46 endif
47endif
48endif
49if1of ($(KBUILD_TARGET), linux)
50 VBoxService_DEFS += VBOXSERVICE_CPUHOTPLUG
51endif
52
53VBoxService_SOURCES = \
54 VBoxService.cpp \
55 VBoxServiceTimeSync.cpp \
56 VBoxServiceUtils.cpp
57ifdef VBOX_WITH_GUEST_CONTROL
58 if1of ($(KBUILD_TARGET), win)
59 VBoxService_SOURCES += \
60 VBoxServiceControl.cpp
61 endif
62endif
63ifdef VBOX_WITH_GUEST_PROPS
64 VBoxService_SOURCES.win = \
65 VBoxServiceVMInfo-win.cpp
66 VBoxService_SOURCES += \
67 VBoxServiceVMInfo.cpp
68 if1of ($(KBUILD_TARGET), win)
69 VBoxService_SOURCES += \
70 VBoxServiceExec.cpp
71 endif
72endif
73if1of ($(KBUILD_TARGET), linux)
74 VBoxService_SOURCES += \
75 VBoxServiceCpuHotPlug.cpp
76endif
77VBoxService_SOURCES.win += \
78 VBoxService-win.rc \
79 VBoxService-win.cpp \
80 VBoxServiceBalloon.cpp \
81 VBoxServiceStats.cpp
82
83VBoxService_SOURCES.os2 = \
84 VBoxService-os2.def \
85 VBoxServiceClipboard-os2.cpp
86
87VBoxService_LIBS = \
88 $(VBOX_LIB_IPRT_GUEST_R3) \
89 $(VBOX_LIB_VBGL_R3) \
90 $(VBOX_LIB_IPRT_GUEST_R3)
91ifdef VBOX_WITH_GUEST_PROPS
92 VBoxService_LIBS.win += \
93 Secur32.lib \
94 WtsApi32.lib \
95 Psapi.lib
96 VBoxService_LIBS.solaris += \
97 nsl
98endif
99
100#
101# VBoxServiceNT - NT4 version of VBoxService.
102#
103VBoxServiceNT_TEMPLATE = VBOXGUESTR3EXE
104VBoxServiceNT_EXTENDS = VBoxService
105VBoxServiceNT_DEFS.win = _WIN32_WINNT=0x0400 TARGET_NT4 VBOXSERVICE_MANAGEMENT
106
107VBoxServiceVMInfo.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
108VBoxServiceVMInfo.cpp_DEPS = $(VBOX_SVN_REV_KMK)
109
110#
111# The icon is configurable.
112#
113VBoxService-win.rc_INCS = $(PATH_VBoxService)
114VBoxService-win.rc_DEPS = $(PATH_VBoxService)/VBoxService-win-icon.rc
115VBoxService-win.rc_CLEAN = $(PATH_VBoxService)/VBoxService-win-icon.rc
116
117# Icon include file.
118$$(PATH_VBoxService)/VBoxService-win-icon.rc: $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) $$(VBoxService_PATH)/Makefile.kmk | $$(dir $$@)
119 $(RM) -f $@
120 $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))"'
121
122include $(KBUILD_PATH)/subfooter.kmk
123
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