CN108304189A - More mirroring device software compilation methods, device and equipment - Google Patents

More mirroring device software compilation methods, device and equipment Download PDF

Info

Publication number
CN108304189A
CN108304189A CN201610751723.4A CN201610751723A CN108304189A CN 108304189 A CN108304189 A CN 108304189A CN 201610751723 A CN201610751723 A CN 201610751723A CN 108304189 A CN108304189 A CN 108304189A
Authority
CN
China
Prior art keywords
compiling
sub
workspace
source code
configuration file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610751723.4A
Other languages
Chinese (zh)
Other versions
CN108304189B (en
Inventor
章年忠
林茂
罗继列
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201610751723.4A priority Critical patent/CN108304189B/en
Publication of CN108304189A publication Critical patent/CN108304189A/en
Application granted granted Critical
Publication of CN108304189B publication Critical patent/CN108304189B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

A kind of more mirroring device software compilation methods of offer of the embodiment of the present invention, device and equipment.The administrative directory compiled for more mirror images is defined as global work area by the Compilation Method and compiling equipment based on the software architecture of more mirroring device softwares to be compiled, and the administrative directory for single mirror image compiling under global work area is defined as sub- workspace;Create engineering management configuration file, compilation operations configuration file, compiling dependence configuration file;The sub- workspace of operation and control compiles after operation, compiling in operation, compiling before the compiling priority list of source code shared structure, sub- workspace between the workspace parsed based on above-mentioned configuration file, global compiling and the corresponding compiling of sub- workspace compiling, obtains single image file;It is operated after executing the compiling of global compiling, single image file is merged into more image files.Compiling operation executes automatically when invention software compiles, and has good compiling efficiency.

Description

More mirroring device software compilation methods, device and equipment
Technical field
The present invention relates to program control technology fields, and in particular to a kind of more mirroring device software compilation methods, device and Equipment.
Background technology
Existing more mirroring device software compilation methods will based on the functional module framework of more mirroring device software products Compiling mother's engineering of more mirroring device softwares is divided into multiple sub- engineerings of compiling corresponding with function module, to each sub- work of compiling Cheng Zhihang compiles to obtain multiple single image files, then multiple single image files are merged into the big mirror image text for including multiple single mirror images Part completes more mirroring device software translatings.
Existing more mirroring device software compilation methods, exist compiling machine service efficiency it is low, the software translating time length Technical problem seriously constrains software development efficiency.
Invention content
In view of this, the embodiment of the present invention is designed to provide a kind of more mirroring devices with good compiling efficiency Software compilation method, device and equipment, to improve the efficiency of Software Development.
To achieve the goals above, technical solution used in the embodiment of the present invention is as follows:
In a first aspect, an embodiment of the present invention provides a kind of more mirroring device software compilation methods, this method includes:
Based on the software architecture of more mirroring device softwares to be compiled, the administrative directory compiled for more mirror images is defined as entirely The administrative directory for single mirror image compiling under global work area is defined as sub- workspace by office workspace;More mirror images are compiled as Overall situation compiling, single mirror image are compiled as sub- workspace compiling;
Establishment configuration item includes sub- workspace title, source code is actively shared, shares the sub- workspace title of mandate, source code The engineering management configuration file of specified path;
It is operated after operation, compiling in operation, compiling before the compiling of the global compiling of definition and the compiling of sub- workspace;Create configuration It include the compilation operations configuration file that operates after operation, compiling in operation, compiling before compiling;
It includes sub- workspace title, the configuration of the compiling dependence for other the sub- workspace titles being relied on to create configuration item File;
The source code shared structure between sub- workspace is created based on parsing engineering management configuration file;It is compiled based on parsing Dependence configuration file generates the compiling priority list of sub- workspace;The overall situation is obtained based on parsing compilation operations configuration file Compiling and sub- workspace operate before compiling corresponding compiling, are operated after operation, compiling in compiling;
Source code is downloaded in the shared sub- workspace authorized other than sub- workspace by source code specified path, based on son work Source code shared structure between area is shared and sub- workspace is authorized to obtain source code from the sub- workspace that source code is actively shared;
Compiling priority list and sub- workspace based on sub- workspace are operated before compiling corresponding compiling, are grasped in compiling Make, the sub- workspace compiling of operation progress after compiling, obtains single image file;
It is operated after executing the compiling of global compiling, single image file is merged into more image files.
Second aspect, the embodiment of the present invention additionally provide a kind of more mirroring device software translating devices, the compilation device packet It includes:
Workspace setting unit is compiled, the software architecture based on more mirroring device softwares to be compiled is used for, more mirrors will be used for The administrative directory of picture compiling is defined as global work area, by the administrative directory definition for single mirror image compiling under global work area For sub- workspace;More mirror images are compiled as global compiling, and single mirror image is compiled as sub- workspace compiling;
Engineering management configuration file creating unit includes that sub- workspace title, source code are actively total to for creating configuration item It enjoys, the engineering management configuration file of the sub- workspace title of shared mandate, source code specified path;
Compilation operations configuration file creating unit, for being operated before defining the compiling of global compiling and the compiling of sub- workspace, It operates in compiling, operated after compiling;It includes that the compiling operated after operation, compiling in the preceding operation of compiling, compiling is grasped to create configuration item Make configuration file;
Dependence configuration file creating unit is compiled, for creating configuration item includes sub- workspace title, be relied on The compiling dependence configuration file of other sub- workspace titles;
Configuration file resolution unit, including source code shared structure creating unit, source code shared structure creating unit, volume Translate operation acquiring unit;Wherein,
Source code shared structure creating unit, for being created between sub- workspace based on parsing engineering management configuration file Source code shared structure;
Priority list generation unit is compiled, for generating sub- workspace based on parsing compiling dependence configuration file Compile priority list;
Compilation operations acquiring unit, for being based on, parsing compilation operations configuration file obtains global compiling and sub- workspace is compiled It translates operation before corresponding compiling, operated after operation, compiling in compiling;
Source code, which is downloaded, shares execution unit, authorizes the sub- workspace other than sub- workspace to refer to by source code for shared Determine path and download source code, based on the source code shared structure between sub- workspace, shares and authorize sub- workspace from source code master It moves shared sub- workspace and obtains source code;
Single mirror image Complied executing unit, for compiling priority list and sub- workspace compiling correspondence based on sub- workspace Compiling before operation carries out sub- workspace compiling after operation, compiling in operation, compiling, obtain single image file;
Single image file is merged into more by more mirror image Complied executing units for being operated after executing the compiling of global compiling Image file.
The third aspect, the embodiment of the present invention additionally provide a kind of compiling equipment comprising above-mentioned more mirroring device softwares are compiled Translate device.
More mirroring device software compilation methods, device and equipment provided in an embodiment of the present invention, using global work area as base Plinth manages the global compiling of more mirroring device softwares, and single mirror image that more mirroring device softwares are managed based on sub- workspace is compiled It translates, on this basis with the source code shared structure between sub- workspace, under the automation and source code of realizing Source code management The high efficiency of load, on this basis the compiling priority list based on sub- workspace carry out the automation system of each sub- workspace compiling Scheduling is raised, is operated before compiling corresponding compiling based on sub- workspace, the sub- workspace compiling of operation progress after operation, compiling in compiling Process automatically control, to realize the automatic pool execution of sub- workspace compiling.
Compared with using existing more mirroring device software compilation methods of a large amount of manual interventions, first embodiment of the invention carries The more mirroring device software compilation methods supplied realize that Source code management automation, compilation process automatically control, and each sub- workspace is compiled It translates automation and plans as a whole scheduling.The involved sub- workspace compiling of compiling is more, can realize that the shared sub- workspace of source code is got over More, the promotion of source code download efficiency is bigger, and the improved efficiency of sub- workspace compiling is also bigger.
In this way, more mirroring device software compilation methods that first embodiment of the invention provides, have higher compiling machine Utilization rate, good compiling efficiency substantially shorten the whole compilation time of more mirroring softwares.Meanwhile the volume based on configuration file Process management is translated, operation is more intuitive, is easy to learning and mastering.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate Appended attached drawing, is described in detail below.
Description of the drawings
Fig. 1 is that the embodiment of the present invention provides a kind of flow chart of more mirroring device software compilation methods.
Fig. 2 is the relation schematic diagram of global work area and sub- workspace.
Fig. 3 is the structural schematic diagram of the more mirroring device software translating devices of the embodiment of the present invention.
Fig. 4 is the knot of the compilation operations configuration file creating unit of the more mirroring device software translating devices of the embodiment of the present invention Structure schematic diagram.
Fig. 5 is the structural representation of the configuration file resolution unit of the more mirroring device software translating devices of the embodiment of the present invention Figure.
Specific implementation mode
Existing more mirroring device software compilation methods will based on the functional module framework of more mirroring device software products Compiling mother's engineering of more mirroring device softwares is divided into multiple sub- engineerings of compiling corresponding with function module, to each sub- work of compiling Cheng Zhihang compiles to obtain multiple single image files, then multiple single image files are merged into the big mirror image text for including multiple single mirror images Part.There is the technical problem for compiling that machine service efficiency is low, and the software translating time is grown in it.
Term " mirror image " refers to that software source code obtains after source code download, compilation of source code, compiling result are packaged filing The filing APMB package arrived.Wherein, during software translating, the filing APMB package that a sub- engineering compiling of compiling obtains is single mirror image File, it is more image files to compile the corresponding filing APMB package comprising multiple single image files of female engineering.
Term " more mirroring devices " refers to needing multiple single image files that could realize that driving hardware starts operation completely Equipment.Correspondingly, single mirroring device refers to only needing a single image file to can be achieved with driving hardware to start setting for operation completely It is standby
Inventor has found under study for action, existing more mirroring device software compilation methods, in more mirroring device software translatings When, why there is the technical problem for compiling that machine service efficiency is low, and the software translating time is grown, not merely due to more mirror images The framework that device software compiles engineering is more complicated, and compiling quantities is big, and real causes is that existing more mirroring device softwares are compiled Translate method, during more mirroring device software translatings, manual intervention degree is excessively high, seriously affects software translating efficiency.Specific body Now, it on compiling Source code management, needs the source code collection of software product being divided into multiple sub- works of compiling by manual type The corresponding source code subset of journey, between multiple source code subsets independently of each other, if the source code hair of a source code subset Raw modification, needs to synchronize the source code of multiple source code subsets by manual synchronization's mode;In compilation process management, It needs to start each compiling for compiling sub- engineering by manual type, and hand inspection is carried out to compiling end state;In more mirror images In terms of document creation, need that multiple single image files are merged into the big mirror image text for including multiple single mirror images using manual type Part.
Inventor has found under study for action, existing more mirroring device software compilation methods during software translating, institute To carry out a large amount of manual intervention, compiling quality just can guarantee using a large amount of manual intervention not due to only having, it is true former Because being, engineering framework is compiled used by existing more mirroring device software compilation methods, respectively compiles source code between sub- engineering Management can not share source code independently of each other, and relevance is not present in compilation operations independently of each other between respectively compiling sub- engineering, can only Compiler task is arranged using manual type.
Theoretically, as long as being realized between compiling the corresponding source code subset of sub- engineering shared, so that it may to software source generation Code is managed automatically, as long as to the female engineering of compiling and compiling sub- engineering and being compiled Operation Definition, allow the female engineering of compiling with respectively It compiles between sub- engineering, respectively compile and generate association between sub- engineering, so that it may each sub- engineering of compiling be carried out automatic excellent in sequential First grade sequence, as long as carrying out dependence definition to each compilation operations, so that it may the execution to each sub- engineering of compiling and the female work of compiling The execution of journey is arranged automatically.
Inventor is based on above-mentioned cognition, provides a kind of more mirroring device software compilation methods, device and equipment.The compiling side Method and compiling equipment are determined the administrative directory compiled for more mirror images based on the software architecture of more mirroring device softwares to be compiled Justice is global work area, and the administrative directory for single mirror image compiling under global work area is defined as sub- workspace;More mirror images It is compiled as global compiling, single mirror image is compiled as sub- workspace compiling;Create engineering management configuration file, compilation operations configuration text Part, compiling dependence configuration file;Source code shared structure between the workspace parsed based on above-mentioned configuration file, Compiling priority list, overall situation compiling and the sub- workspace of sub- workspace operate before compiling corresponding compiling, operate, compile in compiling Operation automatically controls sub- workspace compiling after translating, and obtains single image file, and is operated after the automatic compiling for executing global compiling, will Single image file is merged into more image files.
Below in conjunction with practical application, with reference to attached drawing of the embodiment of the present invention, technical solution in the embodiment of the present invention into Row clearly and completely describes, it is clear that described embodiment, an only part for the embodiment of the present invention, rather than all.
First embodiment
The first embodiment is by taking more mirroring device software translatings as an example, to more mirroring device software translating sides of the present invention Method illustrates.
Fig. 1 is that the case where embodiment of the present invention is directed to more mirroring device software translatings provides a kind of more mirroring device software volumes Translate the flow chart of method.The Compilation Method will be used for according to the function structure of more mirroring device softwares and the needs of software translating The administrative directory of more mirror image compilings is defined as global work area, by the administrative directory for single mirror image compiling under global work area It is defined as sub- workspace;And it creates corresponding configuration file and is respectively used to the automatic management of software source code, each sub- workspace volume Being ranked for priority is translated, the global compiling of realization is automatically controlled with sub- workspace compilation process.
It should be noted that more mirroring device software compilation methods that first embodiment of the invention provides are not limited to more Mirroring device software is compiled, and is also applied for being compiled single mirroring device software.
Referring now to Fig. 1, this method includes:
S110 is determined the administrative directory compiled for more mirror images based on the software architecture of more mirroring device softwares to be compiled Justice is global work area, and the administrative directory for single mirror image compiling under global work area is defined as sub- workspace;More mirror images It is compiled as global compiling, single mirror image is compiled as sub- workspace compiling;
In the first embodiment of the invention, global work area is the administrative directory compiled for more mirror images, correspondingly, more mirrors Compiling as being compiled as global work area, referred to as global compiling, obtains more image files;Sub- workspace under global work area is For the administrative directory of single mirror image compiling, correspondingly, single mirror image is compiled as the compiling of sub- workspace, referred to as sub- workspace compiling, Obtain single image file;When compilation of source code, every sub- workspace compiling has corresponding predetermined compiling instruction set, two sub- works Make since there are difference for predetermined compiling instruction set between area, even if the source code used is the same, the single image files of two obtained It also can be different.
Fig. 2 is the relation schematic diagram of global work area and sub- workspace.
Shown in Fig. 2, using the administrative directory compiled for more mirror images as global work area 900, into global work Make area 900, according to single image file quantity that more mirroring device softwares to be compiled need, determines sub- workspace 910, each Sub- workspace 910 corresponds to a single mirror image compiling.
Shown in Fig. 1
S120, create configuration item include sub- workspace title, source code it is actively shared, it is shared authorize sub- workspace title, The engineering management configuration file of source code specified path;
In the first embodiment of the invention, the sub- workspace in engineering management configuration file is entitled specified to sub- workspace Title;Source code is actively shared, for specifying whether sub- workspace for other sub- workspaces provides source code shared service, such as The entitled sky in the sub- workspace of shared mandate under the title of fruit workspace, then the sub- workspace do not carried to other sub- workspaces Supply source code sharing;It is shared to authorize sub- workspace title, refer to that source code is shared in the sub- workspace actively shared with source code Sub- workspace title;Source code specified path refers to the road that the shared sub- workspace authorized other than sub- workspace obtains source code Diameter.
In the first embodiment of the invention, the filename of engineering management configuration file can be taken as hierarchy.cfg.
The source code relationship of each sub- operation interval is configured using engineering management configuration file, so that source code is actively total The sub- workspace enjoyed can download source code by source code specified path, and authorize sub- workspace to provide for compiling to be shared Source code.On the one hand the download efficiency of source code in compilation process can be improved;On the other hand in case of source code modification Modified source code only need to be downloaded to corresponding sub- work by situation from the corresponding source code specified path of modification source code Area, so that it may realize effective update of source code.
Step S110 and step 120 combine, so that it may more mirroring device softwares are managed based on global work area Overall situation compiling manages the sub- workspace compiling of more mirroring device softwares based on sub- workspace;At the same time it can also realize source generation Code automatically updates.
It operates before the compiling of S130, the global compiling of definition and the compiling of sub- workspace, operated after operation, compiling in compiling;Wound It includes the compilation operations configuration file operated after operation, compiling in the preceding operation of compiling, compiling to build configuration item;
In the first embodiment of the invention, operation before compiling, for needing operation to be performed before specified compiling;It is grasped in compiling Make, operation to be performed is needed in compilation process for specifying;It is operated after compiling, for needing operation to be performed after specified compiling. It is operated before compiling in compilation operations configuration file, operative configuration item adds under overall situation compiling item after operation, compiling in compiling And/or under sub- workspace compiling item.
In the first embodiment of the invention, the filename of compilation operations configuration file can be taken as action.cfg.
The Complied executing process of global compiling and the compiling of sub- workspace is configured using compilation operations configuration file, so that Process management can be carried out to Complied executing process.
S140 creates the compiling that configuration item includes sub- workspace title, other the sub- workspace titles being relied on and relies on pass It is configuration file;
In the first embodiment of the invention, the sub- workspace compiled in dependence configuration file is entitled to sub- workspace Specified title;Other sub- workspace titles being relied on, for specifying whether the compiling of sub- workspace relies on other sub- work The compiling in area, if not depending on, the entitled sky in the sub- workspace of other being relied under the sub- workspace title.
In the first embodiment of the invention, the filename for compiling dependence configuration file can be taken as build.cfg.
The compiling priority that sub- workspace compiling is configured using compiling dependence configuration file, so that can be to each son The concertedness of workspace compiling carries out management and control.
S150 creates the source code shared structure between sub- workspace based on parsing engineering management configuration file;Based on solution Analysis compiling dependence configuration file generates the compiling priority list of sub- workspace;It is obtained based on parsing compilation operations configuration file It is operated after operation, compiling in operation, compiling before compiling corresponding compiling to overall situation compiling and sub- workspace;
In the first embodiment of the invention,
Include based on the step of engineering management configuration file creates the source code shared structure between sub- workspace is parsed:
Engineering management configuration file is parsed, the sub- workspace that source code is actively shared is obtained, it is actively shared based on source code Sub- workspace and shared the shared relationship of sub- workspace and source code specified path is authorized to create the source generation between sub- workspace Code shared structure;Wherein, the sub- workspace that source code is actively shared is the sub- workspace for needing to download source code.
Compiling the step of dependence configuration file generates the compiling priority list of sub- workspace based on parsing includes:
Parsing compiling dependence configuration file, formerly compiles, the sub- workspace of dependence according to the sub- workspace being relied on In rear compiling, the compiling priority of each sub- workspace is determined, the compiling priority based on each sub- workspace generates sub- workspace Compile priority list;Wherein, each sub- workspace in the same compiling priority in the compiling priority list of sub- workspace It arranges to be parallel compilation.
Global compiling is obtained based on parsing compilation operations configuration file and sub- workspace compiles operation before corresponding compiling, compiles Translate operation, compiling after operate the step of include:
Compilation operations configuration file is parsed, the volume of global compiling is obtained under the global compiling item of compilation operations configuration file It translates in preceding operation, compiling and is operated after operation, compiling;It is compiled from the sub- workspace of compilation operations configuration file and obtains sub- work under item It is operated after operation, compiling in operation, compiling before the compiling of area's compiling.
First embodiment of the invention creates the source code shared structure between sub- workspace, to make son before Complied executing It realizes that source code is shared between workspace to be possibly realized;The compiling priority list for generating sub- workspace, to make in sub- work Realize that the automation of each sub- workspace compiling is planned as a whole scheduling and is possibly realized in area's compilation process;Obtain the compiling of sub- workspace compiling It is operated after operation, compiling in preceding operation, compiling, process is carried out to each compilation phase to make to realize in entire compilation process Control is possibly realized.
S160 shares and the sub- workspace other than sub- workspace is authorized to download source code by source code specified path, is based on Source code shared structure between sub- workspace is shared and sub- workspace is authorized to obtain source from the sub- workspace that source code is actively shared Code;
In the first embodiment of the invention, sharing authorizes the sub- workspace other than sub- workspace to pass through source code specified path Download source code is parallel downloading source code, and which can improve the download efficiency of source code.It is shared to authorize sub- workspace from source The sub- workspace that code is actively shared obtains source code, on the one hand can improve the download efficiency of source code, on the other hand may be used also To improve the automatic management of source code.
More mirroring device software compilation methods that first embodiment of the invention provides, the compiling of involved sub- workspace are got over It is more, it can realize that the shared sub- workspace of source code is more, the promotion of source code download efficiency is bigger.
S170, compiling priority list and sub- workspace based on sub- workspace compile operation, compiling before corresponding compiling Operation carries out sub- workspace compiling after middle operation, compiling, obtains single image file;
In the first embodiment of the invention, the compiling priority list based on sub- workspace and the compiling of sub- workspace are corresponding Operating the step of carrying out sub- workspace compiling after operation, compiling in the preceding operation of compiling, compiling includes:
Sub- workspace compiling is carried out according to the priority orders of the compiling priority list of sub- workspace, same priority Each sub- workspace parallel compilation;Wherein, it when every sub- workspace compiling, executes successively and operates and compile in the preceding operation of compiling, compiling It is operated after translating.
More mirroring device software compilation methods that first embodiment of the invention provides, the compiling priority based on sub- workspace Scheduling is planned as a whole in the automation that list carries out each sub- workspace compiling, based on operation, compiling before the corresponding compiling of sub- workspace compiling The process of the sub- workspace compiling of operation progress automatically controls after middle operation, compiling, to realize the automatic system of sub- workspace compiling Raise execution.When software translating, the compiling of involved sub- workspace is more, and the improved efficiency of sub- workspace compiling is bigger.
S180 operates after executing the compiling of global compiling, single image file is merged into more image files.
In the first embodiment of the invention, it after the completion of all sub- workspaces compile, is grasped after executing the compiling of global compiling Make, multiple single image files that sub- workspace compiles are merged into a big image file for including multiple single mirror images.
It should be noted that more mirroring device software compilation methods that first embodiment of the invention provides, in sub- workspace For one when, be for single mirroring device software translating;It is to be used for more mirroring devices when sub- workspace is at least two Software translating.
Second embodiment
The second embodiment provides the compiling that a kind of more mirroring device software translating devices and the compilation device are applied to Equipment.The compiling equipment can be the application environment of preceding method embodiment, can also only be the application of preceding method embodiment A part for environment.
More mirroring device software translating devices that second embodiment of the invention provides, technical concept, realization principle, generation Technique effect, the technical issues of capable of solving it is identical with preceding method embodiment, those skilled in the art can refer to this The specific descriptions of corresponding method step in invention preceding method embodiment understand more mirror images that second embodiment of the invention provides Device software compilation device.
Equipment is compiled, any one reality of more mirroring device software translating devices of second embodiment of the invention offer is provided Applying method.The compiling equipment can be compiling computer, such as compiler server, can also be compiling computer system, such as Distributed compilation computer system including main compiling computer and from compiling computer, can also be compiling cloud computing platform.
Fig. 3 is the structural schematic diagram of the more mirroring device software translating devices of the embodiment of the present invention.The device sets more mirror images Standby software or single mirroring device software translating process carry out control management.
Shown in Fig. 3, which includes compiling workspace setting unit 810, engineering management configuration file establishment list Member 820, compilation operations configuration file creating unit 830, compiling dependence configuration file creating unit 840, configuration file solution Analyse unit 850, source code is downloaded and shares execution unit 860, single mirror image Complied executing unit 870, more mirror image Complied executing units 880;Wherein,
Workspace setting unit 810 is compiled, the software architecture based on more mirroring device softwares to be compiled is used for, will be used for more The administrative directory of mirror image compiling is defined as global work area, and the administrative directory for single mirror image compiling under global work area is determined Justice is sub- workspace;More mirror images are compiled as global compiling, and single mirror image is compiled as sub- workspace compiling;
Engineering management configuration file creating unit 820 includes sub- workspace title, source code active for creating configuration item It shares, the engineering management configuration file of the sub- workspace title of shared mandate, source code specified path;
Compilation operations configuration file creating unit 830, for being grasped before defining the compiling of global compiling and the compiling of sub- workspace Make, operated after operation, compiling in compiling;It includes the compiling operated after operation, compiling in the preceding operation of compiling, compiling to create configuration item Operative configuration file;
Dependence configuration file creating unit 840 is compiled, for creating configuration item includes sub- workspace title, be relied on Other sub- workspace titles compiling dependence configuration file;
Configuration file resolution unit 850, for engineering management configuration file, compiling dependence configuration file, compiling Operative configuration file is parsed;
Source code, which is downloaded, shares execution unit 860, authorizes the sub- workspace other than sub- workspace to pass through source generation for shared Code specified path downloads source code, based on the source code shared structure between sub- workspace, shares and authorizes sub- workspace from source generation The sub- workspace that code is actively shared obtains source code;
Single mirror image Complied executing unit 870 is used for the compiling priority list based on sub- workspace and the compiling of sub- workspace The sub- workspace compiling of operation progress after operation, compiling in operation, compiling, obtains single image file before corresponding compiling;
Single image file is merged by more mirror image Complied executing units 880 for being operated after executing the compiling of global compiling More image files.
In second embodiment of the invention, single mirror image Complied executing unit 870 is specifically used for the compiling according to sub- workspace The priority orders of priority list carry out sub- workspace compiling, each sub- workspace parallel compilation of same priority;Wherein, often When a sub- workspace compiling, executes operated after operating and compile in operation, compiling before compiling successively.
Fig. 4 is the knot of the compilation operations configuration file creating unit of the more mirroring device software translating devices of the embodiment of the present invention Structure schematic diagram.Shown in Fig. 4, compilation operations configuration file creating unit 830 include compiling before operation designating unit 831, Designating unit 833 is operated after operating designating unit 832, compiling in compiling;
Wherein,
Designating unit 831 is operated before compiling, for needing operation to be performed before specified compiling;
Designating unit 832 is operated in compiling, and operation to be performed is needed in compilation process for specifying;
Designating unit 833 is operated after compiling, for needing operation to be performed after specified compiling.
Fig. 5 is the structural representation of the configuration file resolution unit of the more mirroring device software translating devices of the embodiment of the present invention Figure.Shown in Fig. 5, configuration file resolution unit 850 is shared including source code shared structure creating unit 851, source code Structure Creating unit 852, compilation operations acquiring unit 853;Wherein,
Source code shared structure creating unit 851, for based on parsing engineering management configuration file create sub- workspace it Between source code shared structure;
Priority list generation unit 852 is compiled, for generating son work based on parsing compiling dependence configuration file The compiling priority list in area;
Compilation operations acquiring unit 853 obtains global compiling and son work for being based on parsing compilation operations configuration file Area operates before compiling corresponding compiling, is operated after operation, compiling in compiling;
In second embodiment of the invention, source code shared structure creating unit 851 is matched specifically for parsing engineering management File is set, the sub- workspace that source code is actively shared is obtained, the sub- workspace actively shared based on source code and shared mandate The shared relationship and source code specified path of workspace create the source code shared structure between sub- workspace;Wherein, source code Actively shared sub- workspace is the sub- workspace for needing to download source code.
In second embodiment of the invention, the compiling priority list generation unit 852 of sub- workspace is specifically used for parsing Dependence configuration file is compiled, is formerly compiled according to the sub- workspace being relied on, the sub- workspace of dependence is determined in rear compiling The compiling priority of each sub- workspace, the compiling priority based on each sub- workspace generate the compiling priority row of sub- workspace Table;Wherein, each sub- workspace in the same compiling priority in the compiling priority list of sub- workspace arranges to compile to be parallel It translates.
In second embodiment of the invention, compilation operations acquiring unit 853 is specifically used for parsing compilation operations configuration text Part, after operation, compiling in operation, compiling before the compiling for obtaining global compiling under the global compiling item of compilation operations configuration file Operation;It compiles and is obtained under item before the compiling that sub- workspace compiles in operation, compiling from the sub- workspace of compilation operations configuration file It is operated after operation, compiling.
In second embodiment of the invention, more mirroring device software translating devices 800, can be virtual bench, at this moment, For the device that the process that aforementioned any embodiment of the embodiment of the present invention discloses defines, more 800 institutes of mirroring device software translating device For each unit module being related to by software code realization, more mirroring device software translating devices 800 are to be installed in memory and wrap One or more software function modules executed by processor are included, memory is stored for storing program, processor by connecting The bus of device calls program stored in memory, executes performed by the process that any embodiment of the embodiment of the present invention discloses Method.Method performed by more mirroring device software translating devices 800 can be applied in processor, or by processor reality It is existing.
In second embodiment of the invention, more mirroring device software translating devices 800, can be hardware entities devices, this When, it is logical integrated circuit.It can be individual electronic device, can also be a part for processor circuit.It is realizing In the process, each step for more mirroring device software compilation methods that any embodiment of the embodiment of the present invention discloses can pass through processing The integrated logic circuit of hardware in device or the instruction of software form are completed.
Compiling equipment described above and more mirroring device software translating device embodiments are only schematical, example Such as, the division of the unit, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, and example Such as, multiple units or component can be combined or can be integrated into another system, or some features can be ignored, or not hold Row.Another point, shown or discussed mutual coupling, direct-coupling or communication connection can be by some communications The INDIRECT COUPLING of interface, device or unit or communication connection can be electrical, machinery or other forms.
It should be noted that each functional unit in each embodiment of the present invention can be integrated in a processing unit In, can also be that each unit physically exists alone, it can also be during two or more units be integrated in one unit.
More mirroring device software compilation methods that the embodiment of the present invention is provided, are realized in the form of SFU software functional unit simultaneously When sold or used as an independent product, it can be stored in a computer read/write memory medium.At this moment, the present invention is real The computer program product for more mirroring device software compilation methods that example is provided is applied, including stores the computer of program code Readable storage medium storing program for executing, the instruction that said program code includes can be used for executing the method described in previous methods embodiment, specifically It realizes and can be found in embodiment of the method, details are not described herein.
In conclusion more mirroring device software compilation methods, device and equipment provided in an embodiment of the present invention, can be not only used for Single mirroring device software translating, it can also be used to more mirroring device software translatings.In single mirroring device software translating, realize soft The automation of part compiling.In more mirroring device software translatings, based on the source code shared structure between sub- workspace, source is realized The high efficiency that the automation of code administration and source code are downloaded, compiling priority list and sub- workspace based on sub- workspace are compiled Translate operation before corresponding compiling, in compiling after operation, compiling operation realize sub- workspace compiling dynamicization plan as a whole to dispatch and process certainly Dynamic control.
It is provided in an embodiment of the present invention compared with using existing more mirroring device software compilation methods of a large amount of manual interventions More mirroring device software compilation methods, device and equipment, when compiling it is involved the compiling of sub- workspace it is more, can realize source generation The shared sub- workspace of code is more, and the promotion of source code download efficiency is bigger, and the improved efficiency of sub- workspace compiling is also bigger.Base In the compilation process management of configuration file, operation is more intuitive, is easy to learning and mastering.

Claims (12)

  1. Mirroring device software compilation method more than 1., which is characterized in that the method includes:
    Based on the software architecture of more mirroring device softwares to be compiled, the administrative directory compiled for more mirror images is defined as global work Make area, the administrative directory for single mirror image compiling under the global work area is defined as sub- workspace;More mirror images are compiled It is translated into global compiling, the list mirror image is compiled as sub- workspace compiling;
    Establishment configuration item includes sub- workspace title, source code is actively shared, share the sub- workspace title of mandate, source code is specified The engineering management configuration file in path;
    It defines and is operated after operation, compiling in operation, compiling before the compiling of the global compiling and the sub- workspace compiling;It creates The compilation operations configuration file that configuration item includes operation before the compiling, is operated after operation, compiling in compiling;
    It includes sub- workspace title, the compiling dependence for other the sub- workspace titles being relied on configuration text to create configuration item Part;
    The source code shared structure between sub- workspace is created based on the engineering management configuration file is parsed;Described in parsing Compiling dependence configuration file generates the compiling priority list of sub- workspace;Based on the parsing compilation operations configuration file It obtains operating before the global compiling and the corresponding compiling of the sub- workspace compiling, be operated after operation, compiling in compiling;
    Source code is downloaded in the shared sub- workspace authorized other than sub- workspace by the source code specified path, is based on institute State the source code shared structure between sub- workspace, the shared sub- work for authorizing sub- workspace actively to be shared from the source code Make area and obtains source code;
    Compiling priority list and the sub- workspace based on the sub- workspace compile operation, volume before the corresponding compiling Operation carries out sub- workspace compiling after translating operation, compiling, obtains single image file;
    It is operated after executing the compiling of the global compiling, single image file is merged into more image files.
  2. 2. more mirroring device software compilation methods according to claim 1, which is characterized in that described to be based on the sub- work The compiling priority list in area and the sub- workspace operate before compiling the corresponding compiling, are grasped after operation, compiling in compiling Making the step of sub- workspace of progress compiles includes:
    The sub- workspace compiling is carried out according to the priority orders of the compiling priority list of the sub- workspace, it is same preferential Each sub- workspace parallel compilation of grade;Wherein, it when each sub- workspace compiling, is grasped before executing the compiling successively Make, operated in compiling and is operated after compiling.
  3. 3. more mirroring device software compilation methods according to claim 1 or 2, which is characterized in that described based on parsing institute Stating the step of engineering management configuration file creates the source code shared structure between sub- workspace includes:
    The engineering management configuration file is parsed, the sub- workspace that the source code is actively shared is obtained, is based on the source code Actively shared sub- workspace creates institute with the shared shared relationship for authorizing sub- workspace and the source code specified path State the source code shared structure between sub- workspace;Wherein, the sub- workspace that the source code is actively shared is to need loading source The sub- workspace of code.
  4. 4. more mirroring device software compilation methods according to claim 1 or 2, which is characterized in that described based on parsing institute Stating the step of compiling dependence configuration file generates the compiling priority list of sub- workspace includes:
    The compiling dependence configuration file is parsed, is formerly compiled according to the sub- workspace being relied on, the sub- work of dependence Make area in rear compiling, determines the compiling priority of each sub- workspace, the compiling priority life based on each sub- workspace At the compiling priority list of the sub- workspace;Wherein, the same compiling in the compiling priority list of the sub- workspace Each sub- workspace in priority arranges to be parallel compilation.
  5. 5. more mirroring device software compilation methods according to claim 1 or 2, which is characterized in that described based on parsing institute It states compilation operations configuration file and obtains operation, compiling before the global compiling and the corresponding compiling of the sub- workspace compiling The step of operation, includes after middle operation, compiling:
    The compilation operations configuration file is parsed, the overall situation is obtained under the global compiling item of the compilation operations configuration file It is operated after operation, compiling in operation, compiling before the compiling of compiling;It is compiled from the sub- workspace of the compilation operations configuration file It translates and is operated after operation, compiling in operation, compiling before obtaining the compiling that the sub- workspace compiles under item.
  6. The software translating device of mirroring device more than 6., which is characterized in that the compilation device includes:
    Workspace setting unit is compiled, the software architecture based on more mirroring device softwares to be compiled is used for, more mirror images will be used for and compiled The administrative directory translated is defined as global work area, and the administrative directory for single mirror image compiling under the global work area is defined For sub- workspace;More mirror images are compiled as global compiling, and the list mirror image is compiled as sub- workspace compiling;
    Engineering management configuration file creating unit includes that sub- workspace title, source code are actively shared, altogether for creating configuration item Enjoy authorize sub- workspace title, source code specified path engineering management configuration file;
    Compilation operations configuration file creating unit, for being grasped before defining the compiling of the global compiling and the sub- workspace compiling Make, operated after operation, compiling in compiling;Configuration item is created to include operation before the compiling, operate after operation, compiling in compiling Compilation operations configuration file;
    Compile dependence configuration file creating unit, for create configuration item include sub- workspace title, be relied on other The compiling dependence configuration file of sub- workspace title;
    Configuration file resolution unit, including source code shared structure creating unit, source code shared structure creating unit, compiling behaviour Make acquiring unit;Wherein,
    Source code shared structure creating unit, for being created between sub- workspace based on parsing the engineering management configuration file Source code shared structure;
    Priority list generation unit is compiled, for generating sub- workspace based on the parsing compiling dependence configuration file Compile priority list;
    Compilation operations acquiring unit obtains the global compiling and the son for being based on parsing the compilation operations configuration file Workspace operates before compiling the corresponding compiling, is operated after operation, compiling in compiling;
    Source code, which is downloaded, shares execution unit, passes through the source generation for the sub- workspace other than the shared sub- workspace of mandate Code specified path downloads source code, based on the source code shared structure between the sub- workspace, the shared mandate work Area obtains source code from the sub- workspace that the source code is actively shared;
    Single mirror image Complied executing unit is used for the compiling priority list based on the sub- workspace and the sub- workspace compiling The sub- workspace compiling of operation progress after operation, compiling in operation, compiling, obtains single image file before the corresponding compiling;
    More mirror image Complied executing units merge single image file for being operated after executing the compiling of the global compiling At more image files.
  7. 7. more mirroring device software translating devices according to claim 6, which is characterized in that
    The list mirror image Complied executing unit is specifically used for suitable according to the priority of the compiling priority list of the sub- workspace Sequence carries out the sub- workspace compiling, each sub- workspace parallel compilation of same priority;Wherein, each sub- work When area compiles, operates, operated in compiling and operated after compiling before executing the compiling successively.
  8. 8. more mirroring device software translating devices according to claim 6, which is characterized in that
    The compilation operations configuration file creating unit includes:
    Designating unit is operated before compiling, for needing operation to be performed before specified compiling;
    Designating unit is operated in compiling, and operation to be performed is needed in compilation process for specifying;
    Designating unit is operated after compiling, for needing operation to be performed after specified compiling.
  9. 9. more mirroring device software translating devices according to any one of claim 6 to 8, which is characterized in that
    The source code shared structure creating unit is specifically used for parsing the engineering management configuration file, obtains the source generation The shared sub- workspace of code active, the sub- workspace and the shared sub- workspace of mandate actively shared based on the source code Shared relationship and the source code specified path create the source code shared structure between the sub- workspace;Wherein, the source The sub- workspace that code is actively shared is the sub- workspace for needing to download source code.
  10. 10. more mirroring device software translating devices according to any one of claim 6 to 8, which is characterized in that
    The compiling priority list generation unit of the sub- workspace is specifically used for parsing the compiling dependence configuration text Part is formerly compiled according to the sub- workspace being relied on, and the sub- workspace of dependence determines each sub- workspace in rear compiling Compiling priority, the compiling priority based on each sub- workspace generates the compiling priority list of the sub- workspace; Wherein, each sub- workspace in the same compiling priority in the compiling priority list of the sub- workspace arranges as simultaneously Row compiling.
  11. 11. more mirroring device software translating devices according to any one of claim 6 to 8, which is characterized in that
    The compilation operations acquiring unit is specifically used for parsing the compilation operations configuration file, be configured from the compilation operations It obtains under the global compiling item of file and is operated after operation, compiling in operation, compiling before the compiling of the global compiling;From institute It states and obtains operation, compiling before the compiling that the sub- workspace compiles under the sub- workspace compiling item of compilation operations configuration file It is operated after middle operation, compiling.
  12. 12. compiling equipment, which is characterized in that including more mirroring device software translatings described in claim 6 to 11 any one Device.
CN201610751723.4A 2016-08-29 2016-08-29 Multi-mirror image equipment software compiling method, device and equipment Active CN108304189B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610751723.4A CN108304189B (en) 2016-08-29 2016-08-29 Multi-mirror image equipment software compiling method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610751723.4A CN108304189B (en) 2016-08-29 2016-08-29 Multi-mirror image equipment software compiling method, device and equipment

Publications (2)

Publication Number Publication Date
CN108304189A true CN108304189A (en) 2018-07-20
CN108304189B CN108304189B (en) 2021-03-12

Family

ID=62871381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610751723.4A Active CN108304189B (en) 2016-08-29 2016-08-29 Multi-mirror image equipment software compiling method, device and equipment

Country Status (1)

Country Link
CN (1) CN108304189B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112394942A (en) * 2020-11-24 2021-02-23 季明 Distributed software development compiling method and software development platform based on cloud computing

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750364A (en) * 2012-06-13 2012-10-24 华为技术有限公司 Method, compiler and system for distributing memory address space for image files
CN103279376A (en) * 2011-10-17 2013-09-04 霍尼韦尔国际公司 Methods and reconfigurable systems to incorporate customized executable code within a condition based health maintenance system
CN103729184A (en) * 2013-12-29 2014-04-16 国云科技股份有限公司 Software component combining and constructing method
CN104077140A (en) * 2014-07-04 2014-10-01 用友软件股份有限公司 Automatic compiling method and compiling device for continuous integration
CN104137057A (en) * 2012-02-13 2014-11-05 微软公司 Generating and caching software code
CN104423960A (en) * 2013-09-10 2015-03-18 阿里巴巴集团控股有限公司 Continuous project integration method and continuous project integration system
CN104978194A (en) * 2015-06-25 2015-10-14 北京京东尚科信息技术有限公司 Web page front-end development method and apparatus
US20160048391A1 (en) * 2011-06-20 2016-02-18 Paypal, Inc. Systems and methods for incremental software development
US20160203071A1 (en) * 2013-09-20 2016-07-14 Drexel University Design rule spaces and architecture root detection

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160048391A1 (en) * 2011-06-20 2016-02-18 Paypal, Inc. Systems and methods for incremental software development
CN103279376A (en) * 2011-10-17 2013-09-04 霍尼韦尔国际公司 Methods and reconfigurable systems to incorporate customized executable code within a condition based health maintenance system
CN104137057A (en) * 2012-02-13 2014-11-05 微软公司 Generating and caching software code
CN102750364A (en) * 2012-06-13 2012-10-24 华为技术有限公司 Method, compiler and system for distributing memory address space for image files
CN104423960A (en) * 2013-09-10 2015-03-18 阿里巴巴集团控股有限公司 Continuous project integration method and continuous project integration system
US20160203071A1 (en) * 2013-09-20 2016-07-14 Drexel University Design rule spaces and architecture root detection
CN103729184A (en) * 2013-12-29 2014-04-16 国云科技股份有限公司 Software component combining and constructing method
CN104077140A (en) * 2014-07-04 2014-10-01 用友软件股份有限公司 Automatic compiling method and compiling device for continuous integration
CN104978194A (en) * 2015-06-25 2015-10-14 北京京东尚科信息技术有限公司 Web page front-end development method and apparatus

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
BRIAN FOX: ""How to Share Resources Across Projects in Maven"", 《HTTPS://BLOG.SONATYPE.COM/2008/04/HOW-TO-SHARE-RESOURCES-ACROSS-PROJECTS-IN-MAVEN/》 *
LIBAINEU2004: ""分享Qt多工程多目录的编译案例,subdirs"", 《HTTPS://BLOG.CSDN.NET/LIBAINEU2004/ARTICLE/DETAILS/23625441》 *
叶翼安: ""一种基于docker构件化集成交付的软件仓库模式设计与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112394942A (en) * 2020-11-24 2021-02-23 季明 Distributed software development compiling method and software development platform based on cloud computing
CN112394942B (en) * 2020-11-24 2021-06-04 深圳君南信息系统有限公司 Distributed software development compiling method and software development platform based on cloud computing

Also Published As

Publication number Publication date
CN108304189B (en) 2021-03-12

Similar Documents

Publication Publication Date Title
KR102544522B1 (en) Data processing method and related products
Quigley et al. ROS: an open-source Robot Operating System
US5237691A (en) Method and apparatus for automatically generating parallel programs from user-specified block diagrams
US20020129340A1 (en) Reconfigurable isomorphic software representations
US9749447B2 (en) Distributed Process Framework
CN105916637A (en) A system and method for defining motions of a plurality of robots cooperatively performing a show
EP4002189A1 (en) Industrial network communication emulation
CN106155724A (en) A kind of upgrade method and device
EP1963965B1 (en) Run-time tunable sample time in programming or modeling environments
Getchell Agent-based modeling
CN103019702A (en) System and method for visible three-dimensional display control editing
CN111459621B (en) Cloud simulation integration and scheduling method and device, computer equipment and storage medium
CN108304189A (en) More mirroring device software compilation methods, device and equipment
Fursin The collective knowledge project: Making ML models more portable and reproducible with open APIs, reusable best practices and MLOps
Tsoi et al. Programming framework for clusters with heterogeneous accelerators
CN110955415B (en) Method for projecting multi-platform service adaptation
CN114237760B (en) Method for packaging industrial mechanism model into container mirror image and publishing web service
Gutiérrez et al. Progress in robocomp
CN104516735A (en) Two-dimensional layering method for achieving automatic operation and maintenance of cloud computing environment
Quammen Scientific Data Analysis and Visualization with Python, VTK, and ParaView.
CN116157774A (en) Method and system for providing engineering of industrial equipment in cloud computing environment
CN114003343A (en) Cloud native application construction method and device and computer equipment
CN104063320A (en) Transplantation method and system for software test platform
WO2020259020A1 (en) Instruction block processing method and apparatus, storage medium, and electronic device
CN106484491B (en) Cloud Compilation Method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant