lbkit 0.8.0__tar.gz → 0.8.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. {lbkit-0.8.0/lbkit.egg-info → lbkit-0.8.1}/PKG-INFO +1 -1
  2. lbkit-0.8.1/lbkit/__init__.py +2 -0
  3. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/codegen/template/client.c.mako +7 -2
  4. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/codegen/template/client.h.mako +2 -7
  5. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/codegen/template/public.c.mako +22 -10
  6. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/codegen/template/public.h.mako +6 -14
  7. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/codegen/template/server.c.mako +8 -3
  8. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/codegen/template/server.h.mako +2 -7
  9. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/integration/build_manifest.py +10 -4
  10. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/integration/config.py +7 -1
  11. {lbkit-0.8.0 → lbkit-0.8.1/lbkit.egg-info}/PKG-INFO +1 -1
  12. lbkit-0.8.0/lbkit/__init__.py +0 -2
  13. {lbkit-0.8.0 → lbkit-0.8.1}/AUTHORS +0 -0
  14. {lbkit-0.8.0 → lbkit-0.8.1}/LICENSE +0 -0
  15. {lbkit-0.8.0 → lbkit-0.8.1}/MANIFEST.in +0 -0
  16. {lbkit-0.8.0 → lbkit-0.8.1}/README.md +0 -0
  17. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/build_conan_parallel.py +0 -0
  18. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/ci_robot/__init__.py +0 -0
  19. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/ci_robot/gitee.py +0 -0
  20. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/cli.py +0 -0
  21. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/codegen/__init__.py +0 -0
  22. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/codegen/codegen.py +0 -0
  23. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/codegen/ctype_defination.py +0 -0
  24. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/codegen/idf_interface.py +0 -0
  25. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/codegen/renderer.py +0 -0
  26. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/codegen/template/interface.c.mako +0 -0
  27. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/codegen/template/interface.introspect.xml.mako +0 -0
  28. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/component/__init__.py +0 -0
  29. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/component/arg_parser.py +0 -0
  30. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/component/build.py +0 -0
  31. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/component/template/conanbase.mako +0 -0
  32. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/component/template/deploy.mako +0 -0
  33. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/component/test.py +0 -0
  34. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/errors.py +0 -0
  35. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/helper.py +0 -0
  36. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/integration/__init__.py +0 -0
  37. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/integration/build_image.py +0 -0
  38. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/integration/build_prepare.py +0 -0
  39. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/integration/build_rootfs.py +0 -0
  40. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/integration/task.py +0 -0
  41. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/integration/template/conanfile.py.mako +0 -0
  42. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/integration/template/rootfs.py.mako +0 -0
  43. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/lbkit.py +0 -0
  44. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/log.py +0 -0
  45. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/misc.py +0 -0
  46. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/tools.py +0 -0
  47. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/utils/__init__.py +0 -0
  48. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/utils/images/__init__.py +0 -0
  49. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/utils/images/emmc.py +0 -0
  50. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit/utils/version.py +0 -0
  51. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit.egg-info/SOURCES.txt +0 -0
  52. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit.egg-info/dependency_links.txt +0 -0
  53. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit.egg-info/entry_points.txt +0 -0
  54. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit.egg-info/requires.txt +0 -0
  55. {lbkit-0.8.0 → lbkit-0.8.1}/lbkit.egg-info/top_level.txt +0 -0
  56. {lbkit-0.8.0 → lbkit-0.8.1}/setup.cfg +0 -0
  57. {lbkit-0.8.0 → lbkit-0.8.1}/setup.py +0 -0
  58. {lbkit-0.8.0 → lbkit-0.8.1}/test/__init__.py +0 -0
  59. {lbkit-0.8.0 → lbkit-0.8.1}/test/test_codegen.py +0 -0
  60. {lbkit-0.8.0 → lbkit-0.8.1}/test/test_helper.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: lbkit
