提交 aff8a0f1 编写于 作者: X xuwei06

Fix enable_virtualenv

The resource "unsigned char[]" array generated by create_source needs to have 0 ending as a valid C string to be used in PythonUtil.cpp initPython()

Change-Id: I5e214606ed9102f37813ea3f07565dc10a9c015e
上级 db379811
......@@ -206,5 +206,5 @@ function(create_resources res_file output)
# Convert hex data for C compatibility
string(REGEX REPLACE "([0-9a-f][0-9a-f])" "0x\\1," filedata ${filedata})
# Append data to output file
file(APPEND ${output} "const unsigned char ${filename}[] = {${filedata}};\nconst unsigned ${filename}_size = sizeof(${filename});\n")
file(APPEND ${output} "const unsigned char ${filename}[] = {${filedata}0};\nconst unsigned ${filename}_size = sizeof(${filename});\n")
endfunction()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册