mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:33:01 +00:00
[CMAKE]
- Delete an unneeded lib.mak - Don't build bin2c, we don't seem to need it. - A minor cleanup, no functionality change intended. svn path=/branches/cmake-bringup/; revision=50308
This commit is contained in:
parent
24511aea48
commit
a0cb4ff5eb
20 changed files with 326 additions and 348 deletions
4
lib/3rdparty/mingw/CMakeLists.txt
vendored
4
lib/3rdparty/mingw/CMakeLists.txt
vendored
|
@ -5,7 +5,7 @@ add_definitions(-D_CRTBLD)
|
||||||
|
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
add_definitions(-Wno-main)
|
add_definitions(-Wno-main)
|
||||||
endif(NOT MSVC)
|
endif()
|
||||||
|
|
||||||
list(APPEND MINGW_COMMON_SOURCE
|
list(APPEND MINGW_COMMON_SOURCE
|
||||||
_newmode.c
|
_newmode.c
|
||||||
|
@ -45,7 +45,7 @@ add_library(mingw_common ${MINGW_COMMON_SOURCE})
|
||||||
|
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
target_link_libraries(mingw_common oldnames)
|
target_link_libraries(mingw_common oldnames)
|
||||||
endif(NOT MSVC)
|
endif()
|
||||||
|
|
||||||
set_target_properties(mingw_common PROPERTIES COMPILE_DEFINITIONS _M_CEE_PURE)
|
set_target_properties(mingw_common PROPERTIES COMPILE_DEFINITIONS _M_CEE_PURE)
|
||||||
add_dependencies(mingw_common psdk)
|
add_dependencies(mingw_common psdk)
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
add_definitions(-DUNICODE -D_UNICODE)
|
add_definitions(
|
||||||
add_definitions(-DROS_Headers)
|
-DUNICODE -D_UNICODE
|
||||||
|
-DROS_Headers)
|
||||||
|
|
||||||
add_library(atlnew atlbase.cpp atlcore.cpp)
|
add_library(atlnew atlbase.cpp atlcore.cpp)
|
|
@ -1,20 +1,15 @@
|
||||||
|
|
||||||
SET(GLOBAL_FILES infcore.c infget.c infput.c)
|
set(GLOBAL_FILES infcore.c infget.c infput.c)
|
||||||
|
|
||||||
if(CMAKE_CROSSCOMPILING)
|
if(CMAKE_CROSSCOMPILING)
|
||||||
|
|
||||||
file(GLOB_RECURSE SOURCE "infros*.c")
|
file(GLOB_RECURSE SOURCE "infros*.c")
|
||||||
add_library(inflib ${GLOBAL_FILES} ${SOURCE})
|
add_library(inflib ${GLOBAL_FILES} ${SOURCE})
|
||||||
add_dependencies(inflib psdk)
|
add_dependencies(inflib psdk)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
file(GLOB_RECURSE SOURCE "infhost*.c")
|
file(GLOB_RECURSE SOURCE "infhost*.c")
|
||||||
|
|
||||||
add_definitions(-D__NO_CTYPE_INLINES -DINFLIB_HOST)
|
add_definitions(-D__NO_CTYPE_INLINES -DINFLIB_HOST)
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
add_definitions(-Wpointer-arith -Wconversion -Wstrict-prototypes -Wmissing-prototypes)
|
add_definitions(-Wpointer-arith -Wconversion -Wstrict-prototypes -Wmissing-prototypes)
|
||||||
endif()
|
endif()
|
||||||
add_library(inflibhost ${GLOBAL_FILES} ${SOURCE})
|
add_library(inflibhost ${GLOBAL_FILES} ${SOURCE})
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
LIB_BASE = lib
|
|
||||||
LIB_BASE_ = $(LIB_BASE)$(SEP)
|
|
||||||
|
|
||||||
include lib/inflib/inflib.mak
|
|
||||||
ifeq ($(ARCH),powerpc)
|
|
||||||
include lib/ppcmmu/ppcmmu.mak
|
|
||||||
endif
|
|
|
@ -1,22 +1,16 @@
|
||||||
|
|
||||||
SET(GLOBAL_FILES infcore.c infget.c infput.c)
|
set(GLOBAL_FILES infcore.c infget.c infput.c)
|
||||||
|
|
||||||
if(CMAKE_CROSSCOMPILING)
|
if(CMAKE_CROSSCOMPILING)
|
||||||
|
|
||||||
file(GLOB_RECURSE SOURCE "infros*.c")
|
file(GLOB_RECURSE SOURCE "infros*.c")
|
||||||
add_library(newinflib ${GLOBAL_FILES} ${SOURCE})
|
add_library(newinflib ${GLOBAL_FILES} ${SOURCE})
|
||||||
add_dependencies(newinflib psdk)
|
add_dependencies(newinflib psdk)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
file(GLOB_RECURSE SOURCE "infhost*.c")
|
file(GLOB_RECURSE SOURCE "infhost*.c")
|
||||||
|
|
||||||
add_definitions(-DWINE_UNICODE_API= -D__NO_CTYPE_INLINES -DINFLIB_HOST -DUSE_HOST_WCSFUNCS)
|
add_definitions(-DWINE_UNICODE_API= -D__NO_CTYPE_INLINES -DINFLIB_HOST -DUSE_HOST_WCSFUNCS)
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
add_definitions(-Wpointer-arith -Wwrite-strings)
|
add_definitions(-Wpointer-arith -Wwrite-strings)
|
||||||
endif()
|
endif()
|
||||||
add_library(newinflibhost ${GLOBAL_FILES} ${SOURCE})
|
add_library(newinflibhost ${GLOBAL_FILES} ${SOURCE})
|
||||||
target_link_libraries(newinflibhost unicode)
|
target_link_libraries(newinflibhost unicode)
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
list(APPEND SOURCE dummy.c)
|
list(APPEND SOURCE dummy.c)
|
||||||
|
|
||||||
if(ARCH MATCHES powerpc)
|
if(ARCH MATCHES powerpc)
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE mmuutil.c)
|
||||||
mmuutil.c)
|
endif()
|
||||||
endif(ARCH MATCHES powerpc)
|
|
||||||
|
|
||||||
add_library(ppcmmu ${SOURCE})
|
add_library(ppcmmu ${SOURCE})
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
|
|
||||||
list(APPEND SOURCE framebased.c)
|
list(APPEND SOURCE framebased.c)
|
||||||
|
|
||||||
if(ARCH MATCHES i386)
|
if(ARCH MATCHES i386)
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
i386/framebased.S
|
i386/framebased.S
|
||||||
|
@ -12,7 +11,7 @@ elseif(ARCH MATCHES amd64)
|
||||||
list(APPEND SOURCE amd64/framebased.S)
|
list(APPEND SOURCE amd64/framebased.S)
|
||||||
elseif(ARCH MATCHES powerpc)
|
elseif(ARCH MATCHES powerpc)
|
||||||
list(APPEND SOURCE powerpc/framebased.S)
|
list(APPEND SOURCE powerpc/framebased.S)
|
||||||
endif(ARCH MATCHES i386)
|
endif()
|
||||||
|
|
||||||
add_library(pseh ${SOURCE})
|
add_library(pseh ${SOURCE})
|
||||||
add_dependencies(pseh psdk)
|
add_dependencies(pseh psdk)
|
||||||
|
|
|
@ -96,9 +96,8 @@ list(APPEND SOURCE
|
||||||
powerpc/rtlmem.s
|
powerpc/rtlmem.s
|
||||||
powerpc/rtlswap.s
|
powerpc/rtlswap.s
|
||||||
powerpc/thread.c)
|
powerpc/thread.c)
|
||||||
endif(ARCH MATCHES i386)
|
endif()
|
||||||
|
|
||||||
add_library(rtl ${CMAKE_CURRENT_BINARY_DIR}/rtl_rtl.h.gch ${SOURCE})
|
add_library(rtl ${CMAKE_CURRENT_BINARY_DIR}/rtl_rtl.h.gch ${SOURCE})
|
||||||
add_pch(rtl ${CMAKE_CURRENT_SOURCE_DIR}/rtl.h ${SOURCE})
|
add_pch(rtl ${CMAKE_CURRENT_SOURCE_DIR}/rtl.h ${SOURCE})
|
||||||
add_dependencies(rtl psdk asm)
|
add_dependencies(rtl psdk asm)
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
add_definitions(-D_DLL -D__USE_CRTIMP)
|
add_definitions(-D_DLL -D__USE_CRTIMP)
|
||||||
|
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
|
||||||
|
|
|
@ -1,18 +1,16 @@
|
||||||
|
|
||||||
include_directories(include)
|
include_directories(
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
|
include
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/drivers)
|
${REACTOS_SOURCE_DIR}/include/reactos/subsys
|
||||||
|
${REACTOS_SOURCE_DIR}/include/reactos/drivers)
|
||||||
|
|
||||||
add_executable(csrss csrss.c csrss.rc)
|
add_executable(csrss csrss.c csrss.rc)
|
||||||
|
|
||||||
set_module_type(csrss nativecui)
|
set_module_type(csrss nativecui)
|
||||||
|
|
||||||
target_link_libraries(csrss nt)
|
target_link_libraries(csrss nt)
|
||||||
|
|
||||||
add_importlibs(csrss ntdll csrsrv)
|
add_importlibs(csrss ntdll csrsrv)
|
||||||
|
|
||||||
add_dependencies(csrss psdk bugcodes)
|
add_dependencies(csrss psdk bugcodes)
|
||||||
|
add_cab_target(csrss 1)
|
||||||
|
|
||||||
add_subdirectory(csrsrv)
|
add_subdirectory(csrsrv)
|
||||||
add_subdirectory(win32csr)
|
add_subdirectory(win32csr)
|
||||||
add_cab_target(csrss 1)
|
|
|
@ -173,7 +173,7 @@ else()
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
dib/dib24bppc.c
|
dib/dib24bppc.c
|
||||||
dib/dib32bppc.c)
|
dib/dib32bppc.c)
|
||||||
endif(ARCH MATCHES i386)
|
endif()
|
||||||
|
|
||||||
add_library(win32k SHARED
|
add_library(win32k SHARED
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/win32k_pch.h.gch
|
${CMAKE_CURRENT_BINARY_DIR}/win32k_pch.h.gch
|
||||||
|
@ -192,4 +192,3 @@ add_pch(win32k ${CMAKE_CURRENT_SOURCE_DIR}/pch.h ${SOURCE})
|
||||||
add_dependencies(win32k gendib_generated subsystem_napi)
|
add_dependencies(win32k gendib_generated subsystem_napi)
|
||||||
add_cab_target(win32k 1)
|
add_cab_target(win32k 1)
|
||||||
add_importlib_target(win32k.spec win32k.sys)
|
add_importlib_target(win32k.spec win32k.sys)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue