VirtualBox

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

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

Updates for guest statistics and memory ballooning

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
Line 
1# $Id: Makefile.kmk 26326 2010-02-08 13:22:24Z 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
43endif
44if1of ($(KBUILD_TARGET), linux)
45 VBoxService_DEFS += VBOXSERVICE_CPUHOTPLUG
46endif
47
48VBoxService_SOURCES = \
49 VBoxService.cpp \
50 VBoxServiceTimeSync.cpp \
51 VBoxServiceUtils.cpp
52ifdef VBOX_WITH_GUEST_PROPS
53 VBoxService_SOURCES.win = \
54 VBoxServiceVMInfo-win.cpp
55 VBoxService_SOURCES += \
56 VBoxServiceVMInfo.cpp
57 if1of ($(KBUILD_TARGET), win)
58 VBoxService_SOURCES += \
59 VBoxServiceExec.cpp
60 endif
61endif
62if1of ($(KBUILD_TARGET), linux)
63 VBoxService_SOURCES += \
64 VBoxServiceCpuHotPlug.cpp
65endif
66VBoxService_SOURCES.win += \
67 VBoxService-win.rc \
68 VBoxService-win.cpp \
69 VBoxServiceBalloon.cpp \
70 VBoxServiceStats.cpp
71
72VBoxService_SOURCES.os2 = \
73 VBoxService-os2.def \
74 VBoxServiceClipboard-os2.cpp
75
76VBoxService_LIBS = \
77 $(VBOX_LIB_IPRT_GUEST_R3) \
78 $(VBOX_LIB_VBGL_R3) \
79 $(VBOX_LIB_IPRT_GUEST_R3)
80ifdef VBOX_WITH_GUEST_PROPS
81 VBoxService_LIBS.win += \
82 Secur32.lib \
83 WtsApi32.lib \
84 Psapi.lib
85 VBoxService_LIBS.solaris += \
86 nsl
87endif
88
89#
90# VBoxServiceNT - NT4 version of VBoxService.
91#
92VBoxServiceNT_TEMPLATE = VBOXGUESTR3EXE
93VBoxServiceNT_EXTENDS = VBoxService
94VBoxServiceNT_DEFS.win = _WIN32_WINNT=0x0400 TARGET_NT4
95
96VBoxServiceVMInfo.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
97VBoxServiceVMInfo.cpp_DEPS = $(VBOX_SVN_REV_KMK)
98
99#
100# The icon is configurable.
101#
102VBoxService-win.rc_INCS = $(PATH_VBoxService)
103VBoxService-win.rc_DEPS = $(PATH_VBoxService)/VBoxService-win-icon.rc
104VBoxService-win.rc_CLEAN = $(PATH_VBoxService)/VBoxService-win-icon.rc
105
106# Icon include file.
107$$(PATH_VBoxService)/VBoxService-win-icon.rc: $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) $$(VBoxService_PATH)/Makefile.kmk | $$(dir $$@)
108 $(RM) -f $@
109 $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))"'
110
111include $(KBUILD_PATH)/subfooter.kmk
112
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