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 |
|
---|
18 | SUB_DEPTH = ../../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | #
|
---|
22 | # Target lists.
|
---|
23 | #
|
---|
24 | PROGRAMS += VBoxService
|
---|
25 | PROGRAMS.win.x86 += VBoxServiceNT
|
---|
26 |
|
---|
27 | #
|
---|
28 | # VBoxService
|
---|
29 | #
|
---|
30 | VBoxService_TEMPLATE = VBOXGUESTR3EXE
|
---|
31 | VBoxService_DEFS = VBOX_WITH_HGCM VBOXSERVICE_TIMESYNC VBOXSERVICE_MANAGEMENT
|
---|
32 | VBoxService_DEFS.win += _WIN32_WINNT=0x0501
|
---|
33 | VBoxService_DEFS.os2 = VBOX_WITH_HGCM VBOXSERVICE_CLIPBOARD
|
---|
34 | ifdef 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 | endif
|
---|
40 | ifdef VBOX_WITH_GUEST_CONTROL
|
---|
41 | VBoxService_DEFS += VBOX_WITH_GUEST_CONTROL VBOXSERVICE_CONTROL
|
---|
42 | endif
|
---|
43 | ifdef VBOX_WITH_MEMBALLOON
|
---|
44 | VBoxService_DEFS += VBOX_WITH_MEMBALLOON
|
---|
45 | endif
|
---|
46 | ifdef VBOX_WITH_PAGE_SHARING
|
---|
47 | VBoxService_DEFS += VBOX_WITH_PAGE_SHARING
|
---|
48 | endif
|
---|
49 | if1of ($(KBUILD_TARGET), linux)
|
---|
50 | VBoxService_DEFS += VBOXSERVICE_CPUHOTPLUG
|
---|
51 | endif
|
---|
52 |
|
---|
53 | VBoxService_SOURCES = \
|
---|
54 | VBoxService.cpp \
|
---|
55 | VBoxServiceTimeSync.cpp \
|
---|
56 | VBoxServiceUtils.cpp \
|
---|
57 | VBoxServiceStats.cpp
|
---|
58 | ifdef VBOX_WITH_GUEST_CONTROL
|
---|
59 | VBoxService_SOURCES += \
|
---|
60 | VBoxServiceControl.cpp \
|
---|
61 | VBoxServiceControlExec.cpp
|
---|
62 | endif
|
---|
63 | ifdef VBOX_WITH_MEMBALLOON
|
---|
64 | VBoxService_SOURCES += \
|
---|
65 | VBoxServiceBalloon.cpp
|
---|
66 | endif
|
---|
67 | ifdef VBOX_WITH_PAGE_SHARING
|
---|
68 | VBoxService_SOURCES += \
|
---|
69 | VBoxServicePageSharing.cpp
|
---|
70 | endif
|
---|
71 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
72 | VBoxService_SOURCES.win = \
|
---|
73 | VBoxServiceVMInfo-win.cpp
|
---|
74 | VBoxService_SOURCES += \
|
---|
75 | VBoxServiceVMInfo.cpp \
|
---|
76 | VBoxServicePropCache.cpp
|
---|
77 | endif
|
---|
78 | if1of ($(KBUILD_TARGET), linux)
|
---|
79 | VBoxService_SOURCES += \
|
---|
80 | VBoxServiceCpuHotPlug.cpp
|
---|
81 | endif
|
---|
82 | VBoxService_SOURCES.win += \
|
---|
83 | VBoxService-win.rc \
|
---|
84 | VBoxService-win.cpp
|
---|
85 |
|
---|
86 | VBoxService_SOURCES.os2 = \
|
---|
87 | VBoxService-os2.def \
|
---|
88 | VBoxServiceClipboard-os2.cpp
|
---|
89 |
|
---|
90 | VBoxService_LIBS = \
|
---|
91 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
92 | $(VBOX_LIB_VBGL_R3) \
|
---|
93 | $(VBOX_LIB_IPRT_GUEST_R3)
|
---|
94 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
95 | VBoxService_LIBS.win += \
|
---|
96 | Secur32.lib \
|
---|
97 | WtsApi32.lib \
|
---|
98 | Psapi.lib
|
---|
99 | VBoxService_LIBS.solaris += \
|
---|
100 | nsl kstat
|
---|
101 | endif
|
---|
102 |
|
---|
103 | #
|
---|
104 | # VBoxServiceNT - NT4 version of VBoxService.
|
---|
105 | #
|
---|
106 | VBoxServiceNT_TEMPLATE = VBOXGUESTR3EXE
|
---|
107 | VBoxServiceNT_EXTENDS = VBoxService
|
---|
108 | VBoxServiceNT_DEFS.win = _WIN32_WINNT=0x0400 TARGET_NT4 VBOXSERVICE_MANAGEMENT
|
---|
109 |
|
---|
110 | VBoxServiceVMInfo.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
111 | VBoxServiceVMInfo.cpp_DEPS = $(VBOX_SVN_REV_KMK)
|
---|
112 |
|
---|
113 | #
|
---|
114 | # The icon is configurable.
|
---|
115 | #
|
---|
116 | VBoxService-win.rc_INCS = $(PATH_VBoxService)
|
---|
117 | VBoxService-win.rc_DEPS = $(PATH_VBoxService)/VBoxService-win-icon.rc
|
---|
118 | VBoxService-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 |
|
---|
125 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
126 |
|
---|