Improve ntkernel-error-category (#1652)
* Add ntkernel-error-category * Remove empty lines * Convert ntkernel-error-category to XMake ned14 cmake is horrible :Dpull/1655/head
parent
190bf5d0bd
commit
66a30c4c7c
2 changed files with 32 additions and 10 deletions
@ -0,0 +1,23 @@ |
||||
if is_plat("windows", "mingw") then |
||||
target("generate-table") |
||||
set_kind("binary") |
||||
set_languages("c++17") |
||||
add_files("src/generate-table.cpp") |
||||
add_defines("_UNICODE", "UNICODE") |
||||
end |
||||
|
||||
target("ntkernel-error-category") |
||||
set_kind("$(kind)") |
||||
set_languages("c++17") |
||||
add_headerfiles("include/(ntkernel-error-category/*.hpp)") |
||||
add_includedirs("include") |
||||
|
||||
if not is_kind("headeronly") then |
||||
add_files("src/ntkernel_category.cpp") |
||||
if is_kind("static") then |
||||
add_defines("NTKERNEL_ERROR_CATEGORY_STATIC", { public = true }) |
||||
end |
||||
else |
||||
add_defines("NTKERNEL_ERROR_CATEGORY_INLINE", { public = true }) |
||||
add_headerfiles("include/(ntkernel-error-category/detail/*.ipp)") |
||||
end |
Loading…
Reference in new issue