-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHXSDL.cabal
More file actions
84 lines (74 loc) · 2.17 KB
/
HXSDL.cabal
File metadata and controls
84 lines (74 loc) · 2.17 KB
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
-- Initial HXSDL.cabal generated by cabal init. For further documentation,
-- see http://haskell.org/cabal/users-guide/
name: HXSDL
version: 0.1.0.0
-- synopsis:
-- description:
license: MIT
license-file: LICENSE
author: Erik Deijl
maintainer: erik.deijl@gmail.com
-- copyright:
category: Graphics
build-type: Simple
-- extra-source-files:
cabal-version: >=1.10
data-files: *.bmp
data-dir: src
Flag ios
Description: Build for iOS
Default: False
Flag android
Description: Build for Android
Default: False
Flag desktop
Description: Build for Desktop
Default: True
Flag firstBuild
Description: Fix for the Android build
Default: False
-- Desktop executable
executable HXSDL
main-is: Main.hs
-- other-modules:
-- other-extensions:
build-depends: base >=4.7 && < 5
, text
, SDL2
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall
if flag(desktop)
Buildable: True
else
Buildable: False
-- Android executable
executable libHXSDL.so
main-is: AndroidMain.hs
build-depends: base >=4.7 && < 5
, text
, SDL2
if flag (firstBuild)
ghc-options: -shared -threaded
else
ghc-options: -optl-shared -threaded
cc-options: -shared
ld-options: -shared
c-sources: src/init.c
include-dirs: : src
if flag (ios) || flag(desktop)
Buildable: False
-- iOS executable
executable HXSDLStaticLib
build-depends: base >=4.7 && < 5
, text
, SDL2
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -staticlib -threaded -no-hs-main
cpp-options: -DIOS
main-is: iOSMain.hs
if flag(ios)
Buildable: True
else
Buildable: False