When i choose build (from main menu ) project / build MyProject

The result is  that delphi compile the entire units include very basic units
like class,forms etc , why ? i only need to compile all the units that are
in my project (and not the basic/ components units) ?

thank you
Who is Participating?
kretzschmarConnect With a Mentor Commented:
build compiles all sources which are affected,
--> don't forget the dependencies
asiAuthor Commented:
but why it should build the forms,class units that are not in the project - they are only the uses line
>they are only the uses line

which causes that they are also in your project
Your project need   Forms,class and other units . Because your application uses them.
You can Build application without these units. But you will need copy any dll and bpl`s (contains units) near your exe file when you will copy your program to other computer.

To do that you want. On 'Component' menu click to 'Install Packages' there check the chekcbox 'Build with runtime packages'.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.