mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 04:53:08 +00:00
c8e62ba5e8
* lib: mjs: removed relocation flags * js: fixed api example script * js: private api cleanup * Updated CODEOWNERS & readme for apps
33 lines
710 B
Python
33 lines
710 B
Python
Import("env")
|
|
|
|
env.Append(
|
|
CPPPATH=[
|
|
"#/lib/mjs",
|
|
],
|
|
SDK_HEADERS=[
|
|
File("mjs_core_public.h"),
|
|
File("mjs_exec_public.h"),
|
|
File("mjs_object_public.h"),
|
|
File("mjs_string_public.h"),
|
|
File("mjs_array_public.h"),
|
|
File("mjs_primitive_public.h"),
|
|
File("mjs_util_public.h"),
|
|
File("mjs_array_buf_public.h"),
|
|
],
|
|
)
|
|
|
|
libenv = env.Clone(FW_LIB_NAME="mjs")
|
|
libenv.ApplyLibFlags()
|
|
|
|
libenv.AppendUnique(
|
|
CCFLAGS=[
|
|
"-Wno-redundant-decls",
|
|
"-Wno-unused-function",
|
|
],
|
|
)
|
|
|
|
sources = libenv.GlobRecursive("*.c*")
|
|
|
|
lib = libenv.StaticLibrary("${FW_LIB_NAME}", sources)
|
|
libenv.Install("${LIB_DIST_DIR}", lib)
|
|
Return("lib")
|