Ignore App config implemented

This commit is contained in:
Corentin 2021-06-11 05:24:38 +09:00
commit 2888dc4e8e

View file

@ -13,6 +13,7 @@ from typing import List
class Config:
CC = 'g++'
APPS = ['app_name']
IGNORE_APPS = []
JOB_COUNT = 1
BIN_DIR = 'bin'
@ -129,6 +130,8 @@ def make(config: Config):
if not os.path.exists(config.BIN_DIR):
os.makedirs(config.BIN_DIR)
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_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