VirtualBox

source: vbox/trunk/src/VBox/Installer/win/Resources/Makefile.kmk@ 34355

Last change on this file since 34355 was 34355, checked in by vboxsync, 14 years ago

Use special icon versions for OSE build.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
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
18SUB_DEPTH = ../../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21DLLS += VBoxRes
22VBoxRes_TEMPLATE = VBOXR3STATIC
23VBoxRes_DEPS = $(VBOX_SVN_REV_KMK)
24VBoxRes_SOURCES = \
25 VBoxRes.rc
26
27# The icon location is configurable.
28VBoxRes.rc_INCS += $(PATH_VBoxRes)
29VBoxRes.rc_DEPS += $(PATH_VBoxRes)/VBoxRes-icons.rc
30VBoxRes.rc_CLEAN = $(PATH_VBoxRes)/VBoxRes-icons.rc
31
32# The resource path.
33VBOX_RESOURCES_PATH_WIN := $(subst /,\\,$(PATH_ROOT))/src/VBox/Resources/win
34
35# Icon include file.
36# @todo Put this into Config.kmk?
37ifdef 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
44else
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
49endif
50
51VBOX_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
67include $(KBUILD_PATH)/subfooter.kmk
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette