-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
37 lines (30 loc) · 958 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
project(HyClone)
cmake_minimum_required(VERSION 3.24)
add_custom_target(CopyHaikuObjects
ALL
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/copy_objects.sh)
if(NOT DEFINED HYCLONE_ARCH)
set(HYCLONE_ARCH "${CMAKE_SYSTEM_PROCESSOR}")
if(HYCLONE_ARCH MATCHES "aarch64")
set(HYCLONE_ARCH "arm64")
endif()
endif()
add_compile_definitions(HYCLONE_ARCH=${HYCLONE_ARCH})
if(NOT DEFINED HYCLONE_HOST)
set(HYCLONE_HOST "${CMAKE_SYSTEM_NAME}")
add_compile_definitions(HYCLONE_HOST=${HYCLONE_HOST})
endif()
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
set(HYCLONE_HOST_LINUX true)
add_compile_definitions(HYCLONE_HOST_LINUX)
endif()
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
add_compile_definitions(HAIKU_HOST_PLATFORM_64_BIT)
endif()
add_subdirectory(monika)
add_subdirectory(libroot)
add_subdirectory(runtime_loader)
add_subdirectory(libhpkg)
add_subdirectory(hpkgvfs_analyze)
add_subdirectory(haiku_loader)
add_subdirectory(hyclone_server)