Skip to content

Commit

Permalink
Lib: return mbedtls back
Browse files Browse the repository at this point in the history
  • Loading branch information
skotopes committed Jul 5, 2022
1 parent 8659bd0 commit a76fb4e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ libs = env.BuildModules(
"subghz",
"appframe",
"misc",
"mbedtls",
"loclass",
],
)
Expand Down
3 changes: 0 additions & 3 deletions lib/loclass.scons
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ Import("env")
env.Append(
CPPPATH=[
"#/lib/loclass",
"#/lib/mbedtls",
"#/lib/mbedtls/include",
],
CPPDEFINES=[
],
Expand All @@ -15,7 +13,6 @@ libenv = env.Clone(FW_LIB_NAME="loclass")
libenv.ApplyLibFlags()

sources = Glob("loclass/*.c", source=True)
sources += ["mbedtls/library/des.c", "mbedtls/library/platform_util.c"]

lib = libenv.StaticLibrary("${FW_LIB_NAME}", sources)
libenv.Install("${LIB_DIST_DIR}", lib)
Expand Down
20 changes: 20 additions & 0 deletions lib/mbedtls.scons
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Import("env")

env.Append(
CPPPATH=[
"#/lib/mbedtls",
"#/lib/mbedtls/include",
],
CPPDEFINES=[
],
)


libenv = env.Clone(FW_LIB_NAME="mbedtls")
libenv.ApplyLibFlags()

sources = ["mbedtls/library/des.c", "mbedtls/library/platform_util.c"]

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

0 comments on commit a76fb4e

Please sign in to comment.