This is an automated email from the ASF dual-hosted git repository. bcall pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push: new d281c5964e Building webp_transform plugin with cmake (#11048) d281c5964e is described below commit d281c5964e1a28a8292951a719516678f53fb427 Author: Bryan Call <bc...@apache.org> AuthorDate: Wed Feb 14 11:04:32 2024 -0800 Building webp_transform plugin with cmake (#11048) --- plugins/CMakeLists.txt | 6 ++++-- plugins/webp_transform/CMakeLists.txt | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index d1ba82eebf..4d0e24419b 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -45,8 +45,6 @@ add_subdirectory(tcpinfo) add_subdirectory(traffic_dump) add_subdirectory(xdebug) -# add_subdirectory(webp_transform) - if(NOT OPENSSL_IS_BORINGSSL) add_subdirectory(ja3_fingerprint) endif() @@ -62,3 +60,7 @@ endif() if(HOST_OS STREQUAL "linux") add_subdirectory(healthchecks) endif() + +if(USE_MAGICK) + add_subdirectory(webp_transform) +endif() diff --git a/plugins/webp_transform/CMakeLists.txt b/plugins/webp_transform/CMakeLists.txt new file mode 100644 index 0000000000..86eb796b26 --- /dev/null +++ b/plugins/webp_transform/CMakeLists.txt @@ -0,0 +1,21 @@ +####################### +# +# 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(webp_transform ImageTransform.cc) +target_link_libraries(webp_transform PRIVATE ImageMagick::Magick++ tscppapi) + +verify_global_plugin(webp_transform)