From dbad8e29e272ad310c29eaa487aa8627c38c1521 Mon Sep 17 00:00:00 2001 From: Alan Zimmerman Date: Fri, 8 Dec 2017 15:40:10 +0200 Subject: Add missing tests to sdist, check for Cabal 2.0 for CFlib --- cabal-helper.cabal | 4 ++++ src/CabalHelper/Runtime/Main.hs | 2 ++ 2 files changed, 6 insertions(+) diff --git a/cabal-helper.cabal b/cabal-helper.cabal index ece81c1..c580101 100644 --- a/cabal-helper.cabal +++ b/cabal-helper.cabal @@ -46,6 +46,10 @@ extra-source-files: README.md tests/exeintlib/lib/*.hs tests/exeintlib/intlib/*.hs + tests/fliblib/*.hs + tests/fliblib/*.cabal + tests/fliblib/lib/*.hs + tests/bkpregex/*.cabal tests/bkpregex/*.hs tests/bkpregex/regex-example/*.hs diff --git a/src/CabalHelper/Runtime/Main.hs b/src/CabalHelper/Runtime/Main.hs index b433b8b..e6d7a22 100644 --- a/src/CabalHelper/Runtime/Main.hs +++ b/src/CabalHelper/Runtime/Main.hs @@ -641,8 +641,10 @@ componentNameFromComponent (CBench Benchmark {..}) = CBenchName benchmarkName componentOutDir lbi (CLib Library {..})= buildDir lbi +#if CH_MIN_VERSION_Cabal(2,0,0) componentOutDir lbi (CFLib ForeignLib {..}) = componentOutDir' lbi (unUnqualComponentName foreignLibName) +#endif componentOutDir lbi (CExe Executable {..}) = componentOutDir' lbi (unUnqualComponentName' exeName) componentOutDir lbi (CTest TestSuite { testInterface = TestSuiteExeV10 _ _, ..}) = -- cgit v1.2.3