VirtualBox

Changeset 1348 in kBuild


Ignore:
Timestamp:
Dec 3, 2007 12:54:30 AM (17 years ago)
Author:
bird
Message:

Require kmk 0.1.2 or later. Use if1of. Removed test on obsolete targets/platforms win32 and win64.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/header.kmk

    r1296 r1348  
    4343ifneq ($(KBUILD_VERSION_MAJOR).$(KBUILD_VERSION_MINOR),0.1)
    4444 ifneq ($(KBUILD_VERSION_MAJOR),0)
    45   $(warning kBuild: kmk major version mismatch, expected '0' found '$(KBUILD_VERSION_MAJOR)'!)
     45  $(warning kBuild: kmk major version mismatch! Expected '0' but found '$(KBUILD_VERSION_MAJOR)'!)
    4646 else
    47   $(warning kBuild: kmk minor version mismatch, expected '1' found '$(KBUILD_VERSION_MINOR)'!)
     47  $(warning kBuild: kmk minor version mismatch! Expected '1' but found '$(KBUILD_VERSION_MINOR)'!)
     48 endif
     49else
     50 ifneq ($(int-ge $(KBUILD_VERSION_PATCH),2),1)
     51  $(warning kBuild: kmk version mismatch! Expected 0.1.2 or later. Actual version is $(KBUILD_VERSION_MAJOR).$(KBUILD_VERSION_MINOR).$(KBUILD_VERSION_PATCH).)
    4852 endif
    4953endif
     
    147151 BUILD_TYPE := release
    148152else
    149  ifneq ($(filter $(BUILD_TYPE),$(KBUILD_OSES) $(KBUILD_ARCHES)),)
     153 if1of ($(BUILD_TYPE),$(KBUILD_OSES) $(KBUILD_ARCHES))
    150154  $(error kBuild: The BUILD_TYPE value '$(BUILD_TYPE)' is an OS or architecture!)
    151155 endif
     
    182186  $(error kBuild: The BUILD_PLATFORM_CPU value '$(BUILD_PLATFORM_CPU)' contains spaces/tabs!)
    183187 endif
    184  ifneq ($(filter $(BUILD_PLATFORM_CPU), $(KBUILD_OSES) $(BUILD_ARCHES)),)
     188 if1of ($(BUILD_PLATFORM_CPU), $(KBUILD_OSES) $(BUILD_ARCHES))
    185189  $(error kBuild: The BUILD_PLATFORM_CPU value '$(BUILD_PLATFORM_CPU)' was found in the OS or architecture keywords!)
    186190 endif
     
    229233  $(error kBuild: The BUILD_TARGET_CPU value '$(BUILD_TARGET_CPU)' contains spaces/tabs!)
    230234 endif
    231  ifneq ($(filter $(BUILD_TARGET_CPU), $(KBUILD_OSES) $(BUILD_ARCHES)),)
     235 if1of ($(BUILD_TARGET_CPU), $(KBUILD_OSES) $(BUILD_ARCHES))
    232236  $(error kBuild: The BUILD_TARGET_CPU value was found in the OS or architecture keywords!)
    233237 endif
     
    331335
    332336# Win, Win32, Win64, NT.
    333 ifeq ($(filter-out win32 win64 win nt,$(BUILD_PLATFORM)),)
     337if1of ($(BUILD_PLATFORM),win nt)
    334338EXEC_X86_WIN32      :=
    335339HOSTSUFF_EXE        := .exe
     
    360364#
    361365SUFF_DEP            := .dep
    362 ifeq ($(filter-out win32 win64 win nt os2,$(BUILD_TARGET)),)
     366if1of ($(BUILD_TARGET),win nt os2)
    363367SUFF_OBJ            := .obj
    364368SUFF_LIB            := .lib
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