aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Krahn <dkrahn@google.com>2023-01-12 09:22:04 +0000
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-01-12 09:22:04 +0000
commit315fa761cfb5e5c31cf24a923a06fe5da5e37f63 (patch)
tree79ca605ea684a1cda0e1b030a137d8fa3c2ed90a
parent825e3beb6c6efcd8c35506d818c18d1e73b9834a (diff)
downloadopen-dice-315fa761cfb5e5c31cf24a923a06fe5da5e37f63.tar.gz
Automated gn style fixups
Change-Id: I00d62fe2ef95e3a6faf8018a13bf7033d2a128b6 Reviewed-on: https://pigweed-review.googlesource.com/c/open-dice/+/126451 Reviewed-by: Andrew Scull <ascull@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Pigweed-Auto-Submit: Darren Krahn <dkrahn@google.com>
-rw-r--r--BUILD.gn60
-rw-r--r--src/android/BUILD.gn16
2 files changed, 24 insertions, 52 deletions
diff --git a/BUILD.gn b/BUILD.gn
index f2c68a9..756bcb8 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -26,16 +26,12 @@ group("default") {
}
pw_source_set("cbor_writer") {
- public = [
- "include/dice/cbor_writer.h",
- ]
+ public = [ "include/dice/cbor_writer.h" ]
sources = [ "src/cbor_writer.c" ]
}
pw_source_set("cbor_reader") {
- public = [
- "include/dice/cbor_reader.h",
- ]
+ public = [ "include/dice/cbor_reader.h" ]
sources = [ "src/cbor_reader.c" ]
}
@@ -50,7 +46,7 @@ pw_static_library("dice_standalone") {
]
sources = [
"src/clear_memory.c",
- "src/dice.c"
+ "src/dice.c",
]
all_dependent_configs = [ ":standalone_ops_config" ]
}
@@ -66,15 +62,13 @@ pw_static_library("dice_with_boringssl_ops") {
]
sources = [
"src/boringssl_cert_op.c",
- "src/boringssl_hash_kdf_ops.c",
"src/boringssl_ed25519_ops.c",
+ "src/boringssl_hash_kdf_ops.c",
"src/clear_memory.c",
"src/dice.c",
"src/utils.c",
]
- deps = [
- "//third_party/boringssl:crypto",
- ]
+ deps = [ "//third_party/boringssl:crypto" ]
all_dependent_configs = [ ":boringssl_ed25519_ops_config" ]
}
@@ -93,9 +87,7 @@ pw_static_library("dice_with_mbedtls_ops") {
"src/mbedtls_ops.c",
"src/utils.c",
]
- deps = [
- "//third_party/mbedtls:mbedcrypto",
- ]
+ deps = [ "//third_party/mbedtls:mbedcrypto" ]
all_dependent_configs = [ ":mbedtls_ops_config" ]
}
@@ -105,8 +97,8 @@ pw_static_library("dice_with_cbor_cert") {
"include/dice/utils.h",
]
sources = [
- "src/boringssl_hash_kdf_ops.c",
"src/boringssl_ed25519_ops.c",
+ "src/boringssl_hash_kdf_ops.c",
"src/cbor_cert_op.c",
"src/clear_memory.c",
"src/dice.c",
@@ -125,16 +117,14 @@ pw_static_library("dice_with_cbor_template_cert") {
"include/dice/utils.h",
]
sources = [
- "src/boringssl_hash_kdf_ops.c",
"src/boringssl_ed25519_ops.c",
+ "src/boringssl_hash_kdf_ops.c",
"src/clear_memory.c",
"src/dice.c",
"src/template_cbor_cert_op.c",
"src/utils.c",
]
- deps = [
- "//third_party/boringssl:crypto",
- ]
+ deps = [ "//third_party/boringssl:crypto" ]
all_dependent_configs = [ ":boringssl_ed25519_ops_config" ]
}
@@ -144,16 +134,14 @@ pw_static_library("dice_with_x509_template_cert") {
"include/dice/utils.h",
]
sources = [
- "src/boringssl_hash_kdf_ops.c",
"src/boringssl_ed25519_ops.c",
+ "src/boringssl_hash_kdf_ops.c",
"src/clear_memory.c",
"src/dice.c",
"src/template_cert_op.c",
"src/utils.c",
]
- deps = [
- "//third_party/boringssl:crypto",
- ]
+ deps = [ "//third_party/boringssl:crypto" ]
all_dependent_configs = [ ":boringssl_ed25519_ops_config" ]
}
@@ -163,30 +151,22 @@ pw_source_set("fuzzer") {
pw_test("cbor_writer_test") {
sources = [ "src/cbor_writer_test.cc" ]
- deps = [
- ":cbor_writer",
- ]
+ deps = [ ":cbor_writer" ]
}
pw_test("cbor_reader_test") {
sources = [ "src/cbor_reader_test.cc" ]
- deps = [
- ":cbor_reader",
- ]
+ deps = [ ":cbor_reader" ]
}
pw_executable("cbor_writer_fuzzer") {
sources = [ "src/cbor_writer_fuzzer.cc" ]
- deps = [
- ":cbor_writer",
- ]
+ deps = [ ":cbor_writer" ]
}
pw_executable("cbor_reader_fuzzer") {
sources = [ "src/cbor_reader_fuzzer.cc" ]
- deps = [
- ":cbor_reader",
- ]
+ deps = [ ":cbor_reader" ]
}
pw_test("dice_test") {
@@ -204,9 +184,9 @@ pw_test("boringssl_ops_test") {
]
deps = [
":dice_with_boringssl_ops",
+ "$dir_pw_string:pw_string",
"//third_party/boringssl:crypto",
"//third_party/cose-c:cose-c",
- "$dir_pw_string:pw_string",
]
}
@@ -224,9 +204,9 @@ pw_test("template_cert_op_test") {
]
deps = [
":dice_with_x509_template_cert",
+ "$dir_pw_string:pw_string",
"//third_party/boringssl:crypto",
"//third_party/cose-c:cose-c",
- "$dir_pw_string:pw_string",
]
}
@@ -244,9 +224,9 @@ pw_test("cbor_cert_op_test") {
]
deps = [
":dice_with_cbor_cert",
+ "$dir_pw_string:pw_string",
"//third_party/boringssl:crypto",
"//third_party/cose-c:cose-c",
- "$dir_pw_string:pw_string",
]
}
@@ -264,9 +244,9 @@ pw_test("template_cbor_cert_op_test") {
]
deps = [
":dice_with_cbor_template_cert",
+ "$dir_pw_string:pw_string",
"//third_party/boringssl:crypto",
"//third_party/cose-c:cose-c",
- "$dir_pw_string:pw_string",
]
}
@@ -284,9 +264,9 @@ pw_test("mbedtls_ops_test") {
]
deps = [
":dice_with_mbedtls_ops",
+ "$dir_pw_string:pw_string",
"//third_party/boringssl:crypto",
"//third_party/cose-c:cose-c",
- "$dir_pw_string:pw_string",
]
}
diff --git a/src/android/BUILD.gn b/src/android/BUILD.gn
index dd8bdbc..f159fbe 100644
--- a/src/android/BUILD.gn
+++ b/src/android/BUILD.gn
@@ -26,19 +26,11 @@ pw_source_set("bcc") {
}
pw_test("bcc_test") {
- sources = [
- "bcc_test.cc",
- ]
- deps = [
- ":bcc",
- ]
+ sources = [ "bcc_test.cc" ]
+ deps = [ ":bcc" ]
}
pw_executable("bcc_fuzzer") {
- sources = [
- "bcc_fuzzer.cc",
- ]
- deps = [
- ":bcc",
- ]
+ sources = [ "bcc_fuzzer.cc" ]
+ deps = [ ":bcc" ]
}