Author: sir_richard Date: Sun Jul 25 05:53:51 2010 New Revision: 48244
URL: http://svn.reactos.org/svn/reactos?rev=48244&view=rev Log: [CMAKE]: Add make lists for the core host tools/libraries, and add a command to generate the build.h header. There's little fixes needed here and there, but this should be a good template for people to see how easy CMake is. This will build all the wine tools/libraries, nci, gendib, rsym, etc...
Added: branches/cmake-bringup/CMakeLists.txt (with props) branches/cmake-bringup/lib/CMakeLists.txt (with props) branches/cmake-bringup/lib/sdk/CMakeLists.txt (with props) branches/cmake-bringup/tools/CMakeLists.txt (with props) branches/cmake-bringup/tools/buildno/CMakeLists.txt (with props) branches/cmake-bringup/tools/gendib/CMakeLists.txt (with props) branches/cmake-bringup/tools/nci/CMakeLists.txt (with props) branches/cmake-bringup/tools/rsym/CMakeLists.txt (with props) branches/cmake-bringup/tools/unicode/CMakeLists.txt (with props) branches/cmake-bringup/tools/widl/CMakeLists.txt (with props) branches/cmake-bringup/tools/winebuild/CMakeLists.txt (with props) branches/cmake-bringup/tools/wpp/CMakeLists.txt (with props) branches/cmake-bringup/tools/wrc/CMakeLists.txt (with props)
Added: branches/cmake-bringup/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/CMakeLists.txt?rev... ============================================================================== --- branches/cmake-bringup/CMakeLists.txt (added) +++ branches/cmake-bringup/CMakeLists.txt [iso-8859-1] Sun Jul 25 05:53:51 2010 @@ -1,0 +1,32 @@ +cmake_minimum_required(VERSION 2.8) +project(REACTOS) + +include_directories(${REACTOS_SOURCE_DIR}/tools/unicode) + +include_directories(./include) + +include_directories(./include/reactos) +include_directories(./include/reactos/wine) + +add_definitions(-DTARGET_i386) +add_definitions(-D__REACTOS__) + +#-fshort-wchar + +if(NOT CMAKE_CROSSCOMPILING) + +add_subdirectory(tools) + +else() + +include_directories(./include) +include_directories(./include/crt/mingw32) +include_directories(./include/crt) +include_directories(./include/reactos/libs) +include_directories(./include/ndk) +include_directories(./include/psdk) +include_directories(./include/ddk) + +add_subdirectory(lib) + +endif()
Propchange: branches/cmake-bringup/CMakeLists.txt ------------------------------------------------------------------------------ svn:eol-style = native
Added: branches/cmake-bringup/lib/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/CMakeLists.txt... ============================================================================== --- branches/cmake-bringup/lib/CMakeLists.txt (added) +++ branches/cmake-bringup/lib/CMakeLists.txt [iso-8859-1] Sun Jul 25 05:53:51 2010 @@ -1,0 +1,2 @@ + +add_subdirectory(sdk)
Propchange: branches/cmake-bringup/lib/CMakeLists.txt ------------------------------------------------------------------------------ svn:eol-style = native
Added: branches/cmake-bringup/lib/sdk/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/sdk/CMakeLists... ============================================================================== --- branches/cmake-bringup/lib/sdk/CMakeLists.txt (added) +++ branches/cmake-bringup/lib/sdk/CMakeLists.txt [iso-8859-1] Sun Jul 25 05:53:51 2010 @@ -1,0 +1,2 @@ + +add_subdirectory(crt)
Propchange: branches/cmake-bringup/lib/sdk/CMakeLists.txt ------------------------------------------------------------------------------ svn:eol-style = native
Added: branches/cmake-bringup/tools/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/CMakeLists.t... ============================================================================== --- branches/cmake-bringup/tools/CMakeLists.txt (added) +++ branches/cmake-bringup/tools/CMakeLists.txt [iso-8859-1] Sun Jul 25 05:53:51 2010 @@ -1,0 +1,21 @@ +if(NOT CMAKE_CROSSCOMPILING) + +add_library(xml xml.cpp ssprintf.cpp) + +add_executable(bin2c bin2c.c) +add_executable(pefixup pefixup.c) + +add_subdirectory(buildno) +add_subdirectory(gendib) +add_subdirectory(rsym) +add_subdirectory(nci) +add_subdirectory(winebuild) +add_subdirectory(unicode) +add_subdirectory(wpp) +add_subdirectory(widl) +add_subdirectory(wrc) + +else() + + +endif()
Propchange: branches/cmake-bringup/tools/CMakeLists.txt ------------------------------------------------------------------------------ svn:eol-style = native
Added: branches/cmake-bringup/tools/buildno/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/buildno/CMak... ============================================================================== --- branches/cmake-bringup/tools/buildno/CMakeLists.txt (added) +++ branches/cmake-bringup/tools/buildno/CMakeLists.txt [iso-8859-1] Sun Jul 25 05:53:51 2010 @@ -1,0 +1,11 @@ +include_directories(..) + +add_executable(buildno buildno.cpp) + +target_link_libraries(buildno xml) + +ADD_CUSTOM_COMMAND(OUTPUT ${REACTOS_SOURCE_DIR}/include/reactos/buildno.h + COMMAND buildno ${REACTOS_SOURCE_DIR}/include/reactos/buildno.h + DEPENDS ${REACTOS_SOURCE_DIR}/include/reactos/version.h ) + +ADD_CUSTOM_TARGET(build_header ALL DEPENDS ${REACTOS_SOURCE_DIR}/include/reactos/buildno.h)
Propchange: branches/cmake-bringup/tools/buildno/CMakeLists.txt ------------------------------------------------------------------------------ svn:eol-style = native
Added: branches/cmake-bringup/tools/gendib/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/gendib/CMake... ============================================================================== --- branches/cmake-bringup/tools/gendib/CMakeLists.txt (added) +++ branches/cmake-bringup/tools/gendib/CMakeLists.txt [iso-8859-1] Sun Jul 25 05:53:51 2010 @@ -1,0 +1,4 @@ + +file(GLOB_RECURSE SOURCE "*.c") + +add_executable(gendib ${SOURCE})
Propchange: branches/cmake-bringup/tools/gendib/CMakeLists.txt ------------------------------------------------------------------------------ svn:eol-style = native
Added: branches/cmake-bringup/tools/nci/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/nci/CMakeLis... ============================================================================== --- branches/cmake-bringup/tools/nci/CMakeLists.txt (added) +++ branches/cmake-bringup/tools/nci/CMakeLists.txt [iso-8859-1] Sun Jul 25 05:53:51 2010 @@ -1,0 +1,4 @@ + +file(GLOB_RECURSE SOURCE "*.c") + +add_executable(ncitool ${SOURCE})
Propchange: branches/cmake-bringup/tools/nci/CMakeLists.txt ------------------------------------------------------------------------------ svn:eol-style = native
Added: branches/cmake-bringup/tools/rsym/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/rsym/CMakeLi... ============================================================================== --- branches/cmake-bringup/tools/rsym/CMakeLists.txt (added) +++ branches/cmake-bringup/tools/rsym/CMakeLists.txt [iso-8859-1] Sun Jul 25 05:53:51 2010 @@ -1,0 +1,4 @@ + +add_executable(rsym rsym_common.c rsym.c) + +add_executable(raddr2line rsym_common.c raddr2line.c)
Propchange: branches/cmake-bringup/tools/rsym/CMakeLists.txt ------------------------------------------------------------------------------ svn:eol-style = native
Added: branches/cmake-bringup/tools/unicode/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/unicode/CMak... ============================================================================== --- branches/cmake-bringup/tools/unicode/CMakeLists.txt (added) +++ branches/cmake-bringup/tools/unicode/CMakeLists.txt [iso-8859-1] Sun Jul 25 05:53:51 2010 @@ -1,0 +1,8 @@ + +file(GLOB_RECURSE SOURCE "*.c") +string(REGEX REPLACE "fold.c" "" SOURCE "${SOURCE}") +string(REGEX REPLACE "sortkey.c" "" SOURCE "${SOURCE}") + +add_definitions(-DWINE_UNICODE_API= ) + +add_library(unicode ${SOURCE})
Propchange: branches/cmake-bringup/tools/unicode/CMakeLists.txt ------------------------------------------------------------------------------ svn:eol-style = native
Added: branches/cmake-bringup/tools/widl/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/widl/CMakeLi... ============================================================================== --- branches/cmake-bringup/tools/widl/CMakeLists.txt (added) +++ branches/cmake-bringup/tools/widl/CMakeLists.txt [iso-8859-1] Sun Jul 25 05:53:51 2010 @@ -1,0 +1,9 @@ + +file(GLOB_RECURSE SOURCE "*.c") + +# Taken from widl.rbuild +add_definitions(-DINT16=SHORT) + +add_executable(widl ${SOURCE}) + +target_link_libraries(widl wpp)
Propchange: branches/cmake-bringup/tools/widl/CMakeLists.txt ------------------------------------------------------------------------------ svn:eol-style = native
Added: branches/cmake-bringup/tools/winebuild/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/winebuild/CM... ============================================================================== --- branches/cmake-bringup/tools/winebuild/CMakeLists.txt (added) +++ branches/cmake-bringup/tools/winebuild/CMakeLists.txt [iso-8859-1] Sun Jul 25 05:53:51 2010 @@ -1,0 +1,6 @@ + +file(GLOB_RECURSE SOURCE "*.c") + +add_executable(winebuild ${SOURCE} ${REACTOS_SOURCE_DIR}/include/reactos/buildno.h) + +ADD_DEPENDENCIES(winebuild build_header)
Propchange: branches/cmake-bringup/tools/winebuild/CMakeLists.txt ------------------------------------------------------------------------------ svn:eol-style = native
Added: branches/cmake-bringup/tools/wpp/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/wpp/CMakeLis... ============================================================================== --- branches/cmake-bringup/tools/wpp/CMakeLists.txt (added) +++ branches/cmake-bringup/tools/wpp/CMakeLists.txt [iso-8859-1] Sun Jul 25 05:53:51 2010 @@ -1,0 +1,4 @@ + +file(GLOB_RECURSE SOURCE "*.c") + +add_library(wpp ${SOURCE})
Propchange: branches/cmake-bringup/tools/wpp/CMakeLists.txt ------------------------------------------------------------------------------ svn:eol-style = native
Added: branches/cmake-bringup/tools/wrc/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/wrc/CMakeLis... ============================================================================== --- branches/cmake-bringup/tools/wrc/CMakeLists.txt (added) +++ branches/cmake-bringup/tools/wrc/CMakeLists.txt [iso-8859-1] Sun Jul 25 05:53:51 2010 @@ -1,0 +1,8 @@ + +file(GLOB_RECURSE SOURCE "*.c") + +add_executable(wrc ${SOURCE}) + +add_definitions(-DWINE_UNICODE_API= ) + +target_link_libraries(wrc wpp unicode)
Propchange: branches/cmake-bringup/tools/wrc/CMakeLists.txt ------------------------------------------------------------------------------ svn:eol-style = native