Filter löschen
Filter löschen

How do I edit the built path of deploytool?

1 Ansicht (letzte 30 Tage)
Andreas Prokopiou
Andreas Prokopiou am 15 Okt. 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.

Antworten (1)

Prem Ankur
Prem Ankur am 19 Okt. 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 Kommentar
Andreas Prokopiou
Andreas Prokopiou am 22 Okt. 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}\..

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu C Shared Library Integration finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by