From 2888dc4e8eb145c9dfa66da880a032a59b727a8b Mon Sep 17 00:00:00 2001 From: Corentin Date: Fri, 11 Jun 2021 05:24:38 +0900 Subject: [PATCH] Ignore App config implemented --- umake.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/umake.py b/umake.py index 5f7db0c..4c598e6 100755 --- a/umake.py +++ b/umake.py @@ -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