CN111124423B - Compiling detection method, device, server and medium based on multiple platforms - Google Patents

Compiling detection method, device, server and medium based on multiple platforms Download PDF

Info

Publication number
CN111124423B
CN111124423B CN201911357525.XA CN201911357525A CN111124423B CN 111124423 B CN111124423 B CN 111124423B CN 201911357525 A CN201911357525 A CN 201911357525A CN 111124423 B CN111124423 B CN 111124423B
Authority
CN
China
Prior art keywords
project
compiling
target
platform
file
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
CN201911357525.XA
Other languages
Chinese (zh)
Other versions
CN111124423A (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.)
Shanghai Mihoyo Tianming Technology Co Ltd
Original Assignee
Shanghai Mihoyo Tianming 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 Shanghai Mihoyo Tianming Technology Co Ltd filed Critical Shanghai Mihoyo Tianming Technology Co Ltd
Priority to CN201911357525.XA priority Critical patent/CN111124423B/en
Publication of CN111124423A publication Critical patent/CN111124423A/en
Application granted granted Critical
Publication of CN111124423B publication Critical patent/CN111124423B/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

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 invention discloses a compiling detection method, device, server and medium based on multiple platforms, wherein the method comprises the following steps: when triggering compiling detection operation is detected, acquiring a target compiling platform corresponding to the compiling detection operation; acquiring target project files corresponding to a target compiling platform from all pre-established project files, and compiling based on the content in the target project files; when the compiling result meets the preset condition, the code corresponding to the target compiling platform is compiled normally. According to the technical scheme, the technical problems that at present, when the compiling result of each platform is detected, all resources corresponding to the platform need to be exported firstly, and because the number of the resources corresponding to each platform is large, time and labor are wasted in compiling detection are solved, and when the compiling result of each platform is detected, the technical effects of improving the compiling detection efficiency and convenience are achieved by processing project files corresponding to each platform.

Description

