# US 2017/0286074 A1 · Electronic Device and Method for Multiple Compiling Platforms

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0286074 A1
- Document ID: US20170286074A1
- Status: Published application
- Kind: A1
- Application number: 15/242,534
- Filed: 2016-08-21
- Published: 2017-10-05
- Earliest claimed: 2016-03-29
- Assignees: Le Holdings (Beijing) Co., Ltd.; Le Shi Zhi Xin Eletronic Technology (Tianjin) Limited
- Applicants: Le Holdings (Beijing) Co., Ltd.; Le Shi Zhi Xin Eletronic Technology (Tianjin) Limited
- Inventors: Tao Lei
- Web page: https://patentgrep.com/patent/US20170286074A1

## CPC

- G06F 8/47: {Retargetable compilers}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the present disclosure relate to the field of compiling technologies for multiple compiling platforms and disclose a compiling method and electronic device for multiple compiling platforms. The method includes: detecting a compiling environment needed by a compiled object; performing mapping by a mapping table according to the compiling environment to obtain a corresponding compilation path; and obtaining a corresponding configuration element according to the compilation path, and executing compiling by using the configuration element. In the embodiments of the present disclosure, configuration elements of multiple compiling platforms are integrated together, and a compilation path of each compiling platform is obtained by a mapping table, allowing one handheld device to compile applications produced by multiple vendors.

## Claims

### Claim 1

A compiling method for multiple compiling platforms applied in a terminal, comprising:
detecting a compiling environment needed by a compiled object;
performing mapping by a mapping table according to the compiling environment to obtain a corresponding compilation path; and
obtaining a corresponding configuration element according to the compilation path, and executing compiling by using the configuration element.

### Claim 2 (depends on 1)

The method according to claim 1, characterized in that the mapping table comprises compilation paths respectively corresponding to each of multiple compiling environments and mapping relationships between each of the compiling environments and a corresponding compilation path.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the method further comprises storing a configuration element of each of the multiple compiling environments, wherein the respective configuration elements of each of the compiling environments are respectively stored in different folders, so that each of the compiling environments has different compilation paths, respectively.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the configuration element comprises a configuration file and a compiling tool.

### Claim 5 (depends on 1)

The method according to claim 1, wherein each of the multiple compiling platforms corresponds to one compiling environment.

### Claim 6

A non-volatile computer storage medium, stored with computer executable instructions that, when executed by an electronic device, cause the electronic device to:
detect a compiling environment needed by a compiled object;
perform mapping by a mapping table according to the compiling environment to obtain a corresponding compilation path; and
obtain a corresponding configuration element according to the compilation path, and execute compiling by using the configuration element.

### Claim 7

An electronic device, comprising:
at least one processor; and
a memory in communication connection with the at least one processor, wherein
the memory stores instructions that can be executed by the at least one processor,
wherein execution of the instructions by the said at least one processor causes the at least one processor to:
detect a compiling environment needed by a compiled object;
perform mapping by a mapping table according to the compiling environment to obtain a corresponding compilation path; and
obtain a corresponding configuration element according to the compilation path, and execute compiling by using the configuration element.

### Claim 8 (depends on 6)

The non-volatile computer storage medium according to claim 6, wherein the mapping table comprises compilation paths respectively corresponding to each of multiple compiling environments, and mapping relationships between each compiling environment and a corresponding compilation path.

### Claim 9 (depends on 8)

The non-volatile computer storage medium according to claim 8, wherein the electronic device is further caused to:
store a configuration element of each of the multiple compiling environments, wherein the respective configuration elements of each of the compiling environments are respectively stored in different folders, so that each of the compiling environments has different compilation paths, respectively.

### Claim 10 (depends on 6)

The non-volatile computer storage medium according to claim 6, wherein the configuration element comprises a configuration file and a compiling tool.

### Claim 11 (depends on 6)

The non-volatile computer storage medium according to claim 6, wherein each of the multiple compiling platforms corresponds to one compiling environment.

### Claim 12 (depends on 7)

The electronic device according to claim 7, wherein the mapping table comprises compilation paths respectively corresponding to each of multiple compiling environments, and mapping relationships between each compiling environment and a corresponding compilation path.

### Claim 13 (depends on 12)

The electronic device according to claim 12, wherein at least one processor is further caused to:
store a configuration element of each of the multiple compiling environments, wherein the respective configuration elements of each of the compiling environments are respectively stored in different folders, so that each of the compiling environments has different compilation paths, respectively.

### Claim 14 (depends on 7)

The electronic device according to claim 7, wherein the configuration element comprises a configuration file and a compiling tool.

### Claim 15 (depends on 7)

The electronic device according to claim 7, wherein each of the multiple compiling platforms corresponds to one compiling environment.
