mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-25 22:32:29 +03:00
c8e62ba5e8
* lib: mjs: removed relocation flags * js: fixed api example script * js: private api cleanup * Updated CODEOWNERS & readme for apps
34 lines
710 B
Python
34 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")
|