summaryrefslogtreecommitdiff
path: root/config/wireshark.mpb
diff options
context:
space:
mode:
authorFrederick Hornsey <fred@hornsey.us>2018-01-02 17:32:01 -0600
committerFrederick Hornsey <fred@hornsey.us>2018-01-02 17:32:01 -0600
commit10059da3a936024424c54a11e0b9b2a9306c55d3 (patch)
tree806a738464cba29f957fcc93543f1d395a456a53 /config/wireshark.mpb
parent1aeb77fcd2fbddeb28b63eaa217cec12f8b8397f (diff)
downloadMPC-10059da3a936024424c54a11e0b9b2a9306c55d3.tar.gz
Support for Wireshark 2 on Windows
Diffstat (limited to 'config/wireshark.mpb')
-rw-r--r--config/wireshark.mpb103
1 files changed, 60 insertions, 43 deletions
diff --git a/config/wireshark.mpb b/config/wireshark.mpb
index a29b6432..92114753 100644
--- a/config/wireshark.mpb
+++ b/config/wireshark.mpb
@@ -1,43 +1,60 @@
-project : glib {
- requires += wireshark
-
- // Unfortunately Wireshark does not install headers for plugin
- // development; instead we rely on the source distribution:
- includes += $(WIRESHARK_SRC)
-
- specific(vc71) {
- macros += MSC_VER_REQUIRED=1310
- }
- specific(vc8) {
- macros += MSC_VER_REQUIRED=1400
- }
- specific(vc9) {
- macros += MSC_VER_REQUIRED=1500
- }
- specific(vc10) {
- macros += MSC_VER_REQUIRED=1600
- }
- specific(vc11) {
- macros += MSC_VER_REQUIRED=1700
- }
- specific(vc12) {
- macros += MSC_VER_REQUIRED=1800
- }
- specific(vc14) {
- macros += MSC_VER_REQUIRED=1900
- }
- specific(vs2017) {
- macros += MSC_VER_REQUIRED=1910
- }
- verbatim(nmake, top) {
- include $(WIRESHARK_SRC)/config.nmake
- }
-
- specific(prop:windows) {
- libpaths += $(WIRESHARK_SRC)/wiretap $(WIRESHARK_SRC)/epan
- lit_libs += wiretap-$(WIRETAP_VERSION) libwireshark
- } else {
- libpaths += $(WIRESHARK_SRC)/wiretap/.libs $(WIRESHARK_SRC)/epan/.libs
- lit_libs += wiretap wireshark
- }
-}
+project : glib {
+ requires += wireshark_any
+
+ // Unfortunately Wireshark does not install headers for plugin
+ // development; instead we rely on the source distribution:
+ includes += $(WIRESHARK_SRC)
+
+ specific(vc71) {
+ macros += MSC_VER_REQUIRED=1310
+ }
+ specific(vc8) {
+ macros += MSC_VER_REQUIRED=1400
+ }
+ specific(vc9) {
+ macros += MSC_VER_REQUIRED=1500
+ }
+ specific(vc10) {
+ macros += MSC_VER_REQUIRED=1600
+ }
+ specific(vc11) {
+ macros += MSC_VER_REQUIRED=1700
+ }
+ specific(vc12) {
+ macros += MSC_VER_REQUIRED=1800
+ }
+ specific(vc14) {
+ macros += MSC_VER_REQUIRED=1900
+ }
+ specific(vs2017) {
+ macros += MSC_VER_REQUIRED=1910
+ }
+ verbatim(nmake, top) {
+ include $(WIRESHARK_SRC)/config.nmake
+ }
+
+ specific(!prop:windows) {
+ libpaths += $(WIRESHARK_SRC)/wiretap/.libs $(WIRESHARK_SRC)/epan/.libs
+ lit_libs += wiretap wireshark
+ }
+}
+
+feature (wireshark) {
+ specific(prop:windows) {
+ libpaths += $(WIRESHARK_SRC)/wiretap $(WIRESHARK_SRC)/epan
+ lit_libs += wiretap-$(WIRETAP_VERSION) libwireshark
+ }
+}
+
+// Building Wireshark 2 on Windows is a CMake out of source build
+// WIRESHARK2_BUILD is the build folder
+// WIRESHARK2_BIN is the folder in the build where the executables and
+// libraries where placed. This is likely "run\RelWithDebInfo" but is left
+// as an option in case the build configuration of Wireshark is different.
+feature (wireshark2) {
+ specific(prop:windows) {
+ includes += $(WIRESHARK2_BUILD)
+ libpaths += $(WIRESHARK2_BIN)
+ lit_libs += wiretap wireshark
+ }
+} \ No newline at end of file