]> gitweb @ CieloNegro.org - Rakka.git/blobdiff - Rakka.cabal
started implementing trackback receiver
[Rakka.git] / Rakka.cabal
index 80c3cb23eaf349995a8ff30fedb1d7a4b8e6bd3f..ee1f885acc5b000666e1ccea83261c3299367a8e 100644 (file)
@@ -13,14 +13,15 @@ Tested-With:   GHC == 6.6.1
 Cabal-Version: >= 1.2
 
 Data-Files:
-    defaultpages/Help/SampleImage/Large
-    defaultpages/Help/SampleImage/Small
-    defaultPages/Help/Syntax
-    defaultPages/MainPage
-    defaultPages/PageTitle
-    defaultPages/SideBar/Left
-    defaultPages/SideBar/Right
-    defaultPages/StyleSheet/Default
+    defaultPages/Feed.xml
+    defaultpages/Help/SampleImage/Large.xml
+    defaultpages/Help/SampleImage/Small.xml
+    defaultPages/Help/Syntax.xml
+    defaultPages/MainPage.xml
+    defaultPages/PageTitle.xml
+    defaultPages/SideBar/Left.xml
+    defaultPages/SideBar/Right.xml
+    defaultPages/StyleSheet/Default.xml
     schemas/rakka-page-1.0.rng
 
 Extra-Source-Files:
@@ -29,37 +30,55 @@ Extra-Source-Files:
     configure.ac
     js/Makefile
     js/base.js
+    js/base64.js
     js/editPage.js
     js/jquery-1.2.1.js
     js/jquery-dom.js
+    js/localFile.js
+    js/login.js
     js/screen.js
 
 Flag build-test-suite
     Description: Build the test suite.
     Default:     False
 
+Flag enable-profiling
+    Description: Enable profiling of the executable
+    Default:     False
+
+Flag hardest-optimization
+    Description: Make the executable as fast as possible
+    Default:     False
+
 Executable rakka
     Build-Depends:
-        Crypto, FileManip, HUnit, HsHyperEstraier, HsSVN, Lucu, base,
-        bytestring, containers, directory, utf8-string, filepath,
-        hslogger, hxt, mtl, network, parsec, stm, time, unix, zlib
+        Crypto, FileManip, HTTP, HUnit, HsHyperEstraier, HsSVN, Lucu,
+        base, bytestring, containers, dataenc, directory, utf8-string,
+        filepath, hslogger, hxt, magic, mtl, network, parsec, stm,
+        time, unix, zlib
     Main-Is:
         Main.hs
     Other-Modules:
+        Rakka.Authorization
         Rakka.Environment
         Rakka.Page
         Rakka.Resource
+        Rakka.Resource.CheckAuth
         Rakka.Resource.Index
         Rakka.Resource.JavaScript
         Rakka.Resource.Object
         Rakka.Resource.PageEntity
+        Rakka.Resource.Render
+        Rakka.Resource.TrackBack
         Rakka.Storage
         Rakka.Storage.DefaultPage
+        Rakka.Storage.Repos
         Rakka.Storage.Types
         Rakka.Storage.Impl
         Rakka.SystemConfig
         Rakka.Utils
         Rakka.Validation
+        Rakka.W3CDateTime
         Rakka.Wiki
         Rakka.Wiki.Interpreter
         Rakka.Wiki.Interpreter.Base
@@ -72,8 +91,16 @@ Executable rakka
         Rakka.Wiki.Parser
     Extensions:
         Arrows, ExistentialQuantification, ScopedTypeVariables
-    GHC-Options:
-        -Wall -XDeriveDataTypeable
+    if flag(enable-profiling)
+        GHC-Options:
+            -Wall -XDeriveDataTypeable -O2 -fvia-C -prof -auto-all
+    else
+        if flag(hardest-optimization)
+            GHC-Options:
+                -Wall -XDeriveDataTypeable -O2 -fvia-C -funbox-strict-fields
+        else
+            GHC-Options:
+                -Wall -XDeriveDataTypeable
 
 Executable RakkaUnitTest
     if flag(build-test-suite)
@@ -86,5 +113,7 @@ Executable RakkaUnitTest
         ., tests
     Other-Modules:
         WikiParserTest
+    Extensions:
+        Arrows
     GHC-Options:
         -Wall -Werror
\ No newline at end of file