mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:12:59 +00:00
[BOOT][SDK:CMLIB] Compile a CMLIB for FreeLdr / NT bootloader with correct definitions. (#4619)
This also allows using the CMLIB with any reduced functionality that could be required at boot-time.
This commit is contained in:
parent
95b3e7508e
commit
5cadc268ef
3 changed files with 11 additions and 4 deletions
|
@ -1,6 +1,5 @@
|
|||
|
||||
add_definitions(
|
||||
-D_BLDR_
|
||||
-D_NTSYSTEM_
|
||||
-DNASSERT)
|
||||
|
||||
|
@ -19,10 +18,18 @@ list(APPEND SOURCE
|
|||
cmlib.h)
|
||||
|
||||
if(CMAKE_CROSSCOMPILING)
|
||||
# CMLIB for NT bootloader
|
||||
add_library(blcmlib ${SOURCE})
|
||||
target_compile_definitions(blcmlib PRIVATE _BLDR_)
|
||||
add_dependencies(blcmlib bugcodes xdk)
|
||||
add_pch(blcmlib cmlib.h SOURCE)
|
||||
|
||||
# CMLIB for NT kernel
|
||||
add_library(cmlib ${SOURCE})
|
||||
add_dependencies(cmlib bugcodes xdk)
|
||||
add_pch(cmlib cmlib.h SOURCE)
|
||||
else()
|
||||
# CMLIB for host-tools
|
||||
add_definitions(
|
||||
-D__NO_CTYPE_INLINES
|
||||
-DCMLIB_HOST)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue