필터 지우기
필터 지우기

How do I edit the built path of deploytool?

조회 수: 1 (최근 30일)
Andreas Prokopiou
Andreas Prokopiou 2018년 10월 15일
댓글: Andreas Prokopiou 2018년 10월 22일
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.

답변 (1개)

Prem Ankur
Prem Ankur 2018년 10월 19일

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
Andreas Prokopiou
Andreas Prokopiou 2018년 10월 22일
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}\..

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by