aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp15
1 files changed, 13 insertions, 2 deletions
diff --git a/Android.bp b/Android.bp
index 355aaaf..7400a27 100644
--- a/Android.bp
+++ b/Android.bp
@@ -76,7 +76,7 @@ cc_defaults {
],
}
-cc_library {
+cc_library_static {
name: "ms-tpm-20-ref-lib",
srcs: [
"TPMCmd/Platform/src/*.c",
@@ -100,6 +100,17 @@ cc_library {
"TPMCmd/tpm/include/Ossl",
"TPMCmd/tpm/include/prototypes",
],
+ target: {
+ windows: {
+ enabled: true,
+ cflags: [
+ "-Wno-unknown-pragmas",
+ ],
+ host_ldlibs: [
+ "-lws2_32",
+ ],
+ },
+ },
defaults: [ "ms-tpm-20-ref-defaults" ],
}
@@ -108,7 +119,7 @@ cc_binary_host {
srcs: [
"TPMCmd/Simulator/src/TPMCmds.c",
],
- shared_libs: [
+ static_libs: [
"ms-tpm-20-ref-lib",
],
defaults: [ "ms-tpm-20-ref-defaults" ],