CN103870310B - Program compiling method and relevant apparatus - Google Patents
Program compiling method and relevant apparatus Download PDFInfo
- Publication number
- CN103870310B CN103870310B CN201410055020.9A CN201410055020A CN103870310B CN 103870310 B CN103870310 B CN 103870310B CN 201410055020 A CN201410055020 A CN 201410055020A CN 103870310 B CN103870310 B CN 103870310B
- Authority
- CN
- China
- Prior art keywords
- file
- compiled
- dependent
- directory tree
- compiling
- 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.)
- Active
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The disclosure is directed to program compiling method and device, methods described is from the first directory tree being stored on compiling main frame, the dependent file that the file to be compiled that query compiler is selected is relied on;Then, dependent file is obtained from the second directory tree being stored on compiler server;File to be compiled is compiled using dependent file, file destination is obtained.Realize when compiling Android source codes, be able to rely on other directory trees in addition to the directory tree where file to be compiled(Second directory tree), without the Android source codes of research staff's download-maintenance complete set, the corresponding source code of this module only need to be downloaded, the occupancy of hard drive space is reduced.Moreover, the dependent file needed for file destination can directly be obtained from the second directory tree, without obtaining dependent file by compiling, so as to save time and the resource that compiling dependent file takes.Therefore, required hard drive space and compilation time is greatly reduced, system development efficiency is improved.
Description
Technical field
This disclosure relates to field of computer technology, more particularly to program compiling method and relevant apparatus.
Background technology
Program compiling is that high-level programming language is converted into the machine language that computer hardware can be recognized, to calculate
Machine is handled.
Android system is half open source operating system based on Linux, is mainly used in mobile terminal(For example, intelligence
Energy mobile phone, panel computer etc.), mobile terminal manufacturer can be according to the one's own Android of hardware customization of individual character of oneself
System, at this time, it may be necessary to which system research and development personnel develop and compiled to the source code of system.
When compiling Android source code, large-scale exploration project can be decomposed into multiple modules for being easier to management
Or sub-project, and dependence is there may be between module or sub-project, the file relied on when compiling a certain file destination
With uncertainty, therefore, system research and development personnel need the Android source codes in local maintenance complete set, and source code
It is very huge, it is also required to that completion could be downloaded in several hours under preferable network environment, moreover, with Android versions
Constantly update, in order to increase the compatibility of software, it usually needs locally preserving the source code of multiple Android versions, take
Hard disk and Internet resources are more;Compiling Android source codes need 30G or so hard drive space, take substantial amounts of hard drive space;And
And compilation time usually requires several hours, the plenty of time of system research and development personnel is wasted.
The content of the invention
A kind of program compiling method and relevant apparatus are provided in the embodiment of the present disclosure, to solve Android source codes volume
Translate occupancy resource it is many, and expend the time it is long the problem of.
In order to solve the above-mentioned technical problem, the embodiment of the present disclosure discloses following technical scheme:
According to the first aspect of the embodiment of the present disclosure there is provided a kind of program compiling method, including:Looked into from the first directory tree
Ask the dependent file that compiling file to be compiled is relied on;The second catalogue that Android source codes are obtained is compiled from compiler server
In tree, the dependent file is obtained;The file to be compiled is compiled according to the dependent file, file destination is obtained.
With reference in a first aspect, in the first possible implementation of first aspect, being compiled from compiler server
In the second directory tree that Android source codes are obtained, the dependent file is obtained, in the following way:
Routing information of the dependent file in the compiler server is obtained from second directory tree;According to institute
State routing information and obtain the dependent file.
With reference to the first possible implementation of first aspect, in second of possible implementation of first aspect
In, routing information of the dependent file in the compiler server is obtained from second directory tree, using such as lower section
Formula:
Receive between each dependent file and routing information in second directory tree that the compiler server is sent
Mapping relations;According to the mapping relations, inquiry obtains the corresponding path of dependent file that the file to be compiled is relied on
Information.
With reference in a first aspect, in the third possible implementation of first aspect, being compiled from compiler server
In the second directory tree that Android source codes are obtained, the dependent file is obtained, in the following way:
The fileinfo for the dependent file that the file to be compiled is relied on, the file are sent to the compiler server
Information at least includes the file name of the dependent file;The compiler server is received according to the file of the dependent file to be believed
Cease the dependent file obtained;Each dependent file and routing information inquired about by compiler server in second directory tree
Between mapping relations, the routing information of the obtained dependent file, and according to the routing information obtain it is described rely on text
Part;The mapping relations are stored in the compiler server.
It is described to be looked into from the first directory tree with reference in a first aspect, in the 4th kind of possible implementation of first aspect
The dependent file that compiling file to be compiled is relied on is ask, in the following way:
The dependence of each file to be compiled in first directory tree is obtained, the dependence is used to store each
Corresponding relation between the dependent file that file to be compiled and each described file to be compiled are relied on;
According to the dependence, inquiry obtains the dependent file that the file to be compiled is relied on.
With reference in a first aspect, in the 5th kind of possible implementation of first aspect, methods described also includes:
Search whether there is the dependent file that the file to be compiled is relied in first directory tree;
When the dependent file that the file to be compiled is relied on is not present in first directory tree, perform described from volume
Translate in the second directory tree that server compiling Android source codes are obtained, the step of obtaining the dependence.
According to the second aspect of the embodiment of the present disclosure there is provided a kind of program compiling method, including:
Obtain Android source codes;Compile the Android source codes and obtain the second directory tree, and preserve described second
The mapping relations of each dependent file and routing information in directory tree;The mapping relations are waited to compile for obtaining compiling main frame
The dependent file that translation part is relied on, and according to the dependent file compile the first directory tree in file to be compiled obtain target
File.
With reference to second aspect, in the first possible implementation of second aspect, methods described also includes:
Whether the Android source codes stored in detection compiling main frame are changed;
When detecting that the Android source codes that store are changed in compiling main frame, according to amended Android
Source code, updates the Android source codes stored in compiler server;
Android source codes after compiling renewal, update each dependent file in second directory tree.
With reference to the first possible implementation of second aspect, in second of possible implementation of second aspect
In, the corresponding source code of each file destination that compiling main frame compiling is obtained is obtained, in the following way:
Compiler server obtains the corresponding Android source codes of each file destination from central server, described
Android source codes are uploaded to central server by compiling main frame by the obtained corresponding source code of file destination is compiled;
Or,
Compiler server obtains the corresponding Android source codes of each file destination from compiling main frame.
With reference to second of possible implementation of second aspect, in the third possible implementation of second aspect
In, methods described also includes:
The mapping relations are sent to compiling main frame, the mapping relations are used to make compiling main frame obtain file to be compiled
The routing information of the dependent file relied on, obtains the dependent file, and rely on text according to described according to the routing information
The file to be compiled that part is compiled in the first directory tree obtains file destination.
With reference to second of possible implementation of second aspect, in the 4th kind of possible implementation of second aspect
In, methods described also includes:
The fileinfo for the dependent file that the file to be compiled that reception compiling main frame is sent is relied on, the file letter
Breath at least includes the file name of the dependent file;
According to the fileinfo of the dependent file, the path letter that the mapping relations obtain the dependent file is inquired about
Breath.
According to the third aspect of the embodiment of the present disclosure there is provided a kind of program compilation device, including:
First query unit, for the dependent file that query compiler file to be compiled is relied on from the first directory tree;
First acquisition unit, used in compiling the second directory tree that Android source codes are obtained from compiler server, is obtained
The dependent file;
Compilation unit, for compiling the file to be compiled according to the dependent file, obtains file destination.
With reference to the third aspect, in the first possible implementation of the third aspect, the first acquisition unit, bag
Include:
First obtains subelement, for obtaining the dependent file in the compiler server from second directory tree
In routing information;
Second obtains subelement, for obtaining the dependent file according to the routing information.
With reference to the first possible implementation of the third aspect, in second of possible implementation of the third aspect
In, described first obtains subelement, including:
First receiving subelement, for receiving each dependence in second directory tree that the compiler server is sent
Mapping relations between file and routing information;
First inquiry subelement, for according to the mapping relations, inquiry obtain that the file to be compiled relied on according to
Rely the corresponding routing information of file.
With reference to the third aspect, in the third possible implementation of the third aspect, the first acquisition unit, bag
Include:
Transmitting element, the file for sending the dependent file that the file to be compiled is relied on to the compiler server
Information, the fileinfo at least includes the file name of the dependent file;
Second receiving subelement, for receiving what the compiler server was obtained according to the fileinfo of the dependent file
The dependent file;Reflecting between each dependent file in second directory tree and routing information is inquired about by compiler server
Relation is penetrated, the routing information of the obtained dependent file, and obtain the dependent file according to the routing information;It is described to reflect
The relation of penetrating is stored in the compiler server.
With reference to the third aspect, in the 4th kind of possible implementation of the third aspect, first query unit, bag
Include:
3rd obtains subelement, and the dependence for obtaining each file to be compiled in first directory tree is described
Dependence is used to store the correspondence between the dependent file that each file to be compiled and each described file to be compiled are relied on
Relation;
Second inquiry subelement, for according to the dependence, inquiry obtain that the file to be compiled relied on according to
Rely file.
With reference to the third aspect, in the 5th kind of possible implementation of the third aspect, described device also includes:
Searching unit, for searching whether there is the dependence that the file to be compiled is relied in first directory tree
File;When the dependent file that the file to be compiled is relied on is not present in first directory tree, output makes described first
Acquiring unit performs the signal of corresponding actions.
According to the fourth aspect of the embodiment of the present disclosure there is provided a kind of program compilation device, including:
First acquisition unit, for obtaining Android source codes;
First compilation unit, obtains the second directory tree, and preserve second mesh for compiling the Android source codes
The mapping relations of each dependent file and routing information in record tree;The mapping relations are used to make the acquisition of compiling main frame to be compiled
The dependent file that file is relied on, and the file to be compiled compiled according to the dependent file in the first directory tree obtains target text
Part.
With reference to fourth aspect, in the first possible implementation of fourth aspect, described device also includes:
Detection unit, for detecting whether the Android source codes stored in compiling main frame are changed;
Source code updating block, for when detect compiling main frame in the Android source codes changed when, foundation
The Android source codes stored in amended renewal compiler server;
Second compilation unit, for compiling the Android source codes after updating, updates each in second directory tree
Dependent file.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not
The disclosure can be limited.
The technical scheme provided by this disclosed embodiment can include the following benefits:First from being stored in compiling main frame
On the first directory tree in, query compiler selection file to be compiled depend on which(Or which)Dependent file, it is determined that waiting to compile
After the dependent file that translation part is relied on, from the second directory tree being stored on compiler server, the dependent file is obtained;
Then, the file to be compiled is compiled using the dependent file, obtains final file destination.Realize in compiling
During Android source codes, other directory trees in addition to the directory tree where file to be compiled are able to rely on(Second catalogue
Tree), without the Android source codes of research staff's download-maintenance complete set, the corresponding source code of this module only need to be downloaded, is subtracted
The small occupancy of hard drive space.Moreover, the file destination institute that compiling obtains this module directly can be obtained from the second directory tree
Need dependent file, without by compiling obtain the dependent file so that save compiling dependent file take time and
Resource.Therefore, the program compiling method that the disclosure is provided greatly reduces required hard drive space and compilation time, improves and is
System development efficiency.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosure
Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart of program compiling method according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of step S120 in Fig. 1 according to an exemplary embodiment;
Fig. 3 is another flow chart of step S120 in Fig. 1 according to an exemplary embodiment;
Fig. 4 is the flow chart of another program compiling method according to an exemplary embodiment;
Fig. 5 is the dependence graph between a kind of file destination and dependent file according to an exemplary embodiment;
Fig. 6 is a kind of flow chart of Compilation Method according to an exemplary embodiment;
Fig. 7 is the flow chart of another program compiling method according to an exemplary embodiment;
Fig. 8 is a kind of block diagram of program compilation device according to an exemplary embodiment;
Fig. 9 is the block diagram of another program compilation device according to an exemplary embodiment;
Figure 10 is a kind of block diagram for being used to realize the device of program compiling according to an exemplary embodiment;
Figure 11 is a kind of block diagram for being used to realize the server of program compiling according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
For example, some module correspondence file destination A, and file destination A depends on file B(Target text is created by file B
Part A), Make instruments are first looked for the presence or absence of the file B of dependence condition is met, if do not deposited in build targets A
After then compiling obtains file B, file B compilings could utilized to obtain file destination A.It follows that system research and development personnel can
It can only need to develop and test some module or small project, but need the Android source codes in a set of completion of local maintenance.
Fig. 1 is a kind of flow chart of program compiling method according to an exemplary embodiment, as shown in figure 1, described
Program compiling method is used to compile in main frame, comprises the following steps:
In step s 110, the dependent file that query compiler file to be compiled is relied on from the first directory tree.
The program compiling method that the present exemplary embodiment is provided is mainly used in compiling Android source codes.It is described to be compiled
File can be the source code corresponding to some module divided in whole Android source codes development system.
, it is necessary to search the dependent file that file to be compiled is relied on before compiling, for example, after the completion of the compiling of some module
File destination A is obtained, and file destination A depends on file B, i.e., obtain file destination A by file B compilings, is obtaining target text
Before part A, it is necessary first to determine which file file destination A depends on.
The file to be compiled is Android source codes, for example, target is A, then corresponding file to be compiled is target A
Corresponding source code.First directory tree can be obtained by the compiling of compiling main frame, can also be compiled by compiler server or it
Its compiling main frame compiling is obtained.
In an exemplary embodiment of the disclosure, step S110 can include following methods flow:
1)The dependence of each file to be compiled in first directory tree is obtained, the dependence is used to describe each
Corresponding relation between the dependent file that individual file to be compiled and each described file to be compiled are relied on.Make works can be passed through
Makefile files in tool describe the relation of interdependence between the modules of Android source codes, i.e. makefile texts
Part defines the file destination finally given(Executable file)The pass between each dependent file with generating the file destination
System.
2)According to the dependence, inquiry obtains the dependent file that the file to be compiled is relied on.
In the step s 120, from compiler server compiles the second directory tree that Android source codes are obtained, obtain described
Dependent file.
Compiler server belongs to same version to acquisition with the compiling main frame Android source codes to be compiled
Android compilation of source code obtains the second directory tree, and the compiling main frame obtains described to be compiled from second directory tree
The qualified dependent file that file is relied on.For example, eligible can meet time conditions etc..
For the Android source codes of same version, between the dependent file that some target and the target are relied on
Dependence be identical, that is, compile the first directory tree for being obtained to the Android compilation of source code of a certain version of main frame, with
Compiler server(Or another compiling main frame)The second directory tree that Android compilation of source code to a certain version is obtained,
The dependence of same target is identical in two directory trees.
In an exemplary embodiment of the disclosure, as shown in Fig. 2 step S120 can include following sub-step:
S121, obtains routing information of the dependent file in the compiler server from second directory tree.
In an exemplary embodiment of the disclosure, the routing information for obtaining the dependent file can be by flow down
Cheng Shixian:
Compile each dependent file in second directory tree that the main frame reception compiler server is sent and path
Mapping relations between information;Then, according to the mapping relations, inquiry obtains the corresponding path letter of relied on dependent file
Breath.First the mapping relations are stored on compiling main frame, inquired about on compiling main frame the mapping relations obtain it is described according to
Rely the routing information of file.
Compile main frame and obtain the mapping relations, can be disappeared first from compiling main frame to the request of compiler server transmitting path
Breath, the path request message is used for the routing information for asking compiler server to send dependent file;Then, by compiler server
The path request message is responded, between each dependent file and routing information into compiling main frame the second directory tree of transmission
Mapping relations.Can also be after compiler server update second directory tree every time, from trend, each compiling main frame is issued more
The mapping relations between each dependent file in the second directory tree and routing information after new, such a mode can reduce each
Visit capacity of the main frame to compiler server is compiled, so as to reduce the hardware configuration requirement of compiler server.
S122, the dependent file is obtained according to the routing information.Main frame is compiled to send out the routing information of acquisition
Compiler server is given, then, the dependence text stored in the corresponding memory space of the routing information is obtained by compiler server
Part, and it is handed down to the compiling main frame.
In another exemplary embodiment of the disclosure, as shown in figure 3, step S120 can include following sub-step:
S123, the fileinfo for the dependent file that the file to be compiled is relied on, the text are sent to compiler server
Part information at least includes the file name of the dependent file.
When some file destination that the dependent file obtains for compiling, the file name is the file destination
File name.
S124, receives the dependent file that the compiler server is obtained according to the fileinfo of the dependent file;
The mapping relations inquired about by compiler server between each dependent file in second directory tree and routing information, are obtained
The routing information of the dependent file, and obtain the dependent file according to the routing information;The mapping relations are stored in
In the compiler server.
The fileinfo for the dependent file that compiler server is sent according to the compiling main frame, is searched in compiler server
The routing information of the dependent file, and the file stored in the corresponding memory space of the routing information is obtained, and be handed down to
The compiling main frame.Wherein, the routing information of the dependent file inquire about in the second directory tree each file and routing information it
Between mapping relations obtain.
In step s 130, the file to be compiled is compiled according to the dependent file, obtains file destination.
The program compiling method that the present exemplary embodiment is provided, first from the first directory tree in compiling main frame, inquiry
Which dependent file file to be compiled depends on, then, from the second directory tree being stored on compiler server, obtains described
Dependent file;Recycle the dependent file to compile the file to be compiled, obtain final file destination, it is achieved thereby that
When compiling Android source codes, other directory trees in addition to the directory tree where file to be compiled are able to rely on(Second
Directory tree).Research staff only need to locally preserve the file to be compiled(The corresponding source code of this module), without download-maintenance
The Android source codes of complete set, reduce the occupancy of hard drive space.Moreover, directly can be obtained from the second directory tree
Qualified dependent file, without obtaining the dependent file by compiling, so as to save what compiling dependent file took
Time and resource.Therefore, the program compiling method that the disclosure is provided greatly reduces required hard drive space and compilation time, carries
High system development efficiency.
Fig. 4 is the flow chart of another program compiling method according to an exemplary embodiment, as shown in figure 4, institute
State method to be applied in compiling main frame, can be used for compiling Android source codes, comprise the following steps:
In step s 110, the dependent file that query compiler file to be compiled is relied on from the first directory tree.
In step S210, search whether there is the dependence that the file to be compiled is relied in first directory tree
File.
When the dependent file that the file to be compiled is relied on is not present in first directory tree, in step S120,
From compiler server compiles the second directory tree that Android source codes are obtained, the dependent file is obtained.
When there is the dependent file that the file to be compiled is relied in first directory tree, in step S220,
The dependent file is obtained from first directory tree.
In step s 130, the file to be compiled is compiled according to the dependent file, obtains file destination.
Program compiling method shown in the present exemplary embodiment, during Android source codes are compiled, it is first determined
Which dependent file file to be compiled depends on, and searches whether to exist in the first directory tree for being locally stored of compiling main frame and meets
The dependent file of condition, if it does, preferentially obtaining the dependent file from the first directory tree, reduces compiling service
The visit capacity of device, so as to reduce the hardware requirement of compiler server.
Flow is compiled to above-mentioned program with reference to the dependence between the file destination and dependent file shown in Fig. 5
Illustrate.Fig. 5 shows the relation between file destination G and all dependent files, specifically, file destination G depends on E
And F;File destination E depends on C;File destination F depends on D;File destination C depends on A;File destination D depends on A and B.
It is assumed that the corresponding file destination of file to be compiled is G in compiling main frame, then the dependence graph according to Fig. 5,
It is E and F that the dependent file that file destination G relied on, which can be found,.Then, in the second directory tree stored from compiler server
Obtain qualified dependent file E and F.File to be compiled is compiled according to dependent file and obtains file destination G.
Alternatively, when the dependent file for finding file destination G is E and F, first in compiling main frame can first be searched
It whether there is dependent file E and F in directory tree, when there is dependent file E and F in the first directory tree, preferentially from the first catalogue
The dependent file E and F is obtained in tree, so as to reduce visit capacity of the compiling main frame to compiler server.
Fig. 6 is a kind of flow chart of program compiling method according to an exemplary embodiment, as shown in fig. 6, described
Method is applied to compiler server, comprises the following steps:
In step S610, Android source codes are obtained.
Compiler server needs to obtain and the source code version identical Android source codes on compiling main frame.
In step S620, compile the Android source codes and obtain the second directory tree, and preserve second directory tree
In each dependent file and routing information mapping relations;The mapping relations are used to make compiling main frame obtain file to be compiled
The dependent file relied on, and according to the dependent file compile the first directory tree in file to be compiled obtain file destination.
In an exemplary embodiment of the disclosure, the mapping relations of the compiling main frame in compiler server are obtained
The dependent file for taking file to be compiled to be relied on, can be that the mapping relations are sent to compiling main frame by compiler server, compile
The routing information that main frame obtains the dependent file that file to be compiled is relied on according to the mapping relations is translated, then, main frame is compiled
The routing information is sent to compiler server, is obtained and is deposited in the corresponding memory space of the routing information by compiler server
The dependent file of storage, and it is handed down to the compiling main frame.
In another exemplary embodiment of the disclosure, compiling main frame sends the dependent file to compiler server
Fileinfo, the fileinfo at least includes the file name of the dependent file.
Compiler server inquires about the dependent file according to the fileinfo of the dependent file from the mapping relations
Routing information, and the dependent file obtained according to the routing information be handed down to compiling main frame.
The program compiling method that the present exemplary embodiment is provided, the Android source codes that compiler server compiling is obtained are obtained
To the second directory tree, and obtain the mapping relations in the second directory tree between each file and routing information.Compile main frame according to
The mapping relations, obtain the dependent file that the file to be compiled of storage is relied on from the second directory tree, so as to avoid compiling
Main frame could obtain the dependent file in local compiling, save time and resource that compiling dependent file takes.Moreover, institute
Compiling main frame is stated without the Android source codes for safeguarding complete set are being locally-downloaded, only this module corresponding source generation need to be downloaded
Code, reduces the occupancy of hard drive space.Required hard drive space and compilation time is greatly reduced, system development effect is improved
Rate.
Because Android source codes are very huge, in the system research and development of Android source codes, generally by Android sources
Code system Project decomposition holds manageable module to be multiple, and different research and development groups are responsible for different modules, therefore, compiler server
Need the Android source codes of the newest modification of acquisition modules.Fig. 7 is another according to an exemplary embodiment
The flow chart of program compiling method, as shown in fig. 7, the described method comprises the following steps:
In step S610, Android source codes are obtained.
In step S620, compile the Android source codes and obtain the second directory tree, and preserve second directory tree
In each dependent file and routing information mapping relations.The mapping relations are used to make compiling main frame obtain file to be compiled
The dependent file relied on, and according to the dependent file compile the first directory tree in file to be compiled obtain file destination.
In step S710, whether the Android source codes in detection compiling main frame are changed.
In an exemplary embodiment of the disclosure, each compiling main frame changes Android sources generation in compilation process
After code, amended Android source codes are uploaded to central server, compiler server stored from central server each
Module(File destination)Corresponding Android source codes.
Alternatively, compiling main frame can upload amended Android sources generation in idle condition to central server
Code.
Compiler server compares in the Android source codes the being locally stored Android corresponding with central server
Whether source code is identical, if it is different, determining that Android source codes have renewal.It should be noted that relatively more same version is same
Whether the Android source codes that module is stored in the Android source codes and central server being locally stored are identical.
Alternatively, compiler server directly can obtain modules from each compiling main frame(File destination)It is corresponding
Android source codes.
In step S720, when detect compiling main frame in the Android source codes changed when, according to modification after
Source code, update the Android source codes.
During system research and development group is researched and developed to the Android compilation of source code of this module, this module will necessarily be changed
Android source codes, accordingly, it would be desirable to which correspondence updates the Android source codes stored in compiler server, and update the second mesh
Record tree.
In step S730, the Android source codes after compiling renewal update each dependence in second directory tree
File.
Then, compiling main frame obtains the newest dependent file that file to be compiled is relied on, and according to it is described it is newest according to
Rely file to compile the file to be compiled and obtain final file destination.
The program compiling method that the present exemplary embodiment is provided, can be according to modules amended Android sources generation
Code updates corresponding dependent file in the second directory tree, it is ensured that the always newest dependence text of dependent file in the second directory tree
Part, and then newest dependent file is supplied to corresponding compiling main frame, compiling main frame is always obtained from the second directory tree
Obtain qualified dependent file.
Corresponding to above-mentioned program compiling method, the disclosure additionally provides program compilation device embodiment.
Fig. 8 is a kind of block diagram of program compilation device according to an exemplary embodiment, and the device is applied to compiling
In main frame, it is mainly used in compiling Android source codes, as shown in figure 8, the device includes the first query unit 110, first obtains
Unit 120 and compilation unit 130.
First query unit 110 is configured as the dependence text that query compiler file to be compiled is relied on from the first directory tree
Part.
In an exemplary embodiment of the disclosure, first query unit 110 can include:3rd obtains son list
Member and the second inquiry subelement;
3rd acquisition subelement is configured as obtaining the dependence of each file to be compiled in first directory tree, institute
Stating dependence is used to store pair between the dependent file that each file to be compiled and each described file to be compiled are relied on
It should be related to;
Second inquiry subelement is configured as according to the dependence, and inquiry obtains what the file to be compiled was relied on
Dependent file.
The file to be compiled is Android source codes, for example, target is A, then corresponding file to be compiled is target A
Corresponding source code.First directory tree can be obtained by the compiling of compiling main frame, can also be compiled by compiler server or it
Its compiling main frame compiling is obtained.
First acquisition unit 120 is configured as compiling the second directory tree that Android source codes are obtained from compiler server
In, obtain the dependent file.
In an exemplary embodiment of the disclosure, the first acquisition unit can include:First obtains subelement
Subelement is obtained with second;
The first acquisition subelement is configured as obtaining the dependent file from second directory tree in the volume
Translate the routing information in server.
Described first, which obtains subelement, can include the first receiving subelement and the first inquiry subelement;
First receiving subelement is configured as receiving in second directory tree that the compiler server is sent
Mapping relations between each dependent file and routing information.
The first inquiry subelement is configured as according to the mapping relations, inquiry obtain the file institute to be compiled according to
The corresponding routing information of bad dependent file.
The second acquisition subelement is configured as obtaining the dependent file according to the routing information.
In another exemplary embodiment of the disclosure, the first acquisition unit can include:Transmitting element and
Two receiving subelements;
The transmitting element is configured as sending the dependence text that the file to be compiled is relied on to the compiler server
The fileinfo of part, the fileinfo at least includes the file name of the dependent file.
Second receiving subelement is configured as receiving the compiler server according to the file of dependent file letter
Cease the dependent file obtained;Each dependent file and routing information inquired about by compiler server in second directory tree
Between mapping relations, the routing information of the obtained dependent file, and according to the routing information obtain it is described rely on text
Part;The mapping relations are stored in the compiler server.
Compilation unit 130 is configured as compiling the file to be compiled according to the dependent file, obtains file destination.
Alternatively, as shown in figure 8, described program compilation device also includes:Searching unit 140.The quilt of searching unit 140
It is configured to search whether there is the dependent file that the file to be compiled is relied in first directory tree;When described first
When the dependent file that the file to be compiled is relied on being not present in directory tree, it is corresponding that output performs the first acquisition unit
The signal of action.
The described program compilation device that the present embodiment is provided, using the first query unit from the first catalogue in compiling main frame
In tree, inquire about which dependent file file to be compiled depends on, then, by first acquisition unit from being stored in compiler server
In the second directory tree in, obtain the dependent file;Compiled again by compilation unit using the dependent file described to be compiled
File, obtains final file destination, it is achieved thereby that when compiling Android source codes, being able to rely on except text to be compiled
Other directory trees outside directory tree where part(Second directory tree).Research staff only need to locally preserve described to be compiled
File(The corresponding source code of this module), without the Android source codes of download-maintenance complete set, reduce hard drive space
Take.Moreover, qualified dependent file can be obtained directly from the second directory tree, without by compiling obtain it is described according to
Rely file, so as to save time and the resource that compiling dependent file takes.Therefore, the program compiling method that the disclosure is provided is big
It is big to reduce required hard drive space and compilation time, improve system development efficiency.
On the device in above-described embodiment, wherein unit performs the concrete mode of operation in relevant this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 9 is the block diagram of another program compilation device according to an exemplary embodiment, the program compilation device
Applied to compiler server, as shown in figure 9, described device includes the compilation unit 220 of first acquisition unit 210 and first;
First acquisition unit 210 is configured as obtaining Android source codes.
First compilation unit 220 is configured as compiling the Android source codes and obtains the second directory tree, and preserves described
The mapping relations of each dependent file and routing information in the second directory tree;The mapping relations are used to obtain compiling main frame
The dependent file that file to be compiled is relied on, and according to the dependent file compile the first directory tree in file to be compiled obtain
File destination.
Alternatively, as shown in figure 9, described device can also include detection unit 230, source code updating block 240 and the
Two compilation units 250.
Whether the Android source codes that detection unit 230 is configured as storing in detection compiling main frame are changed.
The Android source codes that source code updating block 240 is configured as detecting in compiling main frame are changed
When, according to the Android source codes stored in amended renewal compiler server.
Second compilation unit 250 is configured as the Android source codes after compiling updates, and updates in second directory tree
Each dependent file.
Alternatively, the program compilation device shown in Fig. 9 can also include the first transmitting element and the first searching unit.
First transmitting element is configured as the mapping relations in compiler server being sent to each compiling master
Believe in machine, the path for obtaining the dependent file that the file to be compiled is relied on according to the mapping relations by the compiling main frame
Breath, and it is supplied to the compiler server.
First searching unit is configured as obtaining the routing information according to the routing information that compiling main frame is provided
The dependent file stored in memory space.
Alternatively, the program compilation device shown in Fig. 9 can also include receiving unit, and the second searching unit and second send
Unit.
The receiving unit is configured as receiving the dependent file that the file to be compiled of compiling main frame upload is relied on
Fileinfo, the fileinfo at least includes the file name of the dependent file;
Second searching unit is configured as according to each dependent file and routing information stored in compiler server
Between mapping relations, search the corresponding routing information of the dependent file, and described rely on is obtained according to the routing information
File.
The transmitting element is configured as the dependent file of acquisition being handed down to the compiling main frame;It is described to rely on text
Part is used to make the compiling of compiling main frame obtain the corresponding file destination of the file to be compiled.
The program compilation device that the present embodiment is provided, Android source codes are obtained by first acquisition unit, are compiled using first
Translate the unit compiling Android source codes and obtain the second directory tree, and preserve each dependence text in second directory tree
The mapping relations of part and routing information;Then, compiling main frame according to the mapping relations obtain that file to be compiled relied on according to
Rely file, and the file to be compiled in the first directory tree is compiled according to the dependent file and obtain file destination.Realize and compiling
When translating Android source codes, other directory trees in addition to the directory tree where file to be compiled are able to rely on(Second mesh
Record tree).The dependent file could be obtained in local compiling by avoiding compiling main frame, save the time that compiling dependent file takes
And resource.Moreover, the compiling main frame need to only download this without the Android source codes for safeguarding complete set are being locally-downloaded
The corresponding source code of module, reduces the occupancy of hard drive space.Required hard drive space and compilation time is greatly reduced, is improved
System development efficiency.
Figure 10 is a kind of block diagram for being used to realize the device 800 of program compiling according to an exemplary embodiment.Example
Such as, device 800 can be mobile phone, and computer, digital broadcast terminal, messaging devices, game console, flat board is set
It is standby, Medical Devices, body-building equipment, personal digital assistant etc..
Reference picture 10, device 800 can include following one or more assemblies:Processing assembly 802, memory 804, power supply
Component 806, multimedia groupware 808, audio-frequency assembly 810, input/output(I/O)Interface 812, sensor cluster 814, and
Communication component 816.
The integrated operation of the usual control device 800 of processing assembly 802, such as with display, call, data communication, phase
Machine operates the operation associated with record operation.Treatment element 802 can refer to including one or more processors 820 to perform
Order, to complete all or part of step of above-mentioned method.In addition, processing assembly 802 can include one or more modules, just
Interaction between processing assembly 802 and other assemblies.For example, processing component 802 can include multi-media module, it is many to facilitate
Interaction between media component 808 and processing assembly 802.
Memory 804 is configured as storing various types of data supporting the operation in equipment 800.These data are shown
Example includes the instruction of any application program or method for being operated on device 800, and contact data, telephone book data disappears
Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group
Close and realize, such as static RAM(SRAM), Electrically Erasable Read Only Memory(EEPROM), it is erasable to compile
Journey read-only storage(EPROM), programmable read only memory(PROM), read-only storage(ROM), magnetic memory, flash
Device, disk or CD.
Electric power assembly 806 provides electric power for the various assemblies of device 800.Electric power assembly 806 can include power management system
System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 800.
Multimedia groupware 808 is included in the screen of one output interface of offer between described device 800 and user.One
In a little embodiments, screen can include liquid crystal display(LCD)And touch panel(TP).If screen includes touch panel, screen
Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings
Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action
Border, but also detection touches or slide related duration and pressure with described.In certain embodiments, many matchmakers
Body component 808 includes a front camera and/or rear camera.When equipment 800 be in operator scheme, such as screening-mode or
During video mode, front camera and/or rear camera can receive the multi-medium data of outside.Each front camera and
Rear camera can be a fixed optical lens system or with focusing and optical zoom capabilities.
Audio-frequency assembly 810 is configured as output and/or input audio signal.For example, audio-frequency assembly 810 includes a Mike
Wind(MIC), when device 800 be in operator scheme, when such as call model, logging mode and speech recognition mode, microphone by with
It is set to reception external audio signal.The audio signal received can be further stored in memory 804 or via communication set
Part 816 is sent.In certain embodiments, audio-frequency assembly 810 also includes a loudspeaker, for exports audio signal.
I/O interfaces 812 is provide interface between processing assembly 802 and peripheral interface module, above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor cluster 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented
Estimate.For example, sensor cluster 814 can detect opening/closed mode of equipment 800, the relative positioning of component is for example described
Component is the display and keypad of device 800, and sensor cluster 814 can be with 800 1 components of detection means 800 or device
Position change, the existence or non-existence that user contacts with device 800, the orientation of device 800 or acceleration/deceleration and device 800
Temperature change.Sensor cluster 814 can include proximity transducer, be configured to detect in not any physical contact
The presence of neighbouring object.Sensor cluster 814 can also include optical sensor, such as CMOS or ccd image sensor, for into
As being used in application.In certain embodiments, the sensor cluster 814 can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device
800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation
In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 816 also includes near-field communication(NFC)Module, to promote junction service.Example
Such as, radio frequency identification can be based in NFC module(RFID)Technology, Infrared Data Association(IrDA)Technology, ultra wide band(UWB)Technology,
Bluetooth(BT)Technology and other technologies are realized.
In the exemplary embodiment, device 800 can be by one or more application specific integrated circuits(ASIC), numeral letter
Number processor(DSP), digital signal processing appts(DSPD), PLD(PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components realize, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory 804 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 820 of device 800.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory(RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when processing of the instruction in the storage medium by mobile terminal
When device is performed so that mobile terminal is able to carry out a kind of program compiling method, and methods described includes:
The dependent file that query compiler file to be compiled is relied on from the first directory tree;
From compiler server compiles the second directory tree that Android source codes are obtained, the dependent file is obtained;
The file to be compiled is compiled according to the dependent file, file destination is obtained.
Alternatively, from compiler server compiles the second directory tree that Android source codes are obtained, the dependence text is obtained
Part, in the following way:
Routing information of the dependent file in the compiler server is obtained from second directory tree;
The dependent file is obtained according to the routing information.
Alternatively, from second directory tree, the routing information of the dependent file is obtained, in the following way:
Receive between each dependent file and routing information in second directory tree that the compiler server is sent
Mapping relations;
According to the mapping relations, inquiry obtains the corresponding path letter of dependent file that the file to be compiled is relied on
Breath.
Alternatively, from compiler server compiles the second directory tree that Android source codes are obtained, the dependence text is obtained
Part, in the following way:
The fileinfo for the dependent file that the file to be compiled is relied on, the file are sent to the compiler server
Information at least includes the file name of the dependent file;
Receive the dependent file that the compiler server is obtained according to the fileinfo of the dependent file;By compiling
The mapping relations between each dependent file and routing information in second directory tree described in server lookup, obtain it is described according to
Rely the routing information of file, and the dependent file is obtained according to the routing information;The mapping relations are stored in the volume
Translate in server.
Alternatively, the dependent file that query compiler file to be compiled is relied on from the first directory tree, using as follows
Mode:
The dependence of each file to be compiled in first directory tree is obtained, the dependence is used to store each
Corresponding relation between the dependent file that file to be compiled and each described file to be compiled are relied on;
According to the dependence, inquiry obtains the dependent file that the file to be compiled is relied on.
Alternatively, methods described also includes:Search whether there is the file institute to be compiled in first directory tree
The dependent file of dependence;When the dependent file that the file to be compiled is relied on is not present in first directory tree, perform
In second directory tree obtained from compiler server compiling Android source codes, the step of obtaining the dependence.
Figure 11 is the structural representation in the embodiment of the present disclosure.The server 1900 can be produced because of configuration or performance difference
Than larger difference, one or more central processing units can be included(Central processing units, CPU)
1922(For example, one or more processors)With memory 1932, one or more storage application programs 1942 or
The storage medium 1930 of data 1944(Such as one or more mass memory units).Wherein, memory 1932 and storage
Medium 1930 can be of short duration storage or persistently storage.Be stored in storage medium 1930 program can include one or one with
Upper module(Diagram is not marked), each module can be including operating to the series of instructions in server.Further, it is central
Processor 1922 could be arranged to communicate with storage medium 1930, and one performed on server 1900 in storage medium 1930 is
Row command operating.
Server 1900 can also include one or more power supplys 1926, one or more wired or wireless nets
Network interface 1950, one or more input/output interfaces 1958, one or more keyboards 1956, and/or, one or
More than one operating system 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM
Etc..
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the storage medium 1930 of instruction, above-mentioned instruction can be performed to complete above-mentioned side by the processor 1922 of server 1900
Method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory(RAM), CD-ROM, magnetic
Band, floppy disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when processor of the instruction in the storage medium by server
During execution so that server is able to carry out a kind of program compiling method, methods described includes:
Obtain Android source codes;
The second directory tree is obtained, and preserves the mapping pass of each dependent file in second directory tree and routing information
System;Be used to making compiling main frame to obtain the dependent file that file to be compiled is relied on according to the mapping relations, and according to it is described according to
The file to be compiled for relying file to compile in the first directory tree obtains file destination.
Alternatively, methods described also includes:
Whether the Android source codes stored in detection compiling main frame are changed;
When detecting that the Android source codes that store are changed in compiling main frame, according to amended Android
Source code, updates the Android source codes stored in compiler server;
Android source codes after compiling renewal, update each dependent file in second directory tree.
Alternatively, the corresponding source code of each file destination that compiling main frame compiling is obtained is obtained, in the following way:
Compiler server obtains the corresponding Android source codes of each file destination from central server, described
Android source codes are uploaded to central server by compiling main frame by the obtained corresponding source code of file destination is compiled;
Or,
Compiler server obtains the corresponding Android source codes of each file destination from compiling main frame.
Alternatively, methods described also includes:
The mapping relations are sent to compiling main frame, the mapping relations are used to make compiling main frame obtain file to be compiled
The routing information of the dependent file relied on, obtains the dependent file, and rely on text according to described according to the routing information
The file to be compiled that part is compiled in the first directory tree obtains file destination.
Alternatively, methods described also includes:Receive the dependence text that the file to be compiled of compiling main frame transmission is relied on
The fileinfo of part, the fileinfo at least includes the file name of the dependent file;According to the text of the dependent file
Part information, inquires about the routing information that the mapping relations obtain the dependent file.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice invention disclosed herein
Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or
Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following
Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.
It should be noted that herein, the relational terms of such as " first " and " second " or the like are used merely to one
Individual entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operate it
Between there is any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Cover including for nonexcludability, so that process, method, article or equipment including a series of key elements not only include those
Key element, but also other key elements including being not expressly set out, or also include for this process, method, article or set
Standby intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Also there is other identical element in the process including the key element, method, article or equipment.
Claims (17)
1. a kind of program compiling method, it is characterised in that including:
The dependent file that query compiler file to be compiled is relied on from the first directory tree;
From compiler server compiles the second directory tree that Android source codes are obtained, the dependent file is obtained;
The file to be compiled is compiled according to the dependent file, file destination is obtained;
Wherein, from compiler server compiles the second directory tree that Android source codes are obtained, the dependent file is obtained, is adopted
Use following manner:
Routing information of the dependent file in the compiler server is obtained from second directory tree;
The dependent file is obtained according to the routing information.
2. according to the method described in claim 1, it is characterised in that obtain the dependent file from second directory tree and exist
Routing information in the compiler server, in the following way:
Receive reflecting between each dependent file and routing information in second directory tree that the compiler server is sent
Penetrate relation;
According to the mapping relations, inquiry obtains the corresponding routing information of dependent file that the file to be compiled is relied on.
3. according to the method described in claim 1, it is characterised in that compile what Android source codes were obtained from compiler server
In second directory tree, the dependent file is obtained, in the following way:
The fileinfo for the dependent file that the file to be compiled is relied on, the fileinfo are sent to the compiler server
At least include the file name of the dependent file;
Receive the dependent file that the compiler server is obtained according to the fileinfo of the dependent file;By compiling service
The mapping relations that device is inquired about between each dependent file in second directory tree and routing information, obtained dependence text
The routing information of part, and obtain the dependent file according to the routing information;The mapping relations are stored in the compiling clothes
It is engaged in device.
4. according to the method described in claim 1, it is characterised in that the query compiler file to be compiled from the first directory tree
The dependent file relied on, in the following way:
The dependence of each file to be compiled in first directory tree is obtained, the dependence is waited to compile for storing each
Corresponding relation between the dependent file that translation part and each described file to be compiled are relied on;
According to the dependence, inquiry obtains the dependent file that the file to be compiled is relied on.
5. according to the method described in claim 1, it is characterised in that methods described also includes:
Search whether there is the dependent file that the file to be compiled is relied in first directory tree;
When the dependent file that the file to be compiled is relied on is not present in first directory tree, perform described from compiling clothes
In the second directory tree that business device compiling Android source codes are obtained, the step of obtaining the dependence.
6. a kind of program compiling method, it is characterised in that including:
Obtain Android source codes;
Compile the Android source codes and obtain the second directory tree, and preserve each dependent file in second directory tree
With the mapping relations of routing information;The mapping relations are used to make compiling main frame obtain the dependence text that file to be compiled is relied on
Part, and according to the dependent file compile the first directory tree in file to be compiled obtain file destination.
7. method according to claim 6, it is characterised in that methods described also includes:
Whether the Android source codes stored in detection compiling main frame are changed;
When detecting that the Android source codes that store are changed in compiling main frame, according to amended Android sources generation
Code, updates the Android source codes stored in compiler server;
Android source codes after compiling renewal, update each dependent file in second directory tree.
8. method according to claim 7, it is characterised in that obtain each file destination pair that compiling main frame compiling is obtained
The source code answered, in the following way:
Compiler server obtains the corresponding Android source codes of each file destination, the Android sources from central server
Code is uploaded to central server by compiling main frame by the obtained corresponding source code of file destination is compiled;
Or,
Compiler server obtains the corresponding Android source codes of each file destination from compiling main frame.
9. method according to claim 8, it is characterised in that methods described also includes:
The mapping relations are sent to compiling main frame, the mapping relations be used to making compiling main frame obtain file institute to be compiled according to
The routing information of bad dependent file, obtains the dependent file, and compile according to the dependent file according to the routing information
The file to be compiled translated in the first directory tree obtains file destination.
10. method according to claim 8, it is characterised in that methods described also includes:
The fileinfo for the dependent file that the file to be compiled that reception compiling main frame is sent is relied on, the fileinfo is extremely
Include the file name of the dependent file less;
According to the fileinfo of the dependent file, the routing information that the mapping relations obtain the dependent file is inquired about.
11. a kind of program compilation device, it is characterised in that including:
First query unit, for the dependent file that query compiler file to be compiled is relied on from the first directory tree;
First acquisition unit, used in compiling the second directory tree that Android source codes are obtained from compiler server, obtains described
Dependent file;
Compilation unit, for compiling the file to be compiled according to the dependent file, obtains file destination;
Wherein, the first acquisition unit, including:
First obtains subelement, for obtaining the dependent file in the compiler server from second directory tree
Routing information;
Second obtains subelement, for obtaining the dependent file according to the routing information.
12. device according to claim 11, it is characterised in that described first obtains subelement, including:
First receiving subelement, for receiving each dependent file in second directory tree that the compiler server is sent
Mapping relations between routing information;
First inquiry subelement, for according to the mapping relations, inquiry to obtain the dependence text that the file to be compiled is relied on
The corresponding routing information of part.
13. device according to claim 11, it is characterised in that the first acquisition unit, including:
Transmitting element, the file for sending the dependent file that the file to be compiled is relied on to the compiler server is believed
Breath, the fileinfo at least includes the file name of the dependent file;
Second receiving subelement, for receiving the compiler server according to being obtained the fileinfo of the dependent file
Dependent file;The mapping inquired about by compiler server between each dependent file in second directory tree and routing information is closed
System, the routing information of the obtained dependent file, and obtain the dependent file according to the routing information;The mapping is closed
System is stored in the compiler server.
14. device according to claim 11, it is characterised in that first query unit, including:
3rd obtains subelement, the dependence for obtaining each file to be compiled in first directory tree, the dependence
Relation is used to store the corresponding relation between the dependent file that each file to be compiled and each described file to be compiled are relied on;
Second inquiry subelement, for according to the dependence, inquiry to obtain the dependence text that the file to be compiled is relied on
Part.
15. device according to claim 11, it is characterised in that described device also includes:
Searching unit, for searching whether there is the dependence text that the file to be compiled is relied in first directory tree
Part;When the dependent file that the file to be compiled is relied on is not present in first directory tree, output makes described first to obtain
Unit is taken to perform the signal of corresponding actions.
16. a kind of program compilation device, it is characterised in that including:
First acquisition unit, for obtaining Android source codes;
First compilation unit, obtains the second directory tree, and preserve second directory tree for compiling the Android source codes
In each dependent file and routing information mapping relations;The mapping relations are used to make compiling main frame obtain file to be compiled
The dependent file relied on, and according to the dependent file compile the first directory tree in file to be compiled obtain file destination.
17. device according to claim 16, it is characterised in that described device also includes:
Detection unit, for detecting whether the Android source codes stored in compiling main frame are changed;
Source code updating block, for when detect compiling main frame in the Android source codes changed when, according to modification
The Android source codes stored in renewal compiler server afterwards;
Second compilation unit, for compiling the Android source codes after updating, updates each dependence in second directory tree
File.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410055020.9A CN103870310B (en) | 2014-02-18 | 2014-02-18 | Program compiling method and relevant apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410055020.9A CN103870310B (en) | 2014-02-18 | 2014-02-18 | Program compiling method and relevant apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103870310A CN103870310A (en) | 2014-06-18 |
CN103870310B true CN103870310B (en) | 2017-07-14 |
Family
ID=50908877
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410055020.9A Active CN103870310B (en) | 2014-02-18 | 2014-02-18 | Program compiling method and relevant apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103870310B (en) |
Families Citing this family (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9569199B2 (en) * | 2015-01-22 | 2017-02-14 | Futurewei Technologies, Inc. | Systems and methods to update source code files |
CN104866369B (en) * | 2015-05-22 | 2018-05-08 | 广州华多网络科技有限公司 | The method and device of a kind of data processing |
CN106325966B (en) * | 2015-06-29 | 2019-08-13 | 南京中兴软件有限责任公司 | Software compilation method and device |
CN105718296B (en) * | 2016-04-21 | 2019-11-08 | 北京元心科技有限公司 | Generation display method and device for compiling dependency tree |
CN107783765A (en) * | 2017-10-17 | 2018-03-09 | 杭州迪普科技股份有限公司 | file compiling method and device |
CN110389762B (en) * | 2018-04-19 | 2024-06-18 | 北京京东尚科信息技术有限公司 | Method and device for processing AAR package in Android engineering |
CN108595200B (en) * | 2018-04-19 | 2020-05-15 | 北京微播视界科技有限公司 | Code updating method, graph updating method, device, storage medium and terminal |
CN110737437A (en) * | 2018-07-20 | 2020-01-31 | 北京君正集成电路股份有限公司 | compiling method and device based on code integration |
CN110737429A (en) * | 2018-07-20 | 2020-01-31 | 北京君正集成电路股份有限公司 | modular compiling method and device utilizing Makefile self-dependent relationship |
CN110737438A (en) * | 2018-07-20 | 2020-01-31 | 北京君正集成电路股份有限公司 | data processing method and device |
CN109344051B (en) * | 2018-08-28 | 2022-03-25 | 北京达佳互联信息技术有限公司 | Data processing method and device, electronic equipment and storage medium |
CN111078264A (en) * | 2018-10-22 | 2020-04-28 | 杭州海康威视系统技术有限公司 | Application upgrading method and device |
CN109669692B (en) * | 2018-12-21 | 2023-03-10 | 深圳Tcl新技术有限公司 | Source code sharing method, server, computer readable storage medium and system |
CN109710266B (en) * | 2019-01-17 | 2022-02-18 | 郑州云海信息技术有限公司 | Task processing method in heterogeneous system, host server and heterogeneous system |
CN110058850B (en) * | 2019-04-10 | 2022-12-09 | 腾讯音乐娱乐科技(深圳)有限公司 | Application development method and device and storage medium |
CN110554965B (en) * | 2019-09-05 | 2021-08-17 | 腾讯科技(深圳)有限公司 | Automated fuzz testing method, related equipment and computer readable storage medium |
CN112748946B (en) * | 2019-10-30 | 2023-11-24 | 腾讯科技(深圳)有限公司 | Application program installation file generation method and device, computing equipment and storage medium |
CN110955415B (en) * | 2019-12-03 | 2024-03-08 | 杭州当贝网络科技有限公司 | Method for projecting multi-platform service adaptation |
WO2021146898A1 (en) * | 2020-01-21 | 2021-07-29 | 深圳元戎启行科技有限公司 | Compilation method and apparatus, computer device, and computer readable storage medium |
CN111475164B (en) * | 2020-03-02 | 2024-04-05 | 百度在线网络技术(北京)有限公司 | Component dependency relationship detection method and device and electronic equipment |
CN113296778B (en) * | 2020-04-13 | 2024-06-25 | 灵犀互动娱乐控股有限公司 | Method, device, server, client and system for processing resource file |
CN111459499A (en) * | 2020-04-20 | 2020-07-28 | 网易(杭州)网络有限公司 | Program compiling method and device, computer storage medium and electronic equipment |
CN112965720B (en) * | 2021-02-19 | 2024-06-18 | 上海微盟企业发展有限公司 | Component compiling method, device, equipment and computer readable storage medium |
CN114020694B (en) * | 2021-10-19 | 2022-10-28 | 北京五八信息技术有限公司 | Header file address acquisition method and device, electronic equipment and storage medium |
CN117251165B (en) * | 2023-08-24 | 2024-06-25 | 上海合芯数字科技有限公司 | Buildroot compiling method, buildroot compiling device, terminal and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101821711A (en) * | 2007-08-23 | 2010-09-01 | 埃森哲环球服务有限公司 | Binary library |
CN102118500A (en) * | 2010-12-27 | 2011-07-06 | 清华大学 | Software package-based online automatic updating method for open source operating system of mobile terminal |
CN102156643A (en) * | 2011-04-25 | 2011-08-17 | 青岛海信传媒网络技术有限公司 | Software integration method and system thereof |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009048252A (en) * | 2007-08-14 | 2009-03-05 | Oki Electric Ind Co Ltd | Program conversion device and compiler program |
-
2014
- 2014-02-18 CN CN201410055020.9A patent/CN103870310B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101821711A (en) * | 2007-08-23 | 2010-09-01 | 埃森哲环球服务有限公司 | Binary library |
CN102118500A (en) * | 2010-12-27 | 2011-07-06 | 清华大学 | Software package-based online automatic updating method for open source operating system of mobile terminal |
CN102156643A (en) * | 2011-04-25 | 2011-08-17 | 青岛海信传媒网络技术有限公司 | Software integration method and system thereof |
Also Published As
Publication number | Publication date |
---|---|
CN103870310A (en) | 2014-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103870310B (en) | Program compiling method and relevant apparatus | |
US10171586B2 (en) | Physical environment profiling through Internet of Things integration platform | |
EP3019969B1 (en) | Data consolidation mechanisms for internet of things integration platform | |
CN104394506B (en) | Place update based on push | |
CN104866505B (en) | Application recommendation method and device | |
CN108780463A (en) | Social map generalization and management | |
CN107210033A (en) | The language understanding sorter model for personal digital assistant is updated based on mass-rent | |
CN107423106A (en) | The method and apparatus for supporting more frame grammars | |
CN106201491B (en) | Mobile terminal and method and device for controlling remote assistance process of mobile terminal | |
CN107102746A (en) | Candidate word generation method, device and the device generated for candidate word | |
CN107038214A (en) | Expression information processing method and processing device | |
CN104035995A (en) | Method and device for generating group tags | |
CN103916468B (en) | Method for upgrading system, terminal, server and upgrade-system | |
CN106790895A (en) | A kind of fault handling method and device | |
CN106095455A (en) | A kind of application update method and device | |
CN109358933A (en) | The creation method and device applied fastly | |
CN106713608A (en) | Application function state modifying method and apparatus, and terminal | |
CN103905442A (en) | Wakeup method and device in data synchronization | |
CN106503077A (en) | The management method of media content, device and equipment | |
CN110837404A (en) | Shortcut operation processing method and device for internal function module and storage medium | |
CN102214093A (en) | Search extensibility to third party applications | |
CN107402756A (en) | For drawing the method, apparatus and terminal of the page | |
CN106209429A (en) | Collecting method and device | |
CN105204879A (en) | Application updating method and device | |
CN113434134A (en) | Component processing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |