VirtualBox

Changeset 3344 in kBuild


Ignore:
Timestamp:
May 20, 2020 4:43:48 PM (5 years ago)
Author:
bird
Message:

header.kmk,footer-pass2-compiling-targets.kmk: Introducing KMK_WITH_QUOTING as a simple 'quote' feature indicator. The SOURCES must be handled as a list of quoted files, or we cannot add chkstk.obj and such from an VC++ installation.

Location:
trunk/kBuild
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer-pass2-compiling-targets.kmk

    r3304 r3344  
    298298endef
    299299
     300ifdef KMK_WITH_QUOTING
     301define def_src_handler_obj
     302ifeq ($(defpath),)
     303 $(target)_2_OBJS += $(source)
     304else
     305 $(target)_2_OBJS += $(qabspathex ,$(source), $(defpath))
     306endif
     307endef
     308else
    300309define def_src_handler_obj
    301310ifeq ($(defpath),)
     
    305314endif
    306315endef
     316endif
    307317## @}
    308318
     
    325335# @param    much-more...
    326336# @returns  othersrc, $(target)_2_OBJS, ++
     337ifdef KMK_WITH_QUOTING
     338define def_target_sources
     339local target_src_handlers := $($(target)_SRC_HANDLERS) $(KBUILD_SRC_HANDLERS)
     340$(foreachfile source,\
     341        $($(target)_SOURCES)\
     342        $($(target)_SOURCES.$(bld_trg))\
     343        $($(target)_SOURCES.$(bld_trg).$(bld_type))\
     344        $($(target)_SOURCES.$(bld_trg).$(bld_trg_arch))\
     345        $($(target)_SOURCES.$(bld_trg).$(bld_trg_arch).$(bld_type))\
     346        $($(target)_SOURCES.$(bld_trg_arch))\
     347        $($(target)_SOURCES.$(bld_trg_cpu))\
     348        $($(target)_SOURCES.$(bld_type))\
     349        ,$(evalvalctx def_src_handler_one) )
     350
     351$(foreachfile source,\
     352        $($(target)_GEN_SOURCES_)\
     353        $($(target)_GEN_SOURCES_.$(bld_trg))\
     354        $($(target)_GEN_SOURCES_.$(bld_trg).$(bld_type))\
     355        $($(target)_GEN_SOURCES_.$(bld_trg).$(bld_trg_arch))\
     356        $($(target)_GEN_SOURCES_.$(bld_trg).$(bld_trg_arch).$(bld_type))\
     357        $($(target)_GEN_SOURCES_.$(bld_trg_arch))\
     358        $($(target)_GEN_SOURCES_.$(bld_trg_cpu))\
     359        $($(target)_GEN_SOURCES_.$(bld_type))\
     360        ,$(evalvalctx def_src_handler_one) )
     361endef # def_target_sources
     362else
    327363define def_target_sources
    328364local target_src_handlers := $($(target)_SRC_HANDLERS) $(KBUILD_SRC_HANDLERS)
     
    349385        ,$(evalvalctx def_src_handler_one) )
    350386endef # def_target_sources
     387endif
    351388$(eval-opt-var def_target_sources)
    352389
  • trunk/kBuild/header.kmk

    r3308 r3344  
    408408# Paths and stuff.
    409409#
     410
     411## Cache this query.
     412if1of (quote,$(KMK_FEATURES))
     413 KMK_WITH_QUOTING := 1
     414endif
    410415
    411416# Adjust DEPTH first.
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