1 | # $Id: Makefile.kmk 16954 2009-02-19 16:55:55Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the Windows Guest Additions Service.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2008 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 |
|
---|
22 | SUB_DEPTH = ../../../../..
|
---|
23 | include $(KBUILD_PATH)/subheader.kmk
|
---|
24 |
|
---|
25 | PROGRAMS += VBoxService
|
---|
26 | VBoxService_TEMPLATE = VBOXGUESTR3EXE
|
---|
27 | VBoxService_DEFS = LOG_TO_BACKDOOR _WIN32_WINNT=0x0501 _UNICODE UNICODE
|
---|
28 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
29 | VBoxService_DEFS += VBOX_WITH_HGCM VBOX_WITH_GUEST_PROPS
|
---|
30 | endif
|
---|
31 | VBoxService_INCS = ../include
|
---|
32 | VBoxService_SOURCES = \
|
---|
33 | VBoxService.cpp \
|
---|
34 | VBoxUtils.cpp \
|
---|
35 | VBoxService.rc \
|
---|
36 | VBoxTimeSync.cpp
|
---|
37 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
38 | VBoxService_SOURCES += \
|
---|
39 | VBoxVMInfo.cpp \
|
---|
40 | VBoxVMInfoAdditions.cpp \
|
---|
41 | VBoxVMInfoUser.cpp \
|
---|
42 | VBoxVMInfoNet.cpp \
|
---|
43 | VBoxVMInfoOS.cpp
|
---|
44 | endif
|
---|
45 |
|
---|
46 | VBoxService_LIBS = \
|
---|
47 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
48 | $(VBOX_LIB_VBGL_R3) \
|
---|
49 | $(VBOX_LIB_IPRT_GUEST_R3)
|
---|
50 |
|
---|
51 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
52 | VBoxService_LIBS += \
|
---|
53 | Secur32.lib \
|
---|
54 | WtsApi32.lib \
|
---|
55 | Psapi.lib
|
---|
56 | endif
|
---|
57 |
|
---|
58 | # VBoxService.cpp uses VBOX_SVN_REV.
|
---|
59 | VBoxService.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
60 | VBoxService.cpp_DEPS = $(VBOX_SVN_REV_KMK)
|
---|
61 |
|
---|
62 | # The icon is configurable.
|
---|
63 | VBoxService.rc_INCS = $(PATH_VBoxService)
|
---|
64 | VBoxService.rc_DEPS = $(PATH_VBoxService)/VBoxService-icon.rc
|
---|
65 | VBoxService.rc_CLEAN = $(PATH_VBoxService)/VBoxService-icon.rc
|
---|
66 |
|
---|
67 | # Icon include file.
|
---|
68 | $$(PATH_VBoxService)/VBoxService-icon.rc: $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) $$(VBoxService_PATH)/Makefile.kmk | $$(dir $$@)
|
---|
69 | $(RM) -f $@
|
---|
70 | $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))"'
|
---|
71 |
|
---|
72 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
73 |
|
---|