VirtualBox

Changeset 76598 in vbox for trunk


Ignore:
Timestamp:
Jan 2, 2019 12:59:08 AM (6 years ago)
Author:
vboxsync
Message:

Main: GCC precompiled headers hacking.

Location:
trunk/src/VBox/Main
Files:
1 added
2 edited
2 copied
1 moved

Legend:

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

    r76591 r76598  
    216216 else if $(KMK_REVISION) >= 3250 && "$(KBUILD_TARGET)" != "darwin" && !defined(VBOX_WITHOUT_PRECOMPILED_HEADERS) && !defined(KBUILD_USE_KOBJCACHE)
    217217  VBoxAPIWrap_USES           = gccprecomp
    218   VBoxAPIWrap_PCH_HDR       := $(PATH_SUB_CURRENT)/src-all/win/VBoxAPIWrap-precomp_gcc.h
     218  VBoxAPIWrap_PCH_HDR       := $(PATH_SUB_CURRENT)/src-all/xpcom/VBoxAPIWrap-precomp_gcc.h
    219219 endif
    220220 VBoxAPIWrap_SOURCES         = \
     
    252252  VBoxAPIWrap-x86_EXTENDS  = VBoxAPIWrap
    253253  VBoxAPIWrap-x86_DTRACE_HDR_FLAGS = -32 # ugly, should be fixed in the tool in Config.kmk
    254   ifeq ($(KBUILD_TARGET),win) ## @todo fix inheritance
     254  ifeq ($(KBUILD_TARGET),win) ## @todo fix inheritance (fixed in r3253)
    255255   VBoxAPIWrap-x86_USES     = vccprecomp
    256256   VBoxAPIWrap-x86_PCH_HDR := $(PATH_SUB_CURRENT)/src-all/win/VBoxAPIWrap-precomp_vcc.h
     
    347347 VBoxSVC_USES    += vccprecomp
    348348 VBoxSVC_PCH_HDR := $(PATH_SUB_CURRENT)/src-server/win/precomp_vcc.h
     349else if $(KMK_REVISION) >= 3250 && "$(KBUILD_TARGET)" != "darwin" && !defined(VBOX_WITHOUT_PRECOMPILED_HEADERS) && !defined(KBUILD_USE_KOBJCACHE)
     350 VBoxSVC_USES    += gccprecomp
     351 VBoxSVC_PCH_HDR := $(PATH_SUB_CURRENT)/src-server/xpcom/precomp_gcc.h
    349352endif
    350353## r=bird: If you really think you might need VBOX_WITH_RECORDING and VBOX_WITH_AUDIO_RECORDING both here and for
     
    744747 VBoxC_USES     = vccprecomp
    745748 VBoxC_PCH_HDR := $(PATH_SUB_CURRENT)/src-client/win/precomp_vcc.h
     749else if $(KMK_REVISION) >= 3250 && "$(KBUILD_TARGET)" != "darwin" && !defined(VBOX_WITHOUT_PRECOMPILED_HEADERS) && !defined(KBUILD_USE_KOBJCACHE)
     750 VBoxC_USES    += gccprecomp
     751 VBoxC_PCH_HDR := $(PATH_SUB_CURRENT)/src-client/xpcom/precomp_gcc.h
    746752endif
    747753VBoxC_DEFS = \
     
    987993 VBoxClient-x86_TEMPLATE = VBoxMainComp-x86
    988994 VBoxClient-x86_EXTENDS  = VBoxC
    989 if defined(VBOX_WITH_PRECOMPILED_HEADERS) && "$(KBUILD_TARGET)" == "win" ## @todo fix inheritance
     995if defined(VBOX_WITH_PRECOMPILED_HEADERS) && "$(KBUILD_TARGET)" == "win" ## @todo fix inheritance (fixed in r3253)
    990996 VBoxClient-x86_USES     = vccprecomp
    991997 VBoxClient-x86_PCH_HDR := $(PATH_SUB_CURRENT)/src-client/win/precomp_vcc.h
  • trunk/src/VBox/Main/src-client/xpcom/precomp_gcc.h

    r76588 r76598  
    11/* $Id$ */
    22/** @file
    3  * VirtualBox COM - Visual C++ precompiled header for VBoxC.
     3 * VirtualBox COM - GNU C++ precompiled header for VBoxC.
    44 */
    55
     
    1717
    1818
    19 
    2019#include <iprt/cdefs.h>
    21 #include <iprt/win/winsock2.h>
    22 #include <iprt/win/windows.h>
    2320#include <VBox/cdefs.h>
    2421#include <iprt/types.h>
     
    2623#include <iprt/cpp/meta.h>
    2724#include <iprt/cpp/ministring.h>
    28 #include <VBox/com/microatl.h>
    2925#include <VBox/com/com.h>
    3026#include <VBox/com/array.h>
    3127#include <VBox/com/Guid.h>
    3228#include <VBox/com/string.h>
     29#include <VBox/com/VirtualBox.h>
    3330
    34 #include "VBox/com/VirtualBox.h"
     31#if 1
     32# include "VirtualBoxBase.h"
     33# include <new>
     34# include <list>
     35# include <map>
     36# include <array>
     37# include <errno.h>
     38#endif
    3539
    3640#if defined(Log) || defined(LogIsEnabled)
  • trunk/src/VBox/Main/src-server/xpcom/precomp_gcc.h

    r76588 r76598  
    11/* $Id$ */
    22/** @file
    3  * VirtualBox COM - Visual C++ precompiled header for VBoxSVC.
     3 * VirtualBox COM - GNU C++ precompiled header for VBoxSVC.
    44 */
    55
     
    1818
    1919#include <iprt/cdefs.h>
    20 #include <iprt/win/winsock2.h>
    21 #include <iprt/win/windows.h>
    2220#include <VBox/cdefs.h>
    2321#include <iprt/types.h>
     
    2523#include <iprt/cpp/meta.h>
    2624#include <iprt/cpp/ministring.h>
    27 #include <VBox/com/microatl.h>
    2825#include <VBox/com/com.h>
    2926#include <VBox/com/array.h>
    3027#include <VBox/com/Guid.h>
    3128#include <VBox/com/string.h>
     29#include <VBox/com/VirtualBox.h>
    3230
    33 #include "VBox/com/VirtualBox.h"
     31#if 1
     32# include "VirtualBoxBase.h"
     33# include <list>
     34# include <vector>
     35# include <new>
     36# include <iprt/time.h>
     37#endif
    3438
    3539#if defined(Log) || defined(LogIsEnabled)
  • trunk/src/VBox/Main/xml/Settings.cpp

    r76592 r76598  
    14871487 * Constructor. Needs to set sane defaults which stand the test of time.
    14881488 */
    1489 Medium::Medium() :
     1489settings::Medium::Medium() :
    14901490    fAutoReset(false),
    14911491    hdType(MediumType_Normal)
     
    14981498 * machine settings have really changed and thus need to be written out to disk.
    14991499 */
    1500 bool Medium::operator==(const Medium &m) const
     1500bool settings::Medium::operator==(const settings::Medium &m) const
    15011501{
    15021502    return (this == &m)
     
    15111511}
    15121512
    1513 const struct Medium Medium::Empty; /* default ctor is OK */
     1513const struct settings::Medium settings::Medium::Empty; /* default ctor is OK */
    15141514
    15151515/**
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