comparison src/CMakeLists.txt @ 200:1301727600cc

success build
author anatofuz
date Wed, 22 Jan 2020 21:56:18 +0900
parents 429f0c3cc097
children 08cd784ddbc0 cd9092628a63
comparison
equal deleted inserted replaced
197:429f0c3cc097 200:1301727600cc
92 92
93 #target_link_libraries(syslib) 93 #target_link_libraries(syslib)
94 file(COPY "${CMAKE_SOURCE_DIR}/interface/" DESTINATION ${CMAKE_KERNEL_DIR_C}) 94 file(COPY "${CMAKE_SOURCE_DIR}/interface/" DESTINATION ${CMAKE_KERNEL_DIR_C})
95 file(GLOB XV6_HEADERS "${CMAKE_SOURCE_DIR}/*.h") 95 file(GLOB XV6_HEADERS "${CMAKE_SOURCE_DIR}/*.h")
96 file(COPY ${XV6_HEADERS} DESTINATION ${CMAKE_KERNEL_DIR_C}) 96 file(COPY ${XV6_HEADERS} DESTINATION ${CMAKE_KERNEL_DIR_C})
97 file(GLOB XV6_IMPL_HEADERS "${CMAKE_SOURCE_DIR}/impl/*.h")
98 file(COPY ${XV6_IMPL_HEADERS} DESTINATION ${CMAKE_KERNEL_DIR_C})
97 include_directories(${CMAKE_KERNEL_DIR_C}) 99 include_directories(${CMAKE_KERNEL_DIR_C})
98 add_custom_command ( 100 add_custom_command (
99 OUTPUT ${CMAKE_KERNEL_DIR_C}/c/${_Gears_TARGET}-context.c 101 OUTPUT ${CMAKE_KERNEL_DIR_C}/c/${_Gears_TARGET}-context.c
100 DEPENDS ${_Gears_CBC_SOURCES} fs.img initcode 102 DEPENDS ${_Gears_CBC_SOURCES} fs.img initcode
101 COMMAND "cd" "CMakeFiles/kernel.dir" ";" "perl" "${CMAKE_SOURCE_DIR}/gearsTools/generate_context.pl" "-o" ${_Gears_TARGET} "-w" ${_Gears_CBC_SOURCES} 103 COMMAND "cd" "CMakeFiles/kernel.dir" ";" "perl" "${CMAKE_SOURCE_DIR}/gearsTools/generate_context.pl" "-o" ${_Gears_TARGET} "-w" ${_Gears_CBC_SOURCES}
124 TARGET 126 TARGET
125 kernel 127 kernel
126 SOURCES 128 SOURCES
127 string.c arm.c asm.S bio.c buddy.c console.cbc exec.c file.cbc fs.c log.c main.c memide.c pipe.cbc proc.cbc spinlock.cbc 129 string.c arm.c asm.S bio.c buddy.c console.cbc exec.c file.cbc fs.c log.c main.c memide.c pipe.cbc proc.cbc spinlock.cbc
128 start.c swtch.S syscall.cbc sysfile.cbc sysproc.c trap_asm.S trap.c vm.c device/picirq.c device/timer.c device/uart.c 130 start.c swtch.S syscall.cbc sysfile.cbc sysproc.c trap_asm.S trap.c vm.c device/picirq.c device/timer.c device/uart.c
129 SingleLinkedStack.cbc entry.S impl/vm_impl.cbc 131 SingleLinkedStack.cbc entry.S impl/vm_impl.cbc impl/vm_impl_private.cbc
130 ) 132 )
131 133
132 # sys_read_impl.cbc 134 # sys_read_impl.cbc