Cross-building support using dependency information
First Claim
1. A method, comprising:
- parsing, by a processing device of a build machine, a source code package received for compilation into a binary source code package for installation by a target machine that is separate from the build machine, the parsing to determine a list of dependency packages utilized to compile the source code package;
for each dependency package in the list of dependency packages;
determining, by the processing device, a type of the dependency package, wherein the type comprises one of a package used for a build process of the source code package or a package used by the target machine; and
associating, by the processing device, the dependency package with an architecture of one of the build machine or the target machine based on the determined type of the dependency package, wherein if the type of the dependency package is a library, then the dependency package is associated with the target machine architecture and if the type of the dependency package is a utility, then the dependency package is associated with the build architecture;
downloading, by the processing device, all dependency packages in a binary form of the build architecture format;
downloading, by the processing device, each dependency package that is associated with the architecture of the target machine in a binary form of the target architecture format; and
compiling the source code package into the binary code package for the target machine utilizing the downloaded dependency packages in the binary form of their associated architecture format.
1 Assignment
0 Petitions
Accused Products
Abstract
A mechanism for cross-building support using dependency information is disclosed. A method of the invention includes parsing a source code package received for compilation into a binary source code package for a target machine, the parsing to determine a list of dependency packages needed to compile the source code package, for each dependency package in the list of dependency packages determining a type of the dependency package and associating an architecture of at least one of a build machine compiling the source code package or the target machine with the dependency package based on a determined type of the dependency package, downloading each dependency package in the list of dependency packages in a binary form of the build architecture format, and downloading each dependency package that is associated with the target machine in a binary form of the target architecture format.
21 Citations
20 Claims
-
1. A method, comprising:
-
parsing, by a processing device of a build machine, a source code package received for compilation into a binary source code package for installation by a target machine that is separate from the build machine, the parsing to determine a list of dependency packages utilized to compile the source code package; for each dependency package in the list of dependency packages; determining, by the processing device, a type of the dependency package, wherein the type comprises one of a package used for a build process of the source code package or a package used by the target machine; and associating, by the processing device, the dependency package with an architecture of one of the build machine or the target machine based on the determined type of the dependency package, wherein if the type of the dependency package is a library, then the dependency package is associated with the target machine architecture and if the type of the dependency package is a utility, then the dependency package is associated with the build architecture; downloading, by the processing device, all dependency packages in a binary form of the build architecture format; downloading, by the processing device, each dependency package that is associated with the architecture of the target machine in a binary form of the target architecture format; and compiling the source code package into the binary code package for the target machine utilizing the downloaded dependency packages in the binary form of their associated architecture format. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A build machine, comprising:
-
a processing device; a memory coupled to the processing device; and a build utility executable from the memory by the processing device, the build utility comprising a cross-build plug-in and the build utility to; parse a source code package received for compilation into a binary source code package for a target machine, the parsing to determine a list of dependency packages needed to compile the source code package; for each dependency package in the list of dependency packages; determine a type of the dependency package, wherein the type comprises one of a package used for a build process of the source code package or a package used by the target machine; and associate the dependency package with an architecture of one of the build machine or the target machine based on the determined type of the dependency package, wherein if the type of the dependency package is a library, then the dependency package is associated with the target machine architecture and if the type of the dependency package is a utility, then the dependency package is associated with the build architecture; download all dependency packages in a binary form of the build architecture format; download each dependency package that is associated with the architecture of the target machine in a binary form of the target architecture format; and compile the source code package into the binary code package for the target machine utilizing the downloaded dependency packages in the binary form of their associated architecture format. - View Dependent Claims (9, 10, 11, 12, 13, 18)
-
-
14. A non-transitory machine-readable storage medium including data that, when accessed by a processing device, cause the processing device to perform operations comprising:
-
parsing, by the processing device, a source code package received for compilation into a binary source code package for a target machine, the parsing to determine a list of dependency packages needed to compile the source code package; for each dependency package in the list of dependency packages; determining, by the processing device, a type of the dependency package, wherein the type comprises one of a package used for a build process of the source code package or a package used by the target machine; and associating, by the processing device, the dependency package with an architecture of one of the build machine or the target machine based on the determined type of the dependency package, wherein if the type of the dependency package is a library, then the dependency package is associated with the target machine architecture and if the type of the dependency package is a utility, then the dependency package is associated with the build architecture; downloading all dependency packages in a binary form of the build architecture format; downloading each dependency package that is associated with the architecture of the target machine in a binary form of the target architecture format; and compiling the source code package into the binary code package for the target machine utilizing the downloaded dependency packages in the binary form of their associated architecture format. - View Dependent Claims (15, 16, 17, 19, 20)
-
Specification