forked from WasmEdge/WasmEdge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
121 lines (105 loc) · 3.37 KB
/
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
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2019-2024 Second State INC
# WASI plug-in: WASI-Crypto proposal.
if(WASMEDGE_PLUGIN_WASI_CRYPTO)
add_subdirectory(wasi_crypto)
endif()
# WASI plug-in: WASI-Http proposal.
if(WASMEDGE_PLUGIN_WASI_HTTP)
add_subdirectory(wasi_http)
endif()
# WASI plug-in: WASI-Logging proposal.
if(WASMEDGE_PLUGIN_WASI_LOGGING)
# BUILTIN-PLUGIN: Add the wasi-logging plugin here after the new plugin
# architecture ready in 0.15.0.
endif()
# WASI plug-in: WASI-NN proposal with backends.
if(WASMEDGE_PLUGIN_WASI_NN_BACKEND)
add_subdirectory(wasi_nn)
endif()
if(WASMEDGE_PLUGIN_WASI_NN_BURNRS_MODEL)
add_subdirectory(wasi_nn_burnrs)
endif()
# WASI plug-in: WASI-Poll proposal.
if(WASMEDGE_PLUGIN_WASI_POLL)
add_subdirectory(wasi_poll)
endif()
# WasmEdge plug-in: wasm-bpf.
if(WASMEDGE_PLUGIN_WASM_BPF)
# Only Linux systems support wasm_bpf now.
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
add_subdirectory(wasm_bpf)
else()
message(WARNING "Only Linux platforms support wasm_bpf plug-in now.")
endif()
endif()
# WasmEdge plug-in: ffmpeg.
if(WASMEDGE_PLUGIN_FFMPEG)
add_subdirectory(wasmedge_ffmpeg)
endif()
# WasmEdge plug-in: Image.
if(WASMEDGE_PLUGIN_IMAGE)
# Only Linux and MacOS support wasmedge_image now.
if(CMAKE_SYSTEM_NAME MATCHES "Linux|Darwin")
add_subdirectory(wasmedge_image)
else()
message(WARNING "Only Linux and Darwin platforms support WasmEdge_Image plug-in now.")
endif()
endif()
# WasmEdge plug-in: LLMC.
if(WASMEDGE_PLUGIN_LLMC)
add_subdirectory(wasmedge_llmc)
endif()
# WasmEdge plug-in: OCR.
if(WASMEDGE_PLUGIN_OCR)
add_subdirectory(wasmedge_ocr)
endif()
# WasmEdge plug-in: OpenCV-mini.
if(WASMEDGE_PLUGIN_OPENCVMINI)
# Only Linux and MacOS support wasmedge_opencvmini now.
if(CMAKE_SYSTEM_NAME MATCHES "Linux|Darwin")
add_subdirectory(wasmedge_opencvmini)
else()
message(WARNING "Only Linux and Darwin platforms support WasmEdge_OpenCVMini plug-in now.")
endif()
endif()
# WasmEdge plug-in: Process.
if(WASMEDGE_PLUGIN_PROCESS)
# Only Linux systems support wasmedge_process now.
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
add_subdirectory(wasmedge_process)
else()
message(WARNING "Only Linux platforms support WasmEdge_Process plug-in now.")
endif()
endif()
# WasmEdge plug-in: Stable-diffusion.
if(WASMEDGE_PLUGIN_STABLEDIFFUSION)
# Only Linux and MacOS support wasmedge_stablediffusion now.
if(CMAKE_SYSTEM_NAME MATCHES "Linux|Darwin")
add_subdirectory(wasmedge_stablediffusion)
else()
message(WARNING "Only Linux and Darwin platforms support WasmEdge_StableDiffusion plug-in now.")
endif()
endif()
# WasmEdge plug-in: TensorFlow.
if(WASMEDGE_PLUGIN_TENSORFLOW)
# Only Linux and MacOS support wasmedge_tensorflow now.
if(CMAKE_SYSTEM_NAME MATCHES "Linux|Darwin")
add_subdirectory(wasmedge_tensorflow)
else()
message(WARNING "Only Linux and Darwin platforms support WasmEdge_Tensorflow plug-in now.")
endif()
endif()
# WasmEdge plug-in: TensorFlow-Lite.
if(WASMEDGE_PLUGIN_TENSORFLOWLITE)
# Only Linux and MacOS support wasmedge_tensorflowlite now.
if(CMAKE_SYSTEM_NAME MATCHES "Linux|Darwin")
add_subdirectory(wasmedge_tensorflowlite)
else()
message(WARNING "Only Linux and Darwin platforms support WasmEdge_TensorflowLite plug-in now.")
endif()
endif()
# WasmEdge plug-in: zlib.
if(WASMEDGE_PLUGIN_ZLIB)
add_subdirectory(wasmedge_zlib)
endif()