Compiling detection method, device, server and medium based on multiple platforms
Technical Field
The embodiment of the invention relates to the technical field of game development, in particular to a compiling and detecting method, device, server and medium based on multiple platforms.
Background
In the prior art, when the code compiling conditions of the units item on different platforms need to be checked, optionally, when the code compiling conditions of the units item under the platforms such as Windows, iOS, android and the like need to be switched to a target platform in a unit editor, and then the code is compiled to check the compiling result.
When the platform is switched in the editor, all the resources corresponding to the converted platform are required to be acquired, and after all the resources are converted into the format corresponding to the current platform, the compiling condition of the platform can be detected, and the technical problems of time waste and manpower waste during resource conversion exist because of the large number of the resources corresponding to each platform.
Disclosure of Invention
The embodiment of the invention provides a compiling and detecting method, device, server and medium based on multiple platforms, so as to achieve the technical effects of improving the efficiency and convenience of compiling and detecting.
In a first aspect, an embodiment of the present invention provides a multi-platform-based compilation detection method, where the method includes:
when triggering compiling detection operation is detected, acquiring a target compiling platform corresponding to the compiling detection operation;
acquiring target project files corresponding to the target compiling platform from all pre-established project files, and compiling based on the content in the target project files; the project file comprises compiling configurations corresponding to all platforms;
and when the compiling result meets the preset condition, compiling the code corresponding to the target compiling platform normally.
In a second aspect, an embodiment of the present invention further provides a compiling detection device based on multiple platforms, where the device includes:
the target compiling platform determining module is used for acquiring a target compiling platform corresponding to the compiling detection operation when the triggering compiling detection operation is detected;
the target project file determining module is used for acquiring target project files corresponding to the target compiling platform from all project files established in advance and compiling the target project files based on the content in the target project files; the project file comprises compiling configurations corresponding to all platforms;
and the compiling detection result determining module is used for compiling the code corresponding to the target compiling platform normally when the compiling result meets the preset condition.
In a third aspect, an embodiment of the present invention further provides a server, where the server includes:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the multi-platform based compilation detection method according to any of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a multi-platform based compilation detection method according to any of the embodiments of the present invention.
According to the technical scheme, when triggering of compiling detection operation is detected, a target compiling platform corresponding to the compiling detection operation is obtained; acquiring target project files corresponding to a target compiling platform from all pre-established project files, and compiling based on the content in the target project files; the project file comprises compiling configurations corresponding to the platforms; when the compiling result meets the preset condition, the code compiling corresponding to the target compiling platform is normal, so that the technical effects that all resources corresponding to the platform need to be derived from an editor when the compiling result of each platform is detected in the prior art, and time and labor are wasted when compiling and detecting because the quantity of the resources corresponding to each platform is large are achieved.
Drawings
In order to more clearly illustrate the technical solution of the exemplary embodiments of the present invention, a brief description is given below of the drawings required for describing the embodiments. It is obvious that the drawings presented are only drawings of some of the embodiments of the invention to be described, and not all the drawings, and that other drawings can be made according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a compiling detection method based on multiple platforms according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a compiling detection method based on multiple platforms according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a compiling and detecting device based on multiple platforms according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a schematic flow chart of a compiling and detecting method based on multiple platforms according to an embodiment of the present invention, where the method may be performed by a compiling and detecting device based on multiple platforms, and the device may be implemented in the form of software and/or hardware, and the hardware may be an electronic device, and the electronic device may be a mobile terminal or a PC.
As shown in fig. 1, the method of the present embodiment includes:
s110, when triggering compiling detection operation is detected, acquiring a target compiling platform corresponding to the compiling detection operation.
The compiling detection operation may be a control on the trigger display interface, where the control is a control for performing compiling detection. The target compiling platform can be a currently working platform, and can be an optional android platform, ios platform and the like.
Specifically, when an operation triggering the compilation detection is detected, a current working platform corresponding to the compilation detection operation is obtained.
S120, acquiring a target project file corresponding to the target compiling platform from all pre-established project files, and compiling based on the content in the target project file.
The project files are pre-established and correspond to different platforms. The target project file is a project file corresponding to a target compiling platform, and optionally, the target compiling platform is an IOS platform, and the target project file is a project file corresponding to the IOS platform.
Specifically, after determining the target compiling platform, the target project file corresponding to the target compiling platform can be screened from all project files established in advance, and compiling is performed based on the content in the target project file, so that a platform compiling result corresponding to the current platform is obtained.
Optionally, acquiring a target project file corresponding to the target compiling platform from all project files based on project configuration files corresponding to all project files; the content in the target project file is compiled based on the target tool.
When the project files corresponding to the respective platforms are created, the project configuration files corresponding to the respective project files are also created. The project configuration files may include associations with individual sub-project files in the project files, as well as associations between individual project files.
Specifically, a program for acquiring the project configuration file may be called to acquire the project configuration file, so as to acquire a target project file corresponding to the target compiling platform from all project files according to the project configuration file, and acquire the content in the target project file based on the target tool and compile the content.
And S130, when the compiling result meets the preset condition, compiling the code corresponding to the target compiling platform normally.
In this embodiment, after compiling is completed, prompt information corresponding to the compiling result may be displayed, and whether code compiling corresponding to the target compiling platform is normal may be determined based on the prompt information.
According to the technical scheme, when triggering of compiling detection operation is detected, a target compiling platform corresponding to the compiling detection operation is obtained; acquiring target project files corresponding to a target compiling platform from all pre-established project files, and compiling based on the content in the target project files; the project file comprises compiling configurations corresponding to the platforms; when the compiling result meets the preset condition, the code compiling corresponding to the target compiling platform is normal, so that the technical effects that all resources corresponding to the platform need to be derived from an editor when the compiling result of each platform is detected in the prior art, and time and labor are wasted when compiling and detecting because the quantity of the resources corresponding to each platform is large are achieved. In this embodiment, before compiling and detecting each platform, it is also necessary to create a project file corresponding to each platform and a project configuration file corresponding to each project file.
Optionally, project files corresponding to the respective platforms are generated based on a target tool, and project configuration files corresponding to all the project files are generated based on the target tool.
In this embodiment, the number of project profiles may be one, and the project profiles may include an association relationship between a plurality of project profiles.
Generating project files corresponding to respective platforms based on the target tool, including: generating a to-be-processed project file corresponding to each platform based on the target tool, and calling an expansion interface to analyze the to-be-processed project file to obtain an analysis project file corresponding to each platform; based on the platform identification information in the analysis project file, adding compiling configuration corresponding to each platform; calling a reference information acquisition module to acquire all reference information in the analysis project file; and processing the reference information based on compiling configuration corresponding to each platform, and using the processed analysis project file as a used project file.
In this embodiment, the processing of the VS project file generated by the unit may be implemented by using the extension interface of the visual Studio plug-in of the unit. Accordingly, the target tool may be an extension interface of the visual Studio plug-in the unit tool. The project file to be processed is a file to which the compiling configuration corresponding to each platform is not added. The analysis project file is a project file after analysis of the project file to be processed. The platform identification information is an identification corresponding to each platform. The compiling configuration is a compiling configuration file to be used when compiling and testing each platform.
Specifically, the extension interface based on the VS plug-in generates a to-be-processed project file corresponding to each platform, and the VS plug-in is called to call the extension interface to analyze the to-be-processed project file to obtain an analysis project file corresponding to each platform. According to the identification information in the analysis project file, a platform corresponding to each analysis project file can be determined, compiling configuration corresponding to each platform is determined based on the identification information corresponding to each platform, and the compiling configuration is added to the corresponding project file. After determining the compiling configuration corresponding to each platform, the method can acquire all the reference relations in the analysis project file based on the reference information acquisition module, determine whether all the reference relations are available according to the compiling configuration, and delete the unavailable reference relations. And using the modified analysis project file as a project file for final use.
It should be noted that, in addition to generating the project file, a project configuration file corresponding to the project file, i.e., a target project file, or a solution file, needs to be generated. Optionally, generating a to-be-processed project configuration file corresponding to the project file based on the target plugin in the target tool; calling a target extension interface based on a target plug-in to analyze the project configuration file to be processed to obtain an analysis project configuration file; and processing the analysis project configuration files to obtain target project configuration files corresponding to all the project files.
The to-be-processed project configuration file corresponds to the to-be-processed project file.
Specifically, the VS plug-in interface can be called to analyze the to-be-processed project configuration file to obtain an analysis project configuration file, all project information contained in the analysis project configuration file is extracted, the configuration files corresponding to each platform are added according to the project information, and the analysis project configuration file with the added configuration files is used as a project configuration file which is finally used, namely a target project configuration file.
In this embodiment, the custom processing of the units generated VS project file can be realized based on the extension interface of the units VS plug-in, the compiling configuration of various platforms is added in the VS project file, the platform compiling code can be quickly switched in the Visual Studio, the platform is not required to be switched in the units editor for compiling, and the convenience of compiling detection is improved. That is, the technical solution of the present embodiment can compile codes of various platforms very fast in Visual Studio, avoiding slow process of switching platforms through the units editor.
Example two
As a preferred embodiment of the foregoing embodiments, fig. 2 is another flow chart of a compiling detection method based on multiple platforms according to a second embodiment of the present invention. As shown in fig. 2, the method includes:
s201, opening the unit.
It is understood that the units editor is opened.
S202, calling a target plug-in to generate a to-be-processed project file.
After triggering the units editor, the editor may be waited for automatically generating or updating the pre-established project file. Thus, in this embodiment, the project file may be established in advance.
Specifically, an expansion interface of the target plug-in is called to generate a project file to be processed. I.e., the units editor invokes the VSTU plugin to generate the VS pending project file.
S203, calling a target plug-in to generate a target project configuration file to be processed.
Specifically, the VSTU plug-in generates a VS project file, namely, the target plug-in is called to generate a target project configuration file to be processed, which corresponds to the project file to be processed.
S204, analyzing the project file to be processed, and adding compiling configuration corresponding to each platform.
Specifically, the VSTU plug-in calls an extension interface to analyze the project file to be processed to obtain an analysis project file, and adds compiling configuration corresponding to each project file according to platform information corresponding to each project file.
S205, extracting all the reference information in the project file, determining whether the reference information needs to be deleted, and storing the modified analysis project file as a project file for final use.
Specifically, all the reference information in the project file is obtained, whether the reference information is correct or not is judged, if not, the reference relation can be deleted, and if so, the reference information can be reserved. Meanwhile, the modified resolved project file is saved as the project file to be finally used.
S206, analyzing the target project configuration file to be processed based on the target plug-in calling extension interface to obtain an analysis project configuration file.
Specifically, the target plug-in calls the expansion interface to analyze the target project configuration file to be processed, namely analyzes the solution file to obtain an analysis project configuration file.
S207, extracting all item information in the analysis item configuration file, adding platform configuration corresponding to each platform, and storing the platform configuration as a target item configuration file.
Specifically, all item information in the item configuration file is extracted based on the item information, platform configuration corresponding to each platform is added according to the item information, the platform configuration is updated in the analysis item configuration file, and the updated item configuration file is used as a target item configuration file.
S208, finishing the generation of the VS project file.
After the target project configuration file and the project file are obtained, the project file generation is determined to be completed.
S209, when the triggering target operation is detected, acquiring a compiling platform corresponding to the target operation.
When the need of compiling test on a certain platform is detected, the compiling test on the corresponding platform can be carried out based on the project file.
S210, compiling test and checking compiling results.
And determining whether the compiling corresponding to the platform is normal or not according to the compiling test output result.
Based on the technical scheme, the scheme can be understood as follows: opening a unit editor, waiting for the editor to automatically generate or update a visual studio project file, opening the project file in the visual studio, selecting a platform to be compiled, compiling in the visual studio, and viewing the result. The method has the advantages that the compiling conditions of various platforms can be checked without switching the platforms in the units editor, and the compiling detection convenience is improved.
According to the technical scheme, when triggering of compiling detection operation is detected, a target compiling platform corresponding to the compiling detection operation is obtained; acquiring target project files corresponding to a target compiling platform from all pre-established project files, and compiling based on the content in the target project files; the project file comprises compiling configurations corresponding to the platforms; when the compiling result meets the preset condition, the code compiling corresponding to the target compiling platform is normal, so that the technical effects that all resources corresponding to the platform need to be derived from an editor when the compiling result of each platform is detected in the prior art, and time and labor are wasted when compiling and detecting because the quantity of the resources corresponding to each platform is large are achieved.
Example III
Fig. 3 is a schematic structural diagram of a compiling and detecting device based on multiple platforms according to a third embodiment of the present invention. As shown in fig. 3, the apparatus includes: a target compilation platform determination module 310, a target project file determination module 320, and a compilation detection result determination module 330.
The target compiling platform determining module 310 is configured to obtain a target compiling platform corresponding to a compiling detection operation when detecting that a compiling detection operation is triggered; a target project file determining module 320, configured to obtain a target project file corresponding to the target compiling platform from all project files established in advance, and compile the target project file based on content in the target project file; the project file comprises compiling configurations corresponding to all platforms; and the compiling detection result determining module 330 is configured to, when the compiling result meets a preset condition, compile a code corresponding to the target compiling platform normally.
According to the technical scheme, when triggering of compiling detection operation is detected, a target compiling platform corresponding to the compiling detection operation is obtained; acquiring target project files corresponding to a target compiling platform from all pre-established project files, and compiling based on the content in the target project files; the project file comprises compiling configurations corresponding to the platforms; when the compiling result meets the preset condition, the code compiling corresponding to the target compiling platform is normal, so that the technical effects that all resources corresponding to the platform need to be derived from an editor when the compiling result of each platform is detected in the prior art, and time and labor are wasted when compiling and detecting because the quantity of the resources corresponding to each platform is large are achieved. On the basis of the technical scheme, the target project file determining module is further used for: acquiring target project files corresponding to the target compiling platform from all project files based on project configuration files corresponding to all project files; compiling the content in the target project file based on a target tool.
On the basis of the technical schemes, the device further comprises: the project configuration file generation module is used for: project files corresponding to the respective platforms are generated based on a target tool, and project configuration files corresponding to all the project files are generated based on the target tool.
On the basis of the above technical solutions, the project configuration file generating module is further configured to: generating a to-be-processed project file corresponding to each platform based on the target tool, and calling an expansion interface to analyze the to-be-processed project file to obtain an analysis project file corresponding to each platform; based on the platform identification information in the analysis project file, adding compiling configuration corresponding to each platform; calling a reference information acquisition module to acquire all the reference information in the analysis project file; and processing the reference information based on compiling configuration corresponding to each platform, and using the processed analysis project file as a used project file.
On the basis of the above technical solutions, the project configuration file generating module is further configured to: generating a project configuration file to be processed corresponding to the project file based on a target plug-in a target tool; calling a target expansion interface based on the target plug-in to analyze the to-be-processed project configuration file to obtain an analysis project file; and processing the analysis project file to obtain target project configuration files corresponding to all project files.
On the basis of the above technical solutions, the project configuration file generating module is further configured to: extracting all item information contained in the analysis item file, adding platform configuration files corresponding to each platform based on the item information, and storing the platform configuration files in the item file to be analyzed; and taking the analysis project file added with the platform configuration file as a target project configuration file.
Based on the above technical solutions, the target tool is a VS tool.
It should be noted that each unit and module included in the above apparatus are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the embodiments of the present invention.
Example IV
Fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention. Fig. 4 shows a block diagram of an exemplary server 40 suitable for use in implementing the embodiments of the present invention. The server 40 shown in fig. 4 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
As shown in fig. 4, the server 40 is in the form of a general purpose computing device. Components of server 40 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, a bus 403 that connects the various system components (including the system memory 402 and the processing units 401).
Bus 403 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Server 40 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by server 40 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 404 and/or cache memory 405. The server 40 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in fig. 4, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 403 through one or more data medium interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 408 having a set (at least one) of program modules 407 may be stored in, for example, memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
The server 40 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), one or more devices that enable a user to interact with the server 40, and/or any devices (e.g., network card, modem, etc.) that enable the server 40 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 411. Also, the server 40 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, via a network adapter 412. As shown, network adapter 412 communicates with other modules of server 40 over bus 403. It should be appreciated that although not shown in fig. 4, other hardware and/or software modules may be used in connection with server 40, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 401 executes various functional applications and data processing by running a program stored in the system memory 402, for example, implements the multi-platform-based compilation detection method provided by the embodiment of the present invention.
Example five
A fifth embodiment of the present invention also provides a storage medium containing computer-executable instructions for performing a multi-platform based compilation detection method when executed by a computer processor.
The method comprises the following steps:
when triggering compiling detection operation is detected, acquiring a target compiling platform corresponding to the compiling detection operation;
acquiring target project files corresponding to the target compiling platform from all pre-established project files, and compiling based on the content in the target project files; the project file comprises compiling configurations corresponding to all platforms;
and when the compiling result meets the preset condition, compiling the code corresponding to the target compiling platform normally.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (8)

1. A compiling detection method based on multiple platforms is characterized by comprising the following steps:
when triggering compiling detection operation is detected, acquiring a target compiling platform corresponding to the compiling detection operation;
acquiring target project files corresponding to the target compiling platform from all pre-established project files, and compiling based on the content in the target project files; the project file comprises compiling configurations corresponding to all platforms;
when the compiling result meets the preset condition, the code corresponding to the target compiling platform is compiled normally;
before the target compiling platform corresponding to the compiling detection operation is obtained when the triggering compiling detection operation is detected, the method further comprises the following steps:
generating project files corresponding to each platform based on a target tool, and generating project configuration files corresponding to all project files based on the target tool;
the generating project files corresponding to each platform based on the target tool comprises the following steps:
generating a to-be-processed project file corresponding to each platform based on the target tool, and calling an expansion interface to analyze the to-be-processed project file to obtain an analysis project file corresponding to each platform;
based on the platform identification information in the analysis project file, adding compiling configuration corresponding to each platform;
calling a reference information acquisition module to acquire all the reference information in the analysis project file;
and processing the reference information based on compiling configuration corresponding to each platform, and using the processed analysis project file as a used project file.
2. The method according to claim 1, wherein the obtaining a target project file corresponding to the target compiling platform from all project files established in advance, compiling based on the content in the target project file, comprises:
acquiring target project files corresponding to the target compiling platform from all project files based on project configuration files corresponding to all project files;
compiling the content in the target project file based on a target tool.
3. The method of claim 1, wherein the generating project profiles corresponding to all project files based on the target tool comprises:
generating a project configuration file to be processed corresponding to the project file based on a target plug-in a target tool;
calling a target expansion interface based on the target plug-in to analyze the to-be-processed project configuration file to obtain an analysis project configuration file;
and processing the analysis project configuration files to obtain target project configuration files corresponding to all the project files.
4. A method according to claim 3, wherein said processing the parsed project profiles to obtain target project profiles corresponding to all project profiles comprises:
extracting all item information contained in the analysis item configuration file, adding platform configuration files corresponding to each platform based on the item information, and storing the platform configuration files in the analysis item configuration files;
and taking the analysis project configuration file added with the platform configuration file as a target project configuration file.
5. The method of any one of claims 1-4, wherein the target tool is a VS tool.
6. A multi-platform based compile detection device, comprising:
the target compiling platform determining module is used for acquiring a target compiling platform corresponding to the compiling detection operation when the triggering compiling detection operation is detected;
the target project file determining module is used for acquiring target project files corresponding to the target compiling platform from all project files established in advance and compiling the target project files based on the content in the target project files; the project file comprises compiling configurations corresponding to all platforms;
the compiling detection result determining module is used for compiling codes corresponding to the target compiling platform normally when the compiling result meets the preset condition;
the project configuration file generation module is used for:
generating project files corresponding to each platform based on a target tool, and generating project configuration files corresponding to all project files based on the target tool;
the project profile generation module is further configured to:
generating a to-be-processed project file corresponding to each platform based on the target tool, and calling an expansion interface to analyze the to-be-processed project file to obtain an analysis project file corresponding to each platform;
based on the platform identification information in the analysis project file, adding compiling configuration corresponding to each platform; calling a reference information acquisition module to acquire all the reference information in the analysis project file; and processing the reference information based on compiling configuration corresponding to each platform, and using the processed analysis project file as a used project file.
7. A server, the server comprising:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the multi-platform based compilation detection method of any of claims 1-5.
8. A storage medium containing computer executable instructions for performing the multi-platform based compilation detection method of any of claims 1-5 when executed by a computer processor.
CN201911357525.XA 2019-12-25 2019-12-25 Compiling detection method, device, server and medium based on multiple platforms Active CN111124423B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911357525.XA CN111124423B (en) 2019-12-25 2019-12-25 Compiling detection method, device, server and medium based on multiple platforms

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911357525.XA CN111124423B (en) 2019-12-25 2019-12-25 Compiling detection method, device, server and medium based on multiple platforms

Publications (2)

Publication Number Publication Date
CN111124423A CN111124423A (en) 2020-05-08
CN111124423B true CN111124423B (en) 2023-06-13

Family

ID=70502240

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911357525.XA Active CN111124423B (en) 2019-12-25 2019-12-25 Compiling detection method, device, server and medium based on multiple platforms

Country Status (1)

Country Link
CN (1) CN111124423B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111610999A (en) * 2020-05-26 2020-09-01 北京字节跳动网络技术有限公司 Checking method, checking device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1271891A (en) * 1999-04-23 2000-11-01 太阳微系统有限公司 Device and method used in instruction selection of multiplatform environment
WO2017166529A1 (en) * 2016-03-29 2017-10-05 乐视控股(北京)有限公司 Compiling system and method for multiple compiling platforms
CN109582316A (en) * 2018-11-15 2019-04-05 北京深思数盾科技股份有限公司 A kind of cross-platform Compilation Method, device, system, server and storage medium
CN109814853A (en) * 2019-01-18 2019-05-28 宜创(北京)科技有限公司 Based on visual multi-platform data creation method, device, equipment and medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170286074A1 (en) * 2016-03-29 2017-10-05 Le Holdings (Beijing) Co., Ltd. Electronic Device and Method for Multiple Compiling Platforms
CN106452879A (en) * 2016-10-20 2017-02-22 国网青海省电力公司电力科学研究院 PB-based SCD cross-platform analysis method
CN109324544A (en) * 2018-09-14 2019-02-12 国机智骏科技有限公司 The configuration of entire car controller hardware and software platform and integrated Compilation Method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1271891A (en) * 1999-04-23 2000-11-01 太阳微系统有限公司 Device and method used in instruction selection of multiplatform environment
WO2017166529A1 (en) * 2016-03-29 2017-10-05 乐视控股(北京)有限公司 Compiling system and method for multiple compiling platforms
CN109582316A (en) * 2018-11-15 2019-04-05 北京深思数盾科技股份有限公司 A kind of cross-platform Compilation Method, device, system, server and storage medium
CN109814853A (en) * 2019-01-18 2019-05-28 宜创(北京)科技有限公司 Based on visual multi-platform data creation method, device, equipment and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
针对FPGA的IDL-Verilog编译器的设计与实现;吴湛;王玲;吴宇;;现代电子技术(第14期);第26-30页 *

