]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Lucu.cabal
Added a configuration flag -fssl to enable SSL support. (default: off)
[Lucu.git] / Lucu.cabal
index e254dbdf59daa200f90e8bec3a0602fd82e96275..a1a22795c7be8a3753398eae71894e6b46246799 100644 (file)
@@ -44,9 +44,12 @@ Flag build-lucu-implant-file
     Description: Build the lucu-implant-file program.
     Default:     True
 
+Flag ssl
+    Description: Enable SSL support.
+    Default:     False
+
 Library
     Build-Depends:
-        HsOpenSSL                  == 0.10.*,
         ascii                      == 0.0.*,
         attoparsec                 == 0.9.*,
         base                       == 4.*,
@@ -70,6 +73,12 @@ Library
         time-http                  == 0.2.*,
         transformers               == 0.2.*
 
+    if flag(ssl)
+        Build-Depends:
+            HsOpenSSL == 0.10.*
+        CPP-Options:
+            -DHAVE_SSL
+
     Exposed-Modules:
         Network.HTTP.Lucu
         Network.HTTP.Lucu.Abortion