CN112506518A - Compiling method and device based on configuration file - Google Patents

Compiling method and device based on configuration file Download PDF

Info

Publication number
CN112506518A
CN112506518A CN202011392198.4A CN202011392198A CN112506518A CN 112506518 A CN112506518 A CN 112506518A CN 202011392198 A CN202011392198 A CN 202011392198A CN 112506518 A CN112506518 A CN 112506518A
Authority
CN
China
Prior art keywords
target
script
source code
compiling
hardware environment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011392198.4A
Other languages
Chinese (zh)
Other versions
CN112506518B (en
Inventor
齐智
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Neusoft Reach Automotive Technology Shenyang Co Ltd
Original Assignee
Neusoft Reach Automotive Technology Shenyang 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 Neusoft Reach Automotive Technology Shenyang Co Ltd filed Critical Neusoft Reach Automotive Technology Shenyang Co Ltd
Priority to CN202011392198.4A priority Critical patent/CN112506518B/en
Publication of CN112506518A publication Critical patent/CN112506518A/en
Application granted granted Critical
Publication of CN112506518B publication Critical patent/CN112506518B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides a compiling method and a compiling device based on a configuration file, which relate to the field of compiling development and comprise the following steps: constructing a development script corresponding to a target hardware environment and a source code compiling script corresponding to a target project; constructing a configuration file corresponding to the target project based on a development script corresponding to the target hardware environment and a source code compiling script corresponding to the target project; according to the name of the target hardware environment and the name of the target project, determining an acquisition path of a source code corresponding to a development script, an acquisition path of a source code corresponding to a source code compiling script and a configuration position of a configuration item corresponding to the target project in a configuration file; and running the development script and the target compiling script according to the acquired path, configuring the configuration items at the configuration positions, and compiling the target inclusion SDK, so that the problems that the standard of similar products is frequently updated, the items are frequently increased and the hardware is frequently expanded, and the compiling environment is frequently constructed are solved.

Description

Compiling method and device based on configuration file
Technical Field
The present invention relates to the field of compiling and developing technologies, and in particular, to a compiling method and device based on a configuration file.
Background
AUTOmotive Open systems architecture (AUTOmotive Open architecture), jointly developed by AUTOmotive manufacturers, suppliers, and tool developers. NeuSARaCore is a product based on AUTOSAR adaptive platform, because the standard of AUTOSAR adaptive platform is still released in the modeling and cable formulation, the product needs to support a plurality of hardware models, the supported hardware models can be continuously expanded subsequently, and each version can correspond to a plurality of projects.
In the early stage, because of the supported items and the fewer standard versions, there are separate branches of compilation, but as the number of standard release versions increases, the supported hardware models expand and the items increase, so that the project requiring compilation increases by the product of each dimension, and the method is increasingly disadvantageous to management.
Disclosure of Invention
In view of this, the present invention provides a compiling method and device based on a configuration file, which solve the problem that a compiling environment needs to be frequently constructed under the conditions of frequent standard updating, frequent project increase and frequent hardware extension of similar products.
In a first aspect, an embodiment provides a configuration file-based compiling method, including:
constructing a development script corresponding to a target hardware environment and a source code compiling script corresponding to a target project, wherein the source code compiling script compiles a source code corresponding to the target project based on the target hardware environment;
constructing a configuration file corresponding to the target project based on the development script corresponding to the target hardware environment and the source code compiling script corresponding to the target project;
according to the name of the target hardware environment and the name of the target project, determining an acquisition path of a source code corresponding to a development script, an acquisition path of a source code corresponding to a source code compiling script and a configuration position of a configuration item corresponding to the target project in the configuration file, wherein the target project and the target hardware environment can comprise a plurality of target projects;
and running the development script and the target compiling script according to the acquisition path, configuring the configuration item at the configuration position, and compiling the target bag body SDK.
In an alternative embodiment, the step of constructing a development script corresponding to the target hardware environment includes:
acquiring a target hardware environment;
and constructing a development script based on the tool chain under the directory corresponding to the target hardware environment.
In an alternative embodiment, the step of constructing a source code compiling script corresponding to the target item includes:
determining a corresponding source code directory according to the target item;
according to the user requirement corresponding to the target project and the development script corresponding to the target hardware environment, the compiling options under the source code catalog are adjusted;
and constructing a source code compiling script for the adjusted compiling options.
In an optional embodiment, the configuration file includes a configuration position of a target hardware environment supported by the target item, a configuration position of a configuration item corresponding to the target item, an acquisition path of a source code corresponding to the target hardware environment, an acquisition path of a source code corresponding to the source code compiling script, a calling parameter of the development script, and a calling parameter of the source code compiling script.
In an optional embodiment, the step of running the development script and the target compilation script according to the acquisition path, configuring the configuration item at the configuration position, and compiling the target packet body SDK includes:
running the development script according to the calling parameters of the development script and the acquisition path of the source code corresponding to the development script, processing a tool chain and setting the environment variable of the target hardware environment;
calling a source code compiling script on an acquisition path of a source code corresponding to the source code compiling script based on the processed tool chain, the set environment variable of the target hardware environment and the calling parameter of the source code compiling script;
compiling the target basic module according to the compiling options in the source code compiling script to obtain a first package body SDK;
configuring the configuration item at the configuration position to obtain a second package body SDK;
and compiling the first inclusion SDK and the second inclusion SDK based on the target compiling script to obtain the target inclusion SDK.
In an alternative embodiment, the method further comprises:
and adding a new target item based on a tool chain corresponding to the hardware environment provided by the user.
In an alternative embodiment, the method further comprises:
and adding a new target hardware environment in the target project by adding an acquisition path and a configuration position of the newly added hardware environment in the configuration file.
In a second aspect, an embodiment provides a configuration file-based compiling apparatus, including:
the first construction module is used for constructing a development script corresponding to a target hardware environment and a source code compiling script corresponding to a target project;
the second construction module is used for constructing a configuration file corresponding to the target project based on the development script corresponding to the target hardware environment and the source code compiling script corresponding to the target project;
a determining module, configured to determine, according to the name of the target hardware environment and the name of the target project, an acquisition path of a source code corresponding to a development script, an acquisition path of a source code corresponding to a source code compilation script, and a configuration position of a configuration item corresponding to the target project in the configuration file, where the target project and the target hardware environment may include a plurality of target projects;
and the compiling module runs the development script and the target compiling script according to the acquisition path, configures the configuration item at the configuration position and compiles the target packet body SDK.
In a third aspect, an embodiment provides an electronic device, including a memory and a processor, where the memory stores a computer program operable on the processor, and the processor implements the steps of the method described in any one of the foregoing embodiments when executing the computer program.
In a fourth aspect, embodiments provide a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to carry out the steps of the method of any preceding embodiment.
According to the compiling method and device based on the configuration file, which are provided by the embodiment of the invention, the target hardware environment required by the user, the source code compiling script corresponding to the target project required by the user and the configuration file required by the user are respectively constructed, and then the constructed script content is obtained based on the configuration file, and the running and compiling are carried out to generate the target inclusion SDK meeting the user requirement. If the standard of the product required by the user is changed, or a new project or hardware environment needs to be added, the corresponding target inclusion SDK can be upgraded and updated only by adding the corresponding new content in the construction process, and the compiling script does not need to be changed every time the new content is changed.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part may be learned by the practice of the above-described techniques of the disclosure, or may be learned by practice of the disclosure.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a configuration file based compiling method according to an embodiment of the present invention;
FIG. 2 is a functional block diagram of a compiling apparatus based on configuration files according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a hardware architecture of an electronic device according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, if the standards of similar products based on AUTOSAR adaptive platform are frequently updated, the compiling script needs to be changed every time of standard updating, and the waste of source code resources is caused while the workload of an engineer is increased.
Based on this, the compiling method and device based on the configuration file provided by the embodiment of the invention can construct a compiling environment based on configuration, solve the problems that the compiling environment needs to be frequently constructed under the conditions that the standards of similar products based on AUTOSAR adaptive platform are frequently updated, the projects are frequently increased and the hardware is frequently expanded, and can easily compile by adding the configuration integration existing environment, so that the compiling program is unified and is easy to maintain.
To facilitate understanding of the embodiment, a configuration file based compiling method disclosed by the embodiment of the invention is first described in detail.
Fig. 1 is a flowchart of a configuration file based compiling method according to an embodiment of the present invention.
As shown in fig. 1, the method comprises the steps of:
step S102, constructing a development script corresponding to a target hardware environment and a source code compiling script corresponding to a target project, wherein the source code compiling script compiles a source code corresponding to the target project based on the target hardware environment;
step S104, constructing a configuration file corresponding to the target project based on the development script corresponding to the target hardware environment and the source code compiling script corresponding to the target project;
step S106, determining an acquisition path of a source code corresponding to a development script, an acquisition path of a source code corresponding to a source code compiling script and a configuration position of a configuration item corresponding to the target item in the configuration file according to the name of the target hardware environment and the name of the target item, wherein the target item and the target hardware environment can comprise a plurality of items;
and step S108, running the development script and the target compiling script according to the acquisition path, configuring the configuration item at the configuration position, and compiling the target packet body SDK.
In a preferred embodiment of practical application, a target hardware environment required by a user, a source code compiling script corresponding to a target project required by the user, and a configuration file required by the user are respectively constructed, and then the constructed script content is obtained based on the configuration file, and running and compiling are performed to generate a target inclusion SDK meeting the user requirement. If the standard of the product required by the user is changed, or a new project or hardware environment needs to be added, the corresponding target inclusion SDK can be upgraded and updated only by adding the corresponding new content in the construction process, and the compiling script does not need to be changed every time the new content is changed.
It should be noted that this compilation script is a target compilation script running step S108, and is not a source code compilation script.
In some embodiments, the step of constructing a development script corresponding to the target hardware environment in S102 includes:
step 1.1), acquiring a target hardware environment;
here, the corresponding target hardware environment is known by the user target item.
Step 1.2), under the catalogue corresponding to the target hardware environment, constructing a development script based on a tool chain;
the directory corresponding to each target hardware environment can be known according to the mapping table stored in advance, and then deployment of the tool chain is achieved. The tool chain may be provided by a user, one for each target hardware environment. As an optional embodiment, if the current AUTOSAR platform has the target hardware environment, a tool chain corresponding to the target hardware environment is searched from the AUTOSAR platform; if the current AUTOSAR platform does not have the target hardware environment, a tool chain corresponding to the target hardware environment needs to be obtained from a user.
In some embodiments, the step of constructing the source code compilation script corresponding to the target item in S102 may further be implemented by the following steps, including:
step 2.1), determining a corresponding source code catalog according to the target item;
here, the target project is an application that a user aims to develop on the AUTOSAR platform, such as an automatic driving application, and according to a project name corresponding to the target project, a source code directory corresponding to the project can be determined.
Step 2.2), according to the user requirement corresponding to the target project and the development script corresponding to the target hardware environment, the compiling options under the source code catalog are adjusted;
because different users may have different functional requirements for the same type of automatic driving application, different basic functional modules need to be screened through compiling options according to the requirements of the users in the construction process. If the user A is that the project requires to use the communication function module but does not use the fault detection module, the compiling option is adjusted, the communication function module is selected, and the fault detection module is set to be in a non-selected state. In addition, the adjustment and compilation are dependent on hardware environments, and if a target project needs two sets of hardware environments C and D, the adjustment and compilation options are adjusted respectively aiming at the hardware environments C and D.
And 2.3) constructing a source code compiling script for the adjusted compiling options.
The source code compiling script is constructed based on the adjusted compiling options, and the basic functions required by the user can be realized by running the source code compiling script. For two sets of hardware environments C and D, source code compiling scripts corresponding to the two sets of hardware environments C and D are respectively constructed.
In some embodiments, the configuration file includes a configuration position of a target hardware environment supported by the target item, a configuration position of a configuration item corresponding to the target item, an acquisition path of a source code corresponding to the target hardware environment, an acquisition path of a source code corresponding to the source code compiling script, a calling parameter of the development script, and a calling parameter of the source code compiling script.
The configuration position and the acquisition path may be recorded in the configuration file in the form of a URL or a file path, so that the corresponding development script and the target compilation script, etc. can be acquired according to the path.
In some embodiments, step S108 may also be implemented by the following steps, specifically including:
step 3.1), running the development script according to the calling parameters of the development script and the acquisition path of the source code corresponding to the development script, processing a tool chain and setting the environment variable of the target hardware environment;
step 3.2), calling a source code compiling script on an acquisition path of a source code corresponding to the source code compiling script based on the processed tool chain, the set environment variable of the target hardware environment and the calling parameter of the source code compiling script;
step 3.3), compiling the target basic module according to the compiling options in the source code compiling script to obtain a first package SDK;
step 3.4), configuring the configuration item at the configuration position to obtain a second package body SDK;
and 3.5) compiling the first inclusion SDK and the second inclusion SDK based on the target compiling script to obtain the target inclusion SDK.
In an alternative embodiment, the method further comprises:
and 4.1) adding a new target item based on a tool chain corresponding to the hardware environment provided by the user. At this time, steps S102 to S106 in the foregoing embodiment are re-executed according to the tool chain provided by the user, and a new target item is added in the construction process, so that in the running and compiling process of step S108, the target compiling script does not need to be modified, and a new target bag body SDK meeting the user requirements can be obtained.
If the hardware environment corresponding to the newly added target item of the user originally exists on the automotive adaptive platform, the corresponding tool chain and development script are directly obtained under the directory corresponding to the hardware environment, and then steps S102-S108 are executed.
In an alternative embodiment, the method further comprises:
and 5.1) adding a new target hardware environment in the target project by adding an acquisition path and a configuration position of the newly added hardware environment in the configuration file.
Here, if a new target hardware environment or configuration item needs to be added to the current target item in the actual application process, the corresponding target hardware environment, configuration item, configuration position thereof, and acquisition path thereof are added in the configuration file building process.
As shown in fig. 2, an embodiment of the present invention further provides a compiling apparatus 200 based on a configuration file, including:
the first construction module 201 is used for constructing a development script corresponding to a target hardware environment and a source code compiling script corresponding to a target project;
a second constructing module 202, configured to construct a configuration file corresponding to the target project based on the development script corresponding to the target hardware environment and the source code compilation script corresponding to the target project;
a determining module 203, configured to determine, according to the name of the target hardware environment and the name of the target project, an obtaining path of a source code corresponding to a development script, an obtaining path of a source code corresponding to a source code compiling script, and a configuration position of a configuration item corresponding to the target project in the configuration file, where the target project and the target hardware environment may include a plurality of target projects;
and the compiling module 204 runs the development script and the target compiling script according to the acquisition path, configures the configuration item at the configuration position, and compiles the target packet body SDK.
In an optional embodiment, the first building module is further specifically configured to obtain a target hardware environment; and constructing a development script based on the tool chain under the directory corresponding to the target hardware environment.
In an optional embodiment, the first building module is further specifically configured to determine a corresponding source code directory according to the target item; according to the user requirement corresponding to the target project and the development script corresponding to the target hardware environment, the compiling options under the source code catalog are adjusted; and constructing a source code compiling script for the adjusted compiling options.
In an optional embodiment, the configuration file includes a configuration position of a target hardware environment supported by the target item, a configuration position of a configuration item corresponding to the target item, an acquisition path of a source code corresponding to the target hardware environment, an acquisition path of a source code corresponding to the source code compiling script, a calling parameter of the development script, and a calling parameter of the source code compiling script.
In an optional embodiment, the compiling module is further specifically configured to run the development script according to a calling parameter of the development script and an acquisition path of a source code corresponding to the development script, process a tool chain, and set an environment variable of the target hardware environment; calling a source code compiling script on an acquisition path of a source code corresponding to the source code compiling script based on the processed tool chain, the set environment variable of the target hardware environment and the calling parameter of the source code compiling script; compiling the target basic module according to the compiling options in the source code compiling script to obtain a first package body SDK; configuring the configuration item at the configuration position to obtain a second package body SDK; and compiling the first inclusion SDK and the second inclusion SDK based on the target compiling script to obtain the target inclusion SDK.
In an optional embodiment, the apparatus further includes an adding module, configured to add a new target item based on a tool chain corresponding to the hardware environment provided by the user.
In an optional embodiment, the adding module is further specifically configured to add a new target hardware environment to the target item by adding an acquisition path and a configuration position of the added hardware environment to the configuration file.
Fig. 3 is a schematic hardware architecture diagram of an electronic device 300 according to an embodiment of the present invention. Referring to fig. 3, the electronic device 300 includes: a machine-readable storage medium 301 and a processor 302, and may further include a non-volatile storage medium 303, a communication interface 304, and a bus 305; among other things, the machine-readable storage medium 301, the processor 302, the non-volatile storage medium 303, and the communication interface 304 communicate with each other via a bus 305. The processor 302 may perform the configuration file based compilation method described in the above embodiments by reading and executing machine executable instructions of the configuration file based compilation in the machine readable storage medium 301.
A machine-readable storage medium as referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
The non-volatile medium may be non-volatile memory, flash memory, a storage drive (e.g., a hard drive), any type of storage disk (e.g., an optical disk, dvd, etc.), or similar non-volatile storage medium, or a combination thereof.
It can be understood that, for the specific operation method of each functional module in this embodiment, reference may be made to the detailed description of the corresponding step in the foregoing method embodiment, and no repeated description is provided herein.
The computer-readable storage medium provided in the embodiments of the present invention stores a computer program, and when executed, the computer program code may implement the compiling method based on the configuration file according to any of the embodiments described above, and specific implementation may refer to the method embodiment, which is not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein.

