mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-04-24 07:17:21 +00:00
28 lines
680 B
Python
28 lines
680 B
Python
Import("env")
|
|
|
|
env.Append(
|
|
LINKFLAGS=[
|
|
"-static",
|
|
"-static-libgcc",
|
|
"-static-libstdc++"
|
|
]
|
|
)
|
|
|
|
# Override unused "upload" to execute compiled binary
|
|
from SCons.Script import AlwaysBuild
|
|
AlwaysBuild(env.Alias("build", "$BUILD_DIR/${PROGNAME}", "$BUILD_DIR/${PROGNAME}"))
|
|
|
|
# Add custom target to explorer
|
|
env.AddTarget(
|
|
name = "execute",
|
|
dependencies = "$BUILD_DIR\${PROGNAME}.exe",
|
|
actions = "$BUILD_DIR\${PROGNAME}.exe",
|
|
# actions = 'cmd.exe /C "start cmd.exe /C $BUILD_DIR\${PROGNAME}.exe"',
|
|
title = "Execute",
|
|
description = "Build and execute",
|
|
group="General"
|
|
)
|
|
|
|
#print('=====================================')
|
|
#print(env.Dump())
|