代码拉取完成,页面将自动刷新
同步操作将从 become-cool/beshell-component 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
function(embed_file input_file output_file)
file(TIMESTAMP input_file_time ${input_file})
file(TIMESTAMP output_file_time ${output_file})
if(file1_time STRGREATER file2_time)
message("input was modified more recently than output")
endif()
# get_filename_component(varname ${input_file} NAME)
# string(REPLACE "." "_" varname ${varname})
# string(REPLACE "/" "_" varname ${varname})
# string(REPLACE "\\" "_" varname ${varname})
# string(REPLACE ":" "_" varname ${varname})
# add_custom_command(
# OUTPUT ${output_file}
# COMMAND ${CMAKE_COMMAND} -E echo "embed ${input_file} as ${output_file}"
# # COMMAND echo \#pragma once > ${output_file}
# # COMMAND echo >> ${output_file}
# # COMMAND echo -n const char embeded_file_${varname} = R(\\\" >> ${output_file}
# # COMMAND cat ${input_file} >> ${output_file}
# # COMMAND echo -n >> ${output_file}
# # COMMAND echo \\\")\; >> ${output_file}
# DEPENDS ${input_file}
# )
# add_custom_target(target_embed_${varname} ALL DEPENDS ${output_file})
endfunction()
embed_file(${CMAKE_CURRENT_LIST_DIR}/src/module/wifi.js ${CMAKE_CURRENT_LIST_DIR}/src/module/wifi.js.h)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。