https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2a3392b97d295909960b4…
commit 2a3392b97d295909960b4da6c5bf70711b12420f
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Sun Nov 26 13:24:50 2017 +0100
[GLU32] Add a PCH.
---
dll/opengl/glu32/CMakeLists.txt | 14 ++++++++---
dll/opengl/glu32/precomp.h | 51 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 62 insertions(+), 3 deletions(-)
diff --git a/dll/opengl/glu32/CMakeLists.txt b/dll/opengl/glu32/CMakeLists.txt
index bb874f6913..9c8802c4e0 100644
--- a/dll/opengl/glu32/CMakeLists.txt
+++ b/dll/opengl/glu32/CMakeLists.txt
@@ -33,7 +33,9 @@ list(APPEND SOURCE
src/libtess/render.c
src/libtess/sweep.c
src/libtess/tess.c
- src/libtess/tessmono.c
+ src/libtess/tessmono.c)
+
+list(APPEND LIBNURBS_SOURCE
src/libnurbs/interface/bezierEval.cc
src/libnurbs/interface/bezierPatch.cc
src/libnurbs/interface/bezierPatchMesh.cc
@@ -95,7 +97,6 @@ list(APPEND SOURCE
src/libnurbs/nurbtess/monoTriangulation.cc
src/libnurbs/nurbtess/partitionX.cc
src/libnurbs/nurbtess/partitionY.cc
- src/libnurbs/nurbtess/polyDBG.cc
src/libnurbs/nurbtess/polyUtil.cc
src/libnurbs/nurbtess/primitiveStream.cc
src/libnurbs/nurbtess/quicksort.cc
@@ -107,9 +108,15 @@ list(APPEND SOURCE
src/libnurbs/nurbtess/sampleMonoPoly.cc
src/libnurbs/nurbtess/sampledLine.cc
src/libnurbs/nurbtess/searchTree.cc
+ precomp.h)
+
+add_library(glu32 SHARED
+ ${LIBNURBS_SOURCE}
+ src/libnurbs/nurbtess/polyDBG.cc
+ ${SOURCE}
+ glu32.rc
${CMAKE_CURRENT_BINARY_DIR}/glu32.def)
-add_library(glu32 SHARED ${SOURCE} glu32.rc)
set_module_type(glu32 win32dll)
if(NOT MSVC)
@@ -117,4 +124,5 @@ if(NOT MSVC)
endif()
add_importlibs(glu32 opengl32 gdi32 msvcrt kernel32 ntdll)
+add_pch(glu32 precomp.h LIBNURBS_SOURCE)
add_cd_file(TARGET glu32 DESTINATION reactos/system32 FOR all)
diff --git a/dll/opengl/glu32/precomp.h b/dll/opengl/glu32/precomp.h
new file mode 100644
index 0000000000..56b8d67a52
--- /dev/null
+++ b/dll/opengl/glu32/precomp.h
@@ -0,0 +1,51 @@
+#ifndef _GLU32_PRECOMP_H_
+#define _GLU32_PRECOMP_H_
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <assert.h>
+#include <math.h>
+
+#include "gluos.h"
+#include "glrenderer.h"
+
+#include <GL/gl.h>
+
+#include "arc.h"
+#include "arcsorter.h"
+#include "backend.h"
+#include "basiccrveval.h"
+#include "basicsurfeval.h"
+#include "bezierarc.h"
+#include "bezierEval.h"
+#include "curve.h"
+#include "curvelist.h"
+#include "displaylist.h"
+#include "flist.h"
+#include "glimports.h"
+#include "mapdesc.h"
+#include "monoTriangulation.h"
+#include "myassert.h"
+#include "mymath.h"
+#include "nurbsconsts.h"
+#include "nurbstess.h"
+#include "partitionX.h"
+#include "patchlist.h"
+#include "polyDBG.h"
+#include "polyUtil.h"
+#include "quicksort.h"
+#include "quilt.h"
+#include "renderhints.h"
+#include "sampleComp.h"
+#include "sampleCompTop.h"
+#include "sampleCompBot.h"
+#include "sampleCompRight.h"
+#include "searchTree.h"
+#include "simplemath.h"
+#include "subdivider.h"
+#include "trimvertex.h"
+#include "trimvertpool.h"
+#include "varray.h"
+#include "zlassert.h"
+
+#endif /* _GLU32_PRECOMP_H_ */