mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-29 18:48:09 +08:00
improve build scripts
This commit is contained in:
parent
70782e3e2f
commit
a46122c55b
@ -1,4 +1,9 @@
|
|||||||
# 最新动态
|
# 最新动态
|
||||||
|
|
||||||
|
2023/11/1
|
||||||
|
* font\_gen修复会同时打包origin默认字体时的报错信息(感谢高源提供补丁)
|
||||||
|
* str\_gen修复字体内容为空时的报错(感谢高源提供补丁)
|
||||||
|
|
||||||
2023/10/30
|
2023/10/30
|
||||||
* 修复conf\_doc\_dup\_node复制数组的问题(感谢俊杰提供补丁)。
|
* 修复conf\_doc\_dup\_node复制数组的问题(感谢俊杰提供补丁)。
|
||||||
* 增加debugger\_get\_curr\_frame\_index函数(感谢智明提供补丁)
|
* 增加debugger\_get\_curr\_frame\_index函数(感谢智明提供补丁)
|
||||||
|
@ -652,6 +652,8 @@ def gen_res_all_font():
|
|||||||
for f in get_appint_folder(in_files, '.ttf', False):
|
for f in get_appint_folder(in_files, '.ttf', False):
|
||||||
out_files = f[0].replace(INPUT_DIR, join_path(OUTPUT_DIR, 'raw'))
|
out_files = f[0].replace(INPUT_DIR, join_path(OUTPUT_DIR, 'raw'))
|
||||||
out_foler = os.path.dirname(out_files)
|
out_foler = os.path.dirname(out_files)
|
||||||
|
if 'origin' in out_foler:
|
||||||
|
continue
|
||||||
if not os.path.exists(out_foler):
|
if not os.path.exists(out_foler):
|
||||||
make_dirs(out_foler)
|
make_dirs(out_foler)
|
||||||
copy_file(f[0], out_files)
|
copy_file(f[0], out_files)
|
||||||
@ -699,6 +701,8 @@ def gen_res_all_font():
|
|||||||
raw = f[0]
|
raw = f[0]
|
||||||
filename = filename.replace(INPUT_DIR, join_path(OUTPUT_DIR, 'inc'))
|
filename = filename.replace(INPUT_DIR, join_path(OUTPUT_DIR, 'inc'))
|
||||||
inc = filename + '.res'
|
inc = filename + '.res'
|
||||||
|
if "origin" in inc:
|
||||||
|
continue
|
||||||
resgen(raw, inc, THEME, '.res')
|
resgen(raw, inc, THEME, '.res')
|
||||||
|
|
||||||
emit_generate_res_after('font')
|
emit_generate_res_after('font')
|
||||||
|
@ -29,9 +29,11 @@
|
|||||||
ret_t gen_one(const char* input_file, const char* output_file, const char* theme,
|
ret_t gen_one(const char* input_file, const char* output_file, const char* theme,
|
||||||
bool_t output_bin) {
|
bool_t output_bin) {
|
||||||
ret_t ret = RET_OK;
|
ret_t ret = RET_OK;
|
||||||
if (!xml_to_str_gen(input_file, output_file, theme, output_bin)) {
|
if (!exit_if_need_not_update(input_file, output_file)) {
|
||||||
ret = RET_FAIL;
|
if (!xml_to_str_gen(input_file, output_file, theme, output_bin)) {
|
||||||
GEN_ERROR(input_file);
|
ret = RET_FAIL;
|
||||||
|
GEN_ERROR(input_file);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user