Files
esp-idf/tools/idf_py_actions/constants.py
T

30 lines
999 B
Python
Raw Normal View History

2020-03-02 16:07:49 +01:00
import collections
import multiprocessing
import os
import platform
2020-03-02 16:07:49 +01:00
GENERATORS = collections.OrderedDict([
# - command: build command line
# - version: version command line
# - dry_run: command to run in dry run mode
# - verbose_flag: verbose flag
('Ninja', {
'command': ['ninja'],
'version': ['ninja', '--version'],
'dry_run': ['ninja', '-n'],
'verbose_flag': '-v'
2020-03-02 16:07:49 +01:00
}),
])
2021-11-09 13:10:56 +01:00
if os.name != 'nt':
MAKE_CMD = 'gmake' if platform.system() == 'FreeBSD' else 'make'
GENERATORS['Unix Makefiles'] = {'command': [MAKE_CMD, '-j', str(multiprocessing.cpu_count() + 2)],
'version': [MAKE_CMD, '--version'],
'dry_run': [MAKE_CMD, '-n'],
'verbose_flag': 'VERBOSE=1'}
URL_TO_DOC = 'https://docs.espressif.com/projects/esp-idf'
2020-01-15 21:50:19 +08:00
SUPPORTED_TARGETS = ['esp32', 'esp32s2', 'esp32c3', 'esp32s3']
2021-09-23 14:30:50 +08:00
PREVIEW_TARGETS = ['linux', 'esp32h2', 'esp8684']