linux_build_extra.py 583 B

12345678910111213141516171819
  1. Import("env", "projenv")
  2. # Override unused "upload" to execute compiled binary
  3. from SCons.Script import AlwaysBuild
  4. AlwaysBuild(env.Alias("build", "$BUILD_DIR/${PROGNAME}", "$BUILD_DIR/${PROGNAME}"))
  5. # Add custom target to explorer
  6. env.AddTarget(
  7. name = "execute",
  8. dependencies = "$BUILD_DIR/${PROGNAME}",
  9. actions = "$BUILD_DIR/${PROGNAME}",
  10. # actions = 'cmd.exe /C "start cmd.exe /C $BUILD_DIR\${PROGNAME}.exe"',
  11. title = "Execute",
  12. description = "Build and execute",
  13. group="General"
  14. )
  15. #print('=====================================')
  16. #print(env.Dump())