VirtualBox

Ignore:
Timestamp:
Oct 2, 2008 5:26:23 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
37377
Message:

VirtualBox4/Makefile: simplified the .lproj install, symlink Resources for VirtualBoxVM.app (hope that works).

File:
1 edited

Legend:

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

    r12948 r12951  
    483483ifeq ($(KBUILD_TARGET),darwin)
    484484#
    485 # For the application menu it is necessary to have all supported language at
    486 # least as a project directory in the bundle. Create them all based on the
    487 # nls/ApprovedLanguages.txt file.
    488 #
    489 
    490 ## @todo: It seems it isn't possible to let kBuild generate a directory in the
    491 # install target without installing something. So we install an empty file for that.
    492 
    493 # Figure out which languages we support
    494 VBOX_SUPPORTED_LANG = $(shell $(CAT_EXT) $(PATH_ROOT)/src/VBox/Frontends/VirtualBox4/nls/ApprovedLanguages.txt)
    495 # For the .lproj directories
    496 VBOX_INSTALL_LANG_LPROJ = $(addsuffix .lproj,$(VBOX_SUPPORTED_LANG))
    497 
    498 define def_gen_lproj_dir
    499 INSTALLS += $(lang_name)
    500 $(lang_name)_INST = dist/VirtualBox.app/Contents/Resources/$(lang_name)
    501 # The install TEMPLATE needs something to install; use a emtpy file for that.
    502 # @todo: How could this be prevented?
    503 $(lang_name)_SOURCES = \
    504         $(VBOX_VIRTUALBOX4_OUT_DIR)/lproj/.empty
    505 # Symlink for the VirtualBoxVM.app
    506 $(lang_name)_SYMLINKS = \
    507         ../VirtualBoxVM.app/Contents/Resources/$(lang_name)=>../../../$(lang_name)
    508 endef
    509 $(foreach lang_name,$(VBOX_INSTALL_LANG_LPROJ),$(eval $(def_gen_lproj_dir)))
    510 
    511 # Rule for generating an empty file
    512 BLDDIRS += $(VBOX_VIRTUALBOX4_OUT_DIR)/lproj/
    513 CLEAN += $(VBOX_VIRTUALBOX4_OUT_DIR)/lproj/.empty
    514 $(VBOX_VIRTUALBOX4_OUT_DIR)/lproj/.empty:: | $$(dir $$@)
    515         $(QUIET)$(APPEND) $@ ''
     485# Create directories for each approved language or the application
     486# menu won't be translated.
     487#
     488## @todo CAT is BAD, make ApprovedLanguages.txt includable!
     489INSTALLS += VirtualBox4.lproj
     490VirtualBox4.lproj_INST = $(INST_VIRTUALBOX)Contents/Resources/
     491VirtualBox4.lproj_MODE = 755
     492VirtualBox4.lproj_DIRS := $(addsuffix .lproj,$(shell $(CAT_EXT) $(VBOX_VIRTUALBOX4_SRC)/nls/ApprovedLanguages.txt))
     493# Hope we don't have to do this.
     494#VirtualBox4.lproj_SYMLINKS := \
     495#       $(foreach lang, $(VirtualBox4.lproj_DIRS),../VirtualBoxVM.app/Contents/Resources/$(lang)=>../../../$(lang))
    516496
    517497#
     
    542522VirtualBox4VM.app_SOURCES = \
    543523        src/darwin/VM-PkgInfo=>PkgInfo \
    544         $(PATH_VirtualBox4VM.app)/VM-Info.plist=>Info.plist \
    545         $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns
     524        $(PATH_VirtualBox4VM.app)/VM-Info.plist=>Info.plist
     525#       $(VBOX_MACOSX_ICON_FILE)=>Resources/virtualbox.icns - hope the link works.
    546526VirtualBox4VM.app_SYMLINKS = \
    547         MacOS=>../../../MacOS/
     527        MacOS=>../../../MacOS/ \
     528        Resources=>../../../Resources/
    548529
    549530$$(PATH_VirtualBox4VM.app)/VM-Info.plist: $(PATH_SUB_CURRENT)/src/darwin/VM-Info.plist $(VBOX_VERSION_MK) | $$(@D)/
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