mirror of
https://github.com/reactos/reactos.git
synced 2024-12-31 19:42:51 +00:00
[CMAKE-scripts]
Indentation fixes, no code changes. svn path=/trunk/; revision=58782
This commit is contained in:
parent
fd8944f799
commit
78e547c553
6 changed files with 18 additions and 18 deletions
|
@ -54,26 +54,26 @@ function(add_message_headers _type)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
function(add_link)
|
function(add_link)
|
||||||
cmake_parse_arguments(_LINK "MINIMIZE" "NAME;PATH;CMD_LINE_ARGS;ICON;GUID" "" ${ARGN})
|
cmake_parse_arguments(_LINK "MINIMIZE" "NAME;PATH;CMD_LINE_ARGS;ICON;GUID" "" ${ARGN})
|
||||||
if(NOT _LINK_NAME OR NOT _LINK_PATH)
|
if(NOT _LINK_NAME OR NOT _LINK_PATH)
|
||||||
message(FATAL_ERROR "You must provide name and path")
|
message(FATAL_ERROR "You must provide name and path")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(_LINK_CMD_LINE_ARGS)
|
if(_LINK_CMD_LINE_ARGS)
|
||||||
set(_LINK_CMD_LINE_ARGS -c ${_LINK_CMD_LINE_ARGS})
|
set(_LINK_CMD_LINE_ARGS -c ${_LINK_CMD_LINE_ARGS})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(_LINK_ICON)
|
if(_LINK_ICON)
|
||||||
set(_LINK_ICON -i ${_LINK_ICON})
|
set(_LINK_ICON -i ${_LINK_ICON})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(_LINK_GUID)
|
if(_LINK_GUID)
|
||||||
set(_LINK_GUID -g ${_LINK_GUID})
|
set(_LINK_GUID -g ${_LINK_GUID})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(_LINK_MINIMIZE)
|
if(_LINK_MINIMIZE)
|
||||||
set(_LINK_MINIMIZE "-m")
|
set(_LINK_MINIMIZE "-m")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_LINK_NAME}.lnk
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_LINK_NAME}.lnk
|
||||||
|
|
|
@ -28,7 +28,7 @@ set(KDBG FALSE CACHE BOOL
|
||||||
|
|
||||||
set(GDB FALSE CACHE BOOL
|
set(GDB FALSE CACHE BOOL
|
||||||
"Whether to compile for debugging with GDB.
|
"Whether to compile for debugging with GDB.
|
||||||
If you don't use GDB, don't enable this.")
|
If you don't use GDB, don't enable this.")
|
||||||
|
|
||||||
set(_WINKD_ TRUE CACHE BOOL
|
set(_WINKD_ TRUE CACHE BOOL
|
||||||
"Whether to compile with the KD protocol.")
|
"Whether to compile with the KD protocol.")
|
||||||
|
|
|
@ -29,7 +29,7 @@ set(KDBG FALSE CACHE BOOL
|
||||||
|
|
||||||
set(GDB FALSE CACHE BOOL
|
set(GDB FALSE CACHE BOOL
|
||||||
"Whether to compile for debugging with GDB.
|
"Whether to compile for debugging with GDB.
|
||||||
If you don't use GDB, don't enable this.")
|
If you don't use GDB, don't enable this.")
|
||||||
|
|
||||||
set(_WINKD_ TRUE CACHE BOOL
|
set(_WINKD_ TRUE CACHE BOOL
|
||||||
"Whether to compile with the KD protocol.")
|
"Whether to compile with the KD protocol.")
|
||||||
|
|
|
@ -26,7 +26,7 @@ set(LTCG FALSE CACHE BOOL
|
||||||
|
|
||||||
set(GDB FALSE CACHE BOOL
|
set(GDB FALSE CACHE BOOL
|
||||||
"Whether to compile for debugging with GDB.
|
"Whether to compile for debugging with GDB.
|
||||||
If you don't use GDB, don't enable this.")
|
If you don't use GDB, don't enable this.")
|
||||||
|
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||||
set(DBG FALSE CACHE BOOL
|
set(DBG FALSE CACHE BOOL
|
||||||
|
|
|
@ -107,7 +107,7 @@ function(add_iid_library _target)
|
||||||
add_library(${_target} ${_iid_sources})
|
add_library(${_target} ${_iid_sources})
|
||||||
|
|
||||||
# for wtypes.h
|
# for wtypes.h
|
||||||
add_dependencies(${_target} psdk)
|
add_dependencies(${_target} psdk)
|
||||||
|
|
||||||
set_target_properties(${_target} PROPERTIES EXCLUDE_FROM_ALL TRUE)
|
set_target_properties(${_target} PROPERTIES EXCLUDE_FROM_ALL TRUE)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
|
@ -108,7 +108,7 @@ function(add_iid_library TARGET)
|
||||||
list(APPEND IID_SOURCES ${NAME}_i.c)
|
list(APPEND IID_SOURCES ${NAME}_i.c)
|
||||||
endforeach()
|
endforeach()
|
||||||
add_library(${TARGET} ${IID_SOURCES})
|
add_library(${TARGET} ${IID_SOURCES})
|
||||||
add_dependencies(${TARGET} psdk)
|
add_dependencies(${TARGET} psdk)
|
||||||
set_target_properties(${TARGET} PROPERTIES EXCLUDE_FROM_ALL TRUE)
|
set_target_properties(${TARGET} PROPERTIES EXCLUDE_FROM_ALL TRUE)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue