VirtualBox

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

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

VBoxService: Removed automatic Windows system preparation in favor of the more generic guest control feature.

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