summaryrefslogtreecommitdiff
path: root/bustle.cabal
blob: a4e96746b275ddcb54cf96e817fdf4d99e926f25 (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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
Cabal-Version:  2.2
Name:           bustle
Category:       Network, Desktop
Version:        0.8.0
Tested-With:    GHC == 8.4.3
Synopsis:       Draw sequence diagrams of D-Bus traffic
Description:    Bustle records and draws sequence diagrams of D-Bus activity, showing signal emissions, method calls and their corresponding returns, with timestamps for each individual event and the duration of each method call. This can help you check for unwanted D-Bus traffic, and pinpoint why your D-Bus-based application isn't performing as well as you like.  It also provides statistics like signal frequencies and average method call times.
License:        LGPL-2.1-or-later
License-file:   COPYING
Author:         Will Thompson <will@willthompson.co.uk>
Maintainer:     Will Thompson <will@willthompson.co.uk>
Homepage:       https://gitlab.freedesktop.org/bustle/bustle#readme
Data-files:     data/bustle.ui,
                data/FilterDialog.ui,
                data/OpenTwoDialog.ui,
                data/RecordAddressDialog.ui
Build-type:     Custom
Extra-source-files:
                  -- C bits
                    c-sources/bustle-pcap.c,
                    c-sources/pcap-reader.h,
                    c-sources/pcap-monitor.h,
                    c-sources/config.h,
                    Makefile,

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

                  -- inlined copy of the Cabal hooks from hgettext;
                  -- see https://github.com/fpco/stackage/issues/746
                  , GetText.hs

                  -- wow many translate
                  , po/*.po

                  -- intl bits
                  , data/org.freedesktop.Bustle.appdata.xml.in
                  , data/org.freedesktop.Bustle.desktop.in

                  -- icons
                  , data/icons/hicolor/scalable/apps/org.freedesktop.Bustle.svg
                  , data/icons/hicolor/scalable/apps/org.freedesktop.Bustle.Devel.svg
                  , data/icons/hicolor/scalable/apps/org.freedesktop.Bustle-symbolic.svg

x-gettext-po-files:     po/*.po
x-gettext-domain-name:  bustle

custom-setup
  setup-depends:
    base >= 4.11 && < 5,
    Cabal >= 2.0,
    filepath,
    directory,
    process

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

Flag hgettext
  Description:    Enable translations. Since there are no translations this is currently rather pointless.
  Default:        False

Flag InteractiveTests
  Description:    Build interactive test programs
  Default:        False

Flag threaded
  Description:    Build with the multi-threaded runtime
  Default:        True

Executable bustle
  Main-is:       Bustle.hs
  Other-modules: Bustle.Application.Monad
               , Bustle.Diagram
               , Bustle.GDBusMessage
               , Bustle.GVariant
               , Bustle.Loader
               , Bustle.Loader.Pcap
               , Bustle.Marquee
               , Bustle.Missing
               , Bustle.Monitor
               , Bustle.Noninteractive
               , Bustle.Reader
               , Bustle.Regions
               , Bustle.Renderer
               , Bustle.StatisticsPane
               , Bustle.Stats
               , Bustle.Translation
               , Bustle.Types
               , Bustle.UI
               , Bustle.UI.AboutDialog
               , Bustle.UI.Canvas
               , Bustle.UI.DetailsView
               , Bustle.UI.FilterDialog
               , Bustle.UI.OpenTwoDialog
               , Bustle.UI.RecordAddressDialog
               , Bustle.UI.Recorder
               , Bustle.Util
               , Paths_bustle
  autogen-modules: Paths_bustle
  default-language: Haskell2010
  Ghc-options: -Wall
               -fno-warn-unused-do-bind
  if flag(threaded)
    ghc-options: -threaded
  C-sources: c-sources/pcap-reader.c
           , c-sources/pcap-monitor.c
  cc-options: -fPIC -g
  extra-libraries: pcap
  pkgconfig-depends: glib-2.0 >= 2.54,
                     gio-unix-2.0
  Build-Depends: base >= 4.11 && < 5
               , bytestring
               , cairo
               , containers
               , directory
               , filepath
               , glib
               , gio
               , gtk3
               , mtl >= 2.2.1
               , pango
               , process
               , text
               , time
               , transformers
  if flag(hgettext)
    Build-Depends: hgettext >= 0.1.5
                 , setlocale
    other-modules: GetText_bustle
    autogen-modules: GetText_bustle
    hs-source-dirs: .
                  , src-hgettext
  else
    hs-source-dirs: .
                  , src-no-hgettext

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

  main-is: Test/DumpMessages.hs
  default-language: Haskell2010
  Build-Depends: base
               , bytestring
               , containers
               , mtl
               , text
               , transformers

  if flag(hgettext)
      Build-Depends: hgettext >= 0.1.5
                   , setlocale
      other-modules: GetText_bustle
      autogen-modules: GetText_bustle
      hs-source-dirs: .
                    , src-hgettext
  else
      hs-source-dirs: .
                    , src-no-hgettext

Test-suite test-pcap-crash
    type: exitcode-stdio-1.0
    main-is: Test/PcapCrash.hs
    other-modules: Bustle.GDBusMessage
                 , Bustle.GVariant
                 , Bustle.Loader.Pcap
                 , Bustle.Reader
                 , Bustle.Translation
                 , Bustle.Types
    default-language: Haskell2010
    Build-Depends: base
                 , bytestring
                 , containers
                 , glib
                 , mtl
                 , text
                 , transformers
    C-sources: c-sources/pcap-reader.c
    pkgconfig-depends: glib-2.0 >= 2.54,
                       gio-unix-2.0
    extra-libraries: pcap
    if flag(hgettext)
        Build-Depends: hgettext >= 0.1.5
                     , setlocale
        other-modules: GetText_bustle
        autogen-modules: GetText_bustle
        hs-source-dirs: .
                      , src-hgettext
    else
        hs-source-dirs: .
                      , src-no-hgettext

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

Test-suite test-renderer
    type: exitcode-stdio-1.0
    main-is: Test/Renderer.hs
    other-modules: Bustle.Diagram
                 , Bustle.GDBusMessage
                 , Bustle.GVariant
                 , Bustle.Marquee
                 , Bustle.Regions
                 , Bustle.Renderer
                 , Bustle.Translation
                 , Bustle.Types
                 , Bustle.Util

    default-language: Haskell2010
    Build-Depends: base
                 , cairo
                 , containers
                 , directory
                 , filepath
                 , glib
                 , gtk3
                 , mtl
                 , text
                 , pango
                 , test-framework
                 , test-framework-hunit
                 , transformers
                 , HUnit
    if flag(hgettext)
        Build-Depends: hgettext >= 0.1.5
                     , setlocale
        other-modules: GetText_bustle
        autogen-modules: GetText_bustle
        hs-source-dirs: .
                      , src-hgettext
    else
        hs-source-dirs: .
                      , src-no-hgettext