Methods, apparatuses and computer program products for improving productivity for building applications
AssigneeUnited Parcel Service of America, Inc.
InventorMichael Liberant
Life of this patent
Estimating the term…
Abstract
An apparatus is provided for building an application. The apparatus may include at least one memory and at least one processor configured to generate a build of an application in a C Object-Oriented Programming Language. The processor is also configured to generate a unity file including a plurality of source files having references to one or more header files. At least two of the source files include references to a same header file. The processor is also configured to compile the unity file including the plurality of source files to obtain an object file. The processor is also configured to link the object file to generate an executable of the application. Corresponding computer program products and methods are also provided.
Claims20
A method comprising:
- generating a build of an application in an Object-Oriented Programming Language;
- generating a unity file including a plurality of source files comprising references to a plurality of header files, at least two of the plurality of source files comprise references to a same header file;
- in response to receiving an indication to compile, performing a single read of the same header file that the at least two of the plurality of source files make reference to into a storage device;
- compiling, via a processor, the unity file to obtain a single object file;
- based at least on the performing of the single read of the same header file, linking the single object file, obtained from compiling the unity file;
- based on the linking the single object file, generating an executable of the application;
- and
- generating a second build of the application by utilizing the unity file based at least in part on determining that one or more new source files are not added to the unity file or that one or more source files of the plurality of source files are not removed from the unity file in response to receipt of an indication of a selection to generate a minimal unity build.
An apparatus comprising at least one processor and at least one memory including computer program code, the at least one memory and the computer program code configured to, with the at least one processor, cause the apparatus to:
- generate a build of an application in an Object-Oriented Programming Language;
- generate a unity file including a set of source files comprising references to a set of header files, at least two source files of the set of source files comprise references to a same header file, the set of source files being included among a plurality of source files;
- in response to receiving an indication to compile, compile, the unity file to obtain a single object file and exclude all other source files, of the plurality of source files, from being compiled, the compiling includes performing a single read of the same header file that the at least two source files make reference to into a storage device;
- based at least on the performing of the single read of the same header file, link the single object file, obtained from compiling the unity file;
- based on the linking of the single object file, generate an executable of the application;
- and
- subsequent to the generating of the executable, switch a configuration that enables compiling of the set of source files one at a time for another build.
A method comprising:
- generating a build of an application in an Object-Oriented Programming Language;
- generating a unity file including a set of source files comprising references to a set of header files, at least two source files of the set of source files comprise references to a same header file, the set of source files being included among a plurality of source files;
- in response to receiving an indication to compile, compiling, via a processor, the unity file to obtain a single object file and exclude all other source files, of the plurality of source files, from being compiled, the compiling includes performing a single read of the same header file that the at least two source files make reference to into a storage device;
- based at least on the performing of the single read of the same header file, linking the single object file, obtained from compiling the unity file;
- and
- based on the linking of the single object file, generating an executable of the application.
Dependencies are inferred from the claim text.