forked from EDeijl/CPHConsoleApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CPConsoleApp.cabal
72 lines (63 loc) · 1.95 KB
/
CPConsoleApp.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
-- Initial CPConsoleApp.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
name: CPConsoleApp
version: 0.1.0.0
-- synopsis:
-- description:
license: MIT
license-file: LICENSE
author: Erik Deijl
maintainer: erik.deijl@gmail.com
-- copyright:
-- category:
build-type: Simple
-- extra-source-files:
cabal-version: >=1.10
Flag ios
Description: build for iOS
Default: False
Flag android
Description: Build for Android
Default: False
Flag desktop
Description: Build for Desktop
Default: False
executable libhaskell.so
build-depends: base >=4.7
if flag(android)
build-depends: base >=4.7, foreign-jni, transformers, text
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -optl-shared -no-hs-main -threaded
main-is: AndroidMain.hs
c-sources: src/init.c
include-dirs: src
cc-options: -shared
ld-options: -shared
if flag(ios) || flag(desktop)
Buildable: False
executable CPConsoleAppStaticLib
build-depends: base
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -staticlib -threaded -no-hs-main -pgmlibtool libtool -stubdir .
cpp-options: -DIOS
main-is: iOSMain.hs
if flag(ios)
Buildable: True
else
Buildable: False
executable CPConsoleApp
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -W -threaded -O2
ghc-prof-options: -prof -auto-all
main-is: DesktopMain.hs
hs-source-dirs: .
build-depends: base
if flag(ios)
ghc-options: -staticlib
if flag(ios) || flag(android)
Buildable: False
else
Buildable: True