Background
I tried Scons by creating a basic C ++ project that has two subprojects:
- Prj1 is an exe that depends on Prj2
- Prj2 is a DLL that exports some functions.
You can see the directory structure and contents of my SConstruct and SConscript files here
Problem
The problem I am facing is that in order to create these goals from the command line, I must specify both the relative path to their build directory and their extensions for specific platforms.
For example, to create Prj1 I need to do:
build> scons ../bin/project1.exe
Similarly, to create Prj2 I need to do:
build> scons ../bin/project2.dll
Question
How can I get SCons to create these projects without specifying a relative path extension and platform extension?
Desired:
build> scons project1
build> scons project2
prj1_env.Alias( 'project1', PROG)
prj1_env.Alias( 'project1', os.path.join( BIN_DIR, PROG) )