# $Id: Makefile.kmk 38360 2011-08-08 18:02:14Z vboxsync $ ## @file # Sub-Makefile for VBoxRes.dll. # # # Copyright (C) 2010-2011 Oracle Corporation # # This file is part of VirtualBox Open Source Edition (OSE), as # available from http://www.virtualbox.org. This file is free software; # you can redistribute it and/or modify it under the terms of the GNU # General Public License (GPL) as published by the Free Software # Foundation, in version 2 as it comes in the "COPYING" file of the # VirtualBox OSE distribution. VirtualBox OSE is distributed in the # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. # SUB_DEPTH = ../../../../.. include $(KBUILD_PATH)/subheader.kmk DLLS += VBoxRes VBoxRes_TEMPLATE = VBOXR3STATIC VBoxRes_DEPS = $(VBOX_SVN_REV_KMK) VBoxRes_SOURCES = \ dummy.cpp \ VBoxRes.rc # The icon location is configurable. VBoxRes.rc_INCS += $(VBoxRes_0_OUTDIR) VBoxRes.rc_DEPS += $(VBoxRes_0_OUTDIR)/VBoxRes-icons.rc VBoxRes.rc_CLEAN = $(VBoxRes_0_OUTDIR)/VBoxRes-icons.rc # The resource path. VBOX_RESOURCES_PATH_WIN := $(subst /,\\,$(PATH_ROOT))/src/VBox/Resources/win # Icon include file. # @todo Put this into Config.kmk? ifdef VBOX_OSE # Hack: rc.exe on OSE build boxes don't support Vista icons; so # use a special icon version (without the 256x256 size) instead. VBOX_WINDOWS_ICON_EXT_VBOX := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox.ico VBOX_WINDOWS_ICON_EXT_EXTPACK := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox-extpack.ico VBOX_WINDOWS_ICON_EXT_OVA := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-ova.ico VBOX_WINDOWS_ICON_EXT_OVF := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-ovf.ico VBOX_WINDOWS_ICON_EXT_VDI := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vdi.ico VBOX_WINDOWS_ICON_EXT_VMDK := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vmdk.ico VBOX_WINDOWS_ICON_EXT_VHD := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vhd.ico VBOX_WINDOWS_ICON_EXT_HDD := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-hdd.ico else VBOX_WINDOWS_ICON_EXT_VBOX := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vbox.ico VBOX_WINDOWS_ICON_EXT_EXTPACK := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vbox-extpack.ico VBOX_WINDOWS_ICON_EXT_OVA := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-ova.ico VBOX_WINDOWS_ICON_EXT_OVF := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-ovf.ico VBOX_WINDOWS_ICON_EXT_VDI := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vdi.ico VBOX_WINDOWS_ICON_EXT_VMDK := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vmdk.ico VBOX_WINDOWS_ICON_EXT_VHD := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vhd.ico VBOX_WINDOWS_ICON_EXT_HDD := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-hdd.ico endif VBOX_RESOURCES_WIN := \ $(VBOX_WINDOWS_ICON_FILE) \ $(VBOX_WINDOWS_ICON_EXT_VBOX) \ $(VBOX_WINDOWS_ICON_EXT_EXTPACK) \ $(VBOX_WINDOWS_ICON_EXT_OVA) \ $(VBOX_WINDOWS_ICON_EXT_OVF) \ $(VBOX_WINDOWS_ICON_EXT_VDI) \ $(VBOX_WINDOWS_ICON_EXT_VMDK) \ $(VBOX_WINDOWS_ICON_EXT_VHD) \ $(VBOX_WINDOWS_ICON_EXT_HDD) $$(VBoxRes_0_OUTDIR)/VBoxRes-icons.rc: \ $$(VBOX_RESOURCES_WIN) $(MAKEFILE_CURRENT) | $$(dir $$@) $(RM) -f $@ $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"' $(APPEND) $@ 'IDI_FILETYPE_VBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_EXT_VBOX))"' $(APPEND) $@ 'IDI_FILETYPE_VBOX_EXTPACK ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_EXT_EXTPACK))"' $(APPEND) $@ 'IDI_FILETYPE_VBOX_OVA ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_EXT_OVA))"' $(APPEND) $@ 'IDI_FILETYPE_VBOX_OVF ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_EXT_OVF))"' $(APPEND) $@ 'IDI_FILETYPE_VBOX_VDI ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_EXT_VDI))"' $(APPEND) $@ 'IDI_FILETYPE_VBOX_VMDK ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_EXT_VMDK))"' $(APPEND) $@ 'IDI_FILETYPE_VBOX_VHD ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_EXT_VHD))"' $(APPEND) $@ 'IDI_FILETYPE_VBOX_HDD ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_EXT_HDD))"' include $(KBUILD_PATH)/subfooter.kmk