X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Rakka.git;a=blobdiff_plain;f=Rakka.cabal;h=7425209f3b9bb800dd7f5ba2abceb30334878fa6;hp=fa0bbe4eac2fadf8f556ea2c38366af09ee196aa;hb=e751af5e3d23d7757f363bf4e86f9d732d90be7f;hpb=23977989ef4be7316b1c2c3f709ca1e8e6bb7f84 diff --git a/Rakka.cabal b/Rakka.cabal index fa0bbe4..7425209 100644 --- a/Rakka.cabal +++ b/Rakka.cabal @@ -37,20 +37,30 @@ Extra-Source-Files: js/localFile.js js/login.js js/screen.js + js/search.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 @@ -61,12 +71,15 @@ Executable rakka Rakka.Resource.Object Rakka.Resource.PageEntity Rakka.Resource.Render + Rakka.Resource.Search + 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 @@ -81,9 +94,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)