Skip to content

Commit

Permalink
picopass: sconsify
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Wallace committed Jun 26, 2022
1 parent bdf5462 commit b42362a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions applications/meta/application.fam
Expand Up @@ -37,5 +37,6 @@ App(
"music_player",
"snake_game",
"bt_hid",
"picopass",
],
)
11 changes: 11 additions & 0 deletions applications/picopass/application.fam
@@ -0,0 +1,11 @@
App(
appid="picopass",
name="PicoPass Reader",
apptype=FlipperAppType.PLUGIN,
entry_point="picopass_app",
cdefines=["APP_PICOPASS"],
requires=["gui"],
stack_size=1 * 1024,
icon="A_Plugins_14",
order=30,
)
7 changes: 7 additions & 0 deletions lib/misc.scons
Expand Up @@ -5,6 +5,7 @@ env.Append(
"#/lib/digital_signal",
"#/lib/fnv1a_hash",
"#/lib/heatshrink",
"#/lib/mbedtls/include",
"#/lib/micro-ecc",
"#/lib/nanopb",
"#/lib/nfc_protocols",
Expand All @@ -23,6 +24,7 @@ sources = []

libs_recurse = [
"digital_signal",
"loclass",
"micro-ecc",
"nfc_protocols",
"one_wire",
Expand All @@ -41,6 +43,11 @@ libs_plain = [
for lib in libs_plain:
sources += Glob(lib + "/*.c*", source=True)

# mbedtls
# full lib doesn't build without warnings, but we only use these
sources += ["mbedtls/library/des.c"]
sources += ["mbedtls/library/platform_util.c"]

lib = libenv.StaticLibrary("${FW_LIB_NAME}", sources)
libenv.Install("${LIB_DIST_DIR}", lib)
Return("lib")

0 comments on commit b42362a

Please sign in to comment.