Ignore App config implemented
This commit is contained in:
parent
1571f570bf
commit
2888dc4e8e
1 changed files with 3 additions and 0 deletions
3
umake.py
3
umake.py
|
|
@ -13,6 +13,7 @@ from typing import List
|
||||||
class Config:
|
class Config:
|
||||||
CC = 'g++'
|
CC = 'g++'
|
||||||
APPS = ['app_name']
|
APPS = ['app_name']
|
||||||
|
IGNORE_APPS = []
|
||||||
JOB_COUNT = 1
|
JOB_COUNT = 1
|
||||||
|
|
||||||
BIN_DIR = 'bin'
|
BIN_DIR = 'bin'
|
||||||
|
|
@ -129,6 +130,8 @@ def make(config: Config):
|
||||||
if not os.path.exists(config.BIN_DIR):
|
if not os.path.exists(config.BIN_DIR):
|
||||||
os.makedirs(config.BIN_DIR)
|
os.makedirs(config.BIN_DIR)
|
||||||
for app_name in config.APPS:
|
for app_name in config.APPS:
|
||||||
|
if 'IGNORE_APPS' in config.__dict__ and app_name in config.IGNORE_APPS:
|
||||||
|
continue
|
||||||
app_path = os.path.join(config.BIN_DIR, app_name)
|
app_path = os.path.join(config.BIN_DIR, app_name)
|
||||||
app_objects = [file_name + '.o' for file_name in config.APPS if file_name != app_name]
|
app_objects = [file_name + '.o' for file_name in config.APPS if file_name != app_name]
|
||||||
object_files = [object_path for _, object_path in compile_list
|
object_files = [object_path for _, object_path in compile_list
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue