on master help sign in
Hackage does not support impl(ghcjs) yet.
50ec30aHamish Mackenzie
jsaddle.cabal+12−4
@@ -17,6 +17,10 @@ Source-Repository head
17 type: git
17 type: git
18 location: https://github.com/ghcjs/jsaddle
18 location: https://github.com/ghcjs/jsaddle
19
19
20+flag ghcjs
21+ description: Tell cabal we are using ghcjs (work around until hackage supports impl(ghcjs))
22+ default: True
23+
20flag gtk3
24flag gtk3
21 Description: Use GTK3 rather than GTK2
25 Description: Use GTK3 rather than GTK2
22 Default: True
26 Default: True
@@ -34,11 +38,13 @@ flag jmacro
34 default: True
38 default: True
35
39
36library
40library
37− if impl(ghcjs) && flag(jsffi)
41+-- if impl(ghcjs) && flag(jsffi)
42+ if flag(ghcjs) && flag(jsffi)
38 cpp-options: -DUSE_JAVASCRIPTFFI
43 cpp-options: -DUSE_JAVASCRIPTFFI
39 build-depends: ghcjs-base
44 build-depends: ghcjs-base
40
45
41− if !impl(ghcjs) || flag(webkit)
46+-- if !impl(ghcjs) || flag(webkit)
47+ if !flag(ghcjs) || flag(webkit)
42 cpp-options: -DUSE_WEBKIT
48 cpp-options: -DUSE_WEBKIT
43 if flag(gtk3)
49 if flag(gtk3)
44 build-depends: webkitgtk3 >=0.12.5 && <0.13,
50 build-depends: webkitgtk3 >=0.12.5 && <0.13,
@@ -71,11 +77,13 @@ test-suite test-tool
71 if flag(jsffi)
77 if flag(jsffi)
72 buildable: False
78 buildable: False
73
79
74− if impl(ghcjs) && flag(jsffi)
80+-- if impl(ghcjs) && flag(jsffi)
81+ if flag(ghcjs) && flag(jsffi)
75 cpp-options: -DUSE_JAVASCRIPTFFI
82 cpp-options: -DUSE_JAVASCRIPTFFI
76 build-depends: ghcjs-base
83 build-depends: ghcjs-base
77
84
78− if !impl(ghcjs) || flag(webkit)
85+-- if !impl(ghcjs) || flag(webkit)
86+ if !flag(ghcjs) || flag(webkit)
79 cpp-options: -DUSE_WEBKIT
87 cpp-options: -DUSE_WEBKIT
80 build-depends: glib >=0.12.3.1 && <0.13
88 build-depends: glib >=0.12.3.1 && <0.13
81 if flag(gtk3)
89 if flag(gtk3)