pinweaver: Add initial BUILD.gn

BUG=b:202832425
TEST=Build OK.

Change-Id: Ib75c6f64560d88f529c391dca5d2c37c537bd99a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/pinweaver/+/3223080
Reviewed-by: Andrey Pronin <apronin@chromium.org>
Reviewed-by: Leo Lai <cylai@google.com>
Tested-by: Yi Chou <yich@google.com>
Commit-Queue: Yi Chou <yich@google.com>
diff --git a/BUILD.gn b/BUILD.gn
new file mode 100644
index 0000000..22139c4
--- /dev/null
+++ b/BUILD.gn
@@ -0,0 +1,25 @@
+# Copyright 2021 The Chromium OS 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("//common-mk/pkg_config.gni")
+
+group("all") {
+  deps = [ ":libpinweaver" ]
+}
+
+config("target_defaults") {
+  include_dirs = [
+    ".",
+    "eal/tpm_storage",
+  ]
+}
+
+static_library("libpinweaver") {
+  sources = [ "pinweaver.c" ]
+  configs -= [ "//common-mk:use_thin_archive" ]
+  configs += [
+    "//common-mk:nouse_thin_archive",
+    ":target_defaults",
+  ]
+}