Author: akhaldi
Date: Tue Jul 27 00:48:07 2010
New Revision: 48293
URL:
http://svn.reactos.org/svn/reactos?rev=48293&view=rev
Log:
[CMAKE]
- Add dxsdk interfaces to build.
Added:
branches/cmake-bringup/include/dxsdk/CMakeLists.txt (with props)
Modified:
branches/cmake-bringup/CMakeLists.txt
Modified: branches/cmake-bringup/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/CMakeLists.txt?re…
==============================================================================
--- branches/cmake-bringup/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/CMakeLists.txt [iso-8859-1] Tue Jul 27 00:48:07 2010
@@ -50,6 +50,8 @@
include_directories(./include)
include_directories(./include/psdk)
+include_directories(./include/dxsdk)
+include_directories(${REACTOS_BINARY_DIR}/include/dxsdk)
include_directories(${REACTOS_BINARY_DIR}/include/psdk)
include_directories(${REACTOS_BINARY_DIR}/include/reactos)
include_directories(./include/crt)
@@ -60,6 +62,7 @@
include_directories(./include/reactos/libs)
add_subdirectory(include/psdk)
+add_subdirectory(include/dxsdk)
add_subdirectory(include/reactos/mc)
add_subdirectory(lib)
Added: branches/cmake-bringup/include/dxsdk/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/include/dxsdk/CMa…
==============================================================================
--- branches/cmake-bringup/include/dxsdk/CMakeLists.txt (added)
+++ branches/cmake-bringup/include/dxsdk/CMakeLists.txt [iso-8859-1] Tue Jul 27 00:48:07
2010
@@ -1,0 +1,37 @@
+
+MACRO (MACRO_ADD_DXSDK_INTERFACES)
+
+ FOREACH(_in_FILE ${ARGN})
+
+ GET_FILENAME_COMPONENT(FILE ${_in_FILE} NAME_WE)
+
+ ADD_CUSTOM_COMMAND(
+ OUTPUT ${REACTOS_BINARY_DIR}/include/dxsdk/${FILE}.h
+ COMMAND native-widl -I${REACTOS_SOURCE_DIR}/include/dxsdk -I.
-I${REACTOS_SOURCE_DIR}/include -I${REACTOS_SOURCE_DIR}/include/psdk -m32 --win32 -h -H
${REACTOS_BINARY_DIR}/include/dxsdk/${FILE}.h
${REACTOS_SOURCE_DIR}/include/dxsdk/${FILE}.idl
+ DEPENDS native-widl
+ )
+
+ SET_SOURCE_FILES_PROPERTIES(
+ ${REACTOS_BINARY_DIR}/include/dxsdk/${FILE}.h
+ PROPERTIES
+ GENERATED TRUE
+ )
+
+ LIST(APPEND DXSDK_HEADERS ${REACTOS_BINARY_DIR}/include/dxsdk/${FILE}.h)
+
+ ENDFOREACH(_in_FILE ${ARGN})
+
+ENDMACRO (MACRO_ADD_DXSDK_INTERFACES)
+
+file(GLOB_RECURSE SOURCE "*.idl")
+
+LIST(REMOVE_ITEM SOURCE ${REACTOS_SOURCE_DIR}/include/dxsdk/axcore.idl)
+LIST(REMOVE_ITEM SOURCE ${REACTOS_SOURCE_DIR}/include/dxsdk/axextend.idl)
+LIST(REMOVE_ITEM SOURCE ${REACTOS_SOURCE_DIR}/include/dxsdk/devenum.idl)
+LIST(REMOVE_ITEM SOURCE ${REACTOS_SOURCE_DIR}/include/dxsdk/dshowasf.idl)
+LIST(REMOVE_ITEM SOURCE ${REACTOS_SOURCE_DIR}/include/dxsdk/dyngraph.idl)
+LIST(REMOVE_ITEM SOURCE ${REACTOS_SOURCE_DIR}/include/dxsdk/vmrender.idl)
+
+MACRO_ADD_DXSDK_INTERFACES(${SOURCE})
+
+ADD_CUSTOM_TARGET(dxsdk ALL DEPENDS ${DXSDK_HEADERS})
Propchange: branches/cmake-bringup/include/dxsdk/CMakeLists.txt
------------------------------------------------------------------------------
svn:eol-style = native