This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch NewAPIMetricsPOC
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit da32dba27f7c336c2b745144b05787e5abdf1dc6
Author: JosiahWI <[email protected]>
AuthorDate: Mon Jul 10 09:29:29 2023 -0500

    Build stats_over_http plugin in CMake build (#9977)
    
    I also changed an include from ink_autoconf.h to ink_config.h.
    The stats_over_http AuTest passes
---
 plugins/CMakeLists.txt                     |  1 +
 plugins/stats_over_http/CMakeLists.txt     | 26 ++++++++++++++++++++++++++
 plugins/stats_over_http/stats_over_http.cc |  2 +-
 3 files changed, 28 insertions(+), 1 deletion(-)

diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt
index 0bb3c9e220..ba2bdd9c83 100644
--- a/plugins/CMakeLists.txt
+++ b/plugins/CMakeLists.txt
@@ -49,6 +49,7 @@ add_subdirectory(prefetch)
 add_subdirectory(remap_purge)
 add_subdirectory(regex_remap)
 add_subdirectory(s3_auth)
+add_subdirectory(stats_over_http)
 add_subdirectory(xdebug)
 
 if(HOST_OS STREQUAL "linux")
diff --git a/plugins/stats_over_http/CMakeLists.txt 
b/plugins/stats_over_http/CMakeLists.txt
new file mode 100644
index 0000000000..c4a6dcb371
--- /dev/null
+++ b/plugins/stats_over_http/CMakeLists.txt
@@ -0,0 +1,26 @@
+#######################
+#
+#  Licensed to the Apache Software Foundation (ASF) under one or more 
contributor license
+#  agreements.  See the NOTICE file distributed with this work for additional 
information regarding
+#  copyright ownership.  The ASF licenses this file to you under the Apache 
License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with the 
License.  You may obtain
+#  a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software 
distributed under the License
+#  is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 
KIND, either express
+#  or implied. See the License for the specific language governing permissions 
and limitations under
+#  the License.
+#
+#######################
+
+add_atsplugin(stats_over_http stats_over_http.cc)
+
+target_include_directories(stats_over_http PRIVATE 
"${PROJECT_SOURCE_DIR}/include/")
+
+target_link_libraries(stats_over_http PRIVATE libswoc)
+
+if(HAVE_BROTLI_ENCODE_H)
+        target_link_libraries(stats_over_http PRIVATE brotli::brotlienc)
+endif()
diff --git a/plugins/stats_over_http/stats_over_http.cc 
b/plugins/stats_over_http/stats_over_http.cc
index 8ac875dded..3681e59b01 100644
--- a/plugins/stats_over_http/stats_over_http.cc
+++ b/plugins/stats_over_http/stats_over_http.cc
@@ -48,7 +48,7 @@
 
 #include <tscpp/util/ts_ip.h>
 
-#include "ink_autoconf.h"
+#include "tscore/ink_config.h"
 #if HAVE_BROTLI_ENCODE_H
 #include <brotli/encode.h>
 #endif

Reply via email to