VirtualBox

Changeset 94861 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
May 5, 2022 5:08:34 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
151261
Message:

Validation Kit: Moved TEMPLATE_VBOXVALIDATIONKITR3BASE to main Config.kmk and derive TEMPLATE_VBOXR3TSTEXE_VALKIT from it instead of TEMPLATE_VBoxR3Static. That way it's easier to maintain and not forgotten when we need to do more widespread changes (e.g. see r151253). bugref:​10195

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/Config.kmk

    r94853 r94861  
    3939
    4040#
    41 # Base template that drops the -static flag since we only want to use the
    42 # static version of our own libraries and not the system libs.
    43 #
    44 TEMPLATE_VBoxValidationKitR3Base = VBox Validation Kit ring-3 program base, both guest and host.
    45 TEMPLATE_VBoxValidationKitR3Base_EXTENDS = VBoxR3Static
    46 ifeq ($(KBUILD_TARGET),win)
    47  TEMPLATE_VBoxValidationKitR3Base_LDFLAGS         = $(filter-out -IntegrityCheck, $(TEMPLATE_VBoxR3Static_LDFLAGS))
    48 else ifn1of ($(KBUILD_TARGET), darwin solaris win)
    49  TEMPLATE_VBoxValidationKitR3Base_CFLAGS          = $(filter-out -static, $(TEMPLATE_VBoxR3Static_CFLAGS))
    50  TEMPLATE_VBoxValidationKitR3Base_CXXFLAGS        = $(filter-out -static, $(TEMPLATE_VBoxR3Static_CXXFLAGS))
    51  TEMPLATE_VBoxValidationKitR3Base_OBJCFLAGS       = $(filter-out -static, $(TEMPLATE_VBoxR3Static_OBJCFLAGS))
    52  TEMPLATE_VBoxValidationKitR3Base_LDFLAGS         = $(filter-out -static, $(TEMPLATE_VBoxR3Static_LDFLAGS))
    53 endif
    54 TEMPLATE_VBoxValidationKitR3Base_DEFS = $(filter-out VBOX_WITH_DTRACE,$(TEMPLATE_VBoxR3Static_DEFS))
    55 TEMPLATE_VBoxValidationKitR3Base_LIBS = $(TEMPLATE_VBoxR3Static_LIBS)
    56 if1of ($(KBUILD_TARGET), linux)
    57  if $(VBOX_GCC_VERSION_CXX) < 40800
    58   TEMPLATE_VBoxValidationKitR3Base_LIBS += supc++
    59   TEMPLATE_VBoxValidationKitR3Base_LDTOOL = $(subst GXX,GCC,$(TEMPLATE_VBoxR3Static_TOOL))
    60  endif
    61 endif
    62 TEMPLATE_VBoxValidationKitR3Base_LDFLAGS.darwin = $(TEMPLATE_VBoxR3Static_LDFLAGS.darwin) -framework IOKit
    63 
    64 #
    65 # Template for building ring-3 progams for the Validation Kit.
     41# Template for building ring-3 programs for the Validation Kit.
    6642# These programs can run on any host or guest.
    6743#
    6844TEMPLATE_VBoxValidationKitR3 = VBox Validation Kit ring-3 program, both guest and host.
    69 TEMPLATE_VBoxValidationKitR3_EXTENDS = VBoxValidationKitR3Base
     45TEMPLATE_VBoxValidationKitR3_EXTENDS = VBOXVALIDATIONKITR3BASE
    7046TEMPLATE_VBoxValidationKitR3_EXTENDS_BY = appending
    7147TEMPLATE_VBoxValidationKitR3_INST = $(INST_VALIDATIONKIT)$(KBUILD_TARGET)/$(KBUILD_TARGET_ARCH)/
     
    10278        -Section:.bss,RW!K
    10379ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
    104  TEMPLATE_VBoxValidationKitR3_POST_CMDS = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION) $(out)$$(NLTAB))$(TEMPLATE_VBoxValidationKitR3Base_POST_CMDS)$$(NLTAB)
     80 TEMPLATE_VBoxValidationKitR3_POST_CMDS = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION) $(out)$$(NLTAB))$(TEMPLATE_VBOXVALIDATIONKITR3BASE_POST_CMDS)$$(NLTAB)
    10581endif
    10682TEMPLATE_VBoxValidationKitR3_LNK_DEPS.win.x86  = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION))
     
    225201endef
    226202endif
    227 
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette