https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d05c658dbded63b192e07…
commit d05c658dbded63b192e07d75f94e79b0099bb612
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Sun Nov 26 13:16:29 2017 +0100
[LIBJPEG] Add a PCH.
---
dll/3rdparty/libjpeg/CMakeLists.txt | 7 +++++--
dll/3rdparty/libjpeg/precomp.h | 8 ++++++++
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/dll/3rdparty/libjpeg/CMakeLists.txt b/dll/3rdparty/libjpeg/CMakeLists.txt
index 7330953491..41a142dba0 100644
--- a/dll/3rdparty/libjpeg/CMakeLists.txt
+++ b/dll/3rdparty/libjpeg/CMakeLists.txt
@@ -10,7 +10,7 @@ include_directories(
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/libjpeg
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib)
-add_library(libjpeg SHARED
+list(APPEND SOURCE
jaricom.c
jcapimin.c
jcapistd.c
@@ -56,8 +56,11 @@ add_library(libjpeg SHARED
jquant2.c
jutils.c
jmemmgr.c
- jmemnobs.c)
+ jmemnobs.c
+ precomp.h)
+add_library(libjpeg SHARED ${SOURCE})
set_module_type(libjpeg win32dll)
add_importlibs(libjpeg msvcrt kernel32)
+add_pch(libjpeg precomp.h SOURCE)
add_cd_file(TARGET libjpeg DESTINATION reactos/system32 FOR all)
diff --git a/dll/3rdparty/libjpeg/precomp.h b/dll/3rdparty/libjpeg/precomp.h
new file mode 100644
index 0000000000..156d2903bf
--- /dev/null
+++ b/dll/3rdparty/libjpeg/precomp.h
@@ -0,0 +1,8 @@
+#ifndef _LIBJPEG_PRECOMP_H_
+#define _LIBJPEG_PRECOMP_H_
+
+#define JPEG_INTERNALS
+#include "jinclude.h"
+#include "jpeglib.h"
+
+#endif /* _LIBJPEG_PRECOMP_H_ */