forked from fluent/fluent-bit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwindows-setup.cmake
96 lines (89 loc) · 2.96 KB
/
windows-setup.cmake
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
# Custom build settings for Windows (MSVC)
#
# Not all plugins are supported on Windows yet. This file tweaks
# the build flags so that we can compile fluent-bit on it.
set(FLB_REGEX Yes)
set(FLB_BACKTRACE No)
set(FLB_LUAJIT Yes)
set(FLB_EXAMPLES Yes)
set(FLB_PARSER Yes)
set(FLB_TLS Yes)
# Windows does not support strptime(3)
set(FLB_SYSTEM_STRPTIME No)
# INPUT plugins
# =============
set(FLB_IN_CPU No)
set(FLB_IN_DISK No)
set(FLB_IN_EXEC No)
set(FLB_IN_FORWARD Yes)
set(FLB_IN_HEALTH No)
set(FLB_IN_HTTP No)
set(FLB_IN_MEM No)
set(FLB_IN_KMSG No)
set(FLB_IN_LIB Yes)
set(FLB_IN_RANDOM Yes)
set(FLB_IN_SERIAL No)
set(FLB_IN_STDIN No)
set(FLB_IN_SYSLOG No)
set(FLB_IN_TAIL Yes)
set(FLB_IN_TCP Yes)
set(FLB_IN_MQTT No)
set(FLB_IN_HEAD No)
set(FLB_IN_PROC No)
set(FLB_IN_SYSTEMD No)
set(FLB_IN_DUMMY Yes)
set(FLB_IN_NETIF No)
set(FLB_IN_WINLOG Yes)
set(FLB_IN_COLLECTD No)
set(FLB_IN_STATSD Yes)
set(FLB_IN_STORAGE_BACKLOG No)
set(FLB_IN_EMITTER Yes)
# OUTPUT plugins
# ==============
set(FLB_OUT_AZURE Yes)
set(FLB_OUT_BIGQUERY No)
set(FLB_OUT_COUNTER Yes)
set(FLB_OUT_DATADOG Yes)
set(FLB_OUT_ES Yes)
set(FLB_OUT_EXIT No)
set(FLB_OUT_FORWARD Yes)
set(FLB_OUT_GELF Yes)
set(FLB_OUT_HTTP Yes)
set(FLB_OUT_INFLUXDB Yes)
set(FLB_OUT_NATS No)
set(FLB_OUT_PLOT No)
set(FLB_OUT_FILE Yes)
set(FLB_OUT_TD No)
set(FLB_OUT_RETRY No)
set(FLB_OUT_SPLUNK Yes)
set(FLB_OUT_STACKDRIVER Yes)
set(FLB_OUT_STDOUT Yes)
set(FLB_OUT_LIB No)
set(FLB_OUT_NULL Yes)
set(FLB_OUT_FLOWCOUNTER Yes)
set(FLB_OUT_KAFKA No)
set(FLB_OUT_KAFKA_REST No)
set(FLB_OUT_CLOUDWATCH_LOGS Yes)
# FILTER plugins
# ==============
set(FLB_FILTER_GREP Yes)
set(FLB_FILTER_MODIFY Yes)
set(FLB_FILTER_STDOUT Yes)
set(FLB_FILTER_PARSER Yes)
set(FLB_FILTER_KUBERNETES Yes)
set(FLB_FILTER_THROTTLE Yes)
set(FLB_FILTER_THROTTLE_SIZE Yes)
set(FLB_FILTER_NEST Yes)
set(FLB_FILTER_LUA Yes)
set(FLB_FILTER_RECORD_MODIFIER Yes)
set(FLB_FILTER_REWRITE_TAG Yes)
# Search bison and flex executables
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
find_package(FLEX)
find_package(BISON)
if (NOT (${FLEX_FOUND} AND ${BISON_FOUND}))
message(STATUS "flex and bison not found. Disable stream_processor building.")
set(FLB_STREAM_PROCESSOR No)
set(FLB_RECORD_ACCESSOR No)
endif()
endif()