mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[CMAKE]
Move common macros from *idl-support.cmake to CMakeMacros.cmake, remove obsolete definitions svn path=/trunk/; revision=56278
This commit is contained in:
parent
21514a55e1
commit
4c39ca2179
3 changed files with 16 additions and 72 deletions
|
@ -403,3 +403,19 @@ function(preprocess_file __in __out)
|
|||
DEPENDS ${__in})
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
function(get_includes OUTPUT_VAR)
|
||||
get_directory_property(_includes INCLUDE_DIRECTORIES)
|
||||
foreach(arg ${_includes})
|
||||
list(APPEND __tmp_var -I${arg})
|
||||
endforeach()
|
||||
set(${OUTPUT_VAR} ${__tmp_var} PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
function(get_defines OUTPUT_VAR)
|
||||
get_directory_property(_defines COMPILE_DEFINITIONS)
|
||||
foreach(arg ${_defines})
|
||||
list(APPEND __tmp_var -D${arg})
|
||||
endforeach()
|
||||
set(${OUTPUT_VAR} ${__tmp_var} PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
|
||||
#idl files support
|
||||
if(MSVC)
|
||||
set(IDL_COMPILER midl)
|
||||
set(IDL_HEADER_ARG /h) #.h
|
||||
set(IDL_HEADER_ARG2 /h) #.h
|
||||
|
@ -17,41 +16,6 @@ if(MSVC)
|
|||
set(IDL_FLAGS /nologo /no_def_idir)
|
||||
endif()
|
||||
set(IDL_DEPENDS "")
|
||||
else()
|
||||
set(IDL_COMPILER native-widl)
|
||||
set(IDL_HEADER_ARG -h -o) #.h
|
||||
set(IDL_HEADER_ARG2 -h -H) #.h
|
||||
set(IDL_TYPELIB_ARG -t -o) #.tlb
|
||||
set(IDL_SERVER_ARG -Oif -s -o) #.c for server library
|
||||
set(IDL_CLIENT_ARG -Oif -c -o) #.c for stub client library
|
||||
set(IDL_PROXY_ARG -p -o)
|
||||
set(IDL_INTERFACE_ARG -u -o)
|
||||
if(ARCH MATCHES i386)
|
||||
set(IDL_FLAGS -m32 --win32)
|
||||
elseif(ARCH MATCHES amd64)
|
||||
set(IDL_FLAGS -m64 --win64)
|
||||
else()
|
||||
set(IDL_FLAGS "")
|
||||
endif()
|
||||
set(IDL_DEPENDS native-widl)
|
||||
endif()
|
||||
|
||||
|
||||
function(get_includes OUTPUT_VAR)
|
||||
get_directory_property(_includes INCLUDE_DIRECTORIES)
|
||||
foreach(arg ${_includes})
|
||||
list(APPEND __tmp_var -I${arg})
|
||||
endforeach()
|
||||
set(${OUTPUT_VAR} ${__tmp_var} PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
function(get_defines OUTPUT_VAR)
|
||||
get_directory_property(_defines COMPILE_DEFINITIONS)
|
||||
foreach(arg ${_defines})
|
||||
list(APPEND __tmp_var -D${arg})
|
||||
endforeach()
|
||||
set(${OUTPUT_VAR} ${__tmp_var} PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
function(add_typelib)
|
||||
get_includes(INCLUDES)
|
||||
|
|
|
@ -1,23 +1,5 @@
|
|||
|
||||
#idl files support
|
||||
if(MSVC)
|
||||
set(IDL_COMPILER midl)
|
||||
set(IDL_HEADER_ARG /h) #.h
|
||||
set(IDL_HEADER_ARG2 /h) #.h
|
||||
set(IDL_TYPELIB_ARG /tlb) #.tlb
|
||||
set(IDL_SERVER_ARG /sstub) #.c for stub server library
|
||||
set(IDL_CLIENT_ARG /cstub) #.c for stub client library
|
||||
set(IDL_PROXY_ARG /proxy)
|
||||
set(IDL_INTERFACE_ARG /iid)
|
||||
if(ARCH MATCHES i386)
|
||||
set(IDL_FLAGS /nologo /win32 /no_def_idir)
|
||||
elseif(ARCH MATCHES amd64)
|
||||
set(IDL_FLAGS /nologo /amd64 /no_def_idir)
|
||||
else()
|
||||
set(IDL_FLAGS /nologo /no_def_idir)
|
||||
endif()
|
||||
set(IDL_DEPENDS "")
|
||||
else()
|
||||
set(IDL_COMPILER native-widl)
|
||||
set(IDL_HEADER_ARG -h -o) #.h
|
||||
set(IDL_HEADER_ARG2 -h -H) #.h
|
||||
|
@ -34,24 +16,6 @@ else()
|
|||
set(IDL_FLAGS "")
|
||||
endif()
|
||||
set(IDL_DEPENDS native-widl)
|
||||
endif()
|
||||
|
||||
|
||||
function(get_includes OUTPUT_VAR)
|
||||
get_directory_property(_includes INCLUDE_DIRECTORIES)
|
||||
foreach(arg ${_includes})
|
||||
list(APPEND __tmp_var -I${arg})
|
||||
endforeach()
|
||||
set(${OUTPUT_VAR} ${__tmp_var} PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
function(get_defines OUTPUT_VAR)
|
||||
get_directory_property(_defines COMPILE_DEFINITIONS)
|
||||
foreach(arg ${_defines})
|
||||
list(APPEND __tmp_var -D${arg})
|
||||
endforeach()
|
||||
set(${OUTPUT_VAR} ${__tmp_var} PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
function(add_typelib)
|
||||
get_includes(INCLUDES)
|
||||
|
|
Loading…
Reference in a new issue