diff options
Diffstat (limited to 'pandoc.cabal')
-rw-r--r-- | pandoc.cabal | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pandoc.cabal b/pandoc.cabal index d0d788499..3822b8e60 100644 --- a/pandoc.cabal +++ b/pandoc.cabal @@ -64,6 +64,12 @@ Flag splitBase Flag highlighting Description: Compile in support for syntax highlighting of code blocks. Default: False +Flag executable + Description: Build the pandoc executable. + Default: True +Flag library + Description: Build the pandoc library. + Default: True Library if flag(splitBase) @@ -107,8 +113,18 @@ Library Ghc-Options: -O2 -Wall -threaded Ghc-Prof-Options: -auto-all + if flag(library) + Buildable: True + else + Buildable: False + Executable pandoc Hs-Source-Dirs: . Main-Is: Main.hs Ghc-Options: -O2 -Wall -threaded Ghc-Prof-Options: -auto-all + + if flag(executable) + Buildable: True + else + Buildable: False |