-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbscc.cabal
209 lines (201 loc) · 7.11 KB
/
bscc.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
200
201
202
203
204
205
206
207
208
209
-- -*- indent-tabs-mode: nil; -*-
-- This file defines the Cabal package for bscc
-- Copyright © 2012 Iain Nicol
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU Affero General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU Affero General Public License for more details.
--
-- You should have received a copy of the GNU Affero General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
name: bscc
synopsis: The Brainsick code compiler
description:
The Brainsick code compiler (bscc) is an open source compiler for the
classic, pre‐.NET, Visual Basic (VB) language. Specifically, the VB6
dialect is our main compatibility target.
-- When increasing the version number, also update:
-- * the `bscc-setuphs' dependencies in this file.
-- * `version' in bscc-setuphs.cabal
-- * `version' in Bscc.ThisPackage.Info
version: 0.2.1
cabal-version: >=1.18
license: AGPL-3
license-file: COPYING
copyright: © 2012, 2013 Iain Nicol
author: Iain Nicol
maintainer: https://www.brainsick.cc/
category: Languages
homepage: https://www.brainsick.cc/
bug-reports: https://www.brainsick.cc/bugs/
-- A non-trivial Setup.hs file requires the Custom build type, to force
-- the cabal-install program to use said file.
build-type: Custom
extra-source-files:
-- The .ag files additionally need to be added to the "other-modules".
Bscc/Ast/Plain.ag Bscc/Ast/WithSem.ag Bscc/Codegen/Ir.ag
Bscc/Sem.ag Bscc/Sem/Internal/Types.ag Bscc/Symbol/Table.ag
doc/example/README
doc/example/hello/hello.bas
doc/example/hello-awkward/main.bas
doc/example/hello-awkward/showmsgbox.bas
libbsccts/README
.gitignore AUTHORS bscc-help2man-shim.hs ChangeLog INSTALL NEWS README
uuagc_options
data-dir: .
data-files:
libbsccts/startup.ll
source-repository head
type: git
location: https://gitlab.com/brainsick/bscc
executable bscc
main-is: Main.hs
-- Set the source directory to the root package directory, as opposed
-- to say a ``src'' subdirectory. The advantage of this is that GHCI
-- running under Emacs, for example, can actually resolve
-- package-local imports. Thanks to namespacing (Bscc.Foo ->
-- Bscc/Foo.hs), the source files thankfully are not intermingled with
-- the build system files in the package root.
hs-source-dirs: .
-- Just like for .hs files, the .ag modules must be added here.
-- Additionally, the .ag files must be added to "extra-source-files",
-- as well as to the uuagc_options file. Ref:
-- <http://lists.science.uu.nl/pipermail/hut-developers/2011-February/
-- 000248.html>.
other-modules:
Bscc.Ast.Plain Bscc.Ast.WithSem
Bscc.Codegen.Ir Bscc.Codegen.Machine
Bscc.GccArgParse
Bscc.HelpAndVersion
Bscc.Lex
Bscc.Link
Bscc.Main
Bscc.Parse
Bscc.Sem
Bscc.Sem.Internal.Types
Bscc.Symbol.Name
Bscc.Symbol.Table
Bscc.ThisPackage.Dir
Bscc.ThisPackage.Info
Bscc.Token
Bscc.Triplet
-- Cabal User Guide makes explicit that Paths_foo module should be
-- included here.
Paths_bscc
default-language: Haskell2010
-- Every {-# LANGUAGE extension #-} which has its use declared in any
-- source file has to be additionally listed here. Not doing this can
-- cause build errors, at least with TemplateHaskell when profiling is
-- enabled.
--
-- Keep this in sync with the test-suite.
other-extensions:
CPP,
GADTs,
NoMonomorphismRestriction,
TemplateHaskell
-- The dependency version requirements are likely stricter than
-- necessary, to avoid the need to test we can be built against
-- previous APIs.
build-depends:
-- I would have liked to write code against the Haskell standard
-- library (plus other imports), by for example writing
-- haskell2010 == 1.1.*
-- However, as soon as you depend upon one import which is part of
-- the base package and only the base package, it is game over and
-- you must instead use base and not haskell2010. For example, the
-- Cabal-generated Paths_bscc module imports Data.Version from base.
-- Keep dependencies in sync with the test-suite.
base >= 4.7 && < 5,
bscc-setuphs == 0.2.1,
bytestring == 0.10.*,
containers == 0.5.*,
errors == 1.4.* && >= 1.4.2,
groom == 0.1.* && >= 0.1.1,
lens == 4.7.*,
-- llvm-general version x.y.z.a requires LLVM version x.y.
llvm-general == 3.4.6.*,
llvm-general-pure == 3.4.5.* && >= 3.4.5.4,
-- Parsec 3.1.2 changed the behaviour of `lookAhead', so only
-- downgrade with caution.
parsec == 3.1.* && >= 3.1.3,
pathtype == 0.8.*,
process == 1.2.*,
safe == 0.3.* && >= 0.3.3,
temporary == 1.2.*,
transformers == 0.3.*,
transformers-compat == 0.4.* && >= 0.4.0.3,
text == 1.2.*,
uuagc == 0.9.* && >= 0.9.40.3
build-tools:
-- Dependencies listed here---at least the ones Cabal doesn't
-- naturally understand---should also be added to hookedPrograms in
-- Setup.hs. See that file's `appendHookedPrograms' function.
git,
help2man,
runhaskell
cpp-options: -DBUILD
ghc-options: -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns
test-suite tests
type: exitcode-stdio-1.0
main-is: run-tests.hs
hs-source-dirs: test .
other-modules:
Bscc.Ast.Plain Bscc.Ast.WithSem
Bscc.Codegen.Ir Bscc.Codegen.Machine
Bscc.HelpAndVersion
Bscc.Main
Bscc.Sem
Bscc.Sem.Internal.Types
Bscc.Symbol.Table
Test.Bscc.Codegen.Machine
Test.Bscc.Codegen.Ir
Test.Bscc.GccArgParse
Test.Bscc.HelpAndVersion
Test.Bscc.Lex
Test.Bscc.Main
Test.Bscc.Parse
Test.Bscc.Sem
Test.Bscc.Symbol.Name
Test.Bscc.Symbol.Table
default-language: Haskell2010
other-extensions:
-- Same as for bscc.
CPP,
GADTs
build-depends:
-- Unique to the test suite.
tasty == 0.10.*,
tasty-hunit == 0.9.*,
tasty-quickcheck == 0.8.*,
-- Same as for bscc.
base >= 4.7 && < 5,
bscc-setuphs == 0.2.1,
bytestring == 0.10.*,
containers == 0.5.*,
errors == 1.4.* && >= 1.4.2,
groom == 0.1.* && >= 0.1.1,
lens == 4.7.*,
llvm-general == 3.4.6.*,
llvm-general-pure == 3.4.5.* && >= 3.4.5.4,
parsec == 3.1.* && >= 3.1.3,
pathtype == 0.8.*,
process == 1.2.*,
safe == 0.3.* && >= 0.3.3,
temporary == 1.2.*,
transformers == 0.3.*,
transformers-compat == 0.4.* && >= 0.4.0.3,
text == 1.2.*,
uuagc == 0.9.* && >= 0.9.40.3
-- Disable optimization. According to the FAQ of test-framework
-- (http://batterseapower.github.com/test-framework/), GHC can
-- optimize away calls to `error', causing tests to misbehave.
ghc-options: -O0
-Wall -fwarn-tabs -fwarn-incomplete-uni-patterns
-fno-warn-missing-signatures
-threaded