meta: rename ivy-rt to ivy-vm
This commit is contained in:
@@ -34,6 +34,6 @@ add_subdirectory(diag)
|
|||||||
add_subdirectory(lang)
|
add_subdirectory(lang)
|
||||||
add_subdirectory(asm)
|
add_subdirectory(asm)
|
||||||
add_subdirectory(mie)
|
add_subdirectory(mie)
|
||||||
add_subdirectory(rt)
|
add_subdirectory(vm)
|
||||||
add_subdirectory(frontend)
|
add_subdirectory(frontend)
|
||||||
add_subdirectory(test)
|
add_subdirectory(test)
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ endif ()
|
|||||||
add_executable(ivy ${ivy_sources} ${sys_sources} ${rc_file})
|
add_executable(ivy ${ivy_sources} ${sys_sources} ${rc_file})
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
ivy
|
ivy
|
||||||
ivy-rt
|
ivy-vm
|
||||||
ivy-asm
|
ivy-asm
|
||||||
ivy-lang
|
ivy-lang
|
||||||
ivy-common
|
ivy-common
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
file(GLOB_RECURSE rt_sources *.c *.h include/ivy/rt/*.h)
|
|
||||||
|
|
||||||
if (WIN32)
|
|
||||||
set(rc_file ${CMAKE_CURRENT_SOURCE_DIR}/../res/win32/rt.rc)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if (IVY_STATIC)
|
|
||||||
add_library(ivy-rt STATIC ${rt_sources} ${rc_file})
|
|
||||||
else ()
|
|
||||||
add_library(ivy-rt SHARED ${rt_sources} ${rc_file})
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
target_include_directories(ivy-rt PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include/)
|
|
||||||
target_link_libraries(ivy-rt ivy-common)
|
|
||||||
target_compile_definitions(ivy-rt PRIVATE IVY_EXPORT=1 IVY_STATIC=${IVY_STATIC})
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
#include <ivy/rt/runtime.h>
|
|
||||||
|
|
||||||
void placeholder(void)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -4,7 +4,7 @@ foreach (test_file ${test_sources})
|
|||||||
get_filename_component(test_name ${test_file} NAME_WE)
|
get_filename_component(test_name ${test_file} NAME_WE)
|
||||||
|
|
||||||
add_executable(${test_name} ${test_file})
|
add_executable(${test_name} ${test_file})
|
||||||
target_link_libraries(${test_name} ivy-common ivy-diag ivy-lang ivy-asm ivy-rt mie)
|
target_link_libraries(${test_name} ivy-common ivy-diag ivy-lang ivy-asm ivy-vm mie)
|
||||||
set_target_properties(${test_name} PROPERTIES
|
set_target_properties(${test_name} PROPERTIES
|
||||||
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
||||||
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
||||||
|
|||||||
15
vm/CMakeLists.txt
Normal file
15
vm/CMakeLists.txt
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
file(GLOB_RECURSE vm_sources *.c *.h include/ivy/vm/*.h)
|
||||||
|
|
||||||
|
if (WIN32)
|
||||||
|
set(rc_file ${CMAKE_CURRENT_SOURCE_DIR}/../res/win32/vm.rc)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
if (IVY_STATIC)
|
||||||
|
add_library(ivy-vm STATIC ${vm_sources} ${rc_file})
|
||||||
|
else ()
|
||||||
|
add_library(ivy-vm SHARED ${vm_sources} ${rc_file})
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
target_include_directories(ivy-vm PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include/)
|
||||||
|
target_link_libraries(ivy-vm ivy-common)
|
||||||
|
target_compile_definitions(ivy-vm PRIVATE IVY_EXPORT=1 IVY_STATIC=${IVY_STATIC})
|
||||||
Reference in New Issue
Block a user