Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions glean.cabal.in
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ flag opt
flag benchmarks
default: False

-- Support for backups to Amazon S3
flag s3-support
default: True

-- run tests that require clang
flag clang-tests
default: True
Expand Down Expand Up @@ -666,6 +670,30 @@ library db
glean:stubs,
glean:rocksdb,

library db-backup-s3
import: fb-haskell, deps
visibility: private
hs-source-dirs: glean/db/backup/s3

exposed-modules: Glean.Database.Backup.S3
build-depends:
glean:util,
glean:if-internal-hs,
glean:if-glean-hs,
glean:db,
amazonka,
amazonka-s3,
conduit,
unliftio,
microlens,
http-client,

if flag(s3-support)
buildable: True
else
buildable: False


-- Backend API, and a few things built on top
library backend-api
import: fb-haskell, fb-cpp, deps
Expand Down Expand Up @@ -712,6 +740,7 @@ library backend-local
Glean.Backend.Local
Glean.Backend.Logging
Glean.Dump

build-depends:
glean:angle,
glean:backend-api,
Expand Down Expand Up @@ -1138,6 +1167,10 @@ executable glean-server
haskeline >=0.7.3 && <0.9,
json

if flag(s3-support)
cpp-options: -DENABLE_S3=1
build-depends: glean:db-backup-s3

library shell-lib
import: fb-haskell, fb-cpp, deps
hs-source-dirs: glean/shell
Expand Down Expand Up @@ -1266,6 +1299,10 @@ executable glean
split,
Glob,

if flag(s3-support)
cpp-options: -DENABLE_S3=1
build-depends: glean:db-backup-s3

executable glean-hyperlink
import: fb-haskell, fb-cpp, deps, exe
hs-source-dirs: glean/demo
Expand Down Expand Up @@ -2160,6 +2197,27 @@ test-suite backup
glean:stubs,
glean:util

test-suite backup-s3
import: test
type: exitcode-stdio-1.0
main-is: BackupTestS3.hs
ghc-options: -main-is BackupTestS3
build-depends:
glean:config,
glean:core,
glean:db,
glean:if-glean-hs,
glean:if-internal-hs,
glean:schema,
glean:stubs,
glean:util,
glean:db-backup-s3

if flag(s3-support)
buildable: True
else
buildable: False

test-suite catalog
import: test
type: exitcode-stdio-1.0
Expand Down
Loading
Loading