-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
113 lines (98 loc) · 3.3 KB
/
Copy pathCMakeLists.txt
File metadata and controls
113 lines (98 loc) · 3.3 KB
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
# 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 is 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()
# 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)
# wasm_bpf is currently supported only on Linux systems.
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)
# wasmedge_image is currently supported only on Linux and macOS.
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: OCR.
if(WASMEDGE_PLUGIN_OCR)
add_subdirectory(wasmedge_ocr)
endif()
# WasmEdge plug-in: OpenCV-mini.
if(WASMEDGE_PLUGIN_OPENCVMINI)
# wasmedge_opencvmini is currently supported only on Linux and macOS.
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)
# wasmedge_process is currently supported only on Linux systems.
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)
# wasmedge_stablediffusion is currently supported only on Linux and macOS.
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)
# wasmedge_tensorflow is currently supported only on Linux and macOS.
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)
# wasmedge_tensorflowlite is currently supported only on Linux and macOS.
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()