1 | # $Id: Makefile.kmk 12446 2008-09-14 23:32:31Z 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 | SUB_DEPTH = ../../../../..
|
---|
14 | include $(KBUILD_PATH)/subheader.kmk
|
---|
15 |
|
---|
16 | PROGRAMS += VBoxService
|
---|
17 | VBoxService_TEMPLATE = VBOXGUESTR3EXE
|
---|
18 | VBoxService_DEFS = LOG_TO_BACKDOOR _WIN32_WINNT=0x0501 _UNICODE UNICODE
|
---|
19 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
20 | VBoxService_DEFS += VBOX_WITH_HGCM VBOX_WITH_GUEST_PROPS
|
---|
21 | endif
|
---|
22 | VBoxService_INCS = ../include
|
---|
23 | VBoxService_SOURCES = \
|
---|
24 | VBoxService.cpp \
|
---|
25 | VBoxUtils.cpp \
|
---|
26 | VBoxService.rc
|
---|
27 |
|
---|
28 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
29 | VBoxService_SOURCES += \
|
---|
30 | VBoxVMInfo.cpp \
|
---|
31 | VBoxVMInfoAdditions.cpp \
|
---|
32 | VBoxVMInfoUser.cpp \
|
---|
33 | VBoxVMInfoNet.cpp \
|
---|
34 | VBoxVMInfoOS.cpp
|
---|
35 | endif
|
---|
36 |
|
---|
37 | VBoxService_LIBS = \
|
---|
38 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
39 | $(VBOX_LIB_VBGL_R3) \
|
---|
40 | $(VBOX_LIB_IPRT_GUEST_R3)
|
---|
41 |
|
---|
42 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
43 | VBoxService_LIBS += \
|
---|
44 | Secur32.lib \
|
---|
45 | WtsApi32.lib \
|
---|
46 | Psapi.lib
|
---|
47 | endif
|
---|
48 |
|
---|
49 | # VBoxService.cpp uses VBOX_SVN_REV.
|
---|
50 | VBoxService.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
51 | VBoxService.cpp_DEPS = $(VBOX_SVN_REV_KMK)
|
---|
52 |
|
---|
53 | # The icon is configurable.
|
---|
54 | VBoxService.rc_INCS = $(PATH_VBoxService)
|
---|
55 | VBoxService.rc_DEPS = $(PATH_VBoxService)/VBoxService-icon.rc
|
---|
56 | VBoxService.rc_CLEAN = $(PATH_VBoxService)/VBoxService-icon.rc
|
---|
57 |
|
---|
58 | # Icon include file.
|
---|
59 | $$(PATH_VBoxService)/VBoxService-icon.rc: $(VBOX_WINDOWS_ICON_FILE) $$(VBoxService_PATH)/Makefile.kmk | $$(dir $$@)
|
---|
60 | $(RM) -f $@
|
---|
61 | $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
|
---|
62 |
|
---|
63 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
64 |
|
---|