1 | # $Id: Makefile.kmk 34355 2010-11-25 09:17:01Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for VBoxRes.dll.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 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 | DLLS += VBoxRes
|
---|
22 | VBoxRes_TEMPLATE = VBOXR3STATIC
|
---|
23 | VBoxRes_DEPS = $(VBOX_SVN_REV_KMK)
|
---|
24 | VBoxRes_SOURCES = \
|
---|
25 | VBoxRes.rc
|
---|
26 |
|
---|
27 | # The icon location is configurable.
|
---|
28 | VBoxRes.rc_INCS += $(PATH_VBoxRes)
|
---|
29 | VBoxRes.rc_DEPS += $(PATH_VBoxRes)/VBoxRes-icons.rc
|
---|
30 | VBoxRes.rc_CLEAN = $(PATH_VBoxRes)/VBoxRes-icons.rc
|
---|
31 |
|
---|
32 | # The resource path.
|
---|
33 | VBOX_RESOURCES_PATH_WIN := $(subst /,\\,$(PATH_ROOT))/src/VBox/Resources/win
|
---|
34 |
|
---|
35 | # Icon include file.
|
---|
36 | # @todo Put this into Config.kmk?
|
---|
37 | ifdef VBOX_OSE
|
---|
38 | # Hack: rc.exe on OSE build boxes don't support Vista icons; so
|
---|
39 | # use a special icon version (without the 256x256 size) instead.
|
---|
40 | VBOX_WINDOWS_ICON_EXT_VBOX := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox.ico
|
---|
41 | VBOX_WINDOWS_ICON_EXT_EXTPACK := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox-extpack.ico
|
---|
42 | VBOX_WINDOWS_ICON_EXT_OVA := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-ova.ico
|
---|
43 | VBOX_WINDOWS_ICON_EXT_OVF := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-ovf.ico
|
---|
44 | else
|
---|
45 | VBOX_WINDOWS_ICON_EXT_VBOX := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vbox.ico
|
---|
46 | VBOX_WINDOWS_ICON_EXT_EXTPACK := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vbox-extpack.ico
|
---|
47 | VBOX_WINDOWS_ICON_EXT_OVA := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-ova.ico
|
---|
48 | VBOX_WINDOWS_ICON_EXT_OVF := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-ovf.ico
|
---|
49 | endif
|
---|
50 |
|
---|
51 | VBOX_RESOURCES_WIN := \
|
---|
52 | $(VBOX_WINDOWS_ICON_FILE) \
|
---|
53 | $(VBOX_WINDOWS_ICON_EXT_VBOX) \
|
---|
54 | $(VBOX_WINDOWS_ICON_EXT_EXTPACK) \
|
---|
55 | $(VBOX_WINDOWS_ICON_EXT_OVA) \
|
---|
56 | $(VBOX_WINDOWS_ICON_EXT_OVF)
|
---|
57 |
|
---|
58 | $$(PATH_VBoxRes)/VBoxRes-icons.rc: \
|
---|
59 | $$(VBOX_RESOURCES_WIN) $(MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
60 | $(RM) -f $@
|
---|
61 | $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
|
---|
62 | $(APPEND) $@ 'IDI_FILETYPE_VBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_EXT_VBOX))"'
|
---|
63 | $(APPEND) $@ 'IDI_FILETYPE_VBOX_EXTPACK ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_EXT_EXTPACK))"'
|
---|
64 | $(APPEND) $@ 'IDI_FILETYPE_VBOX_OVA ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_EXT_OVA))"'
|
---|
65 | $(APPEND) $@ 'IDI_FILETYPE_VBOX_OVF ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_EXT_OVF))"'
|
---|
66 |
|
---|
67 | include $(KBUILD_PATH)/subfooter.kmk
|
---|