blanu / Dust

A Polymorphic Engine for Filtering-Resistant Transport Protocols
286 stars 31 forks source link

OS-specific conditional compilation #8

Open blanu opened 11 years ago

blanu commented 11 years ago

The pcap library only compiles on Linux, so I have set up OS-specific conditional compilation for the libraries that depend on the pcap module.

However, I can't find any examples of how to do conditional compilation for executables and tests, so I am currently just commenting them out when I built on Windows or OS X. This is clearly not ideal, but the cabal documentation is somewhat lacking in this area.