[LIBJPEG] Add a PCH.

This commit is contained in:
Amine Khaldi 2017-11-26 13:16:29 +01:00
parent 9d67a24799
commit d05c658dbd
2 changed files with 13 additions and 2 deletions

View File

@ -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)

8
dll/3rdparty/libjpeg/precomp.h vendored Normal file
View File

@ -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_ */