mirror of
https://github.com/reactos/reactos.git
synced 2024-08-27 13:48:42 +00:00
[CMAKE]
- Add ip and oskittcp to build. svn path=/branches/cmake-bringup/; revision=48331
This commit is contained in:
parent
0d72b49f46
commit
9b289c4a25
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
add_subdirectory(chew)
|
add_subdirectory(chew)
|
||||||
add_subdirectory(csq)
|
add_subdirectory(csq)
|
||||||
#add_subdirectory(ip)
|
add_subdirectory(ip)
|
||||||
#add_subdirectory(oskittcp)
|
add_subdirectory(oskittcp)
|
||||||
#add_subdirectory(sound)
|
#add_subdirectory(sound)
|
||||||
|
|
18
lib/drivers/ip/CMakeLists.txt
Normal file
18
lib/drivers/ip/CMakeLists.txt
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
|
||||||
|
add_definitions(-D__NTDRIVER__)
|
||||||
|
|
||||||
|
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/drivers/network/tcpip/include)
|
||||||
|
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/lib/drivers/oskittcp/include)
|
||||||
|
|
||||||
|
foreach(arg ${defines})
|
||||||
|
set(result_defs "${result_defs} -D${arg}")
|
||||||
|
endforeach(arg ${defines})
|
||||||
|
|
||||||
|
set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> -x assembler-with-cpp -o <OBJECT> ${result_defs} -D__ASM__ <FLAGS> -c <SOURCE>")
|
||||||
|
|
||||||
|
file(GLOB_RECURSE ARCH_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/network/${ARCH}/checksum.S)
|
||||||
|
file(GLOB_RECURSE SOURCE "*.c")
|
||||||
|
|
||||||
|
add_library(ip ${ARCH_SOURCE} ${SOURCE})
|
||||||
|
add_dependencies(ip bugcodes)
|
||||||
|
|
18
lib/drivers/oskittcp/CMakeLists.txt
Normal file
18
lib/drivers/oskittcp/CMakeLists.txt
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
|
||||||
|
include_directories(BEFORE include/freebsd)
|
||||||
|
include_directories(BEFORE include/freebsd/sys/include)
|
||||||
|
include_directories(BEFORE include/freebsd/src/sys)
|
||||||
|
include_directories(BEFORE include/freebsd/dev/include)
|
||||||
|
include_directories(BEFORE include/freebsd/net/include)
|
||||||
|
|
||||||
|
include_directories(include)
|
||||||
|
|
||||||
|
add_definitions(-D__NTDRIVER__)
|
||||||
|
add_definitions(-DKERNEL)
|
||||||
|
add_definitions(-DOSKIT)
|
||||||
|
|
||||||
|
file(GLOB_RECURSE SOURCE "oskittcp/*.c")
|
||||||
|
|
||||||
|
add_library(oskittcp ${SOURCE})
|
||||||
|
add_dependencies(oskittcp bugcodes)
|
||||||
|
|
Loading…
Reference in a new issue