Claims (10)

1. A configuration file based compilation method, comprising:
constructing a development script corresponding to a target hardware environment and a source code compiling script corresponding to a target project, wherein the source code compiling script compiles a source code corresponding to the target project based on the target hardware environment;
constructing a configuration file corresponding to the target project based on the development script corresponding to the target hardware environment and the source code compiling script corresponding to the target project;
according to the name of the target hardware environment and the name of the target project, determining an acquisition path of a source code corresponding to a development script, an acquisition path of a source code corresponding to a source code compiling script and a configuration position of a configuration item corresponding to the target project in the configuration file, wherein the target project and the target hardware environment can comprise a plurality of target projects;
and running the development script and the target compiling script according to the acquisition path, configuring the configuration item at the configuration position, and compiling the target bag body SDK.
2. The method of claim 1, wherein the step of constructing a development script corresponding to the target hardware environment comprises:
acquiring a target hardware environment;
and constructing a development script based on the tool chain under the directory corresponding to the target hardware environment.
3. The method of claim 2, wherein the step of constructing a source code compilation script corresponding to the target item comprises:
determining a corresponding source code directory according to the target item;
according to the user requirement corresponding to the target project and the development script corresponding to the target hardware environment, the compiling options under the source code catalog are adjusted;
and constructing a source code compiling script for the adjusted compiling options.
4. The method according to claim 3, wherein the configuration file comprises a configuration position of a target hardware environment supported by the target project, a configuration position of a configuration item corresponding to the target project, an acquisition path of source code corresponding to the target hardware environment, an acquisition path of source code corresponding to the source code compiling script, a calling parameter of the development script, and a calling parameter of the source code compiling script.
5. The method of claim 4, wherein the step of running the development script and the target compilation script according to the acquisition path, configuring the configuration item at the configuration location, and compiling the target enclosure SDK comprises:
running the development script according to the calling parameters of the development script and the acquisition path of the source code corresponding to the development script, processing a tool chain and setting the environment variable of the target hardware environment;
calling a source code compiling script on an acquisition path of a source code corresponding to the source code compiling script based on the processed tool chain, the set environment variable of the target hardware environment and the calling parameter of the source code compiling script;
compiling the target basic module according to the compiling options in the source code compiling script to obtain a first package body SDK;
configuring the configuration item at the configuration position to obtain a second package body SDK;
and compiling the first inclusion SDK and the second inclusion SDK based on the target compiling script to obtain the target inclusion SDK.
6. The method of claim 1, further comprising:
and adding a new target item based on a tool chain corresponding to the hardware environment provided by the user.
7. The method of claim 1, further comprising:
and adding a new target hardware environment in the target project by adding an acquisition path and a configuration position of the newly added hardware environment in the configuration file.
8. A configuration file based compiling apparatus, comprising:
the system comprises a first construction module, a second construction module and a third construction module, wherein the first construction module is used for constructing a development script corresponding to a target hardware environment and a source code compiling script corresponding to a target project, and the source code compiling script is used for compiling a source code corresponding to the target project based on the target hardware environment;
the second construction module is used for constructing a configuration file corresponding to the target project based on the development script corresponding to the target hardware environment and the source code compiling script corresponding to the target project;
a determining module, configured to determine, according to the name of the target hardware environment and the name of the target project, an acquisition path of a source code corresponding to a development script, an acquisition path of a source code corresponding to a source code compilation script, and a configuration position of a configuration item corresponding to the target project in the configuration file, where the target project and the target hardware environment may include a plurality of target projects;
and the compiling module runs the development script and the target compiling script according to the acquisition path, configures the configuration item at the configuration position and compiles the target packet body SDK.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program operable on the processor, and wherein the processor implements the steps of the method of any of claims 1 to 7 when executing the computer program.
10. A machine-readable storage medium having stored thereon machine-executable instructions which, when invoked and executed by a processor, cause the processor to carry out the steps of the method of any one of claims 1 to 7.
CN202011392198.4A 2020-12-01 2020-12-01 Compiling method and device based on configuration file Active CN112506518B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011392198.4A CN112506518B (en) 2020-12-01 2020-12-01 Compiling method and device based on configuration file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011392198.4A CN112506518B (en) 2020-12-01 2020-12-01 Compiling method and device based on configuration file

