X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=Rakka.cabal;h=2be97be04673deccb689881eb68a4f14561049b5;hb=f1016753ef45a4c25745ccb6e81e5acbc085cc42;hp=41ea3678a31750bbf4bfdd7febc7463213836bb2;hpb=b444493e17ad49d60464bb5cf02898bd9198af3c;p=Rakka.git diff --git a/Rakka.cabal b/Rakka.cabal index 41ea367..2be97be 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 @@ -36,20 +37,31 @@ Extra-Source-Files: js/localFile.js js/login.js js/screen.js + js/search.js + js/uri.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, dataenc, directory, utf8-string, + 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.Attachment Rakka.Authorization Rakka.Environment Rakka.Page @@ -60,12 +72,16 @@ Executable rakka Rakka.Resource.Object Rakka.Resource.PageEntity Rakka.Resource.Render + Rakka.Resource.Search + Rakka.Resource.SystemConfig + Rakka.Resource.TrackBack Rakka.Storage Rakka.Storage.DefaultPage Rakka.Storage.Repos Rakka.Storage.Types Rakka.Storage.Impl Rakka.SystemConfig + Rakka.TrackBack Rakka.Utils Rakka.Validation Rakka.W3CDateTime @@ -80,9 +96,17 @@ Executable rakka Rakka.Wiki.Formatter Rakka.Wiki.Parser Extensions: - Arrows, ExistentialQuantification, ScopedTypeVariables - GHC-Options: - -Wall -XDeriveDataTypeable + Arrows, ExistentialQuantification, ScopedTypeVariables, DeriveDataTypeable, FlexibleInstances + if flag(enable-profiling) + GHC-Options: + -Wall -O2 -fvia-C -prof -auto-all + else + if flag(hardest-optimization) + GHC-Options: + -Wall -O2 -fvia-C -funbox-strict-fields + else + GHC-Options: + -Wall Executable RakkaUnitTest if flag(build-test-suite)