forked from kmonad/kmonad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kmonad.cabal
199 lines (187 loc) · 4.24 KB
/
kmonad.cabal
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
cabal-version: 2.2
name: kmonad
category: Application
version: 0.4.2
synopsis: Advanced keyboard remapping utility
author: David Janssen
maintainer: [email protected]
license: MIT
license-file: LICENSE
build-type: Simple
description:
KMonad is a cross-platform command-line utility that runs as a daemon. It
captures keyboard input (exactly how depends on the OS) and remaps it. The
mapping is highly configurable, and provides options like (transparent) layer
overlays, tap-mod buttons, multi-tap buttons, leader-key style buttons, and
keyboard macros. Functionality heavily inspired by the QMK-firmware.
extra-source-files:
changelog.md
flag kext
description: build against the kext [macOS only]
default: False
flag dext
description: build against the dext [macOS only]
default: False
library
default-language:
Haskell2010
hs-source-dirs:
src
ghc-options:
-Wall
-Wno-name-shadowing
-Wno-unused-imports
build-depends:
base
, cereal
-- , hspec
, lens
, megaparsec
, mtl
, optparse-applicative
, resourcet
, rio
, time
, unliftio
, template-haskell
default-extensions:
ConstraintKinds
DeriveFunctor
DeriveGeneric
DeriveTraversable
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GeneralizedNewtypeDeriving
LambdaCase
MultiParamTypeClasses
MultiWayIf
NoImplicitPrelude
OverloadedStrings
RankNTypes
TemplateHaskell
TupleSections
TypeFamilies
autogen-modules:
Paths_kmonad
exposed-modules:
KMonad.App
KMonad.App.Main
KMonad.App.Types
KMonad.Args
KMonad.Args.Cmd
KMonad.Args.Parser
KMonad.Args.Joiner
KMonad.Args.TH
KMonad.Args.Types
KMonad.Model
KMonad.Model.Action
KMonad.Model.BEnv
KMonad.Model.Button
KMonad.Model.Dispatch
KMonad.Model.Hooks
KMonad.Model.Keymap
KMonad.Model.Sluice
KMonad.Gesture
KMonad.Keyboard
KMonad.Keyboard.ComposeSeq
KMonad.Keyboard.IO
KMonad.Keyboard.Keycode
KMonad.Keyboard.Ops
KMonad.Keyboard.Types
KMonad.Parsing
KMonad.Prelude
KMonad.Prelude.Imports
KMonad.Prelude.Definitions
KMonad.Util
KMonad.Util.LayerStack
KMonad.Util.MultiMap
Paths_kmonad
if os(linux)
exposed-modules:
KMonad.Keyboard.IO.Linux.DeviceSource
KMonad.Keyboard.IO.Linux.Types
KMonad.Keyboard.IO.Linux.UinputSink
c-sources:
c_src/keyio.c
build-depends:
unix
if os(windows)
exposed-modules:
KMonad.Keyboard.IO.Windows.LowLevelHookSource
KMonad.Keyboard.IO.Windows.SendEventSink
KMonad.Keyboard.IO.Windows.Types
c-sources:
c_src/keyio_win.c
build-depends:
Win32
if os(darwin)
exposed-modules:
KMonad.Keyboard.IO.Mac.IOKitSource
KMonad.Keyboard.IO.Mac.KextSink
KMonad.Keyboard.IO.Mac.Types
if flag(kext)
cxx-sources:
c_src/mac/kext.cpp
cxx-options:
-std=c++14
if flag(dext)
cxx-sources:
c_src/mac/dext.cpp
cxx-options:
-std=c++2a
extra-libraries:
c++
build-depends:
unix
frameworks:
CoreFoundation
IOKit
executable kmonad
ghc-options:
-threaded
-rtsopts
-with-rtsopts=-N
main-is:
Main.hs
default-language:
Haskell2010
hs-source-dirs:
app
build-depends:
base
, kmonad
test-suite spec
main-is: Spec.hs
type: exitcode-stdio-1.0
hs-source-dirs:
test
ghc-options:
-Wall
build-depends:
base
, kmonad
, hspec
other-modules:
KMonad.GestureSpec
default-language:
Haskell2010
build-tool-depends: hspec-discover:hspec-discover == 2.*
default-extensions:
ConstraintKinds
DeriveFunctor
DeriveGeneric
DeriveTraversable
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GeneralizedNewtypeDeriving
LambdaCase
MultiParamTypeClasses
MultiWayIf
NoImplicitPrelude
OverloadedStrings
RankNTypes
TemplateHaskell
TupleSections
TypeFamilies