-
Notifications
You must be signed in to change notification settings - Fork 12
/
package.yaml
120 lines (106 loc) · 2.9 KB
/
package.yaml
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
name: Jikka
version: 5.6.0.0
github: "kmyk/Jikka"
license: Apache
author: "Kimiyuki Onaka"
maintainer: "[email protected]"
copyright: "2021 Kimiyuki Onaka"
extra-source-files:
- README.md
- CHANGELOG.md
data-files:
- runtime/include/jikka/*.hpp
# Metadata used when publishing your package
synopsis: A transpiler from Python to C++ for competitive programming
category: "Compilers/Interpreters"
# To avoid duplicated efforts in documentation and dealing with the
# complications of embedding Haddock markup inside cabal files, it is
# common to point users to the README.md file.
description: Please see the README on GitHub at <https://github.com/kmyk/Jikka>
dependencies:
- ansi-terminal >= 0.11 && < 0.12
- array >= 0.5.3 && < 0.6
- base >= 4.12 && < 5
- containers >= 0.6.0 && < 0.7
- deepseq >= 1.4.4 && < 1.5
- directory >= 1.3.3 && < 1.4
- mtl >= 2.2.2 && < 2.3
- template-haskell >= 2.15.0 && < 2.17
- text >= 1.2.3 && < 1.3
- transformers >= 0.5.6 && < 0.6
- vector >= 0.12.3 && < 0.13
flags:
embed-runtime:
description: Embed files under runtime/include/ to the compiled binary.
default: False
manual: True
# `if flag(..)` confuses ahc-cabal of the current Asterius (2021-08-31).
# compile-web-assembly:
# description: Use Asterius and compile Jikka to WebAssembly.
# default: False
# manual: True
library:
source-dirs: src
build-tools:
- alex
- happy
ghc-options:
- -W
- -optP-Wno-nonportable-include-path
when:
- condition: flag(embed-runtime)
cpp-options: -DJIKKA_EMBED_RUNTIME
executables:
jikka:
main: Main.hs
source-dirs: app
ghc-options:
- -W
- -threaded
- -rtsopts
- -with-rtsopts=-N
- -optP-Wno-nonportable-include-path
dependencies:
- Jikka
# `import Asterius.Types` in asterius.hs breaks normal builds.
#ASTERIUS jikka-asterius:
#ASTERIUS main: asterius.hs
#ASTERIUS source-dirs: app
#ASTERIUS ghc-options:
#ASTERIUS - -W
#ASTERIUS - -threaded
#ASTERIUS - -rtsopts
#ASTERIUS - -with-rtsopts=-N
#ASTERIUS - -optP-Wno-nonportable-include-path
#ASTERIUS - -optl--export-function=convert
#ASTERIUS - -optl--export-function=bundleRuntime
#ASTERIUS - -optl--export-function=embedOriginalCode
#ASTERIUS dependencies:
#ASTERIUS - Jikka
tests:
jikka-test:
main: Spec.hs
source-dirs: test
ghc-options:
- -W
- -threaded
- -rtsopts
- -with-rtsopts=-N
- -optP-Wno-nonportable-include-path
dependencies:
- Jikka
- hspec
build-tools:
- hspec-discover
jikka-doctest:
main: doctests.hs
source-dirs: app
ghc-options:
- -W
- -threaded
- -rtsopts
- -with-rtsopts=-N
- -optP-Wno-nonportable-include-path
dependencies:
- Jikka
- doctest