[ros-diffs] [akhaldi] 49864: [CMAKE] - Add auto stubs support to the gcc based toolchains.

akhaldi at svn.reactos.org akhaldi at svn.reactos.org
Mon Nov 29 18:33:08 UTC 2010


Author: akhaldi
Date: Mon Nov 29 18:33:07 2010
New Revision: 49864

URL: http://svn.reactos.org/svn/reactos?rev=49864&view=rev
Log:
[CMAKE]
- Add auto stubs support to the gcc based toolchains.

Modified:
    branches/cmake-bringup/gcc.cmake

Modified: branches/cmake-bringup/gcc.cmake
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/gcc.cmake?rev=49864&r1=49863&r2=49864&view=diff
==============================================================================
--- branches/cmake-bringup/gcc.cmake [iso-8859-1] (original)
+++ branches/cmake-bringup/gcc.cmake [iso-8859-1] Mon Nov 29 18:33:07 2010
@@ -200,11 +200,12 @@
 macro(spec2def _dllname _spec_file)
     get_filename_component(_file ${_spec_file} NAME_WE)
     add_custom_command(
-        OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_file}.def
-        COMMAND native-spec2def -n=${_dllname} -d=${CMAKE_CURRENT_BINARY_DIR}/${_file}.def ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file}
+        OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_file}.def ${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c
+        COMMAND native-spec2def -n=${_dllname} -d=${CMAKE_CURRENT_BINARY_DIR}/${_file}.def -s=${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file}
         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file})
     set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_file}.def
         PROPERTIES GENERATED TRUE EXTERNAL_OBJECT TRUE)
+    set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c PROPERTIES GENERATED TRUE)
 endmacro()
 
 # Optional 3rd parameter: dllname




More information about the Ros-diffs mailing list