blob: 4768acc73c203d1b6b41ec856901c64ab4b66f7e [file] [log] [blame]
# Copyright 2016 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/package.gni")
visibility = [ "//peridot/*" ]
package("ledger") {
deps = [
"app",
"cobalt:generate_ledger_config",
]
binary = "ledger"
meta = [
{
path = rebase_path("meta/ledger.cmx")
dest = "ledger.cmx"
},
]
resources = [
{
path = rebase_path(
get_label_info("cobalt:generate_ledger_config",
"target_gen_dir") + "/cobalt_config.binproto")
dest = "ledger_cobalt_config.binproto"
},
{
path = rebase_path(
get_label_info("cobalt:generate_ledger_config",
"target_gen_dir") + "/cobalt_config.binproto")
dest = "firebase_auth_cobalt_config.binproto"
},
]
}
package("ledger_tests") {
testonly = true
deps = [
":ledger_unittests",
"tests/e2e_local",
"tests/e2e_sync",
"tests/integration",
"//peridot/bin/cloud_provider_firestore:tests",
"//peridot/public/lib/cloud_provider/validation",
]
tests = [
{
name = "cloud_provider_firestore_unittests"
},
{
name = "cloud_provider_validation_tests"
# This test needs additional configuration and should not run by default.
# Marking it as disabled puts the binary in /system/test/disabled/.
disabled = true
},
{
name = "launch_validation_tests_firestore"
# This test needs additional configuration and should not run by default.
# Marking it as disabled puts the binary in /system/test/disabled/.
disabled = true
},
{
name = "ledger_integration_tests"
},
{
name = "ledger_unittests"
},
{
name = "ledger_e2e_local"
},
{
name = "ledger_e2e_sync"
# This test needs additional configuration and should not run by default.
# Marking it as disabled puts the binary in /system/test/disabled/.
disabled = true
},
]
}
config("ledger_config") {
asmflags = []
cflags = [
# Remove when enabled globally by TO-99.
"-Wunused-lambda-capture",
# Remove when enabled globally by TO-100.
"-Wuser-defined-warnings",
# Warn about unreachable code.
"-Wunreachable-code",
]
ldflags = [
# Use a 1M stack.
"-Wl,-z,stack-size=0x100000",
]
}
executable("ledger_unittests") {
testonly = true
deps = [
"//garnet/public/lib/fxl:fxl_printers",
"//peridot/bin/ledger/app:unittests",
"//peridot/bin/ledger/cache:unittests",
"//peridot/bin/ledger/cloud_sync/impl:unittests",
"//peridot/bin/ledger/coroutine:unittests",
"//peridot/bin/ledger/coroutine/context:unittests",
"//peridot/bin/ledger/encryption/impl:unittests",
"//peridot/bin/ledger/encryption/primitives:unittests",
"//peridot/bin/ledger/environment:unittests",
"//peridot/bin/ledger/filesystem:unittests",
"//peridot/bin/ledger/lock:unittests",
"//peridot/bin/ledger/p2p_provider/impl:unittests",
"//peridot/bin/ledger/p2p_sync/impl:unittests",
"//peridot/bin/ledger/storage/impl:unittests",
"//peridot/bin/ledger/storage/impl/btree:unittests",
"//peridot/bin/ledger/storage/public:unittests",
"//peridot/bin/ledger/storage/testing:unittests",
"//peridot/bin/ledger/testing:unittests",
"//peridot/bin/ledger/testing/netconnector:unittests",
"//third_party/googletest:gtest_main",
]
configs += [ ":ledger_config" ]
}