Browse Source

add:添加IOTAUTH

Dozingfiretruck 3 years ago
parent
commit
2ed0bdaa8d
3 changed files with 8 additions and 0 deletions
  1. 3 0
      app/port/luat_base_air101.c
  2. 2 0
      app/port/luat_conf_bsp.h
  3. 3 0
      xmake.lua

+ 3 - 0
app/port/luat_base_air101.c

@@ -199,6 +199,9 @@ static const luaL_Reg loadedlibs[] = {
 #endif
 #ifdef LUAT_USE_PROTOBUF
   {"protobuf", luaopen_protobuf},
+#endif
+#ifdef LUAT_USE_IOTAUTH
+  {"iotauth", luaopen_iotauth},
 #endif
   {NULL, NULL}
 };

+ 2 - 0
app/port/luat_conf_bsp.h

@@ -52,6 +52,8 @@
 // #define LUAT_USE_DHCP 1
 // #define LUAT_USE_DNS 1
 
+// #define LUAT_USE_IOTAUTH 1
+
 //----------------------------
 // 常用工具库, 按需启用, cjson和pack是强烈推荐启用的
 #define LUAT_USE_CRYPTO  1

+ 3 - 0
xmake.lua

@@ -372,6 +372,9 @@ target("air10x")
     add_includedirs(luatos.."components/common",{public = true})
     add_files(luatos.."components/common/*.c")
 
+    -- iotauth
+    add_files(luatos.."components/iotauth/luat_lib_iotauth.c")
+
     -- -- network
     -- add_includedirs(luatos.."components/network/adapter",{public = true})
     -- add_files(luatos.."components/network/adapter/*.c")