VirtualBox

Ignore:
Timestamp:
Oct 30, 2024 3:08:57 PM (3 months ago)
Author:
vboxsync
Message:

Main,FE/Qt: Apply VBOX_WITH_PRECOMPILED_HEADERS and VBOX_WITHOUT_PRECOMPILED_HEADERS consistently so we don't end up with gccprecomp when using VCC. jiraref:VBP-1253

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/Makefile.kmk

    r106356 r106794  
    340340 LIBRARIES += VBoxAPIWrap
    341341 VBoxAPIWrap_TEMPLATE        = VBoxMainLib
    342  ifeq ($(KBUILD_TARGET),win)
    343   ifndef VBOX_WITHOUT_PRECOMPILED_HEADERS
     342 if defined(VBOX_WITH_PRECOMPILED_HEADERS) && !defined(VBOX_WITHOUT_PRECOMPILED_HEADERS)
     343  ifeq ($(KBUILD_TARGET),win)
    344344   VBoxAPIWrap_USES           = vccprecomp
    345345   VBoxAPIWrap_PCH_HDR       := $(PATH_SUB_CURRENT)/src-all/win/VBoxAPIWrap-precomp_vcc.h
    346   endif
    347  else if $(KBUILD_KMK_REVISION) >= 3256 && "$(KBUILD_TARGET)" != "darwin" && !defined(VBOX_WITHOUT_PRECOMPILED_HEADERS)
    348   if $(VBOX_GCC_VERSION_CXX) >= 50000 # GCC 4.x runs into trouble compiling the header.
    349    VBoxAPIWrap_USES        = gccprecomp
    350    VBoxAPIWrap_PCH_HDR    := $(PATH_SUB_CURRENT)/src-all/xpcom/VBoxAPIWrap-precomp_gcc.h
     346  else if $(KBUILD_KMK_REVISION) >= 3256 && "$(KBUILD_TARGET)" != "darwin"
     347   if $(VBOX_GCC_VERSION_CXX) >= 50000 # GCC 4.x runs into trouble compiling the header.
     348    VBoxAPIWrap_USES        = gccprecomp
     349    VBoxAPIWrap_PCH_HDR    := $(PATH_SUB_CURRENT)/src-all/xpcom/VBoxAPIWrap-precomp_gcc.h
     350   endif
    351351  endif
    352352 endif
     
    517517 PROGRAMS += VBoxSVC
    518518 VBoxSVC_TEMPLATE = VBoxMainExe
    519  if defined(VBOX_WITH_PRECOMPILED_HEADERS) && "$(KBUILD_TARGET)" == "win"
    520   VBoxSVC_USES   += vccprecomp
    521   VBoxSVC_PCH_HDR := $(PATH_SUB_CURRENT)/src-server/win/precomp_vcc.h
    522  else if $(KBUILD_KMK_REVISION) >= 3256 && "$(KBUILD_TARGET)" != "darwin" && !defined(VBOX_WITHOUT_PRECOMPILED_HEADERS)
    523   if $(VBOX_GCC_VERSION_CXX) >= 50000 # GCC 4.x runs into trouble compiling the header.
    524    VBoxSVC_USES += gccprecomp
    525    VBoxSVC_PCH_HDR := $(PATH_SUB_CURRENT)/src-server/xpcom/precomp_gcc.h
     519 if defined(VBOX_WITH_PRECOMPILED_HEADERS) && !defined(VBOX_WITHOUT_PRECOMPILED_HEADERS)
     520  if "$(KBUILD_TARGET)" == "win"
     521   VBoxSVC_USES   += vccprecomp
     522   VBoxSVC_PCH_HDR := $(PATH_SUB_CURRENT)/src-server/win/precomp_vcc.h
     523  else if $(KBUILD_KMK_REVISION) >= 3256 && "$(KBUILD_TARGET)" != "darwin"
     524   if $(VBOX_GCC_VERSION_CXX) >= 50000 # GCC 4.x runs into trouble compiling the header.
     525    VBoxSVC_USES += gccprecomp
     526    VBoxSVC_PCH_HDR := $(PATH_SUB_CURRENT)/src-server/xpcom/precomp_gcc.h
     527   endif
    526528  endif
    527529 endif
     
    10081010 DLLS += VBoxC
    10091011 VBoxC_TEMPLATE = VBoxMainComp
    1010  if defined(VBOX_WITH_PRECOMPILED_HEADERS) && "$(KBUILD_TARGET)" == "win"
    1011   VBoxC_USES    = vccprecomp
    1012   VBoxC_PCH_HDR := $(PATH_SUB_CURRENT)/src-client/win/precomp_vcc.h
    1013  else if $(KBUILD_KMK_REVISION) >= 3256 && "$(KBUILD_TARGET)" != "darwin" && !defined(VBOX_WITHOUT_PRECOMPILED_HEADERS)
    1014   if $(VBOX_GCC_VERSION_CXX) >= 50000 # GCC 4.x runs into trouble compiling the header.
    1015    VBoxC_USES += gccprecomp
    1016    VBoxC_PCH_HDR := $(PATH_SUB_CURRENT)/src-client/xpcom/precomp_gcc.h
     1012 if defined(VBOX_WITH_PRECOMPILED_HEADERS) && !defined(VBOX_WITHOUT_PRECOMPILED_HEADERS)
     1013  if "$(KBUILD_TARGET)" == "win"
     1014   VBoxC_USES    = vccprecomp
     1015   VBoxC_PCH_HDR := $(PATH_SUB_CURRENT)/src-client/win/precomp_vcc.h
     1016  else if $(KBUILD_KMK_REVISION) >= 3256 && "$(KBUILD_TARGET)" != "darwin"
     1017   if $(VBOX_GCC_VERSION_CXX) >= 50000 # GCC 4.x runs into trouble compiling the header.
     1018    VBoxC_USES += gccprecomp
     1019    VBoxC_PCH_HDR := $(PATH_SUB_CURRENT)/src-client/xpcom/precomp_gcc.h
     1020   endif
    10171021  endif
    10181022 endif
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