Lines Matching refs:ver
39 def ver_format(ver): argument
40 s = "v" + str(ver[0]) + "." + str(ver[1]) + "." + str(ver[2])
41 if(ver[3] != ""): s = s + "-" + ver[3]
47 ver = [0, 0, 0, ""]
56 if m: ver[0] = m.group(1)
61 if m: ver[1] = m.group(1)
66 if m: ver[2] = m.group(1)
70 print("Version found: " + ver_format(ver))
72 return ver
77 def update_version(ver): argument
78 ver_str = ver_format(ver)
79 ver_num = ver[0] + "." + ver[1] + "." + ver[2]
102 define_set("./lvgl.h", "LVGL_VERSION_MAJOR", str(ver[0]))
103 define_set("./lvgl.h", "LVGL_VERSION_MINOR", str(ver[1]))
104 define_set("./lvgl.h", "LVGL_VERSION_PATCH", str(ver[2]))
105 define_set("./lvgl.h", "LVGL_VERSION_INFO", "\"" + ver[3] + "\"")