VirtualBox

Changeset 1416 in kBuild


Ignore:
Timestamp:
Mar 18, 2008 10:37:29 PM (17 years ago)
Author:
bird
Message:

prefix the search paths for templates, sdks, tools and stuff. Added KBUILD_DEFAULT_PATHS as a common last resort.

Location:
trunk/kBuild
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r1415 r1416  
    626626define def_templates_include
    627627ifndef TEMPLATE_$(template)
    628  TEMPLATE_$(template)_INCLUDE_FILE_ := $(firstword $(foreach path, $(TEMPLATE_PATHS) $(PATH_KBUILD)/templates/, $(wildcard $(path)/$(template).kmk)))
     628 TEMPLATE_$(template)_INCLUDE_FILE_ := $(firstword $(foreach path, $(KBUILD_TEMPLATE_PATHS) $(PATH_KBUILD)/templates $(KBUILD_DEFAULT_PATHS), $(wildcard $(path)/$(template).kmk)))
    629629 ifneq ($(TEMPLATE_$(template)_INCLUDE_FILE_),)
    630630  include $(TEMPLATE_$(template)_INCLUDE_FILE_)
     
    11781178define def_tools_load_function
    11791179ifndef TOOL_$(loading)
    1180  TOOL_$(loading)_KMK_FILE := $(firstword $(foreach path, $(TOOL_PATHS) $(PATH_KBUILD)/tools, $(wildcard $(path)/$(loading).kmk)))
     1180 TOOL_$(loading)_KMK_FILE := $(firstword $(foreach path, $(KBUILD_TOOL_PATHS) $(PATH_KBUILD)/tools $(KBUILD_DEFAULT_PATHS), $(wildcard $(path)/$(loading).kmk)))
    11811181 ifeq ($(TOOL_$(loading)_KMK_FILE),)
    1182   $(error kBuild: Cannot find include file for the tool '$(loading)'! Searched: $(TOOL_PATHS) $(PATH_KBUILD)/tools)
     1182  $(error kBuild: Cannot find include file for the tool '$(loading)'! Searched: $(KBUILD_TOOL_PATHS) $(PATH_KBUILD)/tools $(KBUILD_DEFAULT_PATHS))
    11831183 endif
    11841184 include $(TOOL_$(loading)_KMK_FILE)
     
    11931193define def_sdk_load_function
    11941194ifndef SDK_$(loading)
    1195  SDK_$(loading)_KMK_FILE := $(firstword $(foreach path, $(SDK_PATHS) $(PATH_KBUILD)/sdks, $(wildcard $(path)/$(loading).kmk)))
     1195 SDK_$(loading)_KMK_FILE := $(firstword $(foreach path, $(KBUILD_SDK_PATHS) $(PATH_KBUILD)/sdks $(KBUILD_DEFAULT_PATHS), $(wildcard $(path)/$(loading).kmk)))
    11961196 ifeq ($(SDK_$(loading)_KMK_FILE),)
    1197   $(error kBuild: Cannot find include file for the SDK '$(loading)'! Searched: $(SDK_PATHS) $(PATH_KBUILD)/sdks)
     1197  $(error kBuild: Cannot find include file for the SDK '$(loading)'! Searched: $(KBUILD_SDK_PATHS) $(PATH_KBUILD)/sdks $(KBUILD_DEFAULT_PATHS))
    11981198 endif
    11991199 include $(SDK_$(loading)_KMK_FILE)
  • trunk/kBuild/header.kmk

    r1403 r1416  
    136136# The list of standard build types in kBuild.
    137137#
    138 # This list can be extended in Config.kmk and it's possible to extend 
     138# This list can be extended in Config.kmk and it's possible to extend
    139139# (inherit) another build type.
    140140#
     
    564564#
    565565
    566 ## TEMPLATE_PATHS
     566## KBUILD_TEMPLATE_PATHS
    567567# List a paths (separated by space) where templates can be found.
    568 TEMPLATE_PATHS :=
    569 
    570 ## TOOL_PATHS
     568KBUILD_TEMPLATE_PATHS :=
     569
     570## KBUILD_TOOL_PATHS
    571571# List of paths (separated by space) where tools can be found.
    572 TOOL_PATHS :=
    573 
    574 ## SDK_PATHS
     572KBUILD_TOOL_PATHS :=
     573
     574## KBUILD_SDK_PATHS
    575575# List of paths (separated by space) where SDKs can be found.
    576 SDK_PATHS :=
     576KBUILD_SDK_PATHS :=
     577
     578## KBUILD_DEFAULT_PATHS
     579# List of paths (separated by space) to search for stuff as a last resort.
     580KBUILD_DEFAULT_PATHS :=
    577581
    578582## Proritized list of the default makefile when walking subdirectories.
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