Clear Filters
Clear Filters

How do I edit the built path of deploytool?

1 view (last 30 days)
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.

Answers (1)

Prem Ankur
Prem Ankur on 19 Oct 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 Comment
Andreas Prokopiou
Andreas Prokopiou on 22 Oct 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}\..

Sign in to comment.

Categories

Find more on C Shared Library Integration in Help Center and File Exchange

Tags

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!