forked from osmocom/wireshark
Set PLUGIN_INSTALL_DIR properly for wireshark.pc
Change-Id: I64c04095ce780ce2cc44a54a68695506d27e5747 Reviewed-on: https://code.wireshark.org/review/1861 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
parent
aff380770a
commit
7bf49b31ac
|
@ -688,8 +688,8 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
|||
|
||||
if(ENABLE_PLUGINS)
|
||||
set(HAVE_PLUGINS 1)
|
||||
set(PLUGIN_DIR="${DATAFILE_DIR}/plugins/${CPACK_PACKAGE_VERSION}")
|
||||
set(PLUGIN_INSTALL_DIR="${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}")
|
||||
set(PLUGIN_DIR "${DATAFILE_DIR}/plugins/${CPACK_PACKAGE_VERSION}")
|
||||
set(PLUGIN_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}")
|
||||
set(PLUGIN_SRC_DIRS
|
||||
plugins/docsis
|
||||
plugins/ethercat
|
||||
|
|
|
@ -18,9 +18,6 @@
|
|||
/* Path to Python. */
|
||||
#cmakedefine PYTHON_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}/python/${CPACK_PACKAGE_VERSION}"
|
||||
|
||||
/* Directory where plugins reside */
|
||||
#define PLUGIN_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}"
|
||||
|
||||
/* Define to 1 if we want to enable plugins */
|
||||
#cmakedefine HAVE_PLUGINS 1
|
||||
|
||||
|
@ -349,7 +346,7 @@
|
|||
#cmakedefine PCAP_NG_DEFAULT 1
|
||||
|
||||
/* Plugin installation directory */
|
||||
#cmakedefine PLUGIN_DIR
|
||||
#cmakedefine PLUGIN_INSTALL_DIR "${PLUGIN_INSTALL_DIR}"
|
||||
|
||||
/* Define if we are using version of of the Portaudio library API */
|
||||
#cmakedefine PORTAUDIO_API_1 1
|
||||
|
|
|
@ -2680,7 +2680,7 @@ then
|
|||
AC_DEFINE(HAVE_PLUGINS, 1, [Define if plugins are enabled])
|
||||
fi
|
||||
AC_SUBST(plugindir)
|
||||
CPPFLAGS="$CPPFLAGS '-DPLUGIN_DIR=\"\$(plugindir)\"'"
|
||||
CPPFLAGS="$CPPFLAGS '-DPLUGIN_INSTALL_DIR=\"\$(plugindir)\"'"
|
||||
|
||||
#
|
||||
# The plugin dissectors reside in ./plugins/PROTO/
|
||||
|
|
|
@ -1069,7 +1069,7 @@ get_wspython_dir(void)
|
|||
*
|
||||
* On Windows, we use the "plugin" subdirectory of the datafile directory.
|
||||
*
|
||||
* On UN*X, we use the PLUGIN_DIR value supplied by the configure
|
||||
* On UN*X, we use the PLUGIN_INSTALL_DIR value supplied by the configure
|
||||
* script, unless we think we're being run from the build directory,
|
||||
* in which case we use the "plugin" subdirectory of the datafile directory.
|
||||
*
|
||||
|
@ -1153,7 +1153,7 @@ init_plugin_dir(void)
|
|||
}
|
||||
#endif
|
||||
else {
|
||||
plugin_dir = PLUGIN_DIR;
|
||||
plugin_dir = PLUGIN_INSTALL_DIR;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue