aboutsummaryrefslogtreecommitdiff
path: root/hsm-cam/hsm-cam.cabal
blob: ade45d92534c67cdb0167990b5d684a412e0dc75 (plain)
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
cabal-version:      3.8
author:             Paul Oliver <contact@pauloliver.dev>
name:               hsm-cam
version:            0.1.0.0
extra-source-files:
  FFI/Cam.cpp
  FFI/Cam.hpp

library
  build-depends:
    , base
    , bytestring
    , effectful-core
    , effectful-plugin
    , hsm-log
    , JuicyPixels
    , primitive
    , shared-memory
    , vector

  cxx-options:      -O3 -Wall -Wextra -Werror -std=c++20
  cxx-sources:      FFI/Cam.cpp
  default-language: GHC2024
  exposed-modules:  Hsm.Cam
  extra-libraries:
    camera
    camera-base
    stdc++

  ghc-options:
    -O2 -Wall -Werror -Wno-star-is-type -Wunused-packages
    -fplugin=Effectful.Plugin

  include-dirs:     FFI Hsm/Cam /usr/include/libcamera
  other-modules:    Hsm.Cam.FFI

executable test-cam
  build-depends:
    , base
    , bytestring
    , effectful-core
    , effectful-plugin
    , hsm-log
    , JuicyPixels
    , primitive
    , shared-memory
    , vector

  cxx-options:      -O3 -Wall -Wextra -Werror -std=c++20
  cxx-sources:      FFI/Cam.cpp
  default-language: GHC2024
  extra-libraries:
    camera
    camera-base
    stdc++

  ghc-options:
    -O2 -threaded -Wall -Werror -Wno-star-is-type -Wunused-packages
    -fplugin=Effectful.Plugin

  if !arch(x86_64)
    ghc-options: -optl=-mno-fix-cortex-a53-835769

  include-dirs:     FFI Hsm/Cam /usr/include/libcamera
  main-is:          Test/Cam.hs
  other-modules:
    Hsm.Cam
    Hsm.Cam.FFI