Skip to content

Commit

Permalink
#5584: Rearrange precompiled headers a bit. The UI module shouldn't r…
Browse files Browse the repository at this point in the history
…ely on render interfaces that heavily.
  • Loading branch information
codereader committed Dec 3, 2021
1 parent cda7b2c commit f2b2231
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 10 deletions.
12 changes: 2 additions & 10 deletions include/precompiled_interfaces.h
@@ -1,14 +1,12 @@
/**
* greebo: Precompiled header module. This is included by the respective precompiled.h
* files throughout the project. Many of those include boost headers into the
* pre-compilation, and they do so by #include'ing this file.
* files throughout the project.
*/
#pragma once

// Add DarkRadiant interfaces
// Commonly used DarkRadiant interfaces
#include "Bounded.h"
#include "editable.h"
#include "GLProgramAttributes.h"
#include "i18n.h"
#include "iarchive.h"
#include "ibrush.h"
Expand All @@ -25,9 +23,6 @@
#include "ifilter.h"
#include "ifonts.h"
#include "igame.h"
#include "igl.h"
#include "iglprogram.h"
#include "iglrender.h"
#include "igrid.h"
#include "igroupnode.h"
#include "iimage.h"
Expand Down Expand Up @@ -60,9 +55,6 @@
#include "ipreferencesystem.h"
#include "iradiant.h"
#include "iregistry.h"
#include "irender.h"
#include "irenderable.h"
#include "irendersystemfactory.h"
#include "iscenegraph.h"
#include "iscenegraphfactory.h"
#include "iselectable.h"
Expand Down
5 changes: 5 additions & 0 deletions include/precompiled_main.h
Expand Up @@ -15,6 +15,11 @@
#include "precompiled_interfaces.h"
#endif

#ifdef DR_PRECOMPILED_RENDER_INTERFACES
// Add render-specific interfaces
#include "precompiled_render_interfaces.h"
#endif

#ifdef DR_PRECOMPILED_UI_INTERFACES
// Add DarkRadiant UI interfaces
#include "precompiled_ui_interfaces.h"
Expand Down
14 changes: 14 additions & 0 deletions include/precompiled_render_interfaces.h
@@ -0,0 +1,14 @@
/**
* greebo: Precompiled header module. This is included by the respective precompiled.h
* files throughout the project.
*/
#pragma once

// Render-related DarkRadiant interfaces
#include "GLProgramAttributes.h"
#include "irender.h"
#include "irenderable.h"
#include "irendersystemfactory.h"
#include "igl.h"
#include "iglprogram.h"
#include "iglrender.h"
1 change: 1 addition & 0 deletions radiantcore/precompiled.h
Expand Up @@ -6,6 +6,7 @@
#define DR_PRECOMPILED_INTERFACES
#define DR_PRECOMPILED_MATH
#define DR_PRECOMPILED_REGISTRY
#define DR_PRECOMPILED_RENDER_INTERFACES
// The actual inclusions are handled by the main precompiled header file
#include "precompiled_main.h"

0 comments on commit f2b2231

Please sign in to comment.