@@ -18,6 +18,10 @@ Source-Repository head
1818 Location: https://github.com/haskell-distributed/distributed-process
1919 SubDir: distributed-process-azure
2020
21+Flag build-demos
22+ description: Build the demos
23+ default: False
24+
2125Library
2226 Build-Depends: base >= 4.4 && < 5,
2327 azure-service-api >= 0.1 && < 0.2,
@@ -42,11 +46,26 @@ Library
4246 ghc-options: -Wall
4347 HS-Source-Dirs: src
4448
45−Executable cloud-haskell-azure
46− Main-Is: src/Control/Distributed/Process/Backend/Azure/CommandLine.hs
47− Build-Depends: base >= 4.4 && < 5,
49+Executable cloud-haskell-azure-ping
50+ if flag(build-demos)
51+ Build-Depends: base >= 4.4 && < 5,
52+ distributed-process-azure >= 0.1 && < 0.2,
53+ distributed-process >= 0.2 && < 0.3,
54+ transformers >= 0.3 && < 0.4,
55+ bytestring >= 0.9 && < 0.11,
56+ binary >= 0.5 && < 0.6
57+ else
58+ buildable: False
59+ Main-Is: demos/Ping.hs
60+
61+Executable cloud-haskell-azure-conway
62+ if flag(build-demos)
63+ Build-Depends: base >= 4.4 && < 5,
4864 distributed-process-azure >= 0.1 && < 0.2,
4965 distributed-process >= 0.2 && < 0.3,
5066 transformers >= 0.3 && < 0.4,
5167 bytestring >= 0.9 && < 0.11,
5268 binary >= 0.5 && < 0.6
69+ else
70+ buildable: False
71+ Main-Is: demos/Conway.hs