1 | # $Id: Makefile.kmk 12170 2008-09-06 03:58:49Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the Windows Guest Additions Service.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2008 Sun Microsystems, Inc.
|
---|
8 | #
|
---|
9 | # Sun Microsystems, Inc. confidential
|
---|
10 | # All rights reserved
|
---|
11 | #
|
---|
12 |
|
---|
13 | ifdef VBOX_SINGLE_MAKEFILE
|
---|
14 | SUB_DEPTH = ../../../../..
|
---|
15 | else
|
---|
16 | DEPTH ?= ../../../../..
|
---|
17 | SUB_DEPTH = ../..
|
---|
18 | endif
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | PROGRAMS += VBoxService
|
---|
22 | VBoxService_TEMPLATE = VBOXGUESTR3EXE
|
---|
23 | VBoxService_DEFS = LOG_TO_BACKDOOR _WIN32_WINNT=0x0501 _UNICODE UNICODE
|
---|
24 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
25 | VBoxService_DEFS += VBOX_WITH_HGCM VBOX_WITH_GUEST_PROPS
|
---|
26 | endif
|
---|
27 | VBoxService_INCS = ../include
|
---|
28 | VBoxService_SOURCES = \
|
---|
29 | VBoxService.cpp \
|
---|
30 | VBoxUtils.cpp \
|
---|
31 | VBoxService.rc
|
---|
32 |
|
---|
33 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
34 | VBoxService_SOURCES += \
|
---|
35 | VBoxVMInfo.cpp \
|
---|
36 | VBoxVMInfoAdditions.cpp \
|
---|
37 | VBoxVMInfoUser.cpp \
|
---|
38 | VBoxVMInfoNet.cpp \
|
---|
39 | VBoxVMInfoOS.cpp
|
---|
40 | endif
|
---|
41 |
|
---|
42 | VBoxService_LIBS = \
|
---|
43 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
44 | $(VBOX_LIB_VBGL_R3) \
|
---|
45 | $(VBOX_LIB_IPRT_GUEST_R3)
|
---|
46 |
|
---|
47 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
48 | VBoxService_LIBS += \
|
---|
49 | Secur32.lib \
|
---|
50 | WtsApi32.lib \
|
---|
51 | Psapi.lib
|
---|
52 | endif
|
---|
53 |
|
---|
54 | # VBoxService.cpp uses VBOX_SVN_REV.
|
---|
55 | VBoxService.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
56 | VBoxService.cpp_DEPS = $(VBOX_SVN_REV_KMK)
|
---|
57 | VBoxService.rc_INCS = $(PATH_VBoxService)
|
---|
58 | VBoxService.rc_DEPS = $(PATH_VBoxService)/VBoxService-icon.rc
|
---|
59 | VBoxService.rc_CLEAN = $(PATH_VBoxService)/VBoxService-icon.rc
|
---|
60 |
|
---|
61 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
62 |
|
---|
63 | # Icon include file.
|
---|
64 | $(PATH_VBoxService)/VBoxService-icon.rc: $(VBOX_WINDOWS_ICON_FILE) $(VBoxService_PATH)/Makefile.kmk | $$(call DIRDEP,$$(@D))
|
---|
65 | $(RM) -f $@
|
---|
66 | $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
|
---|