VirtualBox

Changeset 76602 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jan 2, 2019 4:03:13 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: GCC precompiled headers hacking.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
29 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/.scm-settings

    r76581 r76602  
    2424/src/precomp_gcc.h: --no-fix-header-guards
    2525
     26/precomptricks/*:   --no-fix-header-guards --no-update-license --treat-as .h
     27
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r76600 r76602  
    22992299  #VirtualBoxVM_CXXFLAGS.linux += -H
    23002300
     2301  # GCC precompiled headers seems to work more efficiently when #pragma once is involved.
     2302  # So, we've cooked our own camel cased qt wrapper headers with #pragma once inside.
     2303  VBOX_GUI_INC_DIRS <= precomptricks
     2304
    23012305 else if 0 # Obsolete experiment - non-functional.  Needs to be redone the same way as on windows.
    23022306  VirtualBox_DEFS           += VBOX_WITH_PRECOMPILED_HEADERS
  • trunk/src/VBox/Frontends/VirtualBox/src/precomp_gcc.h

    r76601 r76602  
    2424 *       ourselves to frequently used QT, compiler, and system headers.
    2525 */
     26
     27/* Some CRT stuff that's frequently used. */
    2628#include <new>
    2729#include <stdlib.h>
    28 
    29 #include <QVariant>
    30 #include <QVarLengthArray>
    31 #include <QMutex>
    32 #include <QSysInfo>
    33 #include <QString>
    34 #include <QChar>
    35 
    36 #include <QApplication>
    37 
    38 #include <QGroupBox>
    39 #include <QPushButton>
    40 #include <QRadioButton>
    41 #include <QVBoxLayout>
    4230
    4331/* The most frequently used qt headers on a linux hosts based on dependency files. */
     
    124112#include <QtGui/qfontinfo.h> /* 496 */
    125113
    126 /* toplevel headers for which we already include the sub-headers. */
     114/* Toplevel headers for which we already include the sub-headers.
     115   Note! Must exist in precomptricks so we can apply #pragma once to them (good for GCC). */
     116#include <QVariant>
     117#include <QVarLengthArray>
     118#include <QMutex>
     119#include <QSysInfo>
     120#include <QString>
     121#include <QStringList>
     122#include <QChar>
     123#include <QApplication>
     124#include <QGroupBox>
     125#include <QPushButton>
     126#include <QRadioButton>
    127127#include <QObject>
    128128#include <QVector>
     
    130130#include <QMetaType>
    131131#include <QRect>
    132 #include <QString>
    133 #include <QStringList>
    134132#include <QWidget>
    135133#include <QPixmap>
     134
     135/* misc others that we include a bit. */
     136#include <QVBoxLayout>
     137#include <QHBoxLayout>
     138#include <QPainter>
     139#include <QTimer>
     140#include <QStyle>
     141#include <QMenu>
     142#include <QDir>
     143#include <QUuid>
     144#include <QLineEdit>
    136145
    137146/* cdefs.h is a little bit of a question since it defines RT_STRICT, which someone
     
    152161#include <VBox/com/defs.h>
    153162
     163/* These two are freuqently used internal headers. */
    154164#include "UILibraryDefs.h"
    155165#include "QIWithRetranslateUI.h"
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