Changeset 731


Ignore:
Timestamp:
Dec 17, 2006, 5:19:16 AM (18 years ago)
Author:
bird
Message:

kBuild/bin/BUILD_PLATFORM_ARCH.BUILD_PLATFORM -> kBuild/bin/BUILD_PLATFORM.BUILD_PLATFORM_ARCH

Location:
trunk
Files:
1 deleted
5 edited
6 moved

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/Config.kmk

    r722 r731  
    6767TEMPLATE_BIN_INST               = $(NIX_INSTALL_DIR_BIN)/
    6868 else
    69 TEMPLATE_BIN_INST               = kBuild/bin/x86.os2/
     69TEMPLATE_BIN_INST               = kBuild/bin/os2.x86/
    7070 endif
    7171endif
     
    7979TEMPLATE_BIN_INST               = $(NIX_INSTALL_DIR_BIN)/
    8080 else
    81 TEMPLATE_BIN_INST               = kBuild/bin/$(BUILD_TARGET_ARCH).$(BUILD_TARGET)/
     81TEMPLATE_BIN_INST               = kBuild/bin/$(BUILD_TARGET).$(BUILD_TARGET_ARCH)/
    8282 endif
    8383endif
    8484
    85 ifeq ($(filter-out x86.win32 x86.win x86.nt,$(BUILD_TARGET_ARCH).$(BUILD_TARGET)),)
     85ifeq ($(filter-out win nt,$(BUILD_TARGET)),)
    8686include $(PATH_KBUILD)/tools/VCC70.kmk  # fixme! template expanding does something bad to _LIBS /me thinks.
    8787TEMPLATE_BIN_TOOL               = VCC70
     
    105105TEMPLATE_BIN_INST               = $(NIX_INSTALL_DIR_BIN)/
    106106 else
    107 TEMPLATE_BIN_INST               = kBuild/bin/x86.win32/
     107TEMPLATE_BIN_INST               = kBuild/bin/win.$(BUILD_TARGET_ARCH)/
    108108 endif
    109109endif
     
    124124TEMPLATE_BIN_INST               = $(NIX_INSTALL_DIR_BIN)/
    125125 else
    126 TEMPLATE_BIN_INST               = kBuild/bin/$(BUILD_TARGET_ARCH).$(BUILD_TARGET)/
     126TEMPLATE_BIN_INST               = kBuild/bin/$(BUILD_TARGET).$(BUILD_TARGET_ARCH)/
    127127 endif
    128128endif
  • TabularUnified trunk/kBuild/env.sh

    r718 r731  
    164164
    165165# Make shell
    166 export MAKESHELL="$PATH_KBUILD/bin/$BUILD_PLATFORM_ARCH.$BUILD_PLATFORM/kmk_ash${_SUFF_EXE}";
     166export MAKESHELL="$PATH_KBUILD/bin/$BUILD_PLATFORM.$BUILD_PLATFORM_ARCH/kmk_ash${_SUFF_EXE}";
    167167
    168168# The PATH.
    169 PATH="$PATH_KBUILD/bin/$BUILD_PLATFORM_ARCH.$BUILD_PLATFORM/${_PATH_SEP}$PATH"
     169PATH="$PATH_KBUILD/bin/$BUILD_PLATFORM.$BUILD_PLATFORM_ARCH/${_PATH_SEP}$PATH"
    170170export PATH
    171171echo "dbg: PATH=$PATH"
    172172
    173173# Sanity and x bits.
    174 if [ ! -d "$PATH_KBUILD/bin/$BUILD_PLATFORM_ARCH.$BUILD_PLATFORM/" ]; then
    175     echo "$0: warning: The bin directory for this platform doesn't exists. ($PATH_KBUILD/bin/$BUILD_PLATFORM_ARCH.$BUILD_PLATFORM/)"
     174if [ ! -d "$PATH_KBUILD/bin/$BUILD_PLATFORM.$BUILD_PLATFORM_ARCH/" ]; then
     175    echo "$0: warning: The bin directory for this platform doesn't exists. ($PATH_KBUILD/bin/$BUILD_PLATFORM.$BUILD_PLATFORM_ARCH/)"
    176176else
    177     for prog in kmk kDepPre kDepIDB kmk_append kmk_ash kmk_cat kmk_cp kmk_echo kmk_install kmk_ln kmk_mkdir kmk_mv kmk_rm kmk_sed;
     177    for prog in kmk kDepPre kDepIDB kmk_append kmk_ash kmk_cat kmk_cp kmk_echo kmk_install kmk_ln kmk_mkdir kmk_mv kmk_rm kmk_rmdir kmk_sed;
    178178    do
    179         chmod a+x $PATH_KBUILD/bin/$BUILD_PLATFORM_ARCH.$BUILD_PLATFORM/${prog} > /dev/null 2>&1
    180         if [ ! -f "$PATH_KBUILD/bin/$BUILD_PLATFORM_ARCH.$BUILD_PLATFORM/${prog}${_SUFF_EXE}" ]; then
    181             echo "$0: warning: The ${prog} program doesn't exist for this platform. ($PATH_KBUILD/bin/$BUILD_PLATFORM_ARCH.$BUILD_PLATFORM/${prog}${_SUFF_EXE})"
     179        chmod a+x $PATH_KBUILD/bin/$BUILD_PLATFORM.$BUILD_PLATFORM_ARCH/${prog} > /dev/null 2>&1
     180        if [ ! -f "$PATH_KBUILD/bin/$BUILD_PLATFORM.$BUILD_PLATFORM_ARCH/${prog}${_SUFF_EXE}" ]; then
     181            echo "$0: warning: The ${prog} program doesn't exist for this platform. ($PATH_KBUILD/bin/$BUILD_PLATFORM.$BUILD_PLATFORM_ARCH/${prog}${_SUFF_EXE})"
    182182        fi
    183183    done
     
    198198    $*
    199199fi
     200
  • TabularUnified trunk/kBuild/envos2.cmd

    r718 r731  
    88 * Environment setup script for OS/2.
    99 *
    10  * Copyright (c) 2006 knut st. osmundsen <bird-kbuild-src@anduin.net>
     10 * Copyright (c) 1999-2006 knut st. osmundsen <bird-kbuild-src@anduin.net>
    1111 *
    1212 *
     
    129129
    130130
    131 sPlatformBin = EnvGet("PATH_KBUILD")||"\bin\"||EnvGet("BUILD_PLATFORM_ARCH")||"."||EnvGet("BUILD_PLATFORM");
     131sPlatformBin = EnvGet("PATH_KBUILD")||"\bin\"||EnvGet("BUILD_PLATFORM")||"."||EnvGet("BUILD_PLATFORM_ARCH");
    132132
    133133/* Make shell */
     
    149149else
    150150do
    151     sPrograms = "kmk kDepPre kDepIDB kmk_append kmk_ash kmk_cat kmk_cp kmk_echo kmk_install kmk_ln kmk_mkdir kmk_mv kmk_rm kmk_sed";
     151    sPrograms = "kmk kDepPre kDepIDB kmk_append kmk_ash kmk_cat kmk_cp kmk_echo kmk_install kmk_ln kmk_mkdir kmk_mv kmk_rm kmk_rmdir kmk_sed";
    152152    do i = 1 to words(sPrograms)
    153153        sProgram = word(sPrograms, i);
  • TabularUnified trunk/kBuild/envwin.cmd

    r718 r731  
    3636if ".%1" = ".--help"    goto help
    3737
    38 if ".%1" = ".-win"      goto want_win_bit
     38if ".%1" = ".-win"      goto want_win
    3939if ".%1" = ".-win32"    goto want_win32_bit
    4040if ".%1" = ".-win64"    goto want_win64_bit
    41 if ".%1" = ".-nt"       goto want_nt_bit
     41if ".%1" = ".-nt"       goto want_nt
    4242if ".%1" = ".-nt32"     goto want_nt32_bit
    4343if ".%1" = ".-nt64"     goto want_nt64_bit
     
    5353
    5454
    55 :want_win_bit
     55:want_win
    5656shift
    5757set BUILD_TARGET=win
     
    6161:want_win32_bit
    6262shift
    63 set BUILD_PLATFORM=win32
    64 set BUILD_TARGET=win32
     63set BUILD_PLATFORM=win
     64set BUILD_TARGET=win
    6565set BUILD_TARGET_ARCH=x86
    6666goto done_arguments
     
    6868:want_win64_bit
    6969shift
    70 set BUILD_TARGET=win64
     70set BUILD_TARGET=win
    7171set BUILD_TARGET_ARCH=amd64
    7272goto done_arguments
    7373
    74 :want_nt_bit
     74:want_nt
    7575shift
    7676set BUILD_PLATFORM=nt
     
    9393
    9494:done_arguments
     95
     96
     97REM #
     98REM # Check for illegal target/platforms.
     99REM #
     100if "%BUILD_TARGET" = "win32" goto illegal_target
     101if "%BUILD_TARGET" = "win64" goto illegal_target
     102
     103if "%BUILD_PLATFORM" = "win32" goto illegal_platform
     104if "%BUILD_PLATFORM" = "win64" goto illegal_platform
     105goto target_and_platform_ok
     106
     107:illegal_target
     108echo error: BUILD_TARGET=%BUILD_TARGET is no longer valid.
     109echo        Only 'win' and 'nt' are permitted for targeting microsoft windows.
     110goto failed
     111
     112:illegal_platform
     113echo error: BUILD_PLATFORM=%BUILD_PLATFORM is no longer valid.
     114echo        Only 'win' and 'nt' are permitted for building on microsoft windows.
     115goto failed
     116
     117:target_and_platform_ok
     118
    95119
    96120REM #
     
    168192:have_2_BUILD_PLATFORM
    169193echo dbg: BUILD_PLATFORM=%BUILD_PLATFORM%
    170 IF "%BUILD_PLATFORM%" = "win32"         set BUILD_PLATFORM_ARCH=x86
    171 IF "%BUILD_PLATFORM%" = "win64"         set BUILD_PLATFORM_ARCH=amd64
    172194IF NOT ".%BUILD_PLATFORM_ARCH%" = "."   goto have_2_BUILD_PLATFORM_ARCH
    173195set TEST_PROCESSOR_ARCH=%PROCESSOR_ARCHITECTURE%
     
    216238IF NOT ".%BUILD_TARGET_ARCH%" = "." goto have_2_BUILD_TARGET_ARCH
    217239IF "%BUILD_TARGET%" = "os2"             set BUILD_TARGET_ARCH=x86
    218 IF "%BUILD_TARGET%" = "win32"           set BUILD_TARGET_ARCH=x86
    219 IF "%BUILD_TARGET%" = "win64"           set BUILD_TARGET_ARCH=amd64
    220240IF ".%BUILD_TARGET_ARCH%" = "."         set BUILD_TARGET_ARCH=%BUILD_PLATFORM_ARCH%
    221241:have_2_BUILD_TARGET_ARCH
     
    233253
    234254REM # The PATH.
    235 IF "%BUILD_PLATFORM_ARCH%.%BUILD_PLATFORM%" = "x86.nt"      set PATH=%PATH_KBUILD%\bin\x86.win32;%PATH%
    236 IF "%BUILD_PLATFORM_ARCH%.%BUILD_PLATFORM%" = "x86.win"     set PATH=%PATH_KBUILD%\bin\x86.win32;%PATH%
    237 IF "%BUILD_PLATFORM_ARCH%.%BUILD_PLATFORM%" = "amd64.nt"    set PATH=%PATH_KBUILD%\bin\amd64.nt;%PATH_KBUILD%\bin\x86.win32;%PATH%
    238 IF "%BUILD_PLATFORM_ARCH%.%BUILD_PLATFORM%" = "amd64.win"   set PATH=%PATH_KBUILD%\bin\amd64.win64;%PATH_KBUILD%\bin\x86.win32;%PATH%
    239 IF "%BUILD_PLATFORM_ARCH%.%BUILD_PLATFORM%" = "amd64.win64" set PATH=%PATH_KBUILD%\bin\x86.win32;%PATH%
    240 set PATH=%PATH_KBUILD%\bin\%BUILD_PLATFORM_ARCH%.%BUILD_PLATFORM%;%PATH%
     255set PATH=%PATH_KBUILD%\bin\win.x86;%PATH%
     256IF "%BUILD_PLATFORM_ARCH%" = "win.amd64" set PATH=%PATH_KBUILD%\bin\win.amd64;%PATH%
    241257echo dbg: PATH=%PATH%
    242258
  • TabularUnified trunk/kBuild/header.kmk

    r725 r731  
    273273
    274274ifndef PATH_KBUILD_BIN
    275  PATH_KBUILD_BIN    := $(PATH_KBUILD)/bin/$(BUILD_PLATFORM_ARCH).$(BUILD_PLATFORM)
     275 PATH_KBUILD_BIN    := $(PATH_KBUILD)/bin/$(BUILD_PLATFORM).$(BUILD_PLATFORM_ARCH)
    276276 ifeq ($(wildcard $(PATH_KBUILD_BIN)/kmk_ash$(HOSTSUFF_EXE)),)
    277277  ifeq ($(BUILD_TARGET_ARCH),amd64)
    278    PATH_KBUILD_BIN  := $(PATH_KBUILD)/bin/x86.$(BUILD_PLATFORM)
     278   PATH_KBUILD_BIN  := $(PATH_KBUILD)/bin/$(BUILD_PLATFORM).x86
    279279  endif
    280280  ifeq ($(wildcard $(PATH_KBUILD_BIN)/kmk_ash$(HOSTSUFF_EXE)),)
    281281   ifeq ($(filter-out win64 win32 win nt ,$(BUILD_PLATFORM)),)
    282     PATH_KBUILD_BIN := $(PATH_KBUILD)/bin/x86.win
     282    PATH_KBUILD_BIN := $(PATH_KBUILD)/bin/win.x86
    283283   endif
    284284  endif
    285285  ifeq ($(wildcard $(PATH_KBUILD_BIN)/kmk_ash$(HOSTSUFF_EXE)),)
    286286   # give up
    287    PATH_KBUILD_BIN  := $(PATH_KBUILD)/bin/$(BUILD_PLATFORM_ARCH).$(BUILD_PLATFORM)
     287   PATH_KBUILD_BIN  := $(PATH_KBUILD)/bin/$(BUILD_PLATFORM).$(BUILD_PLATFORM_ARCH)
    288288  endif
    289289 endif
Note: See TracChangeset for help on using the changeset viewer.