Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » How to set the build path to a specific directory *in the current project*
How to set the build path to a specific directory *in the current project* [message #214645] Mon, 21 April 2008 09:43 Go to next message
Eclipse UserFriend
Originally posted by: 4cs6fcg02.sneakemail.com

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigFD9CDC33B029BCAB670AF96A
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable

Hi all,

I have a project with JNI, which has a custom makefile in a Java=20
package. This works since I have the build directory (under C Build=20
Properties) set to the directory which corresponds to that package.

However, I now branched off a copy of the project to experiment with=20
some new code, and I have to set the build directory anew for the new=20
project from the branch, since it still points to the directory in the=20
project it was branched off from (yes, .cproject and .project are under=20
version control and are thus copied into the branch as well).

So I am looking for a trick to set the build directory to a certain=20
directory *within the same project*.

I tried the following:

${project_name}/src/de/uni_tuebingen/sfb/lichtenstein/binary trees

but this only works if the project itself is selected, since=20
${project_name} gives the project name of the currently selected file.=20
If I am currently working on a file in another project, it will barf=20
that no target for =E2=80=98all=E2=80=99 can be found.

Isn=E2=80=99t there a trick to use variables such that it is possible to =
copy=20
this over to another project and it will work there as well?

Originally, I had

${workspace_loc:/MonaSearch/src/de/uni_tuebingen/sfb/lichten stein/binaryt=
rees}

but this has the explicit reference to the mother project (MonaSearch)=20
hard coded.

I tried combining those, but didn=E2=80=99t manage.

Cheers, H.
--=20
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html


--------------enigFD9CDC33B029BCAB670AF96A
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFIDJoCe+7xMGD3itQRAjHgAJ9Y9tT4ALPMn9i4XTkBremG9lBmKwCf YsVq
G8RvS15Nplg0fnB7eSRYBpY=
=Y/yg
-----END PGP SIGNATURE-----

--------------enigFD9CDC33B029BCAB670AF96A--
Re: How to set the build path to a specific directory *in the current project* [message #214653 is a reply to message #214645] Mon, 21 April 2008 10:15 Go to previous messageGo to next message
Eclipse UserFriend
Try using the CDT macro ${ProjDirPath}

So in your case, the build directory would be:

${ProjDirPath}/src/de/uni_tuebingen/sfb/lichtenstein/binaryt rees

Tracy

"Hendrik Maryns" <4cs6fcg02@sneakemail.com> wrote in message
news:fui5m4$b4c$1@build.eclipse.org...
Re: How to set the build path to a specific directory *in the current project* [message #216771 is a reply to message #214653] Thu, 29 May 2008 05:02 Go to previous message
Eclipse UserFriend
Originally posted by: 4cs6fcg02.sneakemail.com

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig307C55235EC97C64420567DC
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable

Tracy Miranda schreef:
> Try using the CDT macro ${ProjDirPath}
>=20
> So in your case, the build directory would be:
>=20
> ${ProjDirPath}/src/de/uni_tuebingen/sfb/lichtenstein/binaryt rees

That did it, thanks! A shame the variable is not documented. (I made=20
bug 234558.)

H.
--=20
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html


--------------enig307C55235EC97C64420567DC
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFIPnE+e+7xMGD3itQRAjVvAJ0bbAfGpw5FHNdJFd2WijD7W9xHHQCf RH4m
IiDhRqtSrqHBAecUcuhu434=
=1BiQ
-----END PGP SIGNATURE-----

--------------enig307C55235EC97C64420567DC--
Previous Topic:Error launching debugger
Next Topic:Problem debugging with cygwin
Goto Forum:
  


Current Time: Tue Jul 22 15:44:10 EDT 2025

Powered by FUDForum. Page generated in 0.03942 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top