소스 검색

add: 添加iconv库的关联编译

Wendal Chen 3 년 전
부모
커밋
dafd008a6c
3개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      application/include/luat_conf_bsp.h
  2. 3 0
      application/src/luat_base_air105.c
  3. 1 1
      xmake.lua

+ 1 - 0
application/include/luat_conf_bsp.h

@@ -118,6 +118,7 @@
 // 国密算法 SM2/SM3/SM4
 // #define LUAT_USE_GMSSL 1
 
+// #define LUAT_USE_ICONV 1
 
 //---------------------
 // UI

+ 3 - 0
application/src/luat_base_air105.c

@@ -258,6 +258,9 @@ static const luaL_Reg loadedlibs[] = {
 #endif
 #ifdef LUAT_USE_GMSSL
   {"gmssl",  luaopen_gmssl},              // 国密算法
+#endif
+#ifdef LUAT_USE_ICONV
+  {"iconv", luaopen_iconv},
 #endif
   {NULL, NULL}
 };

+ 1 - 1
xmake.lua

@@ -523,7 +523,7 @@ end
             end
             os.cp("./project/air105/soc_download.exe", "$(buildir)/out/soc_download.exe")
             os.cd("$(buildir)/out")
-            os.run(path7z.." a LuatOS-SoC_"..AIR105_VERSION.."_AIR105.soc info.json bootloader.bin app.bin soc_download.exe")
+            os.run(path7z.." a -mx9 LuatOS-SoC_"..AIR105_VERSION.."_AIR105.soc info.json bootloader.bin app.bin soc_download.exe")
             os.rm("$(buildir)/out/info.json")
             os.rm("$(buildir)/out/soc_download.exe")
         else