1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-15 06:53:07 +01:00

#100: allow to set custom_config, custom_js, custom_css

This commit is contained in:
wellenvogel
2025-03-05 20:48:29 +01:00
parent 036add6feb
commit 8c035c4ba1
3 changed files with 22 additions and 13 deletions

View File

@@ -465,7 +465,9 @@ def getOption(env,name,toArray=True):
if toArray:
if opt is None:
return []
return opt.split(',')
if isinstance(opt,list):
return opt
return opt.split("\n" if "\n" in opt else ",")
return opt
except:
pass
@@ -488,9 +490,9 @@ def prebuild(env):
if ldf_mode == 'off':
print("##ldf off - own dependency handling")
handleDeps(env)
extraConfigs=getOption(env,'extra_config',toArray=True)
extraJs=getOption(env,'extra_js',toArray=True)
extraCss=getOption(env,'extra_css',toArray=True)
extraConfigs=getOption(env,'custom_config',toArray=True)
extraJs=getOption(env,'custom_js',toArray=True)
extraCss=getOption(env,'custom_css',toArray=True)
userTaskDirs=getUserTaskDirs()
mergedConfig=os.path.join(outPath(),os.path.basename(CFG_FILE))