You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2016/02/23 17:37:01 UTC

[1/2] trafficserver git commit: TS-4095: clean up webp_transform build detection

Repository: trafficserver
Updated Branches:
  refs/heads/master f06708f5b -> 92a76b030


TS-4095: clean up webp_transform build detection


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/6d7c7a1c
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/6d7c7a1c
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/6d7c7a1c

Branch: refs/heads/master
Commit: 6d7c7a1c3fa45c6bf921e19b1a0384743568fc24
Parents: f06708f
Author: James Peach <jp...@apache.org>
Authored: Tue Feb 23 08:31:13 2016 -0800
Committer: James Peach <jp...@apache.org>
Committed: Tue Feb 23 08:31:13 2016 -0800

----------------------------------------------------------------------
 configure.ac                                    | 20 ++++++++++++++------
 plugins/experimental/Makefile.am                |  4 ++--
 plugins/experimental/webp_transform/Makefile.am | 19 +++++++++++++------
 3 files changed, 29 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/6d7c7a1c/configure.ac
----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index 7d70788..97768fd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -411,8 +411,17 @@ AM_CONDITIONAL([BUILD_MEMCACHED_REMAP_PLUGIN], [test "x${have_libmemcached}" = "
 #
 # Check Magick++ is available. Enable experimental/webp_transform plugin
 #
-PKG_CHECK_MODULES([LIBMAGICKCPP],[Magick++], [have_libmagickcpp=yes], [have_libmagickcpp=no])
-AM_CONDITIONAL([BUILD_HAS_IMAGEMAGICKCPP], [test "x${have_libmagickcpp}" = "xyes"])
+PKG_CHECK_MODULES([LIBMAGICKCPP],[Magick++], [
+  have_libmagickcpp=yes
+  AS_IF([test "x$enable_experimental_plugins" = "xyes"], [
+    enable_webp_transform_plugin=yes
+  ])
+],
+[
+  have_libmagickcpp=no
+])
+
+AM_CONDITIONAL([BUILD_WEBP_TRANSFORM_PLUGIN], [test "x${enable_webp_transform_plugin}" = "xyes"])
 
 #
 # Example plugins. The example plugins are always built, but not always installed. Installing
@@ -1938,10 +1947,9 @@ AS_IF([test "x$enable_experimental_plugins" = "xyes"], [
     plugins/experimental/stream_editor/Makefile
 ])])
 
-AS_IF([test "x$enable_experimental_plugins" = "xyes"], [
-  AS_IF([test "x$enable_cppapi" = "xyes"], [
-    AC_CONFIG_FILES([plugins/experimental/webp_transform/Makefile])
-  ])])
+AS_IF([test "x$enable_webp_transform_plugin" = "xyes"], [
+  AC_CONFIG_FILES([plugins/experimental/webp_transform/Makefile])
+])
 
 AS_IF([test "x$enable_cppapi" = "xyes"], [
   AC_CONFIG_FILES([

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/6d7c7a1c/plugins/experimental/Makefile.am
----------------------------------------------------------------------
diff --git a/plugins/experimental/Makefile.am b/plugins/experimental/Makefile.am
index b4b92aa..0fdb00b 100644
--- a/plugins/experimental/Makefile.am
+++ b/plugins/experimental/Makefile.am
@@ -47,7 +47,7 @@ SUBDIRS = \
  mp4 \
  stream_editor
 
-if BUILD_HAS_IMAGEMAGICKCPP
+if BUILD_WEBP_TRANSFORM_PLUGIN
  SUBDIRS += webp_transform
 endif
 
@@ -59,4 +59,4 @@ if BUILD_LUAJIT
   SUBDIRS += ts_lua
 endif
 
-
+DIST_SUBDIRS = $(SUBDIRS)

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/6d7c7a1c/plugins/experimental/webp_transform/Makefile.am
----------------------------------------------------------------------
diff --git a/plugins/experimental/webp_transform/Makefile.am b/plugins/experimental/webp_transform/Makefile.am
index 64ef1ab..3132fc9 100644
--- a/plugins/experimental/webp_transform/Makefile.am
+++ b/plugins/experimental/webp_transform/Makefile.am
@@ -17,12 +17,19 @@
 
 include $(top_srcdir)/build/plugins.mk
 
-if BUILD_HAS_IMAGEMAGICKCPP
+AM_CPPFLAGS += \
+  -I$(top_srcdir)/lib/atscppapi/src/include \
+  $(LIBMAGICKCPP_CFLAGS)
+
+AM_CXXFLAGS += \
+  -Wno-unused-variable
 
-AM_CPPFLAGS += -I$(top_srcdir)/lib/atscppapi/src/include -Wno-unused-variable $(LIBMAGICKCPP_CFLAGS)
-target=WebpTransform.so
 pkglib_LTLIBRARIES = WebpTransform.la
-WebpTransform_la_SOURCES = ImageTransform.cc 
-WebpTransform_la_LDFLAGS = -module -avoid-version -shared -L$(top_srcdir)/lib/atscppapi/src/ -latscppapi $(TS_PLUGIN_LDFLAGS) $(LIBMAGICKCPP_LIBS)
 
-endif
+WebpTransform_la_SOURCES = ImageTransform.cc
+WebpTransform_la_LDFLAGS = \
+  $(TS_PLUGIN_LDFLAGS) \
+  -L$(top_builddir)/lib/atscppapi/src
+WebpTransform_la_LIBADD = \
+  -latscppapi \
+  $(LIBMAGICKCPP_LIBS)


[2/2] trafficserver git commit: Remove unnecessary DIST_SUBDIRS overrides.

Posted by jp...@apache.org.
Remove unnecessary DIST_SUBDIRS overrides.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/92a76b03
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/92a76b03
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/92a76b03

Branch: refs/heads/master
Commit: 92a76b030c585b082f5c54ecc1ef41183db266fa
Parents: 6d7c7a1
Author: James Peach <jp...@apache.org>
Authored: Tue Feb 23 08:36:50 2016 -0800
Committer: James Peach <jp...@apache.org>
Committed: Tue Feb 23 08:36:50 2016 -0800

----------------------------------------------------------------------
 configure.ac                     | 146 ++++++++++++++++------------------
 lib/Makefile.am                  |   2 -
 plugins/Makefile.am              |   2 -
 plugins/experimental/Makefile.am |   2 -
 4 files changed, 68 insertions(+), 84 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/92a76b03/configure.ac
----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index 97768fd..e4e68f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1423,6 +1423,11 @@ if test "x${enable_spdy}" = "xyes"; then
   PKG_CHECK_MODULES([SPDYLAY],[libspdylay])
 fi
 
+AC_CHECK_HEADERS([mysql/mysql.h], [has_mysql=1],[has_mysql=0])
+AC_CHECK_LIB([mysqlclient],[mysql_info],[AC_SUBST([LIB_MYSQLCLIENT],["-lmysqlclient"])],[has_mysql=0])
+AC_SUBST(has_mysql)
+AM_CONDITIONAL([HAS_MYSQL], [ test "x${has_mysql}" = "x1" ])
+
 # -----------------------------------------------------------------------------
 # 5. CHECK FOR HEADER FILES
 
@@ -1799,7 +1804,8 @@ AM_CONDITIONAL([BUILD_COLLAPSED_CONNECTION_PLUGIN],
 #
 # use modular IOCORE
 #
-iocore_include_dirs="-I\$(top_srcdir)/iocore/eventsystem \
+iocore_include_dirs="\
+-I\$(top_srcdir)/iocore/eventsystem \
 -I\$(top_srcdir)/iocore/net \
 -I\$(top_srcdir)/iocore/aio \
 -I\$(top_srcdir)/iocore/hostdb \
@@ -1854,6 +1860,31 @@ AC_CONFIG_FILES([
   iocore/net/Makefile
   iocore/utils/Makefile
   lib/Makefile
+  lib/atscppapi/Makefile
+  lib/atscppapi/examples/Makefile
+  lib/atscppapi/examples/async_http_fetch/Makefile
+  lib/atscppapi/examples/async_http_fetch_streaming/Makefile
+  lib/atscppapi/examples/async_timer/Makefile
+  lib/atscppapi/examples/boom/Makefile
+  lib/atscppapi/examples/clientredirect/Makefile
+  lib/atscppapi/examples/clientrequest/Makefile
+  lib/atscppapi/examples/custom_error_remap_plugin/Makefile
+  lib/atscppapi/examples/customresponse/Makefile
+  lib/atscppapi/examples/globalhook/Makefile
+  lib/atscppapi/examples/gzip_transformation/Makefile
+  lib/atscppapi/examples/helloworld/Makefile
+  lib/atscppapi/examples/intercept/Makefile
+  lib/atscppapi/examples/internal_transaction_handling/Makefile
+  lib/atscppapi/examples/logger_example/Makefile
+  lib/atscppapi/examples/multiple_transaction_hooks/Makefile
+  lib/atscppapi/examples/null_transformation_plugin/Makefile
+  lib/atscppapi/examples/post_buffer/Makefile
+  lib/atscppapi/examples/remap_plugin/Makefile
+  lib/atscppapi/examples/serverresponse/Makefile
+  lib/atscppapi/examples/stat_example/Makefile
+  lib/atscppapi/examples/timeout_example/Makefile
+  lib/atscppapi/examples/transactionhook/Makefile
+  lib/atscppapi/src/Makefile
   lib/bindings/Makefile
   lib/perl/Makefile
   lib/perl/lib/Apache/TS.pm
@@ -1871,6 +1902,42 @@ AC_CONFIG_FILES([
   plugins/Makefile
   plugins/cacheurl/Makefile
   plugins/conf_remap/Makefile
+  plugins/experimental/Makefile
+  plugins/experimental/authproxy/Makefile
+  plugins/experimental/background_fetch/Makefile
+  plugins/experimental/balancer/Makefile
+  plugins/experimental/buffer_upload/Makefile
+  plugins/experimental/cache_promote/Makefile
+  plugins/experimental/cache_range_requests/Makefile
+  plugins/experimental/cachekey/Makefile
+  plugins/experimental/channel_stats/Makefile
+  plugins/experimental/collapsed_connection/Makefile
+  plugins/experimental/custom_redirect/Makefile
+  plugins/experimental/epic/Makefile
+  plugins/experimental/escalate/Makefile
+  plugins/experimental/esi/Makefile
+  plugins/experimental/generator/Makefile
+  plugins/experimental/geoip_acl/Makefile
+  plugins/experimental/header_normalize/Makefile
+  plugins/experimental/hipes/Makefile
+  plugins/experimental/inliner/Makefile
+  plugins/experimental/memcache/Makefile
+  plugins/experimental/memcached_remap/Makefile
+  plugins/experimental/metalink/Makefile
+  plugins/experimental/mp4/Makefile
+  plugins/experimental/multiplexer/Makefile
+  plugins/experimental/mysql_remap/Makefile
+  plugins/experimental/regex_revalidate/Makefile
+  plugins/experimental/remap_stats/Makefile
+  plugins/experimental/s3_auth/Makefile
+  plugins/experimental/ssl_cert_loader/Makefile
+  plugins/experimental/sslheaders/Makefile
+  plugins/experimental/stale_while_revalidate/Makefile
+  plugins/experimental/stream_editor/Makefile
+  plugins/experimental/ts_lua/Makefile
+  plugins/experimental/url_sig/Makefile
+  plugins/experimental/webp_transform/Makefile
+  plugins/experimental/xdebug/Makefile
   plugins/gzip/Makefile
   plugins/header_rewrite/Makefile
   plugins/healthchecks/Makefile
@@ -1903,83 +1970,6 @@ AC_CONFIG_FILES([
   tools/tsxs
 ])
 
-AC_CHECK_HEADERS([mysql/mysql.h], [has_mysql=1],[has_mysql=0])
-AC_CHECK_LIB([mysqlclient],[mysql_info],[AC_SUBST([LIB_MYSQLCLIENT],["-lmysqlclient"])],[has_mysql=0])
-AC_SUBST(has_mysql)
-AM_CONDITIONAL([HAS_MYSQL], [ test "x${has_mysql}" = "x1" ])
-
-AS_IF([test "x$enable_experimental_plugins" = "xyes"], [
-  AC_CONFIG_FILES([
-    plugins/experimental/Makefile
-    plugins/experimental/authproxy/Makefile
-    plugins/experimental/background_fetch/Makefile
-    plugins/experimental/balancer/Makefile
-    plugins/experimental/buffer_upload/Makefile
-    plugins/experimental/cache_range_requests/Makefile
-    plugins/experimental/channel_stats/Makefile
-    plugins/experimental/cachekey/Makefile
-    plugins/experimental/cache_promote/Makefile
-    plugins/experimental/collapsed_connection/Makefile
-    plugins/experimental/custom_redirect/Makefile
-    plugins/experimental/epic/Makefile
-    plugins/experimental/escalate/Makefile
-    plugins/experimental/esi/Makefile
-    plugins/experimental/generator/Makefile
-    plugins/experimental/geoip_acl/Makefile
-    plugins/experimental/header_normalize/Makefile
-    plugins/experimental/hipes/Makefile
-    plugins/experimental/inliner/Makefile
-    plugins/experimental/memcache/Makefile
-    plugins/experimental/memcached_remap/Makefile
-    plugins/experimental/metalink/Makefile
-    plugins/experimental/multiplexer/Makefile
-    plugins/experimental/mysql_remap/Makefile
-    plugins/experimental/regex_revalidate/Makefile
-    plugins/experimental/remap_stats/Makefile
-    plugins/experimental/s3_auth/Makefile
-    plugins/experimental/ssl_cert_loader/Makefile
-    plugins/experimental/sslheaders/Makefile
-    plugins/experimental/stale_while_revalidate/Makefile
-    plugins/experimental/ts_lua/Makefile
-    plugins/experimental/url_sig/Makefile
-    plugins/experimental/xdebug/Makefile
-    plugins/experimental/mp4/Makefile
-    plugins/experimental/stream_editor/Makefile
-])])
-
-AS_IF([test "x$enable_webp_transform_plugin" = "xyes"], [
-  AC_CONFIG_FILES([plugins/experimental/webp_transform/Makefile])
-])
-
-AS_IF([test "x$enable_cppapi" = "xyes"], [
-  AC_CONFIG_FILES([
-  lib/atscppapi/Makefile
-  lib/atscppapi/examples/Makefile
-  lib/atscppapi/examples/async_http_fetch/Makefile
-  lib/atscppapi/examples/async_timer/Makefile
-  lib/atscppapi/examples/clientredirect/Makefile
-  lib/atscppapi/examples/clientrequest/Makefile
-  lib/atscppapi/examples/customresponse/Makefile
-  lib/atscppapi/examples/boom/Makefile
-  lib/atscppapi/examples/globalhook/Makefile
-  lib/atscppapi/examples/gzip_transformation/Makefile
-  lib/atscppapi/examples/helloworld/Makefile
-  lib/atscppapi/examples/intercept/Makefile
-  lib/atscppapi/examples/internal_transaction_handling/Makefile
-  lib/atscppapi/examples/logger_example/Makefile
-  lib/atscppapi/examples/multiple_transaction_hooks/Makefile
-  lib/atscppapi/examples/null_transformation_plugin/Makefile
-  lib/atscppapi/examples/post_buffer/Makefile
-  lib/atscppapi/examples/remap_plugin/Makefile
-  lib/atscppapi/examples/custom_error_remap_plugin/Makefile
-  lib/atscppapi/examples/serverresponse/Makefile
-  lib/atscppapi/examples/stat_example/Makefile
-  lib/atscppapi/examples/timeout_example/Makefile
-  lib/atscppapi/examples/transactionhook/Makefile
-  lib/atscppapi/examples/async_http_fetch_streaming/Makefile
-  lib/atscppapi/src/Makefile
-])])
-
 # -----------------------------------------------------------------------------
 # 7. autoheader TEMPLATES
 

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/92a76b03/lib/Makefile.am
----------------------------------------------------------------------
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 685b6be..79aaf95 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -30,8 +30,6 @@ if ENABLE_CPPAPI
 SUBDIRS += atscppapi
 endif
 
-DIST_SUBDIRS = $(SUBDIRS)
-
 # Some special hacks around building the luajit.
 #
 #  - Copy the luajit source tree if we're doing out-of-source builds

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/92a76b03/plugins/Makefile.am
----------------------------------------------------------------------
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index 0c34f82..2f4d9df 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -30,5 +30,3 @@ SUBDIRS = \
 if BUILD_EXPERIMENTAL_PLUGINS
 SUBDIRS += experimental
 endif
-
-DIST_SUBDIRS = $(SUBDIRS)

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/92a76b03/plugins/experimental/Makefile.am
----------------------------------------------------------------------
diff --git a/plugins/experimental/Makefile.am b/plugins/experimental/Makefile.am
index 0fdb00b..89150a2 100644
--- a/plugins/experimental/Makefile.am
+++ b/plugins/experimental/Makefile.am
@@ -58,5 +58,3 @@ endif
 if BUILD_LUAJIT
   SUBDIRS += ts_lua
 endif
-
-DIST_SUBDIRS = $(SUBDIRS)