build: new FLB_STATIC_CONF parameter
this new option helps to set an absolute path to look for configuration
files that ends in .conf, for each one found the static conf generator
will create a new C array definition with it content.
@@ -48,6 +48,7 @@ option(FLB_SQLDB "Enable SQL embedded DB" No)
option(FLB_HTTP_SERVER "Enable HTTP Server" No)
option(FLB_BACKTRACE "Enable stacktrace support" Yes)
option(FLB_LUAJIT "Enable Lua Scripting support" Yes)
+option(FLB_STATIC_CONF "Build binary using static configuration")
# Metrics: Experimental Feature, disabled by default on 0.12 series
# but enabled in the upcoming 0.13 release. Note that development
@@ -353,6 +354,15 @@ if(FLB_HAVE_TIMESPEC_GET)
FLB_DEFINITION(FLB_HAVE_TIMESPEC_GET)
endif()
+# Build tools/xxd-c
+add_subdirectory(tools/xxd-c)
+
+# Static configuration generator (using xxd-c)
+if(FLB_STATIC_CONF)
+ add_subdirectory(gen_static_conf)
+endif()
+
+# TD Agent options
if(FLB_TD)
FLB_DEFINITION(FLB_IS_TD_AGENT)
FLB_OPTION(FLB_JEMALLOC ON)
