Method, apparatus, computer device and readable storage medium for generating static library

A static library and engineering technology, applied in the computer field, can solve the problem of low efficiency in generating static library files, and achieve the effect of improving the generation efficiency

Pending Publication Date: 2019-01-04
WUBA
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The present invention proposes a method, device, computer equipment and computer-readable storage medium for g

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, apparatus, computer device and readable storage medium for generating static library
  • Method, apparatus, computer device and readable storage medium for generating static library
  • Method, apparatus, computer device and readable storage medium for generating static library

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0057] In the first embodiment of the present invention, a method for generating a static library, such as figure 1 shown, including the following specific steps:

[0058] In step S101, compile the terminal class and the emulator class in parallel for the source code files corresponding to the development project, so as to obtain the compilation result of each development project.

[0059] In this embodiment, the number of development projects is not specifically limited, and may be one or multiple.

[0060] Wherein, when the number of development projects is one, step S101 includes:

[0061] Compile the terminal class and simulator class in parallel for the source code files corresponding to the development project to obtain two compilation results of the development project;

[0062] In the case that the number of development projects is multiple, step S101 includes:

[0063] Compile the terminal class and the emulator class in parallel for the source code files correspon...

no. 2 example

[0073] In the second embodiment of the present invention, a method for generating a static library, such as figure 2 shown, including the following specific steps:

[0074] In step S201, the terminal class and the emulator class are compiled in parallel for the source code files corresponding to the development project, so as to obtain the compilation result of each development project.

[0075] Step S202, perform each of the following operations in parallel on the compilation result of each development project: merge the static library extracted from the compilation result of each development project, extract the header file in the compilation result of each development project, And extract the resource files in the compilation result of each development project.

[0076] For example, when the number of development projects is one, step S202 specifically includes: performing each of the following operations in parallel on the compilation result of the development project: m...

no. 3 example

[0083] In the third embodiment of the present invention, a method for generating a static library, such as image 3 shown, including the following specific steps:

[0084] In step S301, the terminal class and the emulator class are compiled in parallel for the source code files corresponding to the development project, so as to obtain the compilation result of each development project.

[0085] Step S302, create a set number of well-known pipelines to obtain thread tokens through each well-known pipeline; create a static library data file extraction operation thread through each well-known pipeline according to the obtained thread tokens; An extraction operation of a static library data file is performed in the extraction operation thread.

[0086] In this embodiment, the extraction operation of a static library data file is executed in parallel in each extraction operation thread, including:

[0087] Execute one of the following static library data file extraction operation...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method for generating a static library, which comprises the following steps: compiling terminal class and simulator class in parallel to the source code file corresponding tothe development project to obtain the compiling result of each development project; compiling the source code file according to the source code file; performing a static library data file extraction operation on the compiled results of each development project in parallel; the extracted static library data files corresponding to each development project being combined into one static library file.The invention also discloses a device for generating a static library, a computer device and a computer-readable storage medium. By implementing the scheme, the automatic generation of the static library files of the batch development project is realized, and the generation efficiency of the static library files is effectively improved.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method, device, computer equipment and computer-readable storage medium for generating a static library. Background technique [0002] As business functions of application programs (App, Application) continue to increase, when developing an application program, the application program is divided into multiple development projects for development. When compiling the source code file of the development project into a static library file, first, the source code file needs to be compiled in sequence for terminal class and simulator class to obtain two compilation results; secondly, perform the following operations in sequence: combine the two The static library (.a library) in the compilation result is merged, the header file (.h file) in each compilation result is extracted separately, and the resource file in each compilation result is extracted separately; finally, the...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F8/41
CPCG06F8/41
Inventor 曾庆隆吕庆春彭飞
Owner WUBA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products