CN104834515A - Generation method of object file - Google Patents

Generation method of object file Download PDF

Info

Publication number
CN104834515A
CN104834515A CN201510144875.3A CN201510144875A CN104834515A CN 104834515 A CN104834515 A CN 104834515A CN 201510144875 A CN201510144875 A CN 201510144875A CN 104834515 A CN104834515 A CN 104834515A
Authority
CN
China
Prior art keywords
engineering
packing
storehouse
installation kit
carries out
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.)
Pending
Application number
CN201510144875.3A
Other languages
Chinese (zh)
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.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201510144875.3A priority Critical patent/CN104834515A/en
Publication of CN104834515A publication Critical patent/CN104834515A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a generation method of an object file. The generation method comprises the following steps: establishing an engineering library, wherein the engineering library comprises engineering used for realizing different functions; and selecting the engineering from the engineering library to carry out compiling and packaging, and generating the object file. Object files with different functions can be flexibly generated on the basis of one set of engineering library (or on the basis of one set of codes) so as to generate the object files suitable for different users with low development cost and maintenance cost, and product development efficiency and user experience can be improved.

Description

The generation method of file destination
Technical field
The present invention relates to field of software development, specifically, relate to a kind of generation method of file destination.
Background technology
Along with Internet user increasing product demand, for Android product, the function of Android application program is more and more huger and complicated, and this also causes Android installation kit Apk Documents Comparison large.And in fact, different user for identical product (such as, Baidu's mhkc) there is different functional requirements, therefore, complete and larger installation kit except adding users use cost, consume user terminal more hardware resource except, better experience can't be brought for user.
In addition, the method of existing generation installation kit is that a set of code is packed out an installation kit, in other words, must design overlap code more if will generate multiple installation kit, and have a large amount of redundancy logics and redundant code between many cover codes, this adds maintenance difficulties and cost of development undoubtedly.
Summary of the invention
In order to solve the defect existing for prior art, embodiment of the present invention provides a kind of generation method of file destination, can generate the file destination with difference in functionality as required neatly.
The embodiment of the present invention provides a kind of generation method of file destination, comprising:
Set up engineering storehouse, described engineering storehouse comprises the engineering for realizing difference in functionality;
From described engineering storehouse, choose engineering carry out compiling and packing, generating object file.
Alternatively, in a kind of implementation of the present embodiment, described engineering storehouse of setting up comprises: set up multiple engineering according to the function of project to be developed, and described multiple engineering is respectively used to the difference in functionality realizing described project to be developed.
Alternatively, in the another kind of implementation of the present embodiment, described engineering of choosing from described engineering storehouse carries out compiling and packing, generating object file, comprising: the engineering of the function chosen for realizing simple version installation kit from described engineering storehouse carries out compiling and packing, generating simple version installation kit; Or the engineering choosing the function for realizing full version installation kit from described engineering storehouse carries out compiling and packing, generate full version installation kit; Or the engineering chosen from described engineering storehouse for realizing appointed function carries out compiling and packing, generate plug-in unit.
Alternatively, in another implementation of the present embodiment, described method also comprises: be the engineering installation compiler toggle in described engineering storehouse, wherein, compiler toggle is in the engineering of the first state for generation installation kit of packing, and compiler toggle is in the engineering of the second state for generation plug-in unit of packing.Further, described engineering of choosing from described engineering storehouse carries out compiling and packing, generating object file, comprising: compile the engineering chosen, and according to compiler toggle, the engineering chosen is packaged into installation kit and/or plug-in unit.
The embodiment of the present invention is adopted to have following beneficial effect:
Compile by choosing engineering from engineering storehouse as required, can based on a set of engineering storehouse (in other words, based on a set of code) generate the file destination with difference in functionality neatly, thus can with lower cost of development and maintenance cost, generate the file destination being applicable to different user, improve product development efficiency and Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the generation method of a kind of file destination according to the embodiment of the present invention.
Embodiment
Be described in detail to various aspects of the present invention below in conjunction with the drawings and specific embodiments.Wherein, well-known module, unit and connection each other, link, communication or operation do not illustrate or do not elaborate.Further, described feature, framework or function can combine by any way in one or more embodiments.It will be appreciated by those skilled in the art that following various embodiments are only for illustrating, but not for limiting the scope of the invention.Can also easy understand, the module in each embodiment described herein and shown in the drawings or unit or step can be undertaken combining and designing by various different configuration.
Fig. 1 is the schematic flow sheet of the generation method of a kind of file destination according to the embodiment of the present invention, and with reference to Fig. 1, described method comprises:
10: set up engineering storehouse, described engineering storehouse comprises the engineering for realizing difference in functionality.Wherein, engineering refers to, such as, and project newly-built inside java developing instrument.
Alternatively, in a kind of implementation of the present embodiment, process 10 specifically comprises: set up multiple engineering according to the function of project to be developed, the plurality of engineering is respectively used to the difference in functionality realizing project to be developed.Wherein, " project to be developed " can be understood as the product with complete function.
For example, with this project to be developed of Baidu's mhkc, notice's page engineering can be split as according to function, be entered page engineering, the engineering such as list page engineering, neighbouring people's engineering, each engineering all belongs to an independent engineering and concrete function for realizing this project to be developed of Baidu's mhkc.
In the present embodiment, those skilled in the art can divide the function of project to be developed, the engineering quantity determined in engineering storehouse as required neatly, design the specific implementation etc. of each engineering, and the present invention does not do concrete restriction to this.
12: from engineering storehouse, choose engineering carry out compiling and packing, generating object file.
Adopt the method that the present embodiment provides, undertaken compiling and packing by setting up engineering storehouse and choose engineering as required from engineering storehouse, can based on a set of engineering storehouse (in other words, can based on a set of code) generate the file destination with difference in functionality combination, and then can for different user flexibly and generate different file destinations easily, improve product development efficiency and Consumer's Experience, reduce development and maintenance cost.
Alternatively, in a kind of implementation of the present embodiment, process 12 can comprise: the engineering choosing the function for realizing simple version installation kit from engineering storehouse carries out compiling and packing, and generates corresponding simple version installation kit; The engineering choosing the function for realizing full version installation kit from engineering storehouse carries out compiling and packing, and generates full version installation kit; The engineering chosen from engineering storehouse for realizing appointed function carries out compiling and packing, and generates plug-in unit.
Wherein, simple version installation kit refers to the installation kit with basic function; Full version installation kit refers to the installation kit with all functions.Those skilled in the art can define the basic function of an installation kit flexibly, also can define the repertoire of an installation kit flexibly, and therefore, which function the present invention does not specifically comprise to simple version installation kit and full version installation kit specifically limits.The installation kit with difference in functionality can be generated neatly by this implementation, or generate the plug-in unit with appointed function.The plug-in unit generated may be used for installing with the function expanding simple version installation kit.
Alternatively, in a kind of implementation of the present embodiment, can be the engineering installation compiler toggle in engineering storehouse, wherein, compiler toggle is in the engineering of the first state for generation installation kit of packing, and compiler toggle is in the engineering of the second state for generation plug-in unit of packing.Certainly, compiler toggle can also be configured to if necessary for representing the third state of not carrying out packing.Wherein, more specifically, compiler toggle can be the configurable parameter in engineering.
In this implementation, utilize compiler toggle can generate the file destination of different-format neatly.Such as, after choosing engineering according to file generated strategy, the engineering chosen is packaged into installation kit and/or plug-in unit by the compiler toggle according to selected engineering.More specifically, if have chosen multiple engineering, and the compiler toggle of part engineering is wherein in the first state, the compiler toggle of another part engineering is in the second state, then the engineering being in the first state is packed composition installation kit together (such as, Android installation kit), the engineering being in the second state is packaged into plug-in unit respectively.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode of software combined with hardware platform.Based on such understanding, what technical scheme of the present invention contributed to background technology can embody with the form of software product in whole or in part, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, smart mobile phone or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
The term used in instructions of the present invention and wording, just to illustrating, are not meaned and are formed restriction.It will be appreciated by those skilled in the art that under the prerequisite of the ultimate principle not departing from disclosed embodiment, can various change be carried out to each details in above-mentioned embodiment.Therefore, scope of the present invention is only determined by claim, and in the claims, except as otherwise noted, all terms should be understood by the most wide in range rational meaning.

Claims (7)

1. a generation method for file destination, is characterized in that, described method comprises:
Set up engineering storehouse, described engineering storehouse comprises the engineering for realizing difference in functionality;
From described engineering storehouse, choose engineering carry out compiling and packing, generating object file.
2. the method for claim 1, is characterized in that, described engineering storehouse of setting up comprises:
Set up multiple engineering according to the function of project to be developed, described multiple engineering is respectively used to the difference in functionality realizing described project to be developed.
3. method as claimed in claim 1 or 2, it is characterized in that, described engineering of choosing from described engineering storehouse carries out compiling and packing, generating object file, comprising:
The engineering of the function chosen for realizing simple version installation kit from described engineering storehouse carries out compiling and packing, and generates simple version installation kit.
4. method as claimed in claim 1 or 2, it is characterized in that, described engineering of choosing from described engineering storehouse carries out compiling and packing, generating object file, comprising:
The engineering choosing the function for realizing full version installation kit from described engineering storehouse carries out compiling and packing, and generates full version installation kit.
5. method as claimed in claim 1 or 2, it is characterized in that, described engineering of choosing from described engineering storehouse carries out compiling and packing, generating object file, comprising:
The engineering chosen from described engineering storehouse for realizing appointed function carries out compiling and packing, and generates plug-in unit.
6. method as claimed in claim 1 or 2, it is characterized in that, described method also comprises:
For the engineering installation compiler toggle in described engineering storehouse, wherein, compiler toggle is in the engineering of the first state for generation installation kit of packing, and compiler toggle is in the engineering of the second state for generation plug-in unit of packing.
7. method as claimed in claim 6, it is characterized in that, described engineering of choosing from described engineering storehouse carries out compiling and packing, generating object file, comprising:
The engineering chosen is compiled, and according to compiler toggle, the engineering chosen is packaged into installation kit and/or plug-in unit.
CN201510144875.3A 2015-03-30 2015-03-30 Generation method of object file Pending CN104834515A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510144875.3A CN104834515A (en) 2015-03-30 2015-03-30 Generation method of object file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510144875.3A CN104834515A (en) 2015-03-30 2015-03-30 Generation method of object file

Publications (1)

Publication Number Publication Date
CN104834515A true CN104834515A (en) 2015-08-12

Family

ID=53812425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510144875.3A Pending CN104834515A (en) 2015-03-30 2015-03-30 Generation method of object file

Country Status (1)

Country Link
CN (1) CN104834515A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105867892A (en) * 2015-11-18 2016-08-17 乐视致新电子科技(天津)有限公司 Centralized management method and system of multi-platform development
CN106569869A (en) * 2016-11-14 2017-04-19 平安科技(深圳)有限公司 Plug-in packaging method and device
WO2017148057A1 (en) * 2016-03-03 2017-09-08 中兴通讯股份有限公司 Software version generation method and apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101271391A (en) * 2008-04-30 2008-09-24 中兴通讯股份有限公司 Production and use method of software system
WO2009123028A1 (en) * 2008-04-01 2009-10-08 京セラ株式会社 User interface generation device
CN102156643A (en) * 2011-04-25 2011-08-17 青岛海信传媒网络技术有限公司 Software integration method and system thereof
CN103135979A (en) * 2011-12-05 2013-06-05 ***通信集团广东有限公司 Method, device and system for generating terminal applications
CN103176769A (en) * 2011-12-20 2013-06-26 阿里巴巴集团控股有限公司 Customizable software deployment, installation method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009123028A1 (en) * 2008-04-01 2009-10-08 京セラ株式会社 User interface generation device
CN101271391A (en) * 2008-04-30 2008-09-24 中兴通讯股份有限公司 Production and use method of software system
CN102156643A (en) * 2011-04-25 2011-08-17 青岛海信传媒网络技术有限公司 Software integration method and system thereof
CN103135979A (en) * 2011-12-05 2013-06-05 ***通信集团广东有限公司 Method, device and system for generating terminal applications
CN103176769A (en) * 2011-12-20 2013-06-26 阿里巴巴集团控股有限公司 Customizable software deployment, installation method and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105867892A (en) * 2015-11-18 2016-08-17 乐视致新电子科技(天津)有限公司 Centralized management method and system of multi-platform development
WO2017148057A1 (en) * 2016-03-03 2017-09-08 中兴通讯股份有限公司 Software version generation method and apparatus
CN106569869A (en) * 2016-11-14 2017-04-19 平安科技(深圳)有限公司 Plug-in packaging method and device
CN106569869B (en) * 2016-11-14 2019-04-19 平安科技(深圳)有限公司 Plug-in unit packaging method and device
US10387169B2 (en) 2016-11-14 2019-08-20 Ping An Technology (Shenzhen) Co., Ltd. Plug-in packaging method, device, terminal and storage media

Similar Documents

Publication Publication Date Title
CN102799640B (en) Page charger and page loading method
US8898662B2 (en) Method and device for generating software installation packet
CN103761087A (en) Method and device for cross-platform development of mobile applications
CN107908403A (en) A kind of collocation method and system of the modularization of mobile terminal business module
CN107168749A (en) A kind of Compilation Method, device, equipment and computer-readable recording medium
CN104731589A (en) Automatic generation method and device of user interface (UI)
JP2009520268A5 (en)
CN103136406A (en) Method for automatic generation of function code for simulation through visualization application program
CN103176769A (en) Customizable software deployment, installation method and system
CN103544005A (en) Expansion developing method and device for Android custom control
CN104346184A (en) Application packaging device and application packaging method
CN104184814A (en) Method and system for generating and compounding embedded firmware differential upgrading file
CN106547527A (en) A kind of JavaScript file construction method and device
CN108647032B (en) Application loading method and device, computer device and computer readable storage medium
CN109656617A (en) A kind of front end Web Service dispositions method, storage medium, electronic equipment and system
CN106202158A (en) The using method of a kind of graphics file format and device
CN103838572A (en) System and method for packing Android SDK
CN104834515A (en) Generation method of object file
CN104866293A (en) Method and device for extending Android application program function
CN104267966A (en) Method and device for generating program codes of software
CN103077038A (en) Method for dynamically generating and compiling .NET item
CN105487874A (en) Unified management method for HTML5 web application and native application in mobile terminal
CN108733376A (en) The method and device of multiple Android APP is compiled under modularization using a set of source code
KR102141749B1 (en) APP program execution method and device
CN102289367A (en) Command line shell command generation based on schema

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150812