X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Rakka.git;a=blobdiff_plain;f=Rakka.cabal;h=ee1f885acc5b000666e1ccea83261c3299367a8e;hp=fa0bbe4eac2fadf8f556ea2c38366af09ee196aa;hb=d843e97aa04278677eaede4e50ef680af32867e7;hpb=f57c5c5ae6c95e68b11400718e7ce5de4ea1317a diff --git a/Rakka.cabal b/Rakka.cabal index fa0bbe4..ee1f885 100644 --- a/Rakka.cabal +++ b/Rakka.cabal @@ -42,10 +42,18 @@ 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: @@ -61,6 +69,7 @@ Executable rakka Rakka.Resource.Object Rakka.Resource.PageEntity Rakka.Resource.Render + Rakka.Resource.TrackBack Rakka.Storage Rakka.Storage.DefaultPage Rakka.Storage.Repos @@ -82,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)