Skip to content

Commit f53512f

Browse files
committed
Use nbgl shared lib (API_LEVEL_23)
1 parent 6c491e2 commit f53512f

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

ledger_secure_sdk_sys/build.rs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,11 +645,30 @@ fn configure_lib_nbgl(command: &mut cc::Build, c_sdk: &Path) {
645645
.file(c_sdk.join("lib_ux_nbgl/ux.c"))
646646
.file(c_sdk.join("qrcode/src/qrcodegen.c"))
647647
.files(
648-
glob(c_sdk.join("lib_nbgl/src/*.c").to_str().unwrap())
648+
glob(c_sdk.join("lib_nbgl/src/nbgl_layout*.c").to_str().unwrap())
649649
.unwrap()
650650
.map(|x| x.unwrap())
651651
.collect::<Vec<PathBuf>>(),
652652
)
653+
.files(
654+
glob(c_sdk.join("lib_nbgl/src/nbgl_page*.c").to_str().unwrap())
655+
.unwrap()
656+
.map(|x| x.unwrap())
657+
.collect::<Vec<PathBuf>>(),
658+
)
659+
.files(
660+
glob(c_sdk.join("lib_nbgl/src/nbgl_step*.c").to_str().unwrap())
661+
.unwrap()
662+
.map(|x| x.unwrap())
663+
.collect::<Vec<PathBuf>>(),
664+
)
665+
.files(
666+
glob(c_sdk.join("lib_nbgl/src/nbgl_use_case*.c").to_str().unwrap())
667+
.unwrap()
668+
.map(|x| x.unwrap())
669+
.collect::<Vec<PathBuf>>(),
670+
)
671+
.file(c_sdk.join("src/nbgl_stubs.S"))
653672
.include(&glyphs_path)
654673
.file(glyphs_path.join("glyphs.c"));
655674
}

0 commit comments

Comments
 (0)