X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Rakka.git;a=blobdiff_plain;f=Rakka.cabal;h=ee1f885acc5b000666e1ccea83261c3299367a8e;hp=a66b4a75742e23d5df8e0fd1db4b66d62fd562a2;hb=d843e97aa04278677eaede4e50ef680af32867e7;hpb=9681bedbfde02fa1bcda4fbbacba941378c7a57a diff --git a/Rakka.cabal b/Rakka.cabal index a66b4a7..ee1f885 100644 --- a/Rakka.cabal +++ b/Rakka.cabal @@ -13,6 +13,7 @@ Tested-With: GHC == 6.6.1 Cabal-Version: >= 1.2 Data-Files: + defaultPages/Feed.xml defaultpages/Help/SampleImage/Large.xml defaultpages/Help/SampleImage/Small.xml defaultPages/Help/Syntax.xml @@ -29,30 +30,46 @@ 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 @@ -74,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)