1#  Licensed to the Apache Software Foundation (ASF) under one
2#  or more contributor license agreements.  See the NOTICE file
3#  distributed with this work for additional information
4#  regarding copyright ownership.  The ASF licenses this file
5#  to you under the Apache License, Version 2.0 (the
6#  "License"); you may not use this file except in compliance
7#  with the License.  You may obtain a copy of the License at
8#
9#      http://www.apache.org/licenses/LICENSE-2.0
10#
11#  Unless required by applicable law or agreed to in writing, software
12#  distributed under the License is distributed on an "AS IS" BASIS,
13#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14#  See the License for the specific language governing permissions and
15#  limitations under the License.
16
17include $(top_srcdir)/build/plugins.mk
18include $(top_srcdir)/build/tidy.mk
19
20AM_CXXFLAGS += -Wno-unused-variable
21AM_LDFLAGS = $(TS_PLUGIN_LD_FLAGS)
22
23if BUILD_EXAMPLE_PLUGINS
24
25example_Plugins = \
26	add_header.la \
27	append_transform.la \
28	basic_auth.la \
29	bnull_transform.la \
30	cert_update.la \
31	request_buffer.la \
32	cache_scan.la \
33	client_context_dump.la \
34	denylist_0.la \
35	denylist_1.la \
36	file_1.la \
37	hello.la \
38	intercept.la \
39	lifecycle_plugin.la \
40	null_transform.la \
41	output_header.la \
42	passthru.la \
43	protocol_stack.la \
44	protocol.la \
45	psi.la \
46	query_remap.la \
47	redirect_1.la \
48	remap.la \
49	remap_header_add.la \
50	replace_header.la \
51	response_header_1.la \
52	secure_link.la \
53	server_push.la \
54	server_transform.la \
55	session_hooks.la \
56	ssl_preaccept.la \
57	ssl_sni_allowlist.la \
58	ssl_sni.la \
59	statistic.la \
60	thread_1.la \
61	txn_data_sink.la \
62	version.la \
63	disable_http2.la \
64	verify_cert.la \
65	vconn_args.la
66
67pkglib_LTLIBRARIES = $(example_Plugins)
68
69endif
70
71add_header_la_SOURCES = add_header/add_header.c
72append_transform_la_SOURCES = append_transform/append_transform.c
73basic_auth_la_SOURCES = basic_auth/basic_auth.c
74denylist_0_la_SOURCES = denylist_0/denylist_0.c
75denylist_1_la_SOURCES = denylist_1/denylist_1.c
76bnull_transform_la_SOURCES = bnull_transform/bnull_transform.c
77cert_update_la_SOURCES = cert_update/cert_update.cc
78request_buffer_la_SOURCES = request_buffer/request_buffer.c
79cache_scan_la_SOURCES = cache_scan/cache_scan.cc
80client_context_dump_la_SOURCES = client_context_dump/client_context_dump.cc
81file_1_la_SOURCES = file_1/file_1.c
82hello_la_SOURCES = hello/hello.c
83intercept_la_SOURCES = intercept/intercept.cc
84lifecycle_plugin_la_SOURCES = lifecycle_plugin/lifecycle_plugin.c
85null_transform_la_SOURCES = null_transform/null_transform.c
86output_header_la_SOURCES = output_header/output_header.c
87passthru_la_SOURCES = passthru/passthru.cc
88protocol_la_SOURCES = protocol/Protocol.c protocol/TxnSM.c
89protocol_stack_la_SOURCES = protocol_stack/protocol_stack.cc
90psi_la_SOURCES = thread_pool/psi.c thread_pool/thread.c
91query_remap_la_SOURCES = query_remap/query_remap.c
92remap_header_add_la_SOURCES = remap_header_add/remap_header_add.cc
93remap_la_SOURCES = remap/remap.cc
94replace_header_la_SOURCES = replace_header/replace_header.c
95response_header_1_la_SOURCES = response_header_1/response_header_1.c
96secure_link_la_SOURCES = secure_link/secure_link.c
97server_push_la_SOURCES = server_push/server_push.c
98server_transform_la_SOURCES = server_transform/server_transform.c
99ssl_preaccept_la_SOURCES = ssl_preaccept/ssl_preaccept.cc
100ssl_sni_la_SOURCES = ssl_sni/ssl_sni.cc
101ssl_sni_allowlist_la_SOURCES = ssl_sni_allowlist/ssl_sni_allowlist.cc
102disable_http2_la_SOURCES = disable_http2/disable_http2.cc
103verify_cert_la_SOURCES = verify_cert/verify_cert.cc
104statistic_la_SOURCES = statistic/statistic.cc
105thread_1_la_SOURCES = thread_1/thread_1.c
106txn_data_sink_la_SOURCES = txn_data_sink/txn_data_sink.c
107version_la_SOURCES = version/version.c
108redirect_1_la_SOURCES = redirect_1/redirect_1.c
109session_hooks_la_SOURCES = session_hooks/session_hooks.c
110vconn_args_la_SOURCES = vconn_args/vconn_args.cc
111
112clang-tidy-local: $(DIST_SOURCES)
113	$(CXX_Clang_Tidy)
114	$(CC_Clang_Tidy)
115