mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 14:53:40 +00:00
[MSVCRT]
* Improve the PCH. svn path=/trunk/; revision=53184
This commit is contained in:
parent
2b5f85b71e
commit
76d63856af
3 changed files with 11 additions and 12 deletions
|
@ -23,24 +23,21 @@ list(APPEND SOURCE
|
||||||
|
|
||||||
add_library(msvcrt SHARED ${SOURCE})
|
add_library(msvcrt SHARED ${SOURCE})
|
||||||
|
|
||||||
if (NOT MSVC)
|
if(NOT MSVC)
|
||||||
set_target_properties(msvcrt PROPERTIES LINK_FLAGS "-u __seh_longjmp_unwind@4")
|
set_target_properties(msvcrt PROPERTIES LINK_FLAGS "-u __seh_longjmp_unwind@4")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_dependencies(msvcrt psdk)
|
add_dependencies(msvcrt psdk)
|
||||||
set_entrypoint(msvcrt DllMain@12)
|
set_entrypoint(msvcrt DllMain@12)
|
||||||
set_image_base(msvcrt ${baseaddress_msvcrt})
|
set_image_base(msvcrt ${baseaddress_msvcrt})
|
||||||
|
|
||||||
target_link_libraries(msvcrt
|
target_link_libraries(msvcrt crt wine)
|
||||||
crt
|
|
||||||
wine)
|
|
||||||
|
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
target_link_libraries(msvcrt pseh)
|
target_link_libraries(msvcrt pseh)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_pch(msvcrt precomp.h)
|
|
||||||
add_importlibs(msvcrt kernel32 ntdll)
|
add_importlibs(msvcrt kernel32 ntdll)
|
||||||
|
add_pch(msvcrt precomp.h)
|
||||||
add_cd_file(TARGET msvcrt DESTINATION reactos/system32 FOR all)
|
add_cd_file(TARGET msvcrt DESTINATION reactos/system32 FOR all)
|
||||||
add_importlib_target(msvcrt.spec)
|
add_importlib_target(msvcrt.spec)
|
||||||
|
|
||||||
|
|
|
@ -21,11 +21,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <precomp.h>
|
#include <precomp.h>
|
||||||
#include <internal/wine/msvcrt.h>
|
|
||||||
#include <locale.h>
|
|
||||||
#include <mbctype.h>
|
|
||||||
|
|
||||||
#include "wine/debug.h"
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
|
WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
|
||||||
|
|
||||||
/* EXTERNAL PROTOTYPES ********************************************************/
|
/* EXTERNAL PROTOTYPES ********************************************************/
|
||||||
|
|
|
@ -6,4 +6,10 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
|
#include <internal/wine/msvcrt.h>
|
||||||
|
#include <locale.h>
|
||||||
|
#include <mbctype.h>
|
||||||
|
|
||||||
|
#include "wine/debug.h"
|
||||||
|
|
||||||
#endif /* _CRT_PRECOMP_H */
|
#endif /* _CRT_PRECOMP_H */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue