From f778af609857a7f5eb3115f66eafb7436dae3bdf Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 12 Apr 2026 15:58:36 +0300 Subject: 52: implement debug menu and fake time controls --- wscript | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'wscript') diff --git a/wscript b/wscript index 5238bc8..6de2123 100644 --- a/wscript +++ b/wscript @@ -3,6 +3,7 @@ # # Feel free to customize this to your needs. # +import os import os.path top = '.' @@ -30,8 +31,14 @@ def build(ctx): binaries = [] cached_env = ctx.env - for platform in ctx.env.TARGET_PLATFORMS: + target_platforms = ctx.env.TARGET_PLATFORMS + if os.environ.get('DEBUG') == '1': + target_platforms = ['basalt'] + + for platform in target_platforms: ctx.env = ctx.all_envs[platform] + if os.environ.get('DEBUG') == '1': + ctx.env.append_value('DEFINES', ['DEBUG']) ctx.set_group(ctx.env.PLATFORM_NAME) app_elf = '{}/pebble-app.elf'.format(ctx.env.BUILD_DIR) ctx.pbl_build(source=ctx.path.ant_glob('src/c/**/*.c'), target=app_elf, bin_type='app') -- cgit v1.2.3