Author: tfaber
Date: Thu Aug 25 22:32:57 2011
New Revision: 53447
URL:
http://svn.reactos.org/svn/reactos?rev=53447&view=rev
Log:
[CMAKE]
- Remove /nologo option from RC again - WDK's version doesn't support it
- Add /nologo to MIDL's flags
- Remove redundant IDL compiler declaration for GCC build
Modified:
trunk/reactos/cmake/gcc.cmake
trunk/reactos/cmake/idl-support.cmake
trunk/reactos/cmake/msvc.cmake
Modified: trunk/reactos/cmake/gcc.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/gcc.cmake?rev=53447&…
==============================================================================
--- trunk/reactos/cmake/gcc.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/gcc.cmake [iso-8859-1] Thu Aug 25 22:32:57 2011
@@ -191,15 +191,6 @@
"<CMAKE_RC_COMPILER> -i <OBJECT> -J res -O coff -o
<OBJECT>" PARENT_SCOPE)
endfunction()
-#idl files support
-set(IDL_COMPILER native-widl)
-
-if(ARCH MATCHES i386)
- set(IDL_FLAGS -m32 --win32)
-elseif(ARCH MATCHES amd64)
- set(IDL_FLAGS -m64 --win64)
-endif()
-
function(add_delay_importlibs MODULE)
foreach(LIB ${ARGN})
target_link_libraries(${MODULE}
${CMAKE_BINARY_DIR}/importlibs/lib${LIB}_delayed.a)
Modified: trunk/reactos/cmake/idl-support.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/idl-support.cmake?re…
==============================================================================
--- trunk/reactos/cmake/idl-support.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/idl-support.cmake [iso-8859-1] Thu Aug 25 22:32:57 2011
@@ -10,11 +10,11 @@
set(IDL_PROXY_ARG /proxy)
set(IDL_INTERFACE_ARG /iid)
if(ARCH MATCHES i386)
- set(IDL_FLAGS /win32)
+ set(IDL_FLAGS /nologo /win32)
elseif(ARCH MATCHES amd64)
- set(IDL_FLAGS /amd64)
+ set(IDL_FLAGS /nologo /amd64)
else()
- set(IDL_FLAGS "")
+ set(IDL_FLAGS /nologo)
endif()
set(IDL_DEPENDS "")
else()
Modified: trunk/reactos/cmake/msvc.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/msvc.cmake?rev=53447…
==============================================================================
--- trunk/reactos/cmake/msvc.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/msvc.cmake [iso-8859-1] Thu Aug 25 22:32:57 2011
@@ -36,7 +36,7 @@
link_directories(${REACTOS_SOURCE_DIR}/importlibs ${REACTOS_BINARY_DIR}/importlibs
${REACTOS_BINARY_DIR}/lib/sdk/crt)
-set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> /nologo <DEFINES>
/I${REACTOS_SOURCE_DIR}/include/psdk /I${REACTOS_BINARY_DIR}/include/psdk
/I${REACTOS_SOURCE_DIR}/include /I${REACTOS_SOURCE_DIR}/include/reactos
/I${REACTOS_BINARY_DIR}/include/reactos /I${REACTOS_SOURCE_DIR}/include/reactos/wine
/I${REACTOS_SOURCE_DIR}/include/crt /I${REACTOS_SOURCE_DIR}/include/crt/mingw32 /fo
<OBJECT> <SOURCE>")
+set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> <DEFINES>
/I${REACTOS_SOURCE_DIR}/include/psdk /I${REACTOS_BINARY_DIR}/include/psdk
/I${REACTOS_SOURCE_DIR}/include /I${REACTOS_SOURCE_DIR}/include/reactos
/I${REACTOS_BINARY_DIR}/include/reactos /I${REACTOS_SOURCE_DIR}/include/reactos/wine
/I${REACTOS_SOURCE_DIR}/include/crt /I${REACTOS_SOURCE_DIR}/include/crt/mingw32 /fo
<OBJECT> <SOURCE>")
if(MSVC_IDE)
# Asm source files are not supported in VS generators yet. As a result,
<DEFINES> isn't recognized.
@@ -143,7 +143,7 @@
set(rc_result_incs "/I${arg} ${rc_result_incs}")
endforeach()
- set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> /nologo ${rc_result_defs}
/I${CMAKE_CURRENT_SOURCE_DIR} ${rc_result_incs} /fo <OBJECT> <SOURCE>"
PARENT_SCOPE)
+ set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> ${rc_result_defs}
/I${CMAKE_CURRENT_SOURCE_DIR} ${rc_result_incs} /fo <OBJECT> <SOURCE>"
PARENT_SCOPE)
endfunction()
# Thanks MS for creating a stupid linker