Borrar filtros
Borrar filtros

How do I edit the built path of deploytool?

1 visualización (últimos 30 días)
Andreas Prokopiou
Andreas Prokopiou el 15 de Oct. de 2018
Comentada: Andreas Prokopiou el 22 de Oct. de 2018
I use the deploytool programmatically (i.e. without opening the GUI) by using the command
deploytool -package project_name.prj
I modified all the hardcoded paths in the .prj file by replacing the "C:\username\..." with ${PROJECT_ROOT} to enable this command to run on other computers as well.
What I want to do now is to modify the built path. I do not want the path where the .exe files are generated to be in the ${PROJECT_ROOT}, nor do I want a hardcoded path solution so I can execute the command on other computers as well.
More specifically my question is, Is there an equivalent path variable similar to ${PROJECT_ROOT} that controls the built path, e.g. ${BUILT_PATH}? If not, how can I create such a path variable?
Thank you in advance,
A.

Respuestas (1)

Prem Ankur
Prem Ankur el 19 de Oct. de 2018

There are two ways you can go about doing this:

  1. Use a path that is consistent on all machines. This could be a UNC (Windows) or Full network path (Linux)
  2. Use a relative path to {PROJECT_ROOT}. If you are using "deploytool -package projectFile.prj" then in the project file you can use {PROJECT_ROOT}\..\..\path\to\desired\directory

Please note that System environment variables are not available to be used in the paths.

  1 comentario
Andreas Prokopiou
Andreas Prokopiou el 22 de Oct. de 2018
Thank you for your reply.
In my case I want to produce the build files relative to {PROJECT_ROOT} but outside it.
To illustrate with an example I have my code in "project_name\src" and therefore my {PROJECT_ROOT} points there, but I want the build files to be in the "project\build", which is not accessible to {PROJECT_ROOT}\..

Iniciar sesión para comentar.

Categorías

Más información sobre C Shared Library Integration en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by