Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cabal flags & benchmark #272

Merged
merged 2 commits into from
Jul 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion implicit.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,24 @@ Maintainer: Julia Longtin <julia.longtin@gmail.com>
Homepage: http://implicitcad.org/
Category: Graphics

flag extopenscad
default:
True
description:
Builds extopenscad program

flag docgen
default:
True
description:
Builds docgen program

flag implicitsnap
default:
False
description:
Builds implicitsnap program

Library

Default-Extensions: NoImplicitPrelude
Expand Down Expand Up @@ -112,6 +130,8 @@ Library
Graphics.Implicit.Export.Render.HandlePolylines

Executable extopenscad
if !flag(extopenscad)
buildable: False
Main-is: extopenscad.hs
default-extensions: NoImplicitPrelude
Default-Language: Haskell2010
Expand Down Expand Up @@ -146,6 +166,8 @@ Executable extopenscad
-- -Werror

Executable docgen
if !flag(docgen)
buildable: False
main-is: docgen.hs
default-extensions: NoImplicitPrelude
Default-Language: Haskell2010
Expand All @@ -171,6 +193,8 @@ Executable docgen
-- -Werror

Executable implicitsnap
if !flag(implicitsnap)
buildable: False
Main-is: implicitsnap.hs
default-extensions: NoImplicitPrelude
Default-Language: Haskell2010
Expand Down Expand Up @@ -207,7 +231,8 @@ Executable implicitsnap
-Wall-missed-specialisations
-- -Werror

Executable Benchmark
Benchmark Benchmark
Type: exitcode-stdio-1.0
Main-is: Benchmark.hs
default-extensions: NoImplicitPrelude
Default-Language: Haskell2010
Expand Down