3
- Version: 0.8.0
3
+ Version: 0.8.1
4
4
  Summary: Tools provided by litebmc.com
5
5
  Home-page: https://www.litebmc.com
6
6
  Author: xuhj@litebmc.com
@@ -0,0 +1,2 @@
1
+
2
+ __version__ = '0.8.1'
@@ -296,9 +296,14 @@ GSList *${class_name}_list(void)
296
296
 
297
297
  % for prop in intf.properties:
298
298
  /* 监听属性${prop.name}变更 */
299
- void ${class_name}_${prop.name}_hook(const ${class_name}_property_hook *hook)
299
+ void ${class_name}_${prop.name}_hook(${class_name}_before_change_hook before, ${class_name}_after_changed_hook after, gpointer user_data)
300
300
  {
301
- lb_impl._prop_hook(&${properties}.${prop.name}, (const LBPropertyHook *)hook);
301
+ LBPropertyHook hook = {
302
+ .before = (lbo_before_change_hook)before,
303
+ .after = (lbo_after_changed_hook)after,
304
+ .user_data = user_data
305
+ };
306
+ lb_impl._prop_hook(&${properties}.${prop.name}, &hook);
302
307
  }
303
308
 
304
309
  % endfor
@@ -118,12 +118,6 @@ typedef void (*${class_name}_after_changed_hook)(${class_name} object, const LBP
118
118
  /* notes: 属性变更前回调,返回-1表示阻止值变更,一般用于值合法性校验,只在被远程操作时才会生效,本地变更值不会回调 */
119
119
  typedef gint (*${class_name}_before_change_hook)(${class_name} object, const LBProperty *prop, GVariant *value, gpointer user_data, GError **error);
120
120
 
121
- /* 属性值变更回调钩子 */
122
- typedef struct {
123
- ${class_name}_after_changed_hook after; /* 属性变更(写入对象数据区后)后回调函数 */
124
- ${class_name}_before_change_hook before; /* 属性变更前回调函数,返回0后继续调用,返回非0时中止,所有before都成功时执行属性变更 */
125
- gpointer user_data;
126
- } ${class_name}_property_hook;
127
121
  /* 查询对象 */
128
122
  ${class_name} ${class_name}_get(const gchar *well_known, const gchar *name);
129
123
  /* 创建对象 */
@@ -165,7 +159,8 @@ void ${class_name}_unlock(${class_name} obj);
165
159
  GSList *${class_name}_list(void);
166
160
  /* 监听属性 */
167
161
  % for prop in intf.properties:
168
- void ${class_name}_${prop.name}_hook(const ${class_name}_property_hook *hook);
162
+ void ${class_name}_${prop.name}_hook(${class_name}_before_change_hook before, ${class_name}_after_changed_hook after,
163
+ gpointer user_data);
169
164
  % endfor
170
165
 
171
166
  static inline void ${class_name}_unref_p(${class_name} obj)
@@ -962,9 +962,20 @@ const ${class_name}_Properties *${class_name}_properties_const(void)
962
962
 
963
963
  % for method in intf.fake_methods:
964
964
  % if not method.is_plugin:
965
+ ## 方法${method.name}的默认实现
966
+ /* 方法${class_name}_${method.name}的默认实现 */
967
+ __weak int ${class_name}_${method.name}(${class_name} object,
968
+ const ${class_name}_${method.name}_Req *req,
969
+ ${class_name}_${method.name}_Rsp **rsp,
970
+ GError **error, gpointer ext_data)
971
+ {
972
+ *error = LbError_MethodNotImplament_new("${method.name}");
973
+ return -1;
974
+ }
975
+
965
976
  ## 方法${method.name}的请求体序列化函数
966
977
  /* ${class_name}_${method.name}_Req请求结构体类型序列化(struct转GVariant)函数 */
967
- GVariant *${class_name}_${method.name}_Req_encode(${class_name}_${method.name}_Req *value)
978
+ static GVariant *${class_name}_${method.name}_Req_encode(${class_name}_${method.name}_Req *value)
968
979
  {
969
980
  static ${class_name}_${method.name}_Req default_val;
970
981
  if (!value) {
@@ -985,7 +996,7 @@ GVariant *${class_name}_${method.name}_Req_encode(${class_name}_${method.name}_R
985
996
 
986
997
  ## 方法${method.name}的请求体反序列化函数
987
998
  /* ${class_name}_${method.name}_Req结构体类型反序列化(GVariant转struct)函数,返回以NULL结束的指针数组 */
988
- ${class_name}_${method.name}_Req *${class_name}_${method.name}_Req_decode(GVariant *in)
999
+ static ${class_name}_${method.name}_Req *${class_name}_${method.name}_Req_decode(GVariant *in)
989
1000
  {
990
1001
  GVariantIter iter;
991
1002
  __attribute__((unused)) GVariant *tmp = NULL;
@@ -1005,11 +1016,11 @@ ${class_name}_${method.name}_Req *${class_name}_${method.name}_Req_decode(GVaria
1005
1016
  % endfor
1006
1017
  return output;
1007
1018
  }
1008
- % endif
1009
1019
 
1020
+ % endif
1010
1021
  ## 方法${method.name}的请求体释放函数
1011
1022
  /* ${class_name}_${method.name}_Req结构体指针释放 */
1012
- void ${class_name}_${method.name}_Req_free(${class_name}_${method.name}_Req **value)
1023
+ static void ${class_name}_${method.name}_Req_free(${class_name}_${method.name}_Req **value)
1013
1024
  {
1014
1025
  if (!value || !(*value)) {
1015
1026
  return;
@@ -1025,7 +1036,7 @@ void ${class_name}_${method.name}_Req_free(${class_name}_${method.name}_Req **va
1025
1036
 
1026
1037
  % if not method.is_plugin:
1027
1038
  /* ${class_name}_${method.name}_Rsp请求结构体类型序列化(struct转GVariant)函数 */
1028
- GVariant *${class_name}_${method.name}_Rsp_encode(${class_name}_${method.name}_Rsp *value)
1039
+ static GVariant *${class_name}_${method.name}_Rsp_encode(${class_name}_${method.name}_Rsp *value)
1029
1040
  {
1030
1041
  static ${class_name}_${method.name}_Rsp default_val;
1031
1042
  if (!value) {
@@ -1046,7 +1057,7 @@ GVariant *${class_name}_${method.name}_Rsp_encode(${class_name}_${method.name}_R
1046
1057
 
1047
1058
  ## 方法${method.name}的响应体反序列化函数
1048
1059
  /* ${class_name}_${method.name}_Rsp结构体类型反序列化(GVariant转struct)函数,返回以NULL结束的指针数组 */
1049
- ${class_name}_${method.name}_Rsp *${class_name}_${method.name}_Rsp_decode(GVariant *in)
1060
+ static ${class_name}_${method.name}_Rsp *${class_name}_${method.name}_Rsp_decode(GVariant *in)
1050
1061
  {
1051
1062
  GVariantIter iter;
1052
1063
  __attribute__((unused)) GVariant *tmp = NULL;
@@ -1066,8 +1077,8 @@ ${class_name}_${method.name}_Rsp *${class_name}_${method.name}_Rsp_decode(GVaria
1066
1077
  % endfor
1067
1078
  return output;
1068
1079
  }
1069
- % endif
1070
1080
 
1081
+ % endif
1071
1082
  ## 方法${method.name}的响应体释放函数
1072
1083
  /* ${class_name}_${method.name}_Rsp结构体指针释放 */
1073
1084
  void ${class_name}_${method.name}_Rsp_free(${class_name}_${method.name}_Rsp **value)
@@ -1098,6 +1109,7 @@ static ${class_name}_Methods _${class_name}_methods =
1098
1109
  .rsp_decode = (lbo_message_decode_handler)${class_name}_${method.name}_Rsp_decode,
1099
1110
  .rsp_encode = (lbo_message_encode_handler)${class_name}_${method.name}_Rsp_encode,
1100
1111
  .rsp_free = (lbo_message_free_handler)${class_name}_${method.name}_Rsp_free,
1112
+ .handler = ${class_name}_${method.name},
1101
1113
  },
1102
1114
  % endfor
1103
1115
  .__reserved__ = {
@@ -1217,7 +1229,7 @@ int ${class_name}_${action.name}_run(${class_name} object${REQ_PARA}${RSP_PARA})
1217
1229
  % for signal in intf.signals:
1218
1230
  ## 方法${method.name}的响应体序列化函数
1219
1231
  /* ${class_name}_${signal.name}_Msg请求结构体类型序列化(struct转GVariant)函数 */
1220
- GVariant *${class_name}_${signal.name}_Msg_encode(${class_name}_${signal.name}_Msg *value)
1232
+ static GVariant *${class_name}_${signal.name}_Msg_encode(${class_name}_${signal.name}_Msg *value)
1221
1233
  {
1222
1234
  static ${class_name}_${signal.name}_Msg default_val;
1223
1235
  if (!value) {
@@ -1238,7 +1250,7 @@ GVariant *${class_name}_${signal.name}_Msg_encode(${class_name}_${signal.name}_M
1238
1250
 
1239
1251
  ## 方法${signal.name}的响应体反序列化函数
1240
1252
  /* ${class_name}_${signal.name}_Msg结构体类型反序列化(GVariant转struct)函数,返回以NULL结束的指针数组 */
1241
- ${class_name}_${signal.name}_Msg *${class_name}_${signal.name}_Msg_decode(GVariant *in)
1253
+ static ${class_name}_${signal.name}_Msg *${class_name}_${signal.name}_Msg_decode(GVariant *in)
1242
1254
  {
1243
1255
  GVariantIter iter;
1244
1256
  __attribute__((unused)) GVariant *tmp = NULL;
@@ -1261,7 +1273,7 @@ ${class_name}_${signal.name}_Msg *${class_name}_${signal.name}_Msg_decode(GVaria
1261
1273
 
1262
1274
  ## 方法${signal.name}的响应体释放函数
1263
1275
  /* ${class_name}_${signal.name}_Msg结构体指针释放 */
1264
- void ${class_name}_${signal.name}_Msg_free(${class_name}_${signal.name}_Msg **value)
1276
+ static void ${class_name}_${signal.name}_Msg_free(${class_name}_${signal.name}_Msg **value)
1265
1277
  {
1266
1278
  if (!value || !(*value)) {
1267
1279
  return;
@@ -217,18 +217,12 @@ typedef struct {
217
217
  % endfor
218
218
  } ${class_name}_${method.name}_Rsp;
219
219
 
220
+ void ${class_name}_${method.name}_Rsp_free(${class_name}_${method.name}_Rsp **value);
221
+
220
222
  % if not method.is_plugin:
221
- typedef int (*${class_name}_${method.name}_Method)(${class_name} object,
222
- const ${class_name}_${method.name}_Req *req,
223
- ${class_name}_${method.name}_Rsp **rsp,
224
- GError **error, gpointer ext_data);
223
+ int ${class_name}_${method.name}(${class_name} object, const ${class_name}_${method.name}_Req *req,
224
+ ${class_name}_${method.name}_Rsp **rsp, GError **error, gpointer ext_data);
225
225
  % endif
226
- GVariant *${class_name}_${method.name}_Req_encode(${class_name}_${method.name}_Req *value);
227
- ${class_name}_${method.name}_Req *${class_name}_${method.name}_Req_decode(GVariant *in);
228
- void ${class_name}_${method.name}_Req_free(${class_name}_${method.name}_Req **value);
229
- GVariant *${class_name}_${method.name}_Rsp_encode(${class_name}_${method.name}_Rsp *value);
230
- ${class_name}_${method.name}_Rsp *${class_name}_${method.name}_Rsp_decode(GVariant *in);
231
- void ${class_name}_${method.name}_Rsp_free(${class_name}_${method.name}_Rsp **value);
232
226
  %endfor
233
227
 
234
228
  /* ${intf.name}的方法集合 */
@@ -244,7 +238,8 @@ typedef struct {
244
238
  lbo_message_decode_handler rsp_decode;
245
239
  lbo_message_encode_handler rsp_encode;
246
240
  lbo_message_free_handler rsp_free;
247
- ${class_name}_${method.name}_Method handler;
241
+ int (*handler)(${class_name} object, const ${class_name}_${method.name}_Req *req,
242
+ ${class_name}_${method.name}_Rsp **rsp, GError **error, gpointer ext_data);
248
243
  } ${method.name};
249
244
  % endfor
250
245
  LBMethod __reserved__;
@@ -280,9 +275,6 @@ typedef struct {
280
275
  % endfor
281
276
  % endfor
282
277
  } ${class_name}_${signal.name}_Msg;
283
- ${class_name}_${signal.name}_Msg *${class_name}_${signal.name}_Msg_decode(GVariant *in);
284
- GVariant *${class_name}_${signal.name}_Msg_encode(${class_name}_${signal.name}_Msg *value);
285
- void ${class_name}_${signal.name}_Msg_free(${class_name}_${signal.name}_Msg **value);
286
278
 
287
279
  %endfor
288
280
  typedef struct {
@@ -585,9 +585,14 @@ GSList *${class_name}_list(void)
585
585
 
586
586
  % for prop in intf.properties:
587
587
  /* 监听属性${prop.name}变更 */
588
- void ${class_name}_${prop.name}_hook(const ${class_name}_property_hook *hook)
589
- {
590
- lb_impl._prop_hook(&${properties}.${prop.name}, (const LBPropertyHook *)hook);
588
+ void ${class_name}_${prop.name}_hook(${class_name}_before_change_hook before, ${class_name}_after_changed_hook after, gpointer user_data)
589
+ {
590
+ LBPropertyHook hook = {
591
+ .before = (lbo_before_change_hook)before,
592
+ .after = (lbo_after_changed_hook)after,
593
+ .user_data = user_data
594
+ };
595
+ lb_impl._prop_hook(&${properties}.${prop.name}, &hook);
591
596
  }
592
597
 
593
598
  % endfor
@@ -64,12 +64,6 @@ typedef void (*${class_name}_after_changed_hook)(${class_name} object, const LBP
64
64
  /* notes: 属性变更前回调,返回-1表示阻止值变更,一般用于值合法性校验,只在被远程操作时才会生效,本地变更值不会回调 */
65
65
  typedef gint (*${class_name}_before_change_hook)(${class_name} object, const LBProperty *prop, GVariant *value, gpointer user_data, GError **error);
66
66
 
67
- /* 属性值变更回调钩子 */
68
- typedef struct {
69
- ${class_name}_after_changed_hook after; /* 属性变更(写入对象数据区后)后回调函数 */
70
- ${class_name}_before_change_hook before; /* 属性变更前回调函数,返回0后继续调用,返回非0时中止,所有before都成功时执行属性变更 */
71
- gpointer user_data;
72
- } ${class_name}_property_hook;
73
67
  /* 查询对象 */
74
68
  ${class_name} ${class_name}_get(const gchar *name);
75
69
  /* 创建对象 */
@@ -114,7 +108,8 @@ void ${class_name}_unlock(${class_name} obj);
114
108
  GSList *${class_name}_list(void);
115
109
  /* 监听属性 */
116
110
  % for prop in intf.properties:
117
- void ${class_name}_${prop.name}_hook(const ${class_name}_property_hook *hook);
111
+ void ${class_name}_${prop.name}_hook(${class_name}_before_change_hook before, ${class_name}_after_changed_hook after,
112
+ gpointer user_data);
118
113
  % endfor
119
114
 
120
115
  static inline void ${class_name}_unref_p(${class_name} obj)
@@ -90,7 +90,7 @@ class BuildManifest(Task):
90
90
  fp.write(conanfile)
91
91
  fp.close()
92
92
 
93
- self.exec("conan create . " + self.common_args)
93
+ self.exec("conan create . " + self.common_args, verbose=True)
94
94
 
95
95
  def build_litebmc(self):
96
96
  """构建产品conan包"""
@@ -112,11 +112,17 @@ class BuildManifest(Task):
112
112
  fp.close()
113
113
 
114
114
  base_cmd = f"{self.common_args} {self.conan_settings}"
115
- lockfile = os.path.join(self.config.temp_path, "conan.lock")
116
115
  threadPool = ThreadPoolExecutor(max_workers=16)
116
+ if self.config.using_lockfile:
117
+ lockfile = os.path.join(self.config.code_path, "conan.lock")
118
+ else:
119
+ lockfile = os.path.join(self.config.temp_path, "conan.lock")
117
120
  # 创建新的conan.lock文件
118
- lock_cmd = f"conan lock create . {base_cmd} --lockfile-out={lockfile}"
119
- self.exec(lock_cmd)
121
+ if not self.config.using_lockfile or self.config.update_lockfile:
122
+ lock_cmd = f"conan lock create . {base_cmd} --lockfile-out={lockfile}"
123
+ self.exec(lock_cmd, verbose=True)
124
+ if not os.path.isfile(lockfile):
125
+ raise FileNotFoundError("lockfile ./conan.lock was not found")
120
126
  with open(lockfile, "r") as fp:
121
127
  lock = json.load(fp)
122
128
  for key in ["requires", "build_requires", "python_requires", "config_requires"]:
@@ -35,6 +35,10 @@ class Config(object):
35
35
  # 编译目标配置项
36
36
  self.profile_host = args.profile
37
37
 
38
+ # conan.lock options
39
+ self.using_lockfile = args.lockfile
40
+ self.update_lockfile = args.update_lockfile
41
+
38
42
  # 设置并创建构建所需目录
39
43
  log.info("Work dir: %s", self.work_dir)
40
44
  self.code_path = os.getcwd()
@@ -59,12 +63,14 @@ class Config(object):
59
63
  def arg_parser():
60
64
  """返回配置项支持的参数"""
61
65
  parser = argparse.ArgumentParser(description="Build LiteBMC")
62
- parser.add_argument("-m", "--manifest", help="Specify the manifest.yml ", default="./manifest.yml")
66
+ parser.add_argument("-m", "--manifest", help="Specify the manifest.yml, ignored when -l is specified.", default="./manifest.yml")
63
67
  parser.add_argument("-s", "--from_source", help="Build from source", action="store_true")
64
68
  parser.add_argument("-pr", "--profile", help="Apply the specified profile to the host machine", default="litebmc.ini")
65
69
  parser.add_argument("-pr:b", "--profile_build", help="Apply the specified profile to the build machine", default="default")
66
70
  parser.add_argument("-t", "--build_type", type=str, choices=['debug', 'release', 'minsize'], help="Set the build type", default="debug")
67
71
  parser.add_argument("-r", "--remote", help="specified conan server", default="litebmc")
72
+ parser.add_argument("-l", "--lockfile", help="using conan.lock", action="store_true")
73
+ parser.add_argument("-ul", "--update_lockfile", help="update conan.lock", action="store_true")
68
74
  return parser
69
75
 
70
76
  def get_manifest_config(self, key: str, default=None):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: lbkit
3
- Version: 0.8.0
3
+ Version: 0.8.1
4
4
  Summary: Tools provided by litebmc.com
5
5
  Home-page: https://www.litebmc.com
6
6
  Author: xuhj@litebmc.com
@@ -1,2 +0,0 @@
1
-
2
- __version__ = '0.8.0'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes