Home
last modified time | relevance | path

Searched refs:os (Results 1 – 25 of 51) sorted by relevance

123

/lvgl-latest/scripts/built_in_font/
Dgenerate_all.py3 import os
6 os.system("./built_in_font_gen.py --size 8 -o lv_font_montserrat_8.c --bpp 4")
9 os.system("./built_in_font_gen.py --size 10 -o lv_font_montserrat_10.c --bpp 4")
12 os.system("./built_in_font_gen.py --size 12 -o lv_font_montserrat_12.c --bpp 4")
15 os.system("./built_in_font_gen.py --size 14 -o lv_font_montserrat_14.c --bpp 4")
18 os.system("./built_in_font_gen.py --size 16 -o lv_font_montserrat_16.c --bpp 4")
21 os.system("./built_in_font_gen.py --size 18 -o lv_font_montserrat_18.c --bpp 4")
24 os.system("./built_in_font_gen.py --size 20 -o lv_font_montserrat_20.c --bpp 4")
27 os.system("./built_in_font_gen.py --size 22 -o lv_font_montserrat_22.c --bpp 4")
30 os.system("./built_in_font_gen.py --size 24 -o lv_font_montserrat_24.c --bpp 4")
[all …]
/lvgl-latest/docs/
Dbuild.py175 import os
264 if fixed_tmp_dir and 'LVGL_FIXED_TEMP_DIR' in os.environ:
265 temp_directory = os.environ['LVGL_FIXED_TEMP_DIR']
274 base_path = os.path.abspath(os.path.dirname(__file__))
275 project_path = os.path.abspath(os.path.join(base_path, '..'))
276 examples_path = os.path.join(project_path, 'examples')
277 lvgl_src_path = os.path.join(project_path, 'src')
278 latex_output_path = os.path.join(temp_directory, 'out_latex')
279 pdf_src_file = os.path.join(latex_output_path, 'LVGL.pdf')
280 pdf_dst_file = os.path.join(temp_directory, 'LVGL.pdf')
[all …]
Dconf.py20 import os
23 sys.path.insert(0, os.path.abspath('./_ext'))
141 if "LVGL_URLPATH" not in os.environ:
142 os.environ['LVGL_URLPATH'] = 'master'
144 _branch = os.getenv('LVGL_URLPATH')
154 if "LVGL_GITCOMMIT" not in os.environ:
155 os.environ['LVGL_GITCOMMIT'] = 'master'
157 _git_commit_ref = os.getenv('LVGL_GITCOMMIT')
Dconfig_builder.py10 import os
12 base_path = os.path.dirname(__file__)
13 dst_config = os.path.join(base_path, 'lv_conf.h')
14 src_config = os.path.abspath(os.path.join(
56 if os.path.exists(dst_config):
57 os.remove(dst_config)
Dadd_translation.py2 import os
27 for root, _, filenames in os.walk(dir_path):
30 files.append(os.path.join(root, filename))
46 rst_file = os.path.join(temp_directory, 'index.rst')
Ddoc_builder.py122 import os
200 fle = os.path.join(xml_path, fle + '.xml')
285 self.header_file = os.path.splitext(child.text)[0]
745 self.header_file = os.path.splitext(name)[0]
1175 out_path = os.path.join(api_path, p)
1182 src_path = os.path.join(lvgl_src_path, p)
1188 for file in os.listdir(src_path):
1192 if os.path.isdir(os.path.join(src_path, file)):
1193 folders.append((file, os.path.join(p, file)))
1199 if not os.path.exists(out_path):
[all …]
/lvgl-latest/src/libs/thorvg/rapidjson/
Dencodings.h102 static void Encode(OutputStream& os, unsigned codepoint) { in Encode()
104 os.Put(static_cast<Ch>(codepoint & 0xFF)); in Encode()
106 os.Put(static_cast<Ch>(0xC0 | ((codepoint >> 6) & 0xFF))); in Encode()
107 os.Put(static_cast<Ch>(0x80 | ((codepoint & 0x3F)))); in Encode()
110 os.Put(static_cast<Ch>(0xE0 | ((codepoint >> 12) & 0xFF))); in Encode()
111 os.Put(static_cast<Ch>(0x80 | ((codepoint >> 6) & 0x3F))); in Encode()
112 os.Put(static_cast<Ch>(0x80 | (codepoint & 0x3F))); in Encode()
116 os.Put(static_cast<Ch>(0xF0 | ((codepoint >> 18) & 0xFF))); in Encode()
117 os.Put(static_cast<Ch>(0x80 | ((codepoint >> 12) & 0x3F))); in Encode()
118 os.Put(static_cast<Ch>(0x80 | ((codepoint >> 6) & 0x3F))); in Encode()
[all …]
/lvgl-latest/tests/
Dmain.py8 import os
13 lvgl_test_dir = os.path.dirname(os.path.realpath(__file__))
14 lvgl_script_path = os.path.join(lvgl_test_dir, "../scripts")
17 wayland_dir = os.path.join(lvgl_test_dir, "wayland_protocols")
18 wayland_protocols_dir = os.path.realpath("/usr/share/wayland-protocols")
74 return os.path.join(lvgl_test_dir, get_base_build_dir(options_name))
82 if not os.path.isdir(wayland_dir):
83 os.mkdir(wayland_dir)
86 os.path.join(wayland_protocols_dir, "stable/xdg-shell/xdg-shell.xml"),
87 os.path.join(wayland_dir, "wayland_xdg_shell.h.original"),
[all …]
/lvgl-latest/scripts/gen_json/
Dgen_json.py1 import os
9 base_path = os.path.abspath(os.path.dirname(__file__))
12 project_path = os.path.abspath(os.path.join(base_path, '..', '..'))
13 docs_path = os.path.join(project_path, 'docs')
31 lvgl_src_path = os.path.join(lvgl_path, 'src')
32 temp_lvgl = os.path.join(temp_directory, 'lvgl')
34 os.path.splitext(os.path.split(target_header)[-1])[0]
38 os.mkdir(temp_lvgl)
39 shutil.copytree(lvgl_src_path, os.path.join(temp_lvgl, 'src'))
40 shutil.copyfile(os.path.join(lvgl_path, 'lvgl.h'), os.path.join(temp_lvgl, 'lvgl.h'))
[all …]
Dcreate_fake_lib_c.py1 import os
153 fake_libc_path = os.path.join(temp_dir, 'fake_libc_include')
154 os.mkdir(fake_libc_path)
157 head, tail = os.path.split(file)
158 file = os.path.join(fake_libc_path, file)
159 file_name = os.path.split(file)[-1]
163 pth = os.path.join(fake_libc_path, head)
164 if not os.path.exists(pth):
165 os.mkdir(pth)
Dget_sdl2.py5 import os
12 for file in os.listdir(p):
13 file = os.path.join(p, file)
18 if os.path.isdir(file):
59 sdl_include_path = os.path.split(include_path)[0]
60 if not os.path.exists(os.path.join(sdl_include_path, 'SDL2')):
61 os.rename(include_path, os.path.join(sdl_include_path, 'SDL2'))
66 return os.path.abspath(sdl_include_path), dll_path
/lvgl-latest/env_support/rt-thread/
DSConscript3 import os
17 file_dirs = os.listdir(path)
19 if os.path.splitext(file_dir)[1] in ['.h', '.hpp']:
27 src = src + Glob(os.path.join(lvgl_src_cwd,'*.c'))
28 for root, dirs, files in os.walk(lvgl_src_cwd):
30 current_path = os.path.join(root, dir)
31 …if current_path == os.path.join(lvgl_src_cwd, 'libs', 'thorvg', 'rapidjson', 'msinttypes'): # excl…
33 src = src + Glob(os.path.join(current_path,'*.c')) # add all .c files
41 for root, dirs, files in os.walk(lvgl_src_cwd):
43 current_path = os.path.join(root, dir)
[all …]
/lvgl-latest/tests/gen_json/
Dtest_gen_json.py5 import os
8 BASE_PATH = os.path.abspath(os.path.dirname(__file__))
9 SCRIPT_PATH = os.path.join(
14 OUTPUT_FILE = os.path.join(BASE_PATH, 'lvgl.json')
20 result = os.system(cmd)
28 if not os.path.exists(OUTPUT_FILE):
36 os.remove(OUTPUT_FILE)
/lvgl-latest/scripts/
Dcode-format.py3 import os
47 script_dir = os.path.realpath(__file__)
48 script_dir = os.path.dirname(script_dir)
49 cfg_file = os.path.join(script_dir, 'code-format.cfg')
53 os.system(f'astyle --options={cfg_file} --recursive "{script_dir}/../demos/*.c,*.cpp,*.h"')
57 os.system(f'astyle --options={cfg_file} --recursive "{script_dir}/../examples/*.c,*.cpp,*.h"')
61 os.system(f'astyle --options={cfg_file} --recursive "{script_dir}/../src/*.c,*.cpp,*.h"')
65 os.system(f'astyle --options={cfg_file} --recursive "{script_dir}/../tests/*.c,*.cpp,*.h"')
Dgenerate_lv_conf.py3 import os
7 DIR_SCRIPTS = os.path.dirname(__file__)
8 REPO_ROOT = os.path.join(DIR_SCRIPTS, "..")
9 DIR_CWD = os.getcwd()
39 if os.path.isdir(args.template):
40 args.template = os.path.join(args.template, "lv_conf_template.h")
43 args.config = os.path.join(args.target, "lv_conf.h")
46 args.defaults = os.path.join(args.target, "lv_conf.defaults")
48 if not os.path.exists(args.template):
50 if not os.path.exists(args.config):
[all …]
Drelease_branch_updater.py4 import os
19 …arg_parser.add_argument("--port-urls-path", default=os.path.join(os.path.dirname(__file__), "relea…
20 arg_parser.add_argument("--lvgl-path", default=os.path.join(os.path.dirname(__file__), ".."))
43 assert not os.path.exists(port_clone_tmpdir), "the port clone tmpdir should not exist yet"
151 … subprocess.check_call((sys.executable, os.path.join(lvgl_path, "scripts/generate_lv_conf.py"),
152 … "--defaults", os.path.abspath(os.path.join(port_clone_tmpdir, port_lv_conf_defaults)),
153 … "--config", os.path.abspath(os.path.join(port_clone_tmpdir, port_lv_conf_h)), ))
Dimage_viewer.py5 import os
14 name, ext = os.path.splitext(args.file)
23 if os.name == "posix":
24 os.system(f"open {output}")
Dproperties.py2 import os
35 if os.path.isfile(directory):
39 for root, dirs, files in os.walk(directory):
42 yield os.path.join(root, file)
209 args.directory = os.path.join(os.path.dirname(__file__), "../")
212 args.output = os.path.join(args.directory, "src/widgets/property/")
215 os.makedirs(args.output, exist_ok=True)
Dlv_conf_internal_gen.py7 import os
11 SCRIPT_DIR = os.path.dirname(__file__)
12 LV_CONF_TEMPLATE = os.path.join(SCRIPT_DIR, "..", "lv_conf_template.h")
13 LV_CONF_INTERNAL = os.path.join(SCRIPT_DIR, "..", "src", "lv_conf_internal.h")
/lvgl-latest/tests/micropy_test/
D__init__.py23 import os
58 BASE_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__)))
59 TEST_PATH = os.path.join(BASE_PATH, 'micropy.py')
60 IMG_PATH = os.path.join(BASE_PATH, '../ref_imgs/binding.png')
69 os.environ['MICROPYINSPECT'] = '1'
152 os.chdir(os.path.dirname(__file__))
161 env=os.environ,
163 preexec_fn=os.setsid
167 cls.send(b'cd ' + os.path.dirname(__file__).encode('utf-8') + b'\n')
188 os.killpg(os.getpgid(cls.process.pid), signal.SIGTERM)
[all …]
/lvgl-latest/docs/_ext/
Dlv_example.py1 import os
22 base_path = os.path.dirname(__file__)
23 examples_path = os.path.abspath(os.path.join(base_path, '..', 'examples'))
24 example_path = os.path.join(examples_path, example_path + '.' + language)
62 example_name = os.path.split(example_path)[1]
73 if os.path.exists(c_path):
80 if os.path.exists(py_path):
117 if 'LVGL_GITCOMMIT' in os.environ:
118 git_commit = os.environ['LVGL_GITCOMMIT']
Dlink_roles.py5 import os
41 if "LVGL_URLPATH" not in os.environ:
42 os.environ['LVGL_URLPATH'] = 'master'
43 urlpath = os.getenv('LVGL_URLPATH')+'/'
46 url = '{}.html'.format(os.path.join(return_path, docname))
/lvgl-latest/env_support/rt-thread/squareline/
DSConscript9 file_dirs = os.listdir(path)
11 if os.path.splitext(file_dir)[1] in ['.h', '.hpp']:
16 for root, dirs, files in os.walk(sls_src_cwd):
18 current_path = os.path.join(root, dir)
19 src = src + Glob(os.path.join(current_path,'*.c')) # add all .c files
/lvgl-latest/demos/multilang/assets/fonts/
Dfont2c.py3 import os, sys
26 os.system(cmd)
31 os.system(cmd)
/lvgl-latest/demos/transform/
Dimg2c.py3 import os, sys
12 os.system(c)

123