VirtualBox

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

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

VBoxService: Introduced guest property cache (used by VM information thread). Not tested yet.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.5 KB
Line 
1# $Id: Makefile.kmk 28967 2010-05-03 11:44:28Z 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
39 ifdef VBOX_WITH_GUEST_CONTROL
40 VBoxService_DEFS += VBOX_WITH_GUEST_CONTROL VBOXSERVICE_CONTROL
41 endif
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 \
58 VBoxServicePropCache.cpp
59ifdef VBOX_WITH_GUEST_CONTROL
60 VBoxService_SOURCES += \
61 VBoxServiceControl.cpp \
62 VBoxServiceControlExec.cpp
63endif
64ifdef VBOX_WITH_MEMBALLOON
65 VBoxService_SOURCES += \
66 VBoxServiceBalloon.cpp
67endif
68ifdef VBOX_WITH_PAGE_SHARING
69 VBoxService_SOURCES += \
70 VBoxServicePageSharing.cpp
71endif
72ifdef VBOX_WITH_GUEST_PROPS
73 VBoxService_SOURCES.win = \
74 VBoxServiceVMInfo-win.cpp
75 VBoxService_SOURCES += \
76 VBoxServiceVMInfo.cpp
77 if1of ($(KBUILD_TARGET), win)
78 VBoxService_SOURCES += \
79 VBoxServiceExec.cpp
80 endif
81endif
82if1of ($(KBUILD_TARGET), linux)
83 VBoxService_SOURCES += \
84 VBoxServiceCpuHotPlug.cpp
85endif
86VBoxService_SOURCES.win += \
87 VBoxService-win.rc \
88 VBoxService-win.cpp
89
90VBoxService_SOURCES.os2 = \
91 VBoxService-os2.def \
92 VBoxServiceClipboard-os2.cpp
93
94VBoxService_LIBS = \
95 $(VBOX_LIB_IPRT_GUEST_R3) \
96 $(VBOX_LIB_VBGL_R3) \
97 $(VBOX_LIB_IPRT_GUEST_R3)
98ifdef VBOX_WITH_GUEST_PROPS
99 VBoxService_LIBS.win += \
100 Secur32.lib \
101 WtsApi32.lib \
102 Psapi.lib
103 VBoxService_LIBS.solaris += \
104 nsl kstat
105endif
106
107#
108# VBoxServiceNT - NT4 version of VBoxService.
109#
110VBoxServiceNT_TEMPLATE = VBOXGUESTR3EXE
111VBoxServiceNT_EXTENDS = VBoxService
112VBoxServiceNT_DEFS.win = _WIN32_WINNT=0x0400 TARGET_NT4 VBOXSERVICE_MANAGEMENT
113
114VBoxServiceVMInfo.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
115VBoxServiceVMInfo.cpp_DEPS = $(VBOX_SVN_REV_KMK)
116
117#
118# The icon is configurable.
119#
120VBoxService-win.rc_INCS = $(PATH_VBoxService)
121VBoxService-win.rc_DEPS = $(PATH_VBoxService)/VBoxService-win-icon.rc
122VBoxService-win.rc_CLEAN = $(PATH_VBoxService)/VBoxService-win-icon.rc
123
124# Icon include file.
125$$(PATH_VBoxService)/VBoxService-win-icon.rc: $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) $$(VBoxService_PATH)/Makefile.kmk | $$(dir $$@)
126 $(RM) -f $@
127 $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))"'
128
129include $(KBUILD_PATH)/subfooter.kmk
130
Note: See TracBrowser for help on using the repository browser.

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