Issue with Alias, Install and Dependecies

Remis via Scons-users <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <a0EtUwW0nO0TYvVocvXFaDQetMr1zT_4dhIURmBNCS13cu4ZKZpcg7K8-2Ad1rSVhdzJlXJZFoB84OONujmr--4tIsW0GqxEcvVBfAzMFzc=@pm.me>
Hi all,

I have the following SConstruct file:

"""

AddOption('--prefix', dest='prefix',
                      type='string',
                      default='/usr/local/',
                      nargs=1,
                      action='store',
                      metavar='DIR',
                      help='installation prefix')

.
.
.

prefix = str(GetOption('prefix'))

env.Alias('install-bin', env.Install(os.path.join(prefix, "bin"),
      source="MainProject"))
env.Alias('install-client', env.Install(os.path.join(prefix, "lib"),
      source="client/cpp/libproject-client.so"))
env.Alias('install-utils', env.Install(os.path.join(prefix, "lib"),
      source="utils/libproject-utils.so"))
env.Alias('install', ['install-bin', 'install-client', 'install-utils'])

"""

MainProject and libproject-client.so depend on libproject-utils.so


When I run:

    scons -j64

scons will try to install libproject-utils.so at /usr/local.
This is not what I wanted, as I just want to all the libraries and executables to be install only if I specify "install" when calling scons.


Is this expected behavior? I am guessing that because of the dependency, scons is trying to install the utils library before linking the main executable.

Any help on how to work around this is valuable.

Thanks,
Luis


_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.