NO

Author Topic: Change build/.obj/compiling and executable files folder  (Read 160 times)

Offline niota

  • Member
  • *
  • Posts: 1
Change build/.obj/compiling and executable files folder
« on: July 28, 2019, 11:54:23 pm »
I noticed that when compiling a project, Pelles C creates some files and folder like project_name.ppx, project_name.tag, output/source_file.obj, etc.
Here's an tree view of my project files:
Code: [Select]
bin   /
build /
src   /
      | source_file.c
project_name.ppj

And here's how it looks after I compile it:
Code: [Select]
bin   /
build /
output/
      | source_file.obj
src   /
      | source_file.c
project_name.exe
project_name.ppj
project_name.ppx
project_name.tag

Is there anyway to change these generated files locations, including the resulting .exe, to their specific folders? For example:
Code: [Select]
bin   /
      | project_name.exe
build
      | source_file.obj
      | project_name.ppx
      | project_name.tag
src   /
      | source_file.c
project_name.ppj
I also don't know if this is a good thing to do, if it isn't what can and should I do? Maybe a command line command?
My plan was to reference the build folder inside a .gitignore file, so I don't need to worry about cleaning everytime.
« Last Edit: July 29, 2019, 10:07:04 am by niota »

Offline niota

  • Member
  • *
  • Posts: 1
Re: Change build/.obj/compiling and executable files folder
« Reply #1 on: July 29, 2019, 10:10:56 am »
Okay, I managed to choose the .obj and .exe locations by deleting the project file, and in the "New Project" dialog, click on "Advanced" and choosing the "Output" and "Result" folders.

How about the .ppx and .tag files though? Is it better to keep them there?

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 1857
Re: Change build/.obj/compiling and executable files folder
« Reply #2 on: July 29, 2019, 12:22:42 pm »
Those .ppx and .tag files are always created after deletion, so it's possible to make an Add-In to delete those files when closing project.

I personally like to keep PellesC files inside a sub-folder under a project main folder, so i still wait support for that.
Code: [Select]
\src
 .c
 .h
 .rc
\PellesC
 .ppw
 .ppj
 .ppx
 .tag
May the source be with you