Publications (2)

Publication Number Publication Date
CN112506518A true CN112506518A (en) 2021-03-16
CN112506518B CN112506518B (en) 2023-07-14

Family

ID=74968516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011392198.4A Active CN112506518B (en) 2020-12-01 2020-12-01 Compiling method and device based on configuration file

Country Status (1)

Country Link
CN (1) CN112506518B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113126997A (en) * 2021-04-21 2021-07-16 多点(深圳)数字科技有限公司 Compiling method for generating multiple operation containers by front-end code
CN114564230A (en) * 2022-02-23 2022-05-31 北京布局未来教育科技有限公司 One-key uploading implementation method and device of Hongming system, electronic equipment and medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101859244A (en) * 2009-04-10 2010-10-13 中兴通讯股份有限公司 Multi-toolchain engineering construction method and system
CN102402452A (en) * 2011-12-12 2012-04-04 深圳市共进电子股份有限公司 Compiling method and device
CN106293756A (en) * 2016-08-16 2017-01-04 汉柏科技有限公司 A kind of for quick-replaceable self-defined linux kernel system
CN106569820A (en) * 2016-10-28 2017-04-19 汉柏科技有限公司 Method and device for replacing with busybox with high version and synchronously producing root file system
US9703550B1 (en) * 2009-09-29 2017-07-11 EMC IP Holding Company LLC Techniques for building code entities
CN107273176A (en) * 2016-04-08 2017-10-20 上海思立微电子科技有限公司 The Compilation Method and device of a kind of adaptive hardware framework
CN110895471A (en) * 2018-09-12 2020-03-20 北京京东尚科信息技术有限公司 Installation package generation method, device, medium and electronic equipment
CN110990022A (en) * 2019-11-29 2020-04-10 上海庆科信息技术有限公司 Software project development method and device, processor and electronic device
CN111309327A (en) * 2018-12-12 2020-06-19 厦门雅迅网络股份有限公司 Automatic compiling method of application program and computer readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101859244A (en) * 2009-04-10 2010-10-13 中兴通讯股份有限公司 Multi-toolchain engineering construction method and system
US9703550B1 (en) * 2009-09-29 2017-07-11 EMC IP Holding Company LLC Techniques for building code entities
CN102402452A (en) * 2011-12-12 2012-04-04 深圳市共进电子股份有限公司 Compiling method and device
CN107273176A (en) * 2016-04-08 2017-10-20 上海思立微电子科技有限公司 The Compilation Method and device of a kind of adaptive hardware framework
CN106293756A (en) * 2016-08-16 2017-01-04 汉柏科技有限公司 A kind of for quick-replaceable self-defined linux kernel system
CN106569820A (en) * 2016-10-28 2017-04-19 汉柏科技有限公司 Method and device for replacing with busybox with high version and synchronously producing root file system
CN110895471A (en) * 2018-09-12 2020-03-20 北京京东尚科信息技术有限公司 Installation package generation method, device, medium and electronic equipment
CN111309327A (en) * 2018-12-12 2020-06-19 厦门雅迅网络股份有限公司 Automatic compiling method of application program and computer readable storage medium
CN110990022A (en) * 2019-11-29 2020-04-10 上海庆科信息技术有限公司 Software project development method and device, processor and electronic device

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
@嵌入式系统: "项目配置与编译自动化", pages 1 - 3, Retrieved from the Internet <URL:https://blog.csdn.net/chengjunchengjun/article/details/108812000> *
YANG YU等: "A New Construction Method of Common Embedded Cross Compiler Tool Based on Newlib", 2010 IEEE INTERNATIONAL CONFERENCE ON INTELLIGENT COMPUTING AND INTELLIGENT SYSTEMS, pages 817 - 819 *
刘跃生: "ARM自动编译工具的设计与开发", 中国优秀硕士学位论文全文数据库 信息科技辑, pages 138 - 962 *
张欢庆等: "基于ARM的嵌入式Linux交叉编译环境的研究与实现", 计算机与数字工程, pages 151 - 153 *
田丹等: "基于Eclipse的嵌入式集成开发环境工程管理", 微处理机, no. 02, pages 29 - 31 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113126997A (en) * 2021-04-21 2021-07-16 多点(深圳)数字科技有限公司 Compiling method for generating multiple operation containers by front-end code
CN114564230A (en) * 2022-02-23 2022-05-31 北京布局未来教育科技有限公司 One-key uploading implementation method and device of Hongming system, electronic equipment and medium
CN114564230B (en) * 2022-02-23 2024-01-16 北京布局未来科技发展有限公司 One-key uploading realization method and device of hong Monte-go system, electronic equipment and medium

