VirtualBox

Ignore:
Timestamp:
Jan 14, 2020 3:55:03 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
135690
Message:

VBoxHeadless: No need for custom RC file, use template and get version info in the hardened .exe too.

Location:
trunk/src/VBox/Frontends/VBoxHeadless
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxHeadless/Makefile.kmk

    r80569 r82742  
    3737VBoxHeadlessHardened_TEMPLATE = VBOXR3HARDENEDEXE
    3838VBoxHeadlessHardened_SOURCES = VBoxHeadlessHardened.cpp
    39 VBoxHeadlessHardened_SOURCES.win = $(VBoxHeadless_0_OUTDIR)/VBoxHeadless-icon.rc
    4039VBoxHeadlessHardened_NAME = VBoxHeadless
     40$(call VBOX_SET_VER_INFO_DLL,VBoxHeadlessHardened,VirtualBox Headless Frontend,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.
    4141
    4242
     
    5858 VBoxHeadless_LDFLAGS.darwin += -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxHeadless.dylib
    5959endif
    60 
    61 
    62 ifeq ($(KBUILD_TARGET),win)
    63 # Icon include file.
    64 VBoxHeadless_SOURCES   += VBoxHeadless.rc
    65 VBoxHeadless.rc_INCS    = $(VBoxHeadless_0_OUTDIR)
    66 VBoxHeadless.rc_DEPS    = $(VBoxHeadless_0_OUTDIR)/VBoxHeadless-icon.rc
    67 VBoxHeadless.rc_CLEAN   = $(VBoxHeadless_0_OUTDIR)/VBoxHeadless-icon.rc
    68 $$(VBoxHeadless_0_OUTDIR)/VBoxHeadless-icon.rc: $(VBOX_WINDOWS_ICON_FILE) $$(VBoxHeadless_DEFPATH)/Makefile.kmk | $$(dir $$@)
    69         $(RM) -f $@
    70         $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
    71 endif # win
     60ifdef VBOX_WITH_HARDENING
     61$(call VBOX_SET_VER_INFO_DLL,VBoxHeadless,VirtualBox Headless Frontend (dll),$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.
     62else
     63$(call VBOX_SET_VER_INFO_EXE,VBoxHeadless,VirtualBox Headless Frontend,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.
     64endif
    7265
    7366include $(FILE_KBUILD_SUB_FOOTER)
Note: See TracChangeset for help on using the changeset viewer.

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