summaryrefslogtreecommitdiff
path: root/config/wireshark.mpb
blob: df392261e03e76895812d69cbcd8df6753b7eda1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
feature(!wireshark, !wireshark2) {
  requires += wireshark_any
}

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, 1) {
    include $(WIRESHARK_SRC)/config.nmake
  }
  
  specific(!prop:windows) {
    libpaths    += $(WIRESHARK_SRC)/wiretap/.libs $(WIRESHARK_SRC)/epan/.libs
    lit_libs    += wiretap wireshark
  }
}

feature(wireshark) {
  avoids += wireshark2
  specific(prop:windows) {
    libpaths    += $(WIRESHARK_SRC)/wiretap $(WIRESHARK_SRC)/epan
    lit_libs    += wiretap-$(WIRETAP_VERSION) libwireshark
  }
}

feature(wireshark2) {
  avoids += wireshark
  // Because building Wireshark 2 on Windows is a CMake out of source build, we
  // need a few more parameters:
  // WIRESHARK2_BUILD is the build folder, which should contain config.h
  // WIRESHARK2_BIN is the folder where the executables and libraries were
  //   placed. This is likely $WIRESHARK2_BUILD\run\RelWithDebInfo, so it is
  //   the default, but is left as an option in case the build configuration is
  //   different.
  expand(WIRESHARK2_BIN) {
    $WIRESHARK2_BIN
    $WIRESHARK2_BUILD\run\RelWithDebInfo
  }
  specific(prop:windows) {
    includes    += $(WIRESHARK2_BUILD)
    libpaths    += $(WIRESHARK2_BIN)
    lit_libs    += wiretap wireshark wsutil
  }
}