VirtualBox

Changeset 788 in kBuild


Ignore:
Timestamp:
Jan 24, 2007 10:44:32 PM (18 years ago)
Author:
bird
Message:

custom msg style support.

Location:
trunk/kBuild
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/header.kmk

    r782 r788  
    738738
    739739#
    740 # Currently two message styles are supported: default and dense.
     740# Setup the message style. The default one is inlined.
     741#
     742# See kBuild/msgstyles for more styles or use KBUILD_MSG_STYLE_PATHS
     743# to create your own message style.
    741744#
    742745KBUILD_MSG_STYLE ?= default
     
    811814 MSG_INST_DIR ?= $(call MSG_L1,Installing directory $1)
    812815
    813 else ifeq ($(KBUILD_MSG_STYLE),short)
    814  #
    815  # The 'short' style
    816  #
    817  ifndef KBUILD_VERBOSE
    818   MSG_L1 ?= @$(ECHO) "  $(subst $(PATH_ROOT)/,{R}/,$(subst $(PATH_OUT)/,{O}/,$(subst $(CURDIR)/,{C}/,$(subst $(PATH_TARGET)/,{T}/,$1))))"
     816else
     817 _KBUILD_MSG_STYLE_FILE := $(firstword $(foreach path, $(KBUILD_MSG_STYLE_PATHS) $(PATH_KBUILD)/msgstyles, $(wildcard $(path)/$(KBUILD_MSG_STYLE).kmk)))
     818 ifneq ($(_KBUILD_MSG_STYLE_FILE),)
     819  include $(_KBUILD_MSG_STYLE_FILE)
    819820 else
    820   MSG_L1 ?= @$(ECHO) "  $(subst $(PATH_ROOT)/,{R}/,$(subst $(PATH_OUT)/,{O}/,$(subst $(CURDIR)/,{C}/,$(subst $(PATH_TARGET)/,{T}/,$1 $2))))"
    821   MSG_L2 ?= @$(ECHO) "  $(subst $(PATH_ROOT)/,{R}/,$(subst $(PATH_OUT)/,{O}/,$(subst $(CURDIR)/,{C}/,$(subst $(PATH_TARGET)/,{T}/,$1))))"
    822  endif
    823 
    824  ## Fetch starting.
    825  # @param 1     Target name.
    826  MSG_FETCH    ?= $(call MSG_L1,FTCH $1...)
    827  ## Re-fetch starting.
    828  # @param 1     Target name.
    829  MSG_REFETCH  ?= $(call MSG_L1,RFTCH $1...)
    830  ## Downloading a fetch component.
    831  # @param 1     Target name.
    832  # @param 2     The source URL.
    833  # @param 3     The destination file name.
    834  MSG_FETCH_DL ?= $(call MSG_L1,GET  $1 - $2,=> $3)
    835  ## Checking a fetch component.
    836  # @param 1     Target name.
    837  # @param 2     The source URL.
    838  # @param 3     The destination file name.
    839  MSG_FETCH_CHK?= $(call MSG_L1,CHK  $1 - $3, ($2))
    840  ## Unpacking a fetch component.
    841  # @param 1     Target name.
    842  # @param 2     The archive file name.
    843  # @param 3     The target directory.
    844  MSG_FETCH_UP ?= $(call MSG_L1,UNPK $1 - $2,=> $3)
    845  ## Fetch completed.
    846  # @param 1     Target name.
    847  MSG_FETCH_OK ?= $(call MSG_L1,DONE $1)
    848  ## Unfetch a fetch target.
    849  # @param 1     Target name.
    850  MSG_UNFETCH  ?= $(call MSG_L1,RM   $1...)
    851  ## Compiling a source file.
    852  # @param 1     Target name.
    853  # @param 2     The source filename.
    854  # @param 3     The primary link output file name.
    855  # @param 4     The source type (CXX,C,AS,RC,++).
    856  MSG_COMPILE  ?= $(call MSG_L1,CC   $1 - $2,=> $3)
    857  ## Linking a bldprog/dll/program/sysmod target.
    858  # @param 1     Target name.
    859  # @param 2     The primary link output file name.
    860  # @param 3     The link tool operation (LINK_LIBRARY,LINK_PROGRAM,LINK_DLL,LINK_SYSMOD,++).
    861  MSG_LINK     ?= $(call MSG_L1,$(if $(eq $3,LINK_LIBRARY),AR,LD)   $1,=> $2)
    862  ## Creating a directory (build).
    863  # @param 1     Directory name.
    864  MSG_MKDIR    ?= $(call MSG_L2,DIR  $1)
    865  ## Cleaning.
    866  MSG_CLEAN    ?= $(call MSG_L1,CLEAN)
    867  ## Nothing.
    868  MSG_NOTHING  ?= $(call MSG_L1,NOTHING $(CURDIR))
    869  ## Installing a bldprog/lib/dll/program/sysmod target.
    870  # @param 1     Target name.
    871  # @param 2     The source filename.
    872  # @param 3     The destination file name.
    873  MSG_INST_TRG ?= $(call MSG_L1,INST $1 => $3)
    874  ## Installing a file (install target).
    875  # @param 1     The source filename.
    876  # @param 2     The destination filename.
    877  MSG_INST_FILE?= $(call MSG_L1,IFIL $2,(<= $1))
    878  ## Installing a symlink.
    879  # @param 1     Symlink
    880  # @param 2     Link target
    881  MSG_INST_SYM ?= $(call MSG_L1,ISYM $1,=> $2)
    882  ## Installing a directory.
    883  # @param 1     Directory name.
    884  MSG_INST_DIR ?= $(call MSG_L1,IDIR $1)
    885 
    886 else
    887  $(error kBuild: Unknown message style: KBUILD_MSG_STYLE=$(KBUILD_MSG_STYLE))
     821  $(error kBuild: Can't find the style setup file for KBUILD_MSG_STYLE '$(KBUILD_MSG_STYLE)')
     822 endif
    888823endif
    889824
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