VirtualBox

Changeset 2239 in kBuild


Ignore:
Timestamp:
Jan 9, 2009 3:36:01 AM (16 years ago)
Author:
bird
Message:

footer.kmk,subheader.kmk,subfooter.kmk,qt3.kmk,qt4.kmk: PATH_$(target) -> $(target)_0_OUTDIR, old variable is still valid for a while. References #57.

Location:
trunk/kBuild
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r2238 r2239  
    14011401        $(target))
    14021402local outbase     := $(call TARGET_BASE,$(name),$(target))
    1403 ifndef PATH_$(target)
    1404  PATH_$(target) := $(patsubst %/,%,$(dir $(outbase)))
    1405 else ifneq ($(PATH_$(target)),$(patsubst %/,%,$(dir $(outbase))))
    1406  $(error kBuild internal error: PATH_$(target)=$(PATH_$(target)) expected $(patsubst %/,%,$(dir $(outbase))))
    1407 endif
     1403$(target)_0_OUTDIR:= $(patsubst %/,%,$(dir $(outbase)))
     1404PATH_$(target)    := $($(target)_0_OUTDIR)
    14081405## @todo fix the fun at the last line (AR != LIB => mess).
    14091406local suff := $(firstword \
     
    15701567# PATH_*
    15711568local outbase     := $(call TARGET_BASE,$(target),$(target))
    1572 PATH_$(target)    := $(patsubst %/,%,$(dir $(outbase)))
     1569$(target)_0_OUTDIR:= $(patsubst %/,%,$(dir $(outbase)))
     1570PATH_$(target)    := $($(target)_0_OUTDIR)
    15731571endef # def_pass1_install
    15741572$(eval-opt-var def_pass1_install)
     
    23212319        $(target))
    23222320local outbase     := $(call TARGET_BASE,$(name),$(target))
    2323 ifndef PATH_$(target)
    2324  PATH_$(target)   := $(patsubst %/,%,$(dir $(outbase)))
    2325 else ifneq ($(PATH_$(target)),$(patsubst %/,%,$(dir $(outbase))))
    2326  $(error kBuild internal error: PATH_$(target)=$(PATH_$(target)) expected $(patsubst %/,%,$(dir $(outbase))))
    2327 endif
     2321$(target)_0_OUTDIR:= $(patsubst %/,%,$(dir $(outbase)))
     2322PATH_$(target)    := $($(target)_0_OUTDIR)
    23282323local suff        := $(firstword\
    23292324        $($(target)_LIBSUFF.$(bld_trg).$(bld_trg_arch))\
     
    25752570        $(target))
    25762571local outbase     := $(call TARGET_BASE,$(name),$(target))
    2577 ifndef PATH_$(target)
    2578  PATH_$(target)   := $(patsubst %/,%,$(dir $(outbase)))
    2579 else ifneq ($(PATH_$(target)),$(patsubst %/,%,$(dir $(outbase))))
    2580  $(error kBuild internal error: PATH_$(target)=$(PATH_$(target)) expected $(patsubst %/,%,$(dir $(outbase))))
    2581 endif
     2572$(target)_0_OUTDIR:= $(patsubst %/,%,$(dir $(outbase)))
     2573PATH_$(target)    := $($(target)_0_OUTDIR)
    25822574local suff := $(firstword \
    25832575        $($(target)_$(EXT)SUFF.$(bld_trg).$(bld_trg_arch))\
     
    34103402INSTARGET_DIRS_$(target) :=
    34113403local outbase := $(call TARGET_BASE,$(target),$(target))
    3412 ifndef PATH_$(target)
    3413  PATH_$(target) := $(patsubst %/,%,$(dir $(outbase)))
    3414 else ifneq ($(PATH_$(target)),$(patsubst %/,%,$(dir $(outbase))))
    3415  $(error kBuild internal error: PATH_$(target)=$(PATH_$(target)) expected $(patsubst %/,%,$(dir $(outbase))))
    3416 endif
     3404$(target)_0_OUTDIR := $(patsubst %/,%,$(dir $(outbase)))
     3405PATH_$(target) := $($(target)_0_OUTDIR)
    34173406
    34183407local clean_files := $($(target)_CLEAN) $($(target)_CLEAN.$(bld_trg)) $($(target)_CLEAN.$(bld_trg).$(bld_trg_arch)) $($(target)_CLEAN.$(bld_trg_arch)) $($(target)_CLEAN.$(bld_trg_cpu)) $($(target)_CLEAN.$(bld_type))
     
    34393428_INSTALLS_DIRS += $(INSTARGET_DIRS_$(target))
    34403429_CLEAN_FILES += $(clean_files)
    3441 _DIRS += $(PATH_$(target)) $($(target)_BLDDIRS) $($(target)_BLDDIRS.$(bld_trg)) $($(target)_BLDDIRS.$(bld_trg).$(bld_trg_arch)) $($(target)_BLDDIRS.$(bld_trg_arch)) $($(target)_BLDDIRS.$(bld_trg_cpu)) $($(target)_BLDDIRS.$(bld_type))
     3430_DIRS += $($(target)_0_OUTDIR) $($(target)_BLDDIRS) $($(target)_BLDDIRS.$(bld_trg)) $($(target)_BLDDIRS.$(bld_trg).$(bld_trg_arch)) $($(target)_BLDDIRS.$(bld_trg_arch)) $($(target)_BLDDIRS.$(bld_trg_cpu)) $($(target)_BLDDIRS.$(bld_type))
    34423431endef # def_install
    34433432$(eval-opt-var def_install)
     
    37743763        @$(foreach target, $(_ALL_TARGETS),\
    37753764        @$(ECHO) "target: $(target)" $(NLTAB)\
    3776         @$(ECHO) "  PATH_$(target)=$(PATH_$(target))" $(NLTAB)\
     3765        @$(ECHO) "  $(target)_0_OUTDIR=$($(target)_0_OUTDIR)" $(NLTAB)\
    37773766        @$(ECHO) "  $(target)_1_TARGET=$($(target)_1_TARGET)" $(NLTAB)\
    37783767        @$(ECHO) "  INSTARGET_$(target)=$(INSTARGET_$(target))" $(NLTAB)\
  • trunk/kBuild/subfooter.kmk

    r2084 r2239  
    5656  $(target)_MAKEFILE := $(MAKEFILE_CURRENT)
    5757 endif
    58  ifndef PATH_$(target)
    59   PATH_$(target) := $(call TARGET_PATH,$(target))
     58 ifndef $(target)_0_OUTDIR
     59  $(target)_0_OUTDIR := $(call TARGET_PATH,$(target))
     60  PATH_$(target) := $($(target)_0_OUTDIR)
    6061 endif
    6162endef
  • trunk/kBuild/subheader.kmk

    r2084 r2239  
    6767   $(target)_MAKEFILE := $(MAKEFILE_CURRENT)
    6868  endif
    69   ifndef PATH_$(target)
    70    PATH_$(target) := $(call TARGET_PATH,$(target))
     69  ifndef $(target)_0_OUTDIR
     70   $(target)_0_OUTDIR := $(call TARGET_PATH,$(target))
     71   PATH_$(target) := $($(target)_0_OUTDIR)
    7172  endif
    7273 endef
  • trunk/kBuild/units/qt3.kmk

    r2221 r2239  
    436436# fetch the properties.
    437437local tool      := $(kb-src-tool dummy_var)
    438 local qtnlsdir  := $(PATH_$(target))/qtnls
     438local qtnlsdir  := $($(target)_0_OUTDIR)/qtnls
    439439local outbase   := $(qtnlsdir)/$(notdir $(basename $(source)))
    440440local out       := $(outbase).qm
     
    523523# fetch the properties.
    524524local tool      := $(kb-src-tool dummy_var)
    525 local qtuicdir  := $(PATH_$(target))/qtuic
     525local qtuicdir  := $($(target)_0_OUTDIR)/qtuic
    526526local outbase   := $(qtuicdir)/$(notdir $(basename $(source)))
    527527local out.h     := $(outbase).tmp.h
     
    856856
    857857# Calc the MOC and UI output directories and add them to BLDDIRS and INCS.
    858 local qtmocdir := $(PATH_$(target))/qtmoc
    859 local qtuicdir := $(PATH_$(target))/qtuic
    860 local qtnlsdir := $(PATH_$(target))/qtnls
     858local qtmocdir := $($(target)_0_OUTDIR)/qtmoc
     859local qtuicdir := $($(target)_0_OUTDIR)/qtuic
     860local qtnlsdir := $($(target)_0_OUTDIR)/qtnls
    861861$(eval $(target)_BLDDIRS += $(qtmocdir) $(qtuicdir) $(qtnlsdir) )
    862862$(eval $(target)_INCS    += $(qtmocdir) $(qtuicdir) )
  • trunk/kBuild/units/qt4.kmk

    r2197 r2239  
    500500# fetch the properties.
    501501local tool      := $(kb-src-tool dummy_var)
    502 local qtnlsdir  := $(PATH_$(target))/qtnls
     502local qtnlsdir  := $($(target)_0_OUTDIR)/qtnls
    503503local outbase   := $(qtnlsdir)/$(notdir $(basename $(source)))
    504504local out       := $(outbase).qm
     
    586586# fetch the properties.
    587587local tool      := $(kb-src-tool dummy_var)
    588 local qtrccdir  := $(PATH_$(target))/qtrcc
     588local qtrccdir  := $($(target)_0_OUTDIR)/qtrcc
    589589local outbase   := $(qtrccdir)/$(notdir $(basename $(source)))
    590590local out       := $(outbase).tmp.gen.cpp
     
    672672# fetch the properties.
    673673local tool      := $(kb-src-tool dummy_var)
    674 local qtuicdir  := $(PATH_$(target))/qtuic
     674local qtuicdir  := $($(target)_0_OUTDIR)/qtuic
    675675local outbase   := $(qtuicdir)/$(notdir $(basename $(source)))
    676676local out       := $(outbase).tmp.gen.h
     
    994994
    995995# Calc the MOC and UI output directories and add them to BLDDIRS and INCS.
    996 local qtmocdir := $(PATH_$(target))/qtmoc
    997 local qtuicdir := $(PATH_$(target))/qtuic
    998 local qtrccdir := $(PATH_$(target))/qtrcc
    999 local qtnlsdir := $(PATH_$(target))/qtnls
     996local qtmocdir := $($(target)_0_OUTDIR)/qtmoc
     997local qtuicdir := $($(target)_0_OUTDIR)/qtuic
     998local qtrccdir := $($(target)_0_OUTDIR)/qtrcc
     999local qtnlsdir := $($(target)_0_OUTDIR)/qtnls
    10001000$(eval $(target)_BLDDIRS += $(qtmocdir) $(qtuicdir) $(qtrccdir) $(qtnlsdir))
    10011001$(eval $(target)_INCS    += $(qtmocdir) $(qtuicdir))
Note: See TracChangeset for help on using the changeset viewer.

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