![Gerald Combs](/assets/img/avatar_default.png)
Add packaging/nsis/CMakeLists.txt and use it to generate each NSIS include file. Add macros to generate packaging-related targets and invoke them from the top-level CMakeLists.txt. Add a top-level "plugins" target. Copy plugins to "plugins" in each of our staging directories instead of "plugins/$VERSION". Add missing files to the copy_data_files and copy_cli_dlls targets. Add all files in the NSIS package from the staging directory. Drop a bunch of no-longer-needed defines, e.g. MSVC_VARIANT. Change-Id: Ib1079260d164c65118050f1431af8e582cd577fa Reviewed-on: https://code.wireshark.org/review/6459 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
74 lines
1.7 KiB
Makefile
74 lines
1.7 KiB
Makefile
#
|
|
|
|
include ..\config.nmake
|
|
|
|
## To add a plugin: Add entry to PLUGIN_LIST
|
|
|
|
PLUGIN_LIST = \
|
|
docsis \
|
|
ethercat \
|
|
gryphon \
|
|
irda \
|
|
m2m \
|
|
mate \
|
|
opcua \
|
|
profinet \
|
|
stats_tree \
|
|
unistim \
|
|
wimax \
|
|
wimaxasncp \
|
|
wimaxmacphy
|
|
|
|
|
|
all:
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake PLUGIN_TARGET= process-plugins
|
|
|
|
clean: clean-local
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake PLUGIN_TARGET=clean process-plugins
|
|
|
|
distclean: distclean-local
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake PLUGIN_TARGET=distclean process-plugins
|
|
|
|
maintainer-clean: maintainer-clean-local
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake PLUGIN_TARGET=maintainer-clean process-plugins
|
|
|
|
|
|
clean-local:
|
|
rm -rf $(VERSION)
|
|
|
|
distclean-local: clean-local
|
|
|
|
maintainer-clean-local: distclean-local
|
|
|
|
checkapi:
|
|
$(MAKE) -f Makefile.nmake PLUGIN_TARGET=checkapi process-plugins
|
|
|
|
|
|
|
|
process-plugins : $(PLUGIN_LIST) custom
|
|
|
|
$(PLUGIN_LIST) : _FORCE_ # _FORCE_ req'd since each target actually exists
|
|
cd $@
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
|
|
cd ..
|
|
|
|
custom :
|
|
if exist Custom.nmake $(MAKE) /$(MAKEFLAGS) -f Custom.nmake $(PLUGIN_TARGET)
|
|
|
|
|
|
################################################################################
|
|
# copy all plugins to $(INSTALL_DIR)/plugins/$(VERSION), so Wireshark will load them, when
|
|
# started from $(INSTALL_DIR).
|
|
################################################################################
|
|
|
|
install-plugins:
|
|
!IFDEF ENABLE_LIBWIRESHARK
|
|
cd ..
|
|
@for %f in ( $(PLUGIN_LIST) ) do xcopy plugins\%f\*.dll $(INSTALL_DIR)\plugins\ /d
|
|
cd plugins
|
|
if exist Custom.nmake $(MAKE) /$(MAKEFLAGS) -f Custom.nmake install-plugins
|
|
!ENDIF
|
|
|
|
####
|
|
_FORCE_: ## Assumption: no file named _FORCE_ exists in the current directory
|