CN107908407B - Compiling method and device and terminal equipment - Google Patents

Compiling method and device and terminal equipment Download PDF

Info

Publication number
CN107908407B
CN107908407B CN201711308845.7A CN201711308845A CN107908407B CN 107908407 B CN107908407 B CN 107908407B CN 201711308845 A CN201711308845 A CN 201711308845A CN 107908407 B CN107908407 B CN 107908407B
Authority
CN
China
Prior art keywords
compiling
integrated
file
compiled file
compiled
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
Application number
CN201711308845.7A
Other languages
Chinese (zh)
Other versions
CN107908407A (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo 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 Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201711308845.7A priority Critical patent/CN107908407B/en
Publication of CN107908407A publication Critical patent/CN107908407A/en
Application granted granted Critical
Publication of CN107908407B publication Critical patent/CN107908407B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a compiling method, a compiling device and terminal equipment, wherein the compiling method comprises the following steps: determining target equipment item features to be integrated; integrating the first compiled file into a second compiled file based on the target equipment project characteristics to be integrated to obtain an integrated second compiled file; compiling the integrated second compiled file; the first compiled file is a compiled file to be integrated, and the second compiled file is an existing compiled file containing target equipment project characteristics to be integrated. The method provided by the embodiment of the invention integrates the compiled file to be integrated into the existing compiled file of the corresponding target equipment, so that the target equipment can conveniently run the compiled file to be integrated when running the existing compiled file, and generate the corresponding executable file and other usable files or parameters and the like, so that the terminal equipment can support the corresponding application or function or other contents.

Description

Compiling method and device and terminal equipment
Technical Field
The invention relates to the technical field of computers, in particular to a compiling method, a compiling device and terminal equipment.
Background
Under the industrial chain of the mobile internet, the importance of the mobile intelligent terminal is more prominent, the intelligent terminal needs to aggregate and bear various applications, and the development of various applications uses the mobile intelligent terminal as a platform, and along with the continuous upgrade of various application requirements of users, the mobile intelligent terminal is also continuously upgraded or improved, wherein the most critical upgrade or improvement in the mobile intelligent terminal is the upgrade or improvement of an operating system of the mobile intelligent terminal, the operating system is the most core part of the mobile intelligent terminal, and the improvement directly influences the use of the mobile intelligent terminal and the support of the intelligent terminal to various applications. In order to meet various requirements of users, the mobile intelligent terminal is updated more and more frequently, which means that the operating system is also updated continuously.
At present, a common method for migrating or integrating newly developed applications, functions, other contents, and the like into an existing operating system of an intelligent terminal device so that the intelligent terminal device meets user requirements is as follows: the method is feasible, but when a plurality of intelligent terminals exist, developers must manually operate each intelligent terminal once, namely how many devices need to be manually changed, and the operation method needs to be completed by professional technicians with much time and cost, so that the method is time-consuming and labor-consuming, has extremely low working efficiency and increases the development cost in the processing process to a certain extent.
Disclosure of Invention
The present invention aims to solve at least one of the above technical drawbacks, and proposes the following technical solutions:
according to an aspect, an embodiment of the present invention provides a compiling method, including:
determining target equipment item features to be integrated;
integrating the first compiled file into a second compiled file based on the target equipment project characteristics to be integrated to obtain an integrated second compiled file;
compiling the integrated second compiled file;
the first compiled file is a compiled file to be integrated, and the second compiled file is an existing compiled file containing target equipment project characteristics to be integrated.
Preferably, the determining the target equipment item features to be integrated includes:
determining a corresponding compiling script of target equipment to be integrated in a compiling process;
determining target equipment item features to be integrated based on the compiling script;
the item characteristics include at least one of: device type, device model.
Preferably, the integrating the first compiled file into the second compiled file specifically includes:
and integrating the compiling rule corresponding to the first compiling file into the compiling rule corresponding to the second compiling file.
Preferably, the integrating the compiling rule corresponding to the first compiling file into the compiling rule corresponding to the second compiling file includes:
determining a program entry for loading a compiling rule corresponding to the second compiled file;
and loading a compiling rule corresponding to the first compiling file at the program inlet.
Preferably, after the compiling the integrated second compiled file, the method further includes: and saving the configuration parameters generated by compiling the integrated second compiled file.
Preferably, the method is suitable for development of an android operating system and a development platform based on the android operating system.
According to another aspect, an embodiment of the present invention further provides a compiling apparatus, including:
the determining module is used for determining the characteristics of the target equipment items to be integrated;
the integration module is used for integrating the first compiled file into the second compiled file based on the target equipment project characteristics to be integrated to obtain an integrated second compiled file;
the compiling module is used for compiling the integrated second compiling file;
the first compiled file is a compiled file to be integrated, and the second compiled file is an existing compiled file containing target equipment project characteristics to be integrated.
Preferably, the determining module specifically includes a compiling script determining sub-module and a project feature determining sub-module;
the compiling script determining submodule is used for determining a corresponding compiling script in the compiling process of the target equipment to be integrated;
the item feature determination submodule is used for determining the item features of the target equipment to be integrated based on the compiling script;
the item characteristics include at least one of: device type, device model.
Preferably, the integration module is specifically configured to integrate the compiling rule corresponding to the first compiled file into the compiling rule corresponding to the second compiled file.
Preferably, the integration module comprises a program entry determining submodule and a loading submodule;
the program entry determining submodule is used for determining a program entry for loading a compiling rule corresponding to the second compiled file;
and the loading submodule is used for loading the compiling rule corresponding to the first compiling file at the program inlet.
Preferably, the apparatus further comprises a saving module;
and the storage module is used for storing the configuration parameters generated by compiling the integrated second compilation file.
Preferably, the device is suitable for development of an android operating system and a development platform based on the android operating system.
According to another aspect, an embodiment of the present invention provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the compiling method when executing the program.
According to another aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer-readable storage medium implements the compiling method described above.
According to another aspect, embodiments of the present invention provide a computing device comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface are communicated with each other through the communication bus.
The memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the compiling method.
The embodiment of the invention determines the target equipment item characteristics to be integrated, provides a precondition guarantee for the integration of compiling files for the target equipment item characteristics to be integrated accurately, integrates the first compiling file into the second compiling file based on the target equipment item characteristics to be integrated to obtain an integrated second compiling file, the first compiling file is the compiling file to be integrated, the second compiling file is the existing compiling file containing the target equipment item characteristics to be integrated, so that the compiling files to be integrated related to newly developed application or function or other contents are integrated into the existing compiling files of the corresponding target equipment, the target equipment can conveniently run the compiling files to be integrated when the existing compiling files are run, the integrated second compiling file is compiled, namely the second compiling file integrated with the first compiling file is compiled, thereby generating a corresponding executable file and some other available files or parameters, etc., so that the terminal device supports the corresponding application or function or other contents by running the generated executable file and some other available files or parameters, etc.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flowchart of a compiling method according to a first embodiment of the invention;
FIG. 2 is a flowchart of a compiling method according to a second embodiment of the invention;
FIG. 3 is a diagram illustrating a basic structure of a compiling apparatus according to a third embodiment of the present invention;
FIG. 4 is a detailed structural diagram of a compiling apparatus according to a third embodiment of the invention;
fig. 5 is a schematic diagram of a basic structure of a terminal device according to a fourth embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
As will be appreciated by those skilled in the art, a "terminal" as used herein includes both devices having a wireless signal receiver, which are devices having only a wireless signal receiver without transmit capability, and devices having receive and transmit hardware, which have devices having receive and transmit hardware capable of two-way communication over a two-way communication link. Such a device may include: a cellular or other communication device having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which may combine voice, data processing, facsimile and/or data communication capabilities; a PDA (Personal Digital Assistant), which may include a radio frequency receiver, a pager, internet/intranet access, a web browser, a notepad, a calendar and/or a GPS (Global Positioning System) receiver; a conventional laptop and/or palmtop computer or other device having and/or including a radio frequency receiver. As used herein, a "terminal" or "terminal device" may be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or situated and/or configured to operate locally and/or in a distributed fashion at any other location(s) on earth and/or in space. As used herein, a "terminal Device" may also be a communication terminal, a web terminal, a music/video playing terminal, such as a PDA, an MID (Mobile Internet Device) and/or a Mobile phone with music/video playing function, or a smart tv, a set-top box, etc.
A first embodiment of the present invention provides a compiling method, a specific flow of which is shown in fig. 1, including: step 110, determining target equipment item features to be integrated; step 120, integrating the first compiled file into a second compiled file based on the target equipment project characteristics to be integrated to obtain an integrated second compiled file; step 130, compiling the integrated second compiled file; the first compiled file is a compiled file to be integrated, and the second compiled file is an existing compiled file containing target equipment project characteristics to be integrated.
The first embodiment of the invention determines the target equipment item characteristics to be integrated, provides a precondition for accurately integrating the compiled files of the target equipment item characteristics to be integrated subsequently, integrates the first compiled file into the second compiled file based on the target equipment item characteristics to be integrated to obtain the integrated second compiled file, wherein the first compiled file is the compiled file to be integrated, and the second compiled file is the existing compiled file containing the target equipment item characteristics to be integrated, so that the compiled files to be integrated related to newly developed applications or functions or other contents are integrated into the existing compiled files of the corresponding target equipment, the target equipment can conveniently operate the compiled files to be integrated when the existing compiled files are operated by the subsequent target equipment, and the integrated second compiled file is compiled, namely the second compiled file integrated with the first compiled file is compiled, thereby generating a corresponding executable file and some other available files or parameters, etc., so that the terminal device supports the corresponding application or function or other contents by running the generated executable file and some other available files or parameters, etc.
The first embodiment of the present invention is described in detail below, specifically as follows:
although the compiling method according to the embodiment of the present invention is developed based on integrating terminal devices of an android operating system, and is mainly applicable to android development and an android-based development platform, the compiling method according to the embodiment of the present invention may also be adaptively transplanted to terminal devices based on other operating systems, for example, terminal devices of a linux operating system, terminal devices of an ios operating system, and the like, and the compiling method according to the embodiment of the present invention will be described in detail below with the example of android.
In step 110, target equipment item features to be integrated are determined.
Preferably, determining the target equipment item features to be integrated comprises: determining a corresponding compiling script of target equipment to be integrated in a compiling process; determining target equipment item features to be integrated based on the compiling script; the item characteristics include at least one of: device type, device model.
Specifically, when compiling work is performed, project characteristics of the device, such as device manufacturer, type, model, etc., need to be found first; different compiling scripts can be selected when different devices are compiled, so that the android needs to select specific devices to be compiled when compiling a project, and the compiling scripts comprise basic information (namely device item characteristics) of equipment such as manufacturers, types and models of the devices, so that a corresponding item directory needs to be found first, and then the target device item characteristics to be integrated are determined according to the compiling scripts corresponding to the device items in the item directory.
In step 120, the first compiled file is integrated into the second compiled file based on the target device item features to be integrated, so as to obtain an integrated second compiled file.
Preferably, integrating the first compiled file into the second compiled file specifically includes: and integrating the compiling rule corresponding to the first compiling file into the compiling rule corresponding to the second compiling file.
Preferably, integrating the compiling rule corresponding to the first compiling file into the compiling rule corresponding to the second compiling file includes: determining a program entry for loading a compiling rule corresponding to the second compiled file; and loading a compiling rule corresponding to the first compiling file at the program inlet.
Specifically, the first compiled file is a compiled file to be integrated, that is, a compiled file related to a newly developed application or function or other content, for example, a set of codes newly developed by a developer, and the second compiled file is an existing compiled file containing target device project features to be integrated, that is, a compiled file developed in advance by an existing android-based terminal device, for example, a code integrated into the terminal device.
Further, android is usually executed by a make command when compiling, and when executing the make command, the way of compiling and linking the program by the make command needs to be notified through a make file, that is, the project is compiled based on the make file, therefore, when executing the compiling, the make is a command tool, the instructions in the make file are interpreted by the make command, the compiling order and the compiling rules of all files of the whole project are described in the make file, and the make command describes the interrelation between the source programs through the make file and automatically maintains the compiling work. Therefore, the compiled file to be integrated includes one or more makefile files, the existing compiled file includes one or more makefile files, and meanwhile, a series of rules are defined in the makefile files to specify the compiling order of the files, the files to be recompiled, and even more complex functional operations are performed.
Further, since the makefile describes the compilation rule, when the first compiled file is integrated into the second compiled file, the compilation rule corresponding to the first compiled file (including one or more makefile files) is integrated into the compilation rule corresponding to the second compiled file (including one or more makefile files).
Generally, an android system includes a project directory (i.e., a root directory), where the project directory includes a device item, the device item includes a plurality of devices of different models, each device of a model corresponds to a set of compiling scripts, and the android system completes compiling by loading the compiling scripts corresponding to the devices of each model at a program entry, where the program entry of the android system is a lunch function. Specifically, in the android system, a corresponding execution command, for example, a make command in the android system, is input at a program entry to execute a compiling script corresponding to each model of device, where the devices of each model are distinguished by a predefined unique identifier, for example, device1, device2, and the like. That is, when the android system executes the compiling scripts corresponding to the devices of each model, the compiling scripts are executed by inputting corresponding execution commands make at the lunch function, wherein the compiling scripts specifically required to be executed are specified by the predefined unique identifiers of the devices of the models, and may be represented as: lunch- > make- > device1/device2 ….
Therefore, if the first compiled file to be integrated is integrated into the existing second compiled file, and the target device executes the compiled file to be integrated together when executing the existing compiled file, the compiled file to be integrated (including one or more makefile files) needs to be loaded in a predetermined processing manner before the corresponding command for executing the compilation is input, that is, the compiled file to be integrated is loaded into the program inlet first, and then the corresponding command for executing the compilation is input, so that the compiled file to be integrated is executed together when the existing compiled file is executed by the command for executing the compilation. If the compiling file to be integrated or its storage directory is represented by using porting, loading the compiling file to be integrated to the program inlet can be represented as: lunch- > porting, then inputting a corresponding command make for executing compilation and specifying a specific compilation script to be executed through a predefined unique identifier of a machine type device, so that the process of executing compilation can be expressed as follows: lunch- > porting- > make- > device1/device2 ….
It should be noted that, by the above method, the compiled files to be integrated can be simultaneously integrated into multiple target devices, and a user only needs to simultaneously designate unique identifiers of multiple corresponding predefined machine type devices after a make command, thereby greatly reducing the time consumption of professional technicians in integrating the compiled files and significantly improving the working efficiency.
In step 130, the integrated second compiled file is compiled.
Specifically, the integrated second compiled file is compiled, that is, the second compiled file integrated with the first compiled file is compiled, so as to generate a corresponding executable file and some other available files or parameters, and the like, so that the terminal device supports a corresponding application or function or other contents by running the generated executable file and some other available files or parameters, and the like.
The second embodiment of the present invention provides a compiling method, which is further improved on the basis of the first embodiment, and the main improvements are as follows: in the second embodiment of the present invention, configuration parameters generated by compiling the integrated second compiled file are further saved, as shown in fig. 2.
Steps 210 to 230 are substantially the same as steps 110 to 130 of the first embodiment of the present invention, and are not described herein again.
Step 240: and saving the configuration parameters generated by compiling the integrated second compiled file.
Specifically, when a second compiled file integrated with a first compiled file is compiled, a series of configuration parameters or other available files are generated in the compiling process, wherein the configuration parameters include not only the relevant configuration parameters of the existing compiled file, but also the relevant configuration parameters of the compiled file to be integrated, the terminal device provides corresponding functions or application support for a user based on the generated configuration parameters, and once any one of the configuration parameters is lost or damaged, the terminal device cannot be used, and unnecessary troubles are brought to the user.
According to the embodiment of the invention, the configuration parameters generated by the compiled and integrated second compiled file are saved, so that the terminal equipment can run normally based on the configuration parameters.
A third embodiment of the present invention relates to an apparatus, as shown in fig. 3, specifically including: a determination module 300, an integration module 310, and a compilation module 320. Specifically, the method comprises the following steps:
a determining module 300, configured to determine a target device item feature to be integrated;
the integration module 310 is configured to integrate the first compiled file into the second compiled file based on the target device item features to be integrated, so as to obtain an integrated second compiled file;
a compiling module 320, configured to compile the integrated second compiled file;
the first compiled file is a compiled file to be integrated, and the second compiled file is an existing compiled file containing target equipment project characteristics to be integrated.
Preferably, the determining module 300 specifically includes a compiling script determining sub-module 301 and a project feature determining sub-module 302, as specifically shown in fig. 4, where the compiling script determining sub-module 301 is configured to determine a corresponding compiling script of the target device to be integrated in the compiling process; a determine item characteristics sub-module 302, configured to determine, based on the compiling script, characteristics of the target device item to be integrated; the item characteristics include at least one of: device type, device model.
Preferably, the integrating module 310 is specifically configured to integrate the compiling rule corresponding to the first compiled file into the compiling rule corresponding to the second compiled file.
Preferably, the integration module 310 includes a determining program entry submodule 311 and a loading submodule 312, as shown in fig. 4 in particular, where the determining program entry submodule 311 is configured to determine a program entry for loading the compiling rule corresponding to the second compiled file; and the loading sub-module 312 is configured to load, at the program entry, the compiling rule corresponding to the first compiling file.
Preferably, the apparatus further includes a saving module 330, as shown in fig. 4 in particular, where the saving module 330 is configured to save the configuration parameters generated by compiling the integrated second compiled file.
Preferably, the device is suitable for development of an android operating system and a development platform based on the android operating system.
The embodiment of the invention determines the target equipment item characteristics to be integrated, provides a precondition guarantee for the integration of compiling files for the target equipment item characteristics to be integrated accurately, integrates the first compiling file into the second compiling file based on the target equipment item characteristics to be integrated to obtain an integrated second compiling file, the first compiling file is the compiling file to be integrated, the second compiling file is the existing compiling file containing the target equipment item characteristics to be integrated, so that the compiling files to be integrated related to newly developed application or function or other contents are integrated into the existing compiling files of the corresponding target equipment, the target equipment can conveniently run the compiling files to be integrated when the existing compiling files are run, the integrated second compiling file is compiled, namely the second compiling file integrated with the first compiling file is compiled, thereby generating a corresponding executable file and some other available files or parameters, etc., so that the terminal device supports the corresponding application or function or other contents by running the generated executable file and some other available files or parameters, etc.
A fourth embodiment of the present invention provides a terminal device, as shown in fig. 5, for convenience of description, only the parts related to the embodiment of the present invention are shown, and details of the technology are not disclosed, please refer to the method part of the embodiment of the present invention. The terminal may be any terminal device including a desktop computer, a tablet computer, a PDA (Personal Digital Assistant), a mobile phone, a POS (Point of Sales), a vehicle-mounted computer, and the like, taking the terminal as the mobile phone as an example:
fig. 5 is a block diagram illustrating a partial structure of a mobile phone related to a terminal provided in an embodiment of the present invention. Referring to fig. 5, the handset includes: radio Frequency (RF) circuit 510, memory 520, input unit 530, display unit 540, sensor 550, audio circuit 560, wireless fidelity (WiFi) module 570, processor 580, and power supply 590. Those skilled in the art will appreciate that the handset configuration shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 5:
RF circuit 510 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for processing downlink information of a base station after receiving the downlink information to processor 580; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 510 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuit 510 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 520 may be used to store software programs and modules, and the processor 580 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 520. The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 530 may include a touch panel 531 and other input devices 532. The touch panel 531, also called a touch screen, can collect touch operations of a user on or near the touch panel 531 (for example, operations of the user on or near the touch panel 531 by using any suitable object or accessory such as a finger or a stylus pen), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 531 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 580, and can receive and execute commands sent by the processor 580. In addition, the touch panel 531 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 530 may include other input devices 532 in addition to the touch panel 531. In particular, other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 540 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 540 may include a Display panel 541, and optionally, the Display panel 541 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 531 may cover the display panel 541, and when the touch panel 531 detects a touch operation on or near the touch panel 531, the touch panel is transmitted to the processor 580 to determine the type of the touch event, and then the processor 580 provides a corresponding visual output on the display panel 541 according to the type of the touch event. Although the touch panel 531 and the display panel 541 are shown as two separate components in fig. 5 to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 531 and the display panel 541 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 550, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 541 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 541 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 560, speaker 561, and microphone 562 may provide an audio interface between a user and a cell phone. The audio circuit 560 may transmit the electrical signal converted from the received audio data to the speaker 561, and convert the electrical signal into a sound signal by the speaker 561 for output; on the other hand, the microphone 562 converts the collected sound signals into electrical signals, which are received by the audio circuit 560 and converted into audio data, which are then processed by the audio data output processor 580, and then passed through the RF circuit 510 to be sent to, for example, another cellular phone, or output to the memory 520 for further processing.
WiFi belongs to short distance wireless transmission technology, and the mobile phone can help the user to send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 570, which provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 570, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 580 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 520 and calling data stored in the memory 520, thereby performing overall monitoring of the mobile phone. Alternatively, processor 580 may include one or more processing units; preferably, the processor 580 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 580.
The handset also includes a power supply 590 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 580 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In the embodiment of the present invention, the processor 580 included in the terminal further has the following functions:
determining target equipment item features to be integrated;
integrating the first compiled file into a second compiled file based on the target equipment project characteristics to be integrated to obtain an integrated second compiled file;
compiling the integrated second compiled file;
the first compiled file is a compiled file to be integrated, and the second compiled file is an existing compiled file containing target equipment project characteristics to be integrated.
Preferably, determining the target equipment item features to be integrated comprises:
determining a corresponding compiling script of target equipment to be integrated in a compiling process;
determining target equipment item features to be integrated based on the compiling script;
the item characteristics include at least one of: device type, device model.
Preferably, integrating the first compiled file into the second compiled file specifically includes:
and integrating the compiling rule corresponding to the first compiling file into the compiling rule corresponding to the second compiling file.
Preferably, integrating the compiling rule corresponding to the first compiling file into the compiling rule corresponding to the second compiling file includes:
determining a program entry for loading a compiling rule corresponding to the second compiled file;
and loading a compiling rule corresponding to the first compiling file at the program inlet.
Preferably, after compiling the integrated second compiled file, the method further includes: and saving the configuration parameters generated by compiling the integrated second compiled file.
Preferably, the method is suitable for development of an android operating system and a development platform based on the android operating system.
In a fifth embodiment of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program is executed by a processor to implement the compiling method.
A sixth embodiment of the present invention provides a computing device, including: the processor, the memory and the communication interface complete mutual communication through the communication bus; the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the compiling method.
Those skilled in the art will appreciate that the present invention includes apparatus directed to performing one or more of the operations described in the present application. These devices may be specially designed and manufactured for the required purposes, or they may comprise known devices in general-purpose computers. These devices have stored therein computer programs that are selectively activated or reconfigured. Such a computer program may be stored in a device (e.g., computer) readable medium, including, but not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magnetic-optical disks, ROMs (Read-Only memories), RAMs (Random Access memories), EPROMs (Erasable Programmable Read-Only memories), EEPROMs (Electrically Erasable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards, or any type of media suitable for storing electronic instructions, and each coupled to a bus. That is, a readable medium includes any medium that stores or transmits information in a form readable by a device (e.g., a computer).
It will be understood by those within the art that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. Those skilled in the art will appreciate that the computer program instructions may be implemented by a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, implement the features specified in the block or blocks of the block diagrams and/or flowchart illustrations of the present disclosure.
Those of skill in the art will appreciate that various operations, methods, steps in the processes, acts, or solutions discussed in the present application may be alternated, modified, combined, or deleted. Further, various operations, methods, steps in the flows, which have been discussed in the present application, may be interchanged, modified, rearranged, decomposed, combined, or eliminated. Further, steps, measures, schemes in the various operations, methods, procedures disclosed in the prior art and the present invention can also be alternated, changed, rearranged, decomposed, combined, or deleted.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (15)

1. A compilation method, comprising:
determining target equipment item features to be integrated;
integrating the first compiled file into a second compiled file based on the target equipment project characteristics to be integrated to obtain an integrated second compiled file;
compiling the integrated second compiled file;
the first compiled file is a compiled file to be integrated, the first compiled file is a compiled file of newly developed application or function, and the second compiled file is an existing compiled file containing target equipment project characteristics to be integrated;
the integrating the first compiled file into the second compiled file based on the target equipment project characteristics to be integrated to obtain an integrated second compiled file includes:
loading the first compiled file to a program entrance;
acquiring a second compiled file corresponding to the target equipment project characteristics to be integrated;
integrating the first compiled file into the second compiled file to obtain an integrated second compiled file;
the compiling the integrated second compiled file includes:
and receiving a compiling instruction, compiling the second compiling file and compiling the first compiling file at the same time.
2. The method of claim 1, wherein determining the target device item characteristics to be integrated comprises:
determining a corresponding compiling script of target equipment to be integrated in a compiling process;
determining target equipment item features to be integrated based on the compiling script;
the item characteristics include at least one of: device type, device model.
3. The method according to claim 1 or 2, wherein the integrating the first compiled file into the second compiled file specifically comprises:
and integrating the compiling rule corresponding to the first compiling file into the compiling rule corresponding to the second compiling file.
4. The method of claim 3, wherein integrating the compiling rule corresponding to the first compiling file into the compiling rule corresponding to the second compiling file comprises:
determining a program entry for loading a compiling rule corresponding to the second compiled file;
and loading a compiling rule corresponding to the first compiling file at the program inlet.
5. The method of claim 4, wherein after said compiling the integrated second compiled file, further comprising: and saving the configuration parameters generated by compiling the integrated second compiled file.
6. The method of claim 4, wherein the method is suitable for development of an android operating system and an android operating system-based development platform.
7. A compiling apparatus characterized by comprising:
the determining module is used for determining the characteristics of the target equipment items to be integrated;
the integration module is used for integrating the first compiled file into the second compiled file based on the target equipment project characteristics to be integrated to obtain an integrated second compiled file;
the compiling module is used for compiling the integrated second compiling file;
the first compiled file is a compiled file to be integrated, the first compiled file is a compiled file of newly developed application or function, and the second compiled file is an existing compiled file containing target equipment project characteristics to be integrated;
the integration module is configured to integrate the first compiled file into the second compiled file based on the target device project features to be integrated, and when the integrated second compiled file is obtained, the integration module is specifically configured to:
loading the first compiled file to a program entrance;
acquiring a second compiled file corresponding to the target equipment project characteristics to be integrated;
integrating the first compiled file into the second compiled file to obtain an integrated second compiled file;
the compiling module is configured to, when compiling the integrated second compiled file, specifically:
and receiving a compiling instruction, compiling the second compiling file and compiling the first compiling file at the same time.
8. The apparatus according to claim 7, wherein the determining module specifically includes a determine compiling script sub-module and a determine project feature sub-module;
the compiling script determining submodule is used for determining a corresponding compiling script in the compiling process of the target equipment to be integrated;
the item feature determination submodule is used for determining the item features of the target equipment to be integrated based on the compiling script;
the item characteristics include at least one of: device type, device model.
9. The apparatus according to claim 7 or 8, wherein the integration module is specifically configured to integrate the compiling rule corresponding to the first compiled file into the compiling rule corresponding to the second compiled file.
10. The apparatus of claim 9, wherein the integration module comprises a determine program entry submodule and a load submodule;
the program entry determining submodule is used for determining a program entry for loading a compiling rule corresponding to the second compiled file;
and the loading submodule is used for loading the compiling rule corresponding to the first compiling file at the program inlet.
11. The apparatus of claim 10, further comprising a save module;
and the storage module is used for storing the configuration parameters generated by compiling the integrated second compilation file.
12. The device according to claim 10, wherein the device is suitable for android operating system development and development platforms based on the android operating system.
13. A terminal device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the compiling method according to any one of claims 1 to 6 when executing the program.
14. A computer-readable storage medium, characterized in that a computer program is stored thereon, which when executed by a processor implements the compiling method according to any one of claims 1 to 6.
15. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the compiling method according to any one of claims 1-6.
CN201711308845.7A 2017-12-11 2017-12-11 Compiling method and device and terminal equipment Active CN107908407B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711308845.7A CN107908407B (en) 2017-12-11 2017-12-11 Compiling method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711308845.7A CN107908407B (en) 2017-12-11 2017-12-11 Compiling method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN107908407A CN107908407A (en) 2018-04-13
CN107908407B true CN107908407B (en) 2021-09-07

Family

ID=61864989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711308845.7A Active CN107908407B (en) 2017-12-11 2017-12-11 Compiling method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN107908407B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109714642B (en) * 2018-12-29 2022-03-08 深圳Tcl数字技术有限公司 Method for reusing Linux application in intelligent system, intelligent television and storage medium
CN110032390B (en) * 2019-03-29 2022-09-27 深圳创维-Rgb电子有限公司 Method for realizing multi-model co-upgrade package, storage medium and intelligent terminal
CN110795102B (en) * 2019-09-27 2023-08-29 上海掌门科技有限公司 Module compiling method, device, electronic equipment and computer readable medium
CN113032035B (en) * 2019-12-24 2022-07-12 Oppo广东移动通信有限公司 Configuration file processing method and device and electronic equipment
CN112148303B (en) * 2020-09-28 2024-05-28 Oppo(重庆)智能科技有限公司 File generation method, device, terminal and storage medium
CN113031961B (en) * 2021-03-23 2023-04-07 北京百度网讯科技有限公司 Compiling method, compiling apparatus, electronic device, storage medium, and program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607941A (en) * 2015-11-25 2016-05-25 上海斐讯数据通信技术有限公司 Apparatus and method for compiling configuration in android project
CN106020893A (en) * 2016-05-26 2016-10-12 北京小米移动软件有限公司 Application installation method and device
CN106020921A (en) * 2016-05-16 2016-10-12 广东天波信息技术股份有限公司 Peripheral application transplantation method and system
CN107273176A (en) * 2016-04-08 2017-10-20 上海思立微电子科技有限公司 The Compilation Method and device of a kind of adaptive hardware framework

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7814486B2 (en) * 2006-06-20 2010-10-12 Google Inc. Multi-thread runtime system
CN103336707A (en) * 2013-07-10 2013-10-02 深圳市开立科技有限公司 Method and device for operating standard program C under Android system
JP6379654B2 (en) * 2014-05-15 2018-08-29 富士通株式会社 Process execution program, process execution method, and information processing apparatus
US10241761B2 (en) * 2014-12-29 2019-03-26 Nvidia Corporation System and method for compiler support for compile time customization of code
CN105468427A (en) * 2015-11-19 2016-04-06 深圳创维数字技术有限公司 Implementation method and system of automatic compilation and release
CN105446789A (en) * 2015-11-23 2016-03-30 上海斐讯数据通信技术有限公司 Method and apparatus for building application in android system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607941A (en) * 2015-11-25 2016-05-25 上海斐讯数据通信技术有限公司 Apparatus and method for compiling configuration in android project
CN107273176A (en) * 2016-04-08 2017-10-20 上海思立微电子科技有限公司 The Compilation Method and device of a kind of adaptive hardware framework
CN106020921A (en) * 2016-05-16 2016-10-12 广东天波信息技术股份有限公司 Peripheral application transplantation method and system
CN106020893A (en) * 2016-05-26 2016-10-12 北京小米移动软件有限公司 Application installation method and device

Also Published As

Publication number Publication date
CN107908407A (en) 2018-04-13

Similar Documents

Publication Publication Date Title
CN107908407B (en) Compiling method and device and terminal equipment
CN109241765B (en) Mobile terminal and method and device for managing authority of application program
US10186244B2 (en) Sound effect processing method and device, plug-in unit manager and sound effect plug-in unit
CN107908952B (en) Method and device for identifying real machine and simulator and terminal
CN104598262A (en) Method and device for updating mobile application
CN106775827B (en) Application program updating method and device and computer equipment
CN106502703B (en) Function calling method and device
CN106371900B (en) Data processing method and device for realizing asynchronous call
CN106066686B (en) A kind of information processing method and terminal device
CN104516812A (en) Method and device for testing software
CN107172348B (en) Mobile terminal and distribution method and device of motion signals of mobile terminal
WO2015035947A1 (en) Method for realizing cellphone without card, cellphone and server
CN110378107B (en) Method and related device for detecting installation package
CN106959859B (en) Calling method and device of system calling function
CN109240902B (en) Method and device for acquiring firmware code of electronic equipment
EP2869604B1 (en) Method, apparatus and device for processing a mobile terminal resource
CN107832375A (en) Control method, terminal and the server that picture is shown
CN106095423B (en) Method, terminal and server for providing browsing service
WO2018058436A1 (en) Method for loading software program, user terminal and storage medium
CN112965832A (en) Remote Procedure Call (RPC) service calling method and related device
CN112328349A (en) Parameter setting method and related equipment
CN104866288A (en) Method, device and terminal for accessing application program
CN109309659B (en) Mobile terminal and method and device for logging in application of mobile terminal
CN104951324A (en) Method and device for acquiring application calling relation table
CN105528220B (en) Method and device for loading dynamic shared object

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