-
Notifications
You must be signed in to change notification settings - Fork 4
/
hlibsass.cabal
85 lines (78 loc) · 2.5 KB
/
hlibsass.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: hlibsass
version: 0.1.10.1
license: MIT
license-file: LICENSE
author: Jakub Fijałkowski <[email protected]>
maintainer: [email protected]
homepage: https://github.com/jakubfijalkowski/hlibsass
category: Foreign
build-type: Custom
cabal-version: >= 1.10
stability: experimental
synopsis: Low-level bindings to Libsass
description:
This package provides (very) low level bindings to LibSass. By default, it
uses LibSass compiled as a static library, so if you use this in your project,
you have to link your project with C++ runtime (which hLibsass does
automatically - links with /libstdc++/).
For documentation visit <https://github.com/sass/libsass>.
extra-source-files:
libsass/src/*.cpp
libsass/src/*.c
libsass/src/*.h
libsass/src/*.hpp
libsass/src/*.am
libsass/src/b64/*.h
libsass/src/utf8/*.h
libsass/src/support/*.pc.in
libsass/src/memory/*.hpp
libsass/src/memory/*.cpp
libsass/include/*.h
libsass/include/sass/*.h
libsass/include/sass/*.h.in
libsass/Makefile
libsass/Makefile.conf
libsass/LICENSE
libsass/VERSION
CHANGELOG.md
source-repository head
type: git
location: git://github.com/jakubfijalkowski/hlibsass.git
flag externalLibsass
description: Use LibSass that is installed in the system.
default: False
flag sharedLibsass
description:
Build LibSass as a shared library (only if external_libsass = False).
default: False
custom-setup
setup-depends: base >= 4.7 && < 5, Cabal >= 1.18, directory >= 1.2.1
library
exposed-modules:
Bindings.Libsass
, Bindings.Libsass.Base
, Bindings.Libsass.Types
, Bindings.Libsass.Wrappers
, Bindings.Libsass.Context
, Bindings.Libsass.Functions
, Bindings.Libsass.Values
build-depends: base >= 4.7 && < 5
hs-source-dirs: .
default-language: Haskell2010
default-extensions: ForeignFunctionInterface
ghc-options: -Wall
extra-libraries: sass
if !flag(externalLibsass) && !flag(sharedLibsass)
if os(darwin)
extra-libraries: c++
else
extra-libraries: stdc++
test-suite tests
hs-source-dirs: tests
main-is: Main.hs
type: exitcode-stdio-1.0
ghc-options: -Wall
if flag(externalLibsass)
cpp-options: -DEXTERNAL_LIBSASS
build-depends: base >= 4.7 && < 5, hspec, hlibsass
default-language: Haskell2010