summaryrefslogtreecommitdiff
path: root/bustle.cabal
blob: c7d906e580ae4da7bb957db8013fdcc426c60b2d (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
Name:           bustle
Category:       Network, Desktop
Version:        0.4.0.1
Cabal-Version:  >= 1.8
Synopsis:       Draw pretty sequence diagrams of D-Bus traffic
Description:    Draw pretty sequence diagrams of D-Bus traffic
License:        OtherLicense
License-file:   LICENSE
Author:         Will Thompson <will.thompson@collabora.co.uk>
Maintainer:     Will Thompson <will.thompson@collabora.co.uk>
Data-files:     data/bustle.png,
                data/dfeet-method.png,
                data/dfeet-signal.png,
                data/bustle.ui,
                LICENSE
Build-type:     Simple
Extra-source-files:
                  -- C bits
                    c-sources/bustle-pcap.c,
                    c-sources/pcap-monitor.h,
                    Makefile,

                  -- Stuff for nerds
                    README,
                    NEWS,
                    HACKING,
                    INSTALL,
                    run-uninstalled.sh
                  , Test/data/log-with-h.bustle

                  -- Stuff for the stupid binary tarballs
                  , bustle.sh
                  , ldd-me-up.sh
                  , LICENSE.bundled-libraries


Source-Repository head
  Type:           git
  Location:       git://anongit.freedesktop.org/bustle

Flag InteractiveTests
  Description:    Build interactive test programs
  Default:        False

Executable bustle
  Main-is:       Bustle.hs
  Other-modules: Bustle.Application.Monad
               , Bustle.Diagram
               , Bustle.Loader
               , Bustle.Loader.OldSkool
               , Bustle.Loader.Pcap
               , Bustle.Markup
               , Bustle.Monitor
               , Bustle.Noninteractive
               , Bustle.Regions
               , Bustle.Renderer
               , Bustle.StatisticsPane
               , Bustle.Stats
               , Bustle.Types
               , Bustle.UI
               , Bustle.UI.AboutDialog
               , Bustle.UI.Canvas
               , Bustle.UI.DetailsView
               , Bustle.UI.FilterDialog
               , Bustle.UI.OpenTwoDialog
               , Bustle.UI.Recorder
               , Bustle.UI.Util
               , Bustle.Upgrade
               , Bustle.Util
               , Bustle.VariantFormatter
  Ghc-options: -threaded
               -Wall
               -fno-warn-unused-imports
               -fno-warn-unused-do-bind
  C-sources: c-sources/pcap-monitor.c
  pkgconfig-depends: glib-2.0

  Build-Depends: base >= 4 && < 5
               , binary
               , bytestring
               , cairo
               , containers
               , dbus-core == 0.9.*
               , directory
               , filepath
               , glib
               , gtk > 0.12
               , mtl
               , pango
               , parsec
               , pcap
               , process
               , text
               , time

Executable test-monitor
  if flag(InteractiveTests)
    buildable: True
  else
    buildable: False

  main-is: tests/Monitor.hs
  other-modules: Bustle.Monitor
  Ghc-options: -threaded
  C-sources: c-sources/pcap-monitor.c
  pkgconfig-depends: glib-2.0
  Build-Depends: base >= 4 && < 5
               , gtk > 0.12
               , glib

Executable dump-messages
  if flag(InteractiveTests)
    buildable: True
  else
    buildable: False

  main-is: Test/DumpMessages.hs
  Build-Depends: base
               , binary
               , bytestring
               , containers
               , dbus-core == 0.9.*
               , mtl
               , pcap
               , text

Test-suite test-pcap-crash
    type: exitcode-stdio-1.0
    main-is: Test/PcapCrash.hs
    other-modules: Bustle.Loader.Pcap
    Build-Depends: base
                 , binary
                 , bytestring
                 , containers
                 , dbus-core == 0.9.*
                 , mtl
                 , pcap
                 , text

Test-suite test-regions
    type: exitcode-stdio-1.0
    main-is: Test/Regions.hs
    other-modules: Bustle.Regions
    Build-Depends: base
                 , QuickCheck

Test-suite test-renderer
    type: exitcode-stdio-1.0
    main-is: Test/Renderer.hs
    other-modules: Bustle.Renderer
    Build-Depends: base
                 , cairo
                 , containers
                 , dbus-core
                 , directory
                 , filepath
                 , gtk
                 , mtl
                 , pango
                 , test-framework
                 , test-framework-hunit
                 , HUnit