Skip to content

Commit

Permalink
Enable QR code library in C SDK bindings.
Browse files Browse the repository at this point in the history
  • Loading branch information
agrojean-ledger committed Aug 22, 2024
1 parent e18d34f commit 4f7b537
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ledger_secure_sdk_sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,7 @@ impl SDKBuilder {
format!("-I{bsdk}/lib_nbgl/include/").as_str(),
format!("-I{bsdk}/lib_ux_sync/include/").as_str(),
format!("-I{bsdk}/lib_ux_nbgl/").as_str(),
// format!("-I{bsdk}/qrcode/include/").as_str(),
]);
bindings = bindings
.header(
Expand All @@ -556,6 +557,12 @@ impl SDKBuilder {
.to_str()
.unwrap(),
)
.header(
self.bolos_sdk
.join("qrcode/include/qrcodegen.h")
.to_str()
.unwrap(),
)
}
_ => (),
}
Expand Down Expand Up @@ -724,6 +731,7 @@ fn configure_lib_nbgl(command: &mut cc::Build, bolos_sdk: &Path) {
.file(bolos_sdk.join("lib_ux_sync/src/ux_sync.c"))
.file(bolos_sdk.join("lib_bagl/src/bagl_fonts.c"))
.file(bolos_sdk.join("src/os_printf.c"))
.file(bolos_sdk.join("qrcode/src/qrcodegen.c"))
.files(
glob(bolos_sdk.join("lib_nbgl/src/*.c").to_str().unwrap())
.unwrap()
Expand Down
1 change: 1 addition & 0 deletions ledger_secure_sdk_sys/sdk_stax.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#define ST33K1M5
#define HAVE_SPRINTF
#define NBGL_QRCODE
#define HAVE_SE_EINK_DISPLAY
#define SCREEN_SIZE_WALLET
#define HAVE_NBGL
Expand Down

0 comments on commit 4f7b537

Please sign in to comment.