-
Notifications
You must be signed in to change notification settings - Fork 0
/
Engine3D.cabal
132 lines (121 loc) · 4.35 KB
/
Engine3D.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
name : Engine3D
version : 0.0.0.1
synopsis : A simple 3D engine, developed after https://youtu.be/ih20l3pJoeU
description:
This is a simple 3D engine coded from scratch after the video series from
javidx9 (https://www.youtube.com/channel/UC-yuWVUplUJZvieEligKBkA)
taken from this (and following) videos: https://youtu.be/ih20l3pJoeU
license : MIT
license-file : LICENSE
author : Michael Oswald
build-type: Custom
maintainer: michael.oswald@onikudaki.net
homepage: http://github.com/oswald2/Engine3D
category: Graphics
cabal-version: >=2.0
source-repository head
type: git
location: http://github.com/oswald2/Engine3D
custom-setup
setup-depends:
Cabal >=2.2.0.0 && <3
, base >=4.4
, filepath
Flag FastCompile
Description: Turn off optimizations for faster compilation
Manual: True
Default: False
Executable Part1
Main-Is: Part1.hs
Hs-Source-Dirs: src/
Build-Depends:
base == 4.*,
fltkhs >= 0.8.0.2,
text >= 1.2.2.0,
vector,
array,
thyme,
lens
default-language: Haskell2010
ghc-Options: -Werror -threaded
if impl(ghc >= 7.10) && impl(ghc < 8.0) && flag(FastCompile)
ghc-Options: -fno-specialise -fmax-simplifier-iterations=0 -fsimplifier-phases=0
else
ghc-Options: -O2
if os(windows)
ghc-Options: -pgml g++ "-optl-Wl,--allow-multiple-definition" "-optl-Wl,--whole-archive" "-optl-Wl,-Bstatic" "-optl-Wl,-lfltkc" "-optl-Wl,-Bdynamic" "-optl-Wl,--no-whole-archive"
if os(darwin)
ghc-Options: "-optl-Wl,-lfltkc"
if !os(darwin) && !os(windows)
ghc-Options: -pgml g++ "-optl-Wl,--allow-multiple-definition" "-optl-Wl,--whole-archive" "-optl-Wl,-Bstatic" "-optl-Wl,-lfltkc" "-optl-Wl,-Bdynamic" "-optl-Wl,--no-whole-archive"
Executable Part2_Cube
Main-Is: Part2_Cube.hs
Hs-Source-Dirs: src/
Build-Depends:
base == 4.*,
fltkhs >= 0.8.0.2,
text >= 1.2.2.0,
vector,
array,
thyme,
lens
default-language: Haskell2010
ghc-Options: -Werror -threaded
if impl(ghc >= 7.10) && impl(ghc < 8.0) && flag(FastCompile)
ghc-Options: -fno-specialise -fmax-simplifier-iterations=0 -fsimplifier-phases=0
else
ghc-Options: -O2
if os(windows)
ghc-Options: -pgml g++ "-optl-Wl,--allow-multiple-definition" "-optl-Wl,--whole-archive" "-optl-Wl,-Bstatic" "-optl-Wl,-lfltkc" "-optl-Wl,-Bdynamic" "-optl-Wl,--no-whole-archive"
if os(darwin)
ghc-Options: "-optl-Wl,-lfltkc"
if !os(darwin) && !os(windows)
ghc-Options: -pgml g++ "-optl-Wl,--allow-multiple-definition" "-optl-Wl,--whole-archive" "-optl-Wl,-Bstatic" "-optl-Wl,-lfltkc" "-optl-Wl,-Bdynamic" "-optl-Wl,--no-whole-archive"
Executable Part2
Main-Is: Part2.hs
Hs-Source-Dirs: src/
Build-Depends:
base == 4.*,
fltkhs >= 0.8.0.2,
text >= 1.2.2.0,
vector,
vector-algorithms,
array,
thyme,
lens
default-language: Haskell2010
ghc-Options: -Werror -threaded
if impl(ghc >= 7.10) && impl(ghc < 8.0) && flag(FastCompile)
ghc-Options: -fno-specialise -fmax-simplifier-iterations=0 -fsimplifier-phases=0
else
ghc-Options: -O2
if os(windows)
ghc-Options: -pgml g++ "-optl-Wl,--allow-multiple-definition" "-optl-Wl,--whole-archive" "-optl-Wl,-Bstatic" "-optl-Wl,-lfltkc" "-optl-Wl,-Bdynamic" "-optl-Wl,--no-whole-archive"
if os(darwin)
ghc-Options: "-optl-Wl,-lfltkc"
if !os(darwin) && !os(windows)
ghc-Options: -pgml g++ "-optl-Wl,--allow-multiple-definition" "-optl-Wl,--whole-archive" "-optl-Wl,-Bstatic" "-optl-Wl,-lfltkc" "-optl-Wl,-Bdynamic" "-optl-Wl,--no-whole-archive"
Executable Part3
Main-Is: Part3.hs
Hs-Source-Dirs: src/
Build-Depends:
base == 4.*,
fltkhs >= 0.8.0.2,
text >= 1.2.2.0,
vector,
vector-algorithms,
array,
thyme,
lens
default-language: Haskell2010
ghc-Options: -Werror -threaded
if impl(ghc >= 7.10) && impl(ghc < 8.0) && flag(FastCompile)
ghc-Options: -fno-specialise -fmax-simplifier-iterations=0 -fsimplifier-phases=0
else
ghc-Options: -O2
if os(windows)
ghc-Options: -pgml g++ "-optl-Wl,--allow-multiple-definition" "-optl-Wl,--whole-archive" "-optl-Wl,-Bstatic" "-optl-Wl,-lfltkc" "-optl-Wl,-Bdynamic" "-optl-Wl,--no-whole-archive"
if os(darwin)
ghc-Options: "-optl-Wl,-lfltkc"
if !os(darwin) && !os(windows)
ghc-Options: -pgml g++ "-optl-Wl,--allow-multiple-definition" "-optl-Wl,--whole-archive" "-optl-Wl,-Bstatic" "-optl-Wl,-lfltkc" "-optl-Wl,-Bdynamic" "-optl-Wl,--no-whole-archive"