Also Published As

Publication number Publication date
CN111124423A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
US11151018B2 (en) Method and apparatus for testing a code file
CN110457277B (en) Service processing performance analysis method, device, equipment and storage medium
CN112100072B (en) Static detection method, device, equipment and medium for application program code
CN111061489B (en) Multi-platform compiling detection method, device, equipment and medium
US20130081002A1 (en) Selective data flow analysis of bounded regions of computer software applications
CN113127050B (en) Application resource packaging process monitoring method, device, equipment and medium
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
CN111124371A (en) Game-based data processing method, device, equipment and storage medium
CN112615758B (en) Application identification method, device, equipment and storage medium
CN110990842A (en) Recurrence method and device of small probability event, storage medium and electronic equipment
CN113760306A (en) Method and device for installing software, electronic equipment and storage medium
CN111124423B (en) Compiling detection method, device, server and medium based on multiple platforms
CN114003269A (en) Component processing method and device, electronic equipment and storage medium
CN109684207B (en) Method and device for packaging operation sequence, electronic equipment and storage medium
CN110716859A (en) Method for automatically pushing test cases for modified codes and related device
CN112861138A (en) Software security analysis method and analysis device, electronic device, and storage medium
CN113342431B (en) Function call stack backtracking and program exception handling method, device, equipment and medium
CN112748930B (en) Compilation detection method, device, equipment and storage medium
CN110297639B (en) Method and apparatus for detecting code
CN113687880A (en) Method, device, equipment and medium for calling component
CN114090514A (en) Log retrieval method and device for distributed system
CN112506782A (en) Application program testing method, device, equipment and storage medium
CN109446078B (en) Code testing method and device, storage medium and electronic equipment
CN113590225B (en) Mapping detection method and device, electronic equipment and storage medium
CN113590226B (en) Method and device for starting engine editor, electronic 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