blob: 0ec54ae6b5b70340ecd5b1ac4231dbc90e25a242 (
plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
#
# Copyright (c) 2021, RT-Thread Development Team
#
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
set(CMAKE_ASM_COMPILER_WORKS 1)
set(WAMR_BUILD_PLATFORM "rt-thread")
set(WAMR_BUILD_TARGET "ARM")
#set(WAMR_BUILD_INTERP 1)
#set(WAMR_BUILD_FAST_INTERP 1)
#set(WAMR_BUILD_AOT 0)
#set(WAMR_BUILD_JIT 0)
#set(WAMR_BUILD_LIBC_BUILTIN 1)
#set(WAMR_BUILD_LIBC_WASI 0)
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif ()
if (NOT DEFINED WAMR_BUILD_INTERP)
# Enable Interpreter by default
set (WAMR_BUILD_INTERP 1)
endif ()
if (NOT DEFINED WAMR_BUILD_AOT)
# Enable AOT by default.
set (WAMR_BUILD_AOT 0)
endif ()
# Disable JIT by default.
set (WAMR_BUILD_JIT 0)
if (NOT DEFINED WAMR_BUILD_LIBC_BUILTIN)
# Enable libc builtin support by default
set (WAMR_BUILD_LIBC_BUILTIN 1)
endif ()
set (WAMR_BUILD_LIBC_WASI 0)
if (NOT DEFINED WAMR_BUILD_FAST_INTERP)
# Enable fast interpreter
set (WAMR_BUILD_FAST_INTERP 1)
endif ()
set (WAMR_BUILD_MULTI_MODULE 0)
set (WAMR_BUILD_LIB_PTHREAD 0)
set (WAMR_BUILD_MINI_LOADER 0)
set (WAMR_BUILD_SIMD 0)
set(WAMR_ROOT_DIR ${CMAKE_CURRENT_LIST_DIR}/../../..)
set(CMAKE_ASM_COMPILER_WORKS 1)
include(${WAMR_ROOT_DIR}/build-scripts/runtime_lib.cmake)
file (GLOB wamr_entry_src
${WAMR_ROOT_DIR}/product-mini/platforms/rt-thread/rtt_wamr_entry.c
)
set(WAMR_SOURCE ${wamr_entry_src} ${WAMR_RUNTIME_LIB_SOURCE})
|