VirtualBox

Changeset 98443 in vbox for trunk


Ignore:
Timestamp:
Feb 2, 2023 1:03:05 PM (2 years ago)
Author:
vboxsync
Message:

tools/*.kmk: Automatic scm cleanups. bugref:10348

Location:
trunk/tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/kBuildTools/VBoxXGccAmd64LinuxGnu.kmk

    r98108 r98443  
    3535 PATH_TOOL_VBoxXGccAmd64LinuxGnu := $(lastword $(wildcard $(KBUILD_DEVTOOLS_HST)/x86_64-linux-gnu/*))
    3636 ifeq ($(PATH_TOOL_VBoxXGccAmd64LinuxGnu),)
    37    PATH_TOOL_VBoxXGccAmd64LinuxGnu := $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS_HST_ALT)/x86_64-linux-gnu/*)))
     37  PATH_TOOL_VBoxXGccAmd64LinuxGnu := $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS_HST_ALT)/x86_64-linux-gnu/*)))
    3838 endif
    3939endif
     
    5454
    5555ifdef SLKRUNS
    56 TOOL_VBoxXGccAmd64LinuxGnu_CC  += -fmessage-length=0
    57 TOOL_VBoxXGccAmd64LinuxGnu_CXX += -fmessage-length=0
     56 TOOL_VBoxXGccAmd64LinuxGnu_CC  += -fmessage-length=0
     57 TOOL_VBoxXGccAmd64LinuxGnu_CXX += -fmessage-length=0
    5858endif
    5959
  • trunk/tools/kBuildTools/VBoxXGccX86RedHatLinux.kmk

    r98108 r98443  
    5454
    5555ifdef SLKRUNS
    56 TOOL_VBoxXGccX86RedHatLinux_CC  += -fmessage-length=0
    57 TOOL_VBoxXGccX86RedHatLinux_CXX += -fmessage-length=0
     56 TOOL_VBoxXGccX86RedHatLinux_CC  += -fmessage-length=0
     57 TOOL_VBoxXGccX86RedHatLinux_CXX += -fmessage-length=0
    5858endif
    5959
  • trunk/tools/kBuildTools/VBoxXcode62.kmk

    r98108 r98443  
    6868TOOL_VBoxXcode62_LD_SYSMOD ?= $(PATH_TOOL_VBoxXcode62_TOOLCHAIN_BIN_SLASH)clang++$(HOSTSUFF_EXE)
    6969ifndef TOOL_VBoxXcode62_LDFLAGS.$(KBUILD_TARGET)
    70 TOOL_VBoxXcode62_LDFLAGS.dll ?= -dynamiclib
     70 TOOL_VBoxXcode62_LDFLAGS.dll ?= -dynamiclib
    7171else
    72 TOOL_VBoxXcode62_LDFLAGS.dll ?= $(TOOL_VBoxXcode62_LDFLAGS.$(KBUILD_TARGET))
     72 TOOL_VBoxXcode62_LDFLAGS.dll ?= $(TOOL_VBoxXcode62_LDFLAGS.$(KBUILD_TARGET))
    7373endif
    7474TOOL_VBoxXcode62_LDFLAGS.sysmod ?= -r
     
    7676
    7777ifdef SLKRUNS
    78 TOOL_VBoxXcode62_CC     += -fmessage-length=0
    79 TOOL_VBoxXcode62_CXX    += -fmessage-length=0
    80 TOOL_VBoxXcode62_OBJC   += -fmessage-length=0
    81 TOOL_VBoxXcode62_OBJCXX += -fmessage-length=0
     78 TOOL_VBoxXcode62_CC     += -fmessage-length=0
     79 TOOL_VBoxXcode62_CXX    += -fmessage-length=0
     80 TOOL_VBoxXcode62_OBJC   += -fmessage-length=0
     81 TOOL_VBoxXcode62_OBJCXX += -fmessage-length=0
    8282endif
    8383
     
    8686        -E 'DEVELOPER_DIR=$(PATH_TOOL_VBoxXcode62)' \
    8787        -E 'PATH=$(PATH_TOOL_VBoxXcode62)/usr/bin/:$(PATH_TOOL_VBoxXcode62)/Toolchains/XcodeDefault.xctoolchain/usr/bin:$(PATH)' \
    88        --
     88        --
    8989TOOL_VBoxXcode62_ENV_SETUP_EXT ?= $(REDIRECT_EXT) \
    9090        -E 'DEVELOPER_DIR=$(PATH_TOOL_VBoxXcode62)' \
    9191        -E 'PATH=$(PATH_TOOL_VBoxXcode62)/usr/bin/:$(PATH_TOOL_VBoxXcode62)/Toolchains/XcodeDefault.xctoolchain/usr/bin:$(PATH)' \
    92        --
     92        --
    9393
    9494# General Properties used by kBuild
     
    112112TOOL_VBoxXcode62_OBJCFLAGS        ?=
    113113TOOL_VBoxXcode62_OBJCFLAGS.debug  ?= -g
    114 TOOL_VBoxXcode62_OBJCFLAGS.profile?= -O2 #-g -pg
    115 TOOL_VBoxXcode62_OBJCFLAGS.release?= -O2
     114TOOL_VBoxXcode62_OBJCFLAGS.profile ?= -O2 #-g -pg
     115TOOL_VBoxXcode62_OBJCFLAGS.release ?= -O2
    116116TOOL_VBoxXcode62_OBJCINCS         ?=
    117117TOOL_VBoxXcode62_OBJCDEFS         ?=
     
    148148# @param    2           The output filename sans suffix.
    149149TOOL_VBoxXcode62_DEBUG_BUNDLE_FN = \
    150     $(1).dSYM/Contents/Info.plist \
    151     $(1).dSYM/Contents/Resources/DWARF/$(notdir $(1))
     150        $(1).dSYM/Contents/Info.plist \
     151        $(1).dSYM/Contents/Resources/DWARF/$(notdir $(1))
    152152
    153153##
     
    159159#           does not care and only check for a symbol file in the DWARF
    160160#           directory with the same name as the debugged module.
    161 TOOL_VBoxXcode62_DEBUG_INSTALL_FN= \
    162     $(3).dSYM/ \
    163     $(3).dSYM/Contents/ \
    164     $(3).dSYM/Contents/Resources/ \
    165     $(3).dSYM/Contents/Resources/DWARF/ \
    166     $(1).dSYM/Contents/Info.plist=>$(3).dSYM/Contents/Info.plist \
    167     $(1).dSYM/Contents/Resources/DWARF/$(notdir $(1))=>$(3).dSYM/Contents/Resources/DWARF/$(notdir $(3))
     161TOOL_VBoxXcode62_DEBUG_INSTALL_FN = \
     162        $(3).dSYM/ \
     163        $(3).dSYM/Contents/ \
     164        $(3).dSYM/Contents/Resources/ \
     165        $(3).dSYM/Contents/Resources/DWARF/ \
     166        $(1).dSYM/Contents/Info.plist=>$(3).dSYM/Contents/Info.plist \
     167        $(1).dSYM/Contents/Resources/DWARF/$(notdir $(1))=>$(3).dSYM/Contents/Resources/DWARF/$(notdir $(3))
    168168
    169169
     
    184184TOOL_VBoxXcode62_COMPILE_C_DEPORD =
    185185ifdef KBUILD_USE_KOBJCACHE
    186 TOOL_VBoxXcode62_COMPILE_C_USES_KOBJCACHE = 1
    187 TOOL_VBoxXcode62_COMPILE_C_OUTPUT = $(outbase).i
    188 define TOOL_VBoxXcode62_COMPILE_C_CMDS
     186 TOOL_VBoxXcode62_COMPILE_C_USES_KOBJCACHE = 1
     187 TOOL_VBoxXcode62_COMPILE_C_OUTPUT = $(outbase).i
     188 define TOOL_VBoxXcode62_COMPILE_C_CMDS
    189189        $(QUIET)$(TOOL_VBoxXcode62_ENV_SETUP) $(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -p\
    190190                --kObjCache-cpp $(outbase).i\
     
    199199                -
    200200        %$(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" ""
    201 endef
     201 endef
    202202else  # !KBUILD_USE_KOBJCACHE
    203 TOOL_VBoxXcode62_COMPILE_C_OUTPUT =
    204 define TOOL_VBoxXcode62_COMPILE_C_CMDS
     203 TOOL_VBoxXcode62_COMPILE_C_OUTPUT =
     204 define TOOL_VBoxXcode62_COMPILE_C_CMDS
    205205        $(QUIET)$(TOOL_VBoxXcode62_ENV_SETUP) $(TOOL_VBoxXcode62_CC) -c\
    206206                $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\
     
    209209                $(abspath $(source))
    210210        %$(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" ""
    211 endef
     211 endef
    212212endif # !KUSE_OBJCACHE
    213213
     
    228228TOOL_VBoxXcode62_COMPILE_CXX_DEPORD =
    229229ifdef KBUILD_USE_KOBJCACHE
    230 TOOL_VBoxXcode62_COMPILE_CXX_USES_KOBJCACHE = 1
    231 TOOL_VBoxXcode62_COMPILE_CXX_OUTPUT = $(outbase).ii
    232 define TOOL_VBoxXcode62_COMPILE_CXX_CMDS
     230 TOOL_VBoxXcode62_COMPILE_CXX_USES_KOBJCACHE = 1
     231 TOOL_VBoxXcode62_COMPILE_CXX_OUTPUT = $(outbase).ii
     232 define TOOL_VBoxXcode62_COMPILE_CXX_CMDS
    233233        $(QUIET)$(TOOL_VBoxXcode62_ENV_SETUP) $(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -p\
    234234                --kObjCache-cpp $(outbase).ii\
     
    244244                -
    245245        %$(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" ""
    246 endef
     246 endef
    247247else  # !KBUILD_USE_KOBJCACHE
    248 TOOL_VBoxXcode62_COMPILE_CXX_OUTPUT =
    249 define TOOL_VBoxXcode62_COMPILE_CXX_CMDS
     248 TOOL_VBoxXcode62_COMPILE_CXX_OUTPUT =
     249 define TOOL_VBoxXcode62_COMPILE_CXX_CMDS
    250250        $(QUIET)$(TOOL_VBoxXcode62_ENV_SETUP) $(TOOL_VBoxXcode62_CXX) -c\
    251251                $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\
     
    255255                $(abspath $(source))
    256256        %$(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" ""
    257 endef
     257 endef
    258258endif # !KBUILD_USE_KOBJCACHE
    259259
     
    274274TOOL_VBoxXcode62_COMPILE_OBJC_DEPORD =
    275275ifdef KBUILD_USE_KOBJCACHE
    276 TOOL_VBoxXcode62_COMPILE_OBJC_USES_KOBJCACHE = 1
    277 TOOL_VBoxXcode62_COMPILE_OBJC_OUTPUT = $(outbase).mi
    278 define TOOL_VBoxXcode62_COMPILE_OBJC_CMDS
     276 TOOL_VBoxXcode62_COMPILE_OBJC_USES_KOBJCACHE = 1
     277 TOOL_VBoxXcode62_COMPILE_OBJC_OUTPUT = $(outbase).mi
     278 define TOOL_VBoxXcode62_COMPILE_OBJC_CMDS
    279279        $(QUIET)$(TOOL_VBoxXcode62_ENV_SETUP) $(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -p\
    280280                --kObjCache-cpp $(outbase).ii\
     
    289289                -
    290290        %$(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" ""
    291 endef
     291 endef
    292292else  # !KBUILD_USE_KOBJCACHE
    293 TOOL_VBoxXcode62_COMPILE_OBJC_OUTPUT =
    294 define TOOL_VBoxXcode62_COMPILE_OBJC_CMDS
     293 TOOL_VBoxXcode62_COMPILE_OBJC_OUTPUT =
     294 define TOOL_VBoxXcode62_COMPILE_OBJC_CMDS
    295295        $(QUIET)$(TOOL_VBoxXcode62_ENV_SETUP) $(TOOL_VBoxXcode62_OBJC) -c\
    296296                $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\
     
    299299                $(abspath $(source))
    300300        %$(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" ""
    301 endef
     301 endef
    302302endif # !KBUILD_USE_KOBJCACHE
    303303
     
    318318TOOL_VBoxXcode62_COMPILE_OBJCXX_DEPORD =
    319319ifdef KBUILD_USE_KOBJCACHE
    320 TOOL_VBoxXcode62_COMPILE_OBJCXX_USES_KOBJCACHE = 1
    321 TOOL_VBoxXcode62_COMPILE_OBJCXX_OUTPUT = $(outbase).mii
    322 define TOOL_VBoxXcode62_COMPILE_OBJCXX_CMDS
     320 TOOL_VBoxXcode62_COMPILE_OBJCXX_USES_KOBJCACHE = 1
     321 TOOL_VBoxXcode62_COMPILE_OBJCXX_OUTPUT = $(outbase).mii
     322 define TOOL_VBoxXcode62_COMPILE_OBJCXX_CMDS
    323323        $(QUIET)$(TOOL_VBoxXcode62_ENV_SETUP) $(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -p\
    324324                --kObjCache-cpp $(outbase).mii\
     
    333333                -
    334334        %$(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" ""
    335 endef
     335 endef
    336336else  # !KBUILD_USE_KOBJCACHE
    337 TOOL_VBoxXcode62_COMPILE_OBJCXX_OUTPUT =
    338 define TOOL_VBoxXcode62_COMPILE_OBJCXX_CMDS
     337 TOOL_VBoxXcode62_COMPILE_OBJCXX_OUTPUT =
     338 define TOOL_VBoxXcode62_COMPILE_OBJCXX_CMDS
    339339        $(QUIET)$(TOOL_VBoxXcode62_ENV_SETUP) $(TOOL_VBoxXcode62_OBJCXX) -c\
    340340                $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\
     
    343343                $(abspath $(source))
    344344        %$(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" ""
    345 endef
     345 endef
    346346endif # !KBUILD_USE_KOBJCACHE
    347347
  • trunk/tools/kBuildUnits/vboximportchecker.kmk

    r98108 r98443  
    3737# Helper for expanding certain variables while assigning.
    3838define def_unit_vboximportchecker_internal_expand_twice
    39 $(target)_POST_CMDS += $$(if-expr "$$(tool_do)" != "LINK_LIBRARY",$$(NLTAB)$$(VBOX_RTLDRCHECKIMPORTS) -q -p "$$(KBUILD_DEVTOOLS)/$(bld_trg).$(bld_trg_arch)/exports/$$($(target)_2_VBOX_IMPORT_CHECKER)" $$(out),)
     39 $(target)_POST_CMDS += $$(if-expr "$$(tool_do)" != "LINK_LIBRARY",$$(NLTAB)$$(VBOX_RTLDRCHECKIMPORTS) -q -p "$$(KBUILD_DEVTOOLS)/$(bld_trg).$(bld_trg_arch)/exports/$$($(target)_2_VBOX_IMPORT_CHECKER)" $$(out),)
    4040endef
    4141
    4242define def_unit_vboximportchecker_target_pre
    43 # Do not apply to ASAN builds as it requires newere DLLs.
    44 ifneq ($(KBUILD_TYPE),asan)
     43 # Do not apply to ASAN builds as it requires newere DLLs.
     44 ifneq ($(KBUILD_TYPE),asan)
    4545
    46 # Set pass 2 variable (simpler) and act on it.
    47  $(target)_2_VBOX_IMPORT_CHECKER := $(evalcall def_fn_prop_get_first_defined,VBOX_IMPORT_CHECKER)
    48  ifdef $(target)_2_VBOX_IMPORT_CHECKER
    49   $(target)_LNK_ORDERDEPS += $(VBOX_RTLDRCHECKIMPORTS)
    50   $(eval $(def_unit_vboximportchecker_internal_expand_twice))
     46  # Set pass 2 variable (simpler) and act on it.
     47  $(target)_2_VBOX_IMPORT_CHECKER := $(evalcall def_fn_prop_get_first_defined,VBOX_IMPORT_CHECKER)
     48  ifdef $(target)_2_VBOX_IMPORT_CHECKER
     49   $(target)_LNK_ORDERDEPS += $(VBOX_RTLDRCHECKIMPORTS)
     50   $(eval $(def_unit_vboximportchecker_internal_expand_twice))
     51  endif
     52
    5153 endif
    52 
    53 endif
    5454
    5555endef
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