Also Published As

Publication number Publication date
CN112506518B (en) 2023-07-14

Similar Documents

Publication Publication Date Title
CN105657191B (en) Application increment upgrading method and system based on Android system
KR101038965B1 (en) How to Configure Test Systems, Computer-readable Media, and Computing Systems
CN106775723B (en) Android platform-based system firmware customization method and Android device
JP6198939B2 (en) Method for loading driver and embedded device
US7698702B2 (en) System and method for implementing data-compatibility-based version scheme
CN106020873B (en) Patch package loading method and device
US20060236083A1 (en) Method and system for controlling software version updates
US9442708B1 (en) System and method for installing, updating and uninstalling applications
JP2008507775A (en) System and method for extracting and creating application meta information in a software application repository
CN106610839B (en) Method for issuing upgrade package, lightweight upgrade method, device and system
CN112506518A (en) Compiling method and device based on configuration file
CN110716786B (en) Page display method, system and storage medium
CN109857432A (en) A kind of hot update method and device of game application
CN108694049B (en) Method and equipment for updating software
CN109992501A (en) The availability inspection of small routine can use small routine list generation method and device
CN116303099B (en) Cross-platform rapid deployment method, device, medium and equipment for automatic test environment
CN115794214B (en) Application module metadata management method, device, storage medium and apparatus
CN116643761A (en) Customized mirror image manufacturing and deploying method, device, terminal and medium
CN115509560A (en) Engineering code packaging method and device and electronic equipment
CN113886008A (en) Virtual machine management method, system, device and medium
CN110362320B (en) Command implementation method and device of application development platform
CN111949268A (en) Project compiling method and device, electronic equipment and storage medium
CN109144620B (en) Skipping method and device for suspension window permission setting interface
CN111913720A (en) Program deployment method and device
CN113032006B (en) Plug-in construction method, device, equipment and storage medium

Legal Events

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