How to consolidate EA code into a single file for compilation?

 
I've been working on an EA, and over time, I've added several libraries that depend on other libraries. Since I was collaborating with another programmer, the code has become quite extensive and difficult to manage. I know it wasn't the best way to organize it, but now I'm wondering if there's an automatic way to consolidate all the necessary code into a single file to compile the EA without relying on external files. Has anyone faced a similar issue or knows of any tools or methods to do this?

 
Enrique Enguix:
I've been working on an EA, and over time, I've added several libraries that depend on other libraries. Since I was collaborating with another programmer, the code has become quite extensive and difficult to manage. I know it wasn't the best way to organize it, but now I'm wondering if there's an automatic way to consolidate all the necessary code into a single file to compile the EA without relying on external files. Has anyone faced a similar issue or knows of any tools or methods to do this?

Why do you want to do that ?

Having all code in one file will certainly not make it easier to manage (unless we have a different view on what 'manage' means).

 
Alain Verleyen #:

Why do you want to do that ?

Having all code in one file will certainly not make it easier to manage (unless we have a different view on what 'manage' means).

Hi Alain

The problem is that there is an overly complex structure of libraries that call each other. My goal is to reorganize them to simplify their structure and then redistribute them more efficiently.
 
Enrique Enguix #:
Hi Alain

The problem is that there is an overly complex structure of libraries that call each other. My goal is to reorganize them to simplify their structure and then redistribute them more efficiently.

Then reorganize them but keep separated files. I am suggesting you to avoid a "all in one" file, you will create new problems.

A ZIP file is easy to create and distribute.

 

See this good tool provided by Stanislav.

MQL5 Program Packer
MQL5 Program Packer
  • www.mql5.com
This is MQL5 project packer: assemble all source and resource files from dependencies into a single ZIP.
 
Alain Verleyen #:

See this good tool provided by Stanislav.

This is what I needed! Thank you so much!