2020-03-02 10:07:49 -05:00
|
|
|
import collections
|
2019-10-03 12:26:44 -04:00
|
|
|
import multiprocessing
|
|
|
|
import os
|
|
|
|
import platform
|
|
|
|
|
2020-03-02 10:07:49 -05:00
|
|
|
GENERATORS = collections.OrderedDict([
|
2019-11-08 10:46:02 -05:00
|
|
|
# - command: build command line
|
|
|
|
# - version: version command line
|
|
|
|
# - dry_run: command to run in dry run mode
|
|
|
|
# - verbose_flag: verbose flag
|
2021-01-25 21:49:01 -05:00
|
|
|
('Ninja', {
|
|
|
|
'command': ['ninja'],
|
|
|
|
'version': ['ninja', '--version'],
|
|
|
|
'dry_run': ['ninja', '-n'],
|
|
|
|
'verbose_flag': '-v'
|
2020-03-02 10:07:49 -05:00
|
|
|
}),
|
|
|
|
])
|
2019-10-03 12:26:44 -04:00
|
|
|
|
2021-11-09 07:10:56 -05: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'}
|
|
|
|
|
2021-06-03 11:14:38 -04:00
|
|
|
URL_TO_DOC = 'https://docs.espressif.com/projects/esp-idf'
|
2020-01-15 08:50:19 -05:00
|
|
|
|
2022-05-04 23:39:13 -04:00
|
|
|
SUPPORTED_TARGETS = ['esp32', 'esp32s2', 'esp32c3', 'esp32s3', 'esp32c2']
|
|
|
|
PREVIEW_TARGETS = ['linux', 'esp32h2']
|