(cabal check) Add "Autogen include" test for ts
[cabal.git] / cabal-testsuite / PackageTests / ForeignLibs / my-foreign-lib.cabal
blob8b63dc24e9e8ca90b4064f50b0ca82801a98f397
1 name:                my-foreign-lib
2 version:             0.1.0.0
3 license-file:        LICENSE
4 author:              Edsko de Vries
5 maintainer:          edsko@well-typed.com
6 build-type:          Simple
7 cabal-version:       >=1.10
9 library
10   exposed-modules:     MyForeignLib.AnotherVal
11   build-depends:       base
12   hs-source-dirs:      src
13   default-language:    Haskell2010
15 foreign-library myforeignlib
16   type:                native-shared
18   if os(windows)
19     options: standalone
21   other-modules:       MyForeignLib.Hello
22                        MyForeignLib.SomeBindings
23                        MyForeignLib.AnotherVal
24   build-depends:       base, my-foreign-lib
25   hs-source-dirs:      src
26   c-sources:           csrc/MyForeignLibWrapper.c
27   default-language:    Haskell2010
29 foreign-library versionedlib
30   type:                native-shared
32   if !os(linux)
33     buildable: False
34   lib-version-info:    9:3:4
36   other-modules:       MyForeignLib.Hello
37                        MyForeignLib.SomeBindings
38                        MyForeignLib.AnotherVal
39   build-depends:       base, my-foreign-lib
40   hs-source-dirs:      src
41   c-sources:           csrc/MyForeignLibWrapper.c
42   default-language:    Haskell2010
44 foreign-library includeslib
45   type:                native-shared
46   if os(windows)
47      options: standalone
48   other-modules:       MyForeignLib.Export
49   install-includes:    Export_stub.h
50   include-dirs:        includeslib-tmp/MyForeignLib
51   build-depends:       base, my-foreign-lib
52   hs-source-dirs:      src
53   default-language:    Haskell2010