1 | # $Id: Makefile.kmk 41477 2012-05-29 11:43:27Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for VBoxRes.dll.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2010-2012 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 | dummy.cpp \
|
---|
26 | VBoxRes.rc
|
---|
27 |
|
---|
28 | # The icon location is configurable.
|
---|
29 | VBoxRes.rc_INCS += $(VBoxRes_0_OUTDIR)
|
---|
30 | VBoxRes.rc_DEPS += $(VBoxRes_0_OUTDIR)/VBoxRes-icons.rc
|
---|
31 | VBoxRes.rc_CLEAN = $(VBoxRes_0_OUTDIR)/VBoxRes-icons.rc
|
---|
32 |
|
---|
33 | # The resource path.
|
---|
34 | VBOX_RESOURCES_PATH_WIN := $(subst /,\\,$(PATH_ROOT))/src/VBox/Resources/win
|
---|
35 |
|
---|
36 | # Icon include file.
|
---|
37 | # @todo Put this into Config.kmk?
|
---|
38 | ifdef VBOX_OSE
|
---|
39 | # Hack: rc.exe on OSE build boxes don't support Vista icons; so
|
---|
40 | # use a special icon version (without the 256x256 size) instead.
|
---|
41 | VBOX_WINDOWS_ICON_EXT_VBOX := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox.ico
|
---|
42 | VBOX_WINDOWS_ICON_EXT_EXTPACK := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox-extpack.ico
|
---|
43 | VBOX_WINDOWS_ICON_EXT_OVA := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-ova.ico
|
---|
44 | VBOX_WINDOWS_ICON_EXT_OVF := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-ovf.ico
|
---|
45 | VBOX_WINDOWS_ICON_EXT_VDI := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vdi.ico
|
---|
46 | VBOX_WINDOWS_ICON_EXT_VMDK := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vmdk.ico
|
---|
47 | VBOX_WINDOWS_ICON_EXT_VHD := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vhd.ico
|
---|
48 | VBOX_WINDOWS_ICON_EXT_HDD := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-hdd.ico
|
---|
49 | else
|
---|
50 | VBOX_WINDOWS_ICON_EXT_VBOX := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vbox.ico
|
---|
51 | VBOX_WINDOWS_ICON_EXT_EXTPACK := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vbox-extpack.ico
|
---|
52 | VBOX_WINDOWS_ICON_EXT_OVA := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-ova.ico
|
---|
53 | VBOX_WINDOWS_ICON_EXT_OVF := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-ovf.ico
|
---|
54 | VBOX_WINDOWS_ICON_EXT_VDI := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vdi.ico
|
---|
55 | VBOX_WINDOWS_ICON_EXT_VMDK := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vmdk.ico
|
---|
56 | VBOX_WINDOWS_ICON_EXT_VHD := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vhd.ico
|
---|
57 | VBOX_WINDOWS_ICON_EXT_HDD := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-hdd.ico
|
---|
58 | endif
|
---|
59 |
|
---|
60 | VBOX_RESOURCES_WIN := \
|
---|
61 | $(VBOX_WINDOWS_ICON_FILE) \
|
---|
62 | $(VBOX_WINDOWS_ICON_EXT_VBOX) \
|
---|
63 | $(VBOX_WINDOWS_ICON_EXT_EXTPACK) \
|
---|
64 | $(VBOX_WINDOWS_ICON_EXT_OVA) \
|
---|
65 | $(VBOX_WINDOWS_ICON_EXT_OVF) \
|
---|
66 | $(VBOX_WINDOWS_ICON_EXT_VDI) \
|
---|
67 | $(VBOX_WINDOWS_ICON_EXT_VMDK) \
|
---|
68 | $(VBOX_WINDOWS_ICON_EXT_VHD) \
|
---|
69 | $(VBOX_WINDOWS_ICON_EXT_HDD)
|
---|
70 |
|
---|
71 | $$(VBoxRes_0_OUTDIR)/VBoxRes-icons.rc: \
|
---|
72 | $$(VBOX_RESOURCES_WIN) $(MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
73 | $(RM) -f $@
|
---|
74 | $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
|
---|
75 | $(APPEND) $@ 'IDI_FILETYPE_VBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_EXT_VBOX))"'
|
---|
76 | $(APPEND) $@ 'IDI_FILETYPE_VBOX_EXTPACK ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_EXT_EXTPACK))"'
|
---|
77 | $(APPEND) $@ 'IDI_FILETYPE_VBOX_OVA ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_EXT_OVA))"'
|
---|
78 | $(APPEND) $@ 'IDI_FILETYPE_VBOX_OVF ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_EXT_OVF))"'
|
---|
79 | $(APPEND) $@ 'IDI_FILETYPE_VBOX_VDI ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_EXT_VDI))"'
|
---|
80 | $(APPEND) $@ 'IDI_FILETYPE_VBOX_VMDK ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_EXT_VMDK))"'
|
---|
81 | $(APPEND) $@ 'IDI_FILETYPE_VBOX_VHD ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_EXT_VHD))"'
|
---|
82 | $(APPEND) $@ 'IDI_FILETYPE_VBOX_HDD ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_EXT_HDD))"'
|
---|
83 |
|
---|
84 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|