VirtualBox

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

Last change on this file since 56294 was 56294, checked in by vboxsync, 9 years ago

Additions/common,Additions/os2: Updated (C) year.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.4 KB
Line 
1# $Id: Makefile.kmk 56294 2015-06-09 14:26:20Z vboxsync $
2## @file
3# Sub-Makefile for the Cross Platform Guest Addition Services.
4#
5
6#
7# Copyright (C) 2007-2015 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# Incldue testcases.
23#
24include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
25
26#
27# Target lists.
28#
29PROGRAMS += VBoxService
30PROGRAMS.win.x86 += VBoxServiceNT
31
32#
33# VBoxService
34#
35VBoxService_TEMPLATE = NewVBoxGuestR3Exe
36VBoxService_DEFS = VBOX_WITH_HGCM VBOXSERVICE_TIMESYNC VBOXSERVICE_MANAGEMENT VBOXSERVICE_TOOLBOX
37VBoxService_DEFS += \
38 VBOX_BUILD_TARGET=\"$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)\"
39VBoxService_DEFS.win += _WIN32_WINNT=0x0501
40VBoxService_DEFS.os2 = VBOX_WITH_HGCM VBOXSERVICE_CLIPBOARD
41ifdef VBOX_WITH_DBUS
42 VBoxService_DEFS += VBOX_WITH_DBUS
43endif
44ifdef VBOX_WITH_GUEST_PROPS
45 VBoxService_DEFS += VBOX_WITH_GUEST_PROPS VBOXSERVICE_VMINFO
46endif
47ifdef VBOX_WITH_GUEST_CONTROL
48 VBoxService_DEFS += VBOX_WITH_GUEST_CONTROL VBOXSERVICE_CONTROL
49endif
50ifdef VBOX_WITH_MEMBALLOON
51 VBoxService_DEFS += VBOX_WITH_MEMBALLOON
52endif
53if1of ($(KBUILD_TARGET), win)
54 VBoxService_DEFS += VBOXSERVICE_PAGE_SHARING
55endif
56if1of ($(KBUILD_TARGET), linux)
57 VBoxService_DEFS += VBOXSERVICE_CPUHOTPLUG
58endif
59ifdef VBOX_WITH_SHARED_FOLDERS
60 # darwin freebsd
61 if1of ($(KBUILD_TARGET), linux solaris)
62 VBoxService_DEFS += VBOX_WITH_SHARED_FOLDERS
63 endif
64endif
65
66VBoxService_SOURCES = \
67 VBoxService.cpp \
68 VBoxServiceTimeSync.cpp \
69 VBoxServiceUtils.cpp \
70 VBoxServiceStats.cpp \
71 VBoxServiceToolBox.cpp
72
73ifdef VBOX_WITH_GUEST_CONTROL
74 VBoxService_SOURCES += \
75 VBoxServiceControl.cpp \
76 VBoxServiceControlProcess.cpp \
77 VBoxServiceControlSession.cpp
78endif
79
80ifdef VBOX_WITH_MEMBALLOON
81 VBoxService_SOURCES += \
82 VBoxServiceBalloon.cpp
83endif
84if1of ($(KBUILD_TARGET), win)
85 VBoxService_SOURCES += \
86 VBoxServicePageSharing.cpp
87endif
88
89ifdef VBOX_WITH_GUEST_PROPS
90 VBoxService_SOURCES.win = \
91 VBoxServiceVMInfo-win.cpp
92 VBoxService_SOURCES += \
93 VBoxServiceVMInfo.cpp \
94 VBoxServicePropCache.cpp
95endif
96
97if1of ($(KBUILD_TARGET), linux)
98 VBoxService_SOURCES += \
99 VBoxServiceCpuHotPlug.cpp
100endif
101
102ifdef VBOX_WITH_SHARED_FOLDERS
103 if1of ($(KBUILD_TARGET), linux solaris)
104 VBoxService_SOURCES += \
105 VBoxServiceAutoMount.cpp
106 VBoxService_SOURCES.linux += \
107 ../../linux/sharedfolders/vbsfmount.c
108 endif
109endif
110
111VBoxService_SOURCES.win += \
112 VBoxService-win.rc \
113 VBoxService-win.cpp
114
115VBoxService_SOURCES.os2 = \
116 VBoxService-os2.def \
117 VBoxServiceClipboard-os2.cpp
118
119VBoxService_LDFLAGS.darwin = -framework IOKit
120
121VBoxService_LIBS += \
122 $(VBOX_LIB_IPRT_GUEST_R3) \
123 $(VBOX_LIB_VBGL_R3) \
124 $(VBOX_LIB_IPRT_GUEST_R3) # (The joy of unix linkers.)
125if1of ($(KBUILD_TARGET), linux)
126 VBoxService_LIBS += \
127 crypt
128endif
129ifdef VBOX_WITH_DBUS
130 if1of ($(KBUILD_TARGET), linux solaris) # FreeBSD?
131 VBoxService_LIBS += \
132 dl
133 endif
134endif
135ifdef VBOX_WITH_GUEST_PROPS
136 VBoxService_LIBS.win += \
137 Secur32.lib \
138 WtsApi32.lib \
139 Psapi.lib
140 VBoxService_LIBS.solaris += \
141 nsl \
142 kstat \
143 contract
144endif
145
146#
147# VBoxServiceNT - NT4 version of VBoxService.
148#
149VBoxServiceNT_TEMPLATE = NewVBoxGuestR3Exe
150VBoxServiceNT_EXTENDS = VBoxService
151VBoxServiceNT_DEFS.win = _WIN32_WINNT=0x0400 TARGET_NT4 VBOXSERVICE_MANAGEMENT
152
153VBoxServiceVMInfo.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
154VBoxServiceVMInfo.cpp_DEPS = $(VBOX_SVN_REV_KMK)
155
156#
157# The icon is configurable.
158#
159VBoxService-win.rc_INCS = $(VBoxService_0_OUTDIR)
160VBoxService-win.rc_DEPS = $(VBoxService_0_OUTDIR)/VBoxService-win-icon.rc
161VBoxService-win.rc_CLEAN = $(VBoxService_0_OUTDIR)/VBoxService-win-icon.rc
162
163# Icon include file.
164$$(VBoxService_0_OUTDIR)/VBoxService-win-icon.rc: $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) $$(VBoxService_DEFPATH)/Makefile.kmk | $$(dir $$@)
165 $(RM) -f $@
166 $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))"'
167
168include $(FILE_KBUILD_SUB_FOOTER)
169
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