CN111061489A - Multi-platform compiling detection method, device, equipment and medium - Google Patents

Multi-platform compiling detection method, device, equipment and medium Download PDF

Info

Publication number
CN111061489A
CN111061489A CN201911379576.2A CN201911379576A CN111061489A CN 111061489 A CN111061489 A CN 111061489A CN 201911379576 A CN201911379576 A CN 201911379576A CN 111061489 A CN111061489 A CN 111061489A
Authority
CN
China
Prior art keywords
compiling
platform
file
target
development
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911379576.2A
Other languages
Chinese (zh)
Other versions
CN111061489B (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 CN201911379576.2A priority Critical patent/CN111061489B/en
Publication of CN111061489A publication Critical patent/CN111061489A/en
Application granted granted Critical
Publication of CN111061489B publication Critical patent/CN111061489B/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 embodiment of the invention discloses a multi-platform compiling detection method, a device, equipment and a medium, wherein the method comprises the following steps: when a compiling detection instruction is triggered, acquiring a to-be-processed item file and a target compiling platform corresponding to the compiling detection instruction; calling a development tool set plug-in through a development platform to obtain a target configuration file corresponding to the target compiling platform, and compiling the content in the project file to be processed based on the project file to be processed and the target configuration file; and acquiring a compiling result sent by the development tool set, and sending the compiling result to a target receiving end. The multi-platform compiling detection method provided by the embodiment of the invention realizes multi-platform compiling detection in a project environment, and improves the multi-platform compiling detection efficiency.

Description

Multi-platform compiling detection method, device, equipment and medium
Technical Field
The embodiment of the invention relates to the technical field of game development, in particular to a multi-platform compiling detection method, device, equipment and medium.
Background
In the prior art, when the code compiling condition of a unity item on different platforms needs to be checked, for example, when the code compiling condition of platforms such as Windows, iOS, android and the like, a unity editor needs to be switched to a target platform, and then the code needs to be compiled to check the compiling result.
However, when the editor switches the platform, all resources are converted into the format of the current platform, which is time-consuming (up to several hours) in a project with huge resources. Therefore, in a large project, it is basically impossible to switch platforms by an editor to check the code compiling condition. To automatically check the compiling condition of all platforms, a project environment switched to each platform needs to be prepared for each platform, and then the project of each platform is compiled and checked. This requires a large disk space and the efficiency of compiling code is low, making a quick check impossible.
Disclosure of Invention
The embodiment of the invention provides a multi-platform compiling detection method, a multi-platform compiling detection device and a multi-platform compiling detection medium, so that the efficiency of multi-platform compiling detection is improved.
In a first aspect, an embodiment of the present invention provides a multi-platform compilation detection method, including:
when a compiling detection instruction is triggered, acquiring a to-be-processed item file and a target compiling platform corresponding to the compiling detection instruction;
calling a development tool set plug-in through a development platform to obtain a target configuration file corresponding to the target compiling platform, and compiling the content in the project file to be processed based on the project file to be processed and the target configuration file;
and acquiring a compiling result sent by the development tool set, and sending the compiling result to a target receiving end.
In a second aspect, an embodiment of the present invention further provides a multi-platform compiling detection apparatus, including:
the system comprises a to-be-processed file acquisition module, a target compiling platform and a compiling detection module, wherein the to-be-processed file acquisition module is used for acquiring a to-be-processed project file and the target compiling platform corresponding to a compiling detection instruction when the compiling detection instruction is triggered;
the file compiling module is used for calling a development tool set plug-in through a development platform to obtain a target configuration file corresponding to the target compiling platform and compiling the content in the project file to be processed based on the project file to be processed and the target configuration file;
and the compiling result processing module is used for acquiring the compiling result sent by the development tool set and sending the compiling result to a target receiving end.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a multi-platform compilation detection method as provided by any of the embodiments of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the multi-platform compilation detection method provided in any embodiment of the present invention.
According to the embodiment of the invention, when a compiling detection instruction is triggered, a to-be-processed project file and a target compiling platform corresponding to the compiling detection instruction are obtained; calling a development tool set plug-in through a development platform to obtain a target configuration file corresponding to the target compiling platform, and compiling the content in the project file to be processed based on the project file to be processed and the target configuration file; and acquiring the compiling result sent by the development tool set, and sending the compiling result to a target receiving end, so that the efficiency of multi-platform compiling detection is improved.
Drawings
Fig. 1 is a flowchart of a multi-platform compilation detection method according to an embodiment of the present invention;
fig. 2a is a flowchart of a multi-platform compilation detection method according to a second embodiment of the present invention;
FIG. 2b is a block diagram of a multi-platform fast compilation inspection tool according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a multi-platform compiling detection device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a multi-platform compilation detection method according to an embodiment of the present invention. The embodiment can be applied to the situation when the compiling results of a plurality of platforms are detected. The method may be performed by a multi-platform compilation detection apparatus, which may be implemented in software and/or hardware, for example, and may be configured in a computer device. As shown in fig. 1, the method includes:
and S110, when the compiling detection instruction is triggered, acquiring a to-be-processed item file and a target compiling platform corresponding to the compiling detection instruction.
In this embodiment, the compiling detection instruction may be triggered by a user clicking a user interface of the compiling detection terminal. The target compiling platform can be a working platform needing compiling. Optionally, the target compiling platform may be a Windows, iOS, android, or the like platform. Specifically, when the compile detection instruction is triggered, a target compile platform included in the detected compile detection instruction is obtained, where the number of the target compile platforms may be 1 or multiple.
For example, after a user can select a working platform to be compiled, a compiling control in an interface is clicked to trigger a compiling detection instruction, a multi-platform compiling detection device detects the compiling detection instruction triggered by the user, a target compiling platform contained in the compiling detection instruction is obtained, and a to-be-processed project file corresponding to the compiling detection instruction is obtained. The project file to be processed can be obtained from the version control platform. Optionally, the multi-platform compiling and detecting device may actively obtain the to-be-processed item file from the version control platform, and may also receive the to-be-processed item file issued by the version control platform, which is not limited herein.
And S120, calling a development tool set plug-in through a development platform to obtain a target configuration file corresponding to the target compiling platform, and compiling the content in the project file to be processed based on the project file to be processed and the target configuration file.
In this embodiment, the configuration files are pre-established configuration files corresponding to different compiling platforms. The target configuration file is a configuration file corresponding to the target compiling platform. For example, assuming that the target compiling platform is an android platform, the target configuration file is a configuration file corresponding to the android platform.
Specifically, the multi-platform compiling detection device calls a development platform so that the development platform calls a development tool set plug-in to obtain a target configuration file corresponding to the target compiling platform, modifies the project file to be compiled based on the target configuration file to obtain a project file to be compiled corresponding to the target compiling platform, and then compiles the project file to be compiled by calling a compiling tool. In one embodiment, the development platform is a Unity development platform and the development toolset plug-in is a Visual Studio (VS) plug-in. The multi-platform compiling detection device can be configured in Jenkins automation task platforms. That is to say, the Jenkins automation task platform calls a Visual Studio plugin to obtain a target configuration file corresponding to the target compiling platform through the Unity development platform, modifies the project file to be processed in the Visual Studio based on the target configuration file to obtain a project file to be compiled corresponding to the target compiling platform, and then compiles the project file to be compiled by calling a VS compiling tool. The method comprises the steps of calling a Visual Studio plugin to obtain a target configuration file corresponding to a target compiling platform, wherein the target configuration file can be obtained through an expansion interface of the Visual Studio plugin. Illustratively, a program for acquiring the project configuration file is written in advance, and the program for acquiring the project configuration file is called through an extension interface of the visual studio plug-in to acquire a target configuration file corresponding to the target compiling platform. In addition, when a plurality of target compiling platforms are provided, the VS compiling tool can be run in parallel, and the codes of the target compiling platforms are compiled simultaneously.
In an embodiment of the present invention, the obtaining, by a development platform calling a development tool set plug-in, a target configuration file corresponding to the target compilation platform includes: and calling a development tool set plug-in through the development platform to acquire a target configuration file corresponding to the target compilation platform from pre-stored configuration files according to the compilation platform identifier of the target compilation platform. Specifically, the development platform may call an extension interface of a development tool set plug-in, and obtain a target configuration file corresponding to the target compilation platform from a configuration file table in which a correspondence between a compilation platform identifier and a configuration file is stored in advance. Optionally, the compiling platform identifier of the target compiling platform may be matched with a compiling platform identifier in a pre-stored configuration file table, and a configuration file corresponding to the compiling platform identifier matched with the compiling platform identifier of the target compiling platform in the pre-stored configuration file table is used as the target configuration file.
Optionally, before the development platform calls the development tool set plug-in to obtain the target configuration file corresponding to the target compilation platform, the method further includes: and generating configuration files corresponding to the compiling platforms according to the compiling rules of the compiling platforms, and correspondingly storing the compiling platform identifications and the configuration files. In this embodiment, before performing multi-platform compilation detection, configuration files corresponding to the compilation platforms are generated according to the compilation rules of the compilation platforms, and the compilation platform identifiers and the configuration files are stored correspondingly, so that in the subsequent multi-platform compilation detection process, multi-platform fast compilation is performed according to the pre-stored configuration files. The configuration file may include a platform configuration file and a compiling configuration file, and may further include a reference relationship between macros, and the like.
In an embodiment of the present invention, the compiling the content in the to-be-processed item file based on the to-be-processed item file and the target configuration file includes: calling an editor script in a development platform to analyze the project file to be processed to obtain an initial project file; calling a development tool set plug-in through a development platform to modify the initial project file according to the target configuration file to obtain a project file to be compiled; and calling a compiling tool in the development tool set plug-in through the development platform to compile the project file to be compiled.
Taking a development platform as a Unity development platform as an example, a Jenkins automation task platform analyzes a project file to be processed through a Unity editor script in the Unity development platform to obtain an initial VS project file, then calls a Visual Studio plugin (VSTU) of Unity to modify the initial project file according to a target configuration file to obtain a file to be compiled, which can be directly compiled on the target compilation platform, and calls a VS compilation tool to compile the project file to be compiled.
On the basis of the above scheme, the initial project file includes a solution original file and a project original file, the target configuration file includes a platform configuration file and a compilation configuration file, and the initial project file is modified by calling a development tool set plug-in through a development platform according to the target configuration file to obtain a project file to be compiled, including: calling a development tool set plug-in through a development platform to add the platform configuration file in the solution original file to obtain a target solution file; calling a development tool set plug-in through a development platform to add the compiling configuration file in the project original file to obtain a target project file; and generating the project file to be compiled based on the target solution file and the target project file.
Specifically, the Jenkins automation task platform analyzes the project file to be processed by calling the VSTU of Unity to obtain a solution original file and a project original file, then the VSTU plug-in calls an extension interface to modify the solution original file and the project original file respectively, and the target solution file and the target project file obtained after modification are jointly used as the project file to be compiled. Optionally, the step of modifying the solution original file by calling the extension interface by the VSTU plug-in may be: and the VSTU plug-in calls an expansion interface to read and analyze the project file to be processed, extracts all project information contained in the project file to be processed, then adds a platform configuration file in all projects, and stores the modified solution as a target solution file. The VSTU plug-in calls the extended interface to modify the original file of the project may be: the VSTU plug-in calls an expansion interface to read and analyze the project file to be processed, then adds a compiling configuration file, determines whether all the reference relations are available according to the preset reference relations and the compiling configuration, deletes the unavailable reference relations, and then saves the modified project file as a target project file.
S130, obtaining the compiling result sent by the development tool set, and sending the compiling result to a target receiving end.
In this embodiment, after the VS compilation tool compiles the to-be-compiled item file, a corresponding compilation result is generated, and the multi-platform compilation detection device receives the compilation result returned by the VS compilation tool and displays the compilation result. Optionally, the compiling result displaying end may be preset as a target receiving end, and the compiling result is performed based on the preset compiling result displaying end, so that the compiling result is displayed at the compiling result displaying end. The user can determine whether the code corresponding to the target compiling platform is compiled normally through the first compiling result.
According to the embodiment of the invention, when a compiling detection instruction is triggered, a to-be-processed project file and a target compiling platform corresponding to the compiling detection instruction are obtained; calling a development tool set plug-in through a development platform to obtain a target configuration file corresponding to the target compiling platform, and compiling the content in the project file to be processed based on the project file to be processed and the target configuration file; and acquiring the compiling result sent by the development tool set, and sending the compiling result to a target receiving end, so that the efficiency of multi-platform compiling detection is improved.
Example two
Fig. 2a is a flowchart of a multi-platform compilation detection method according to a second embodiment of the present invention. The present embodiment provides a preferred embodiment based on the above-described embodiments.
In this embodiment, the multi-platform compiling method may be implemented based on a multi-platform fast compiling inspection tool. Fig. 2b is a structural diagram of a multi-platform fast compilation inspection tool according to a second embodiment of the present invention. As shown in FIG. 2b, the multi-platform rapid compilation inspection tool comprises a Jenkins automation task platform, a Unity development platform and a Visual Studio plug-in. Specifically, the Jenkins automation task platform runs an automation compiling inspection script to execute an automation compiling detection process.
The automatic compiling and detecting process may be: updating the project file, executing the Unity editor script, generating a VS project file, calling a VSTU plug-in to call an expansion interface of the VSTU to modify the VS project file, adding the compiling configuration of each platform, generating the modified VS project file, then compiling the VS project code by using a VS compiling tool to obtain a compiling result, and sending the compiling result to the enterprise WeChat through an enterprise WeChat sending module.
As shown in fig. 2a, the process of the method is: starting automated compilation inspection; executing an automation platform script; updating the project file; executing the Unity editor script to generate a VS project file (namely a project file to be processed); calling a VSTU plug-in to generate a VS project file (namely an initial project file); the VSTU plug-in analyzes the initial project file, generates a VS solution file (namely a solution original file) and a VS project file (namely a project original file), modifies the VS solution file and the VS project file respectively to obtain and store the modified solution file and the modified project file, and then the VS project file is generated to obtain the project file to be compiled. And then opening a project file to be compiled through VS, selecting a platform (namely a target compiling platform) to be compiled, compiling a code to be compiled in the VS to obtain a compiling result for a user to check, running VS compiling tools in parallel when a plurality of target compiling platforms exist, compiling the codes of the compiling platforms at the same time, outputting the compiling result, sending the compiling result to enterprise WeChat, and finishing automatic compiling check.
Wherein, modifying the VS solution file may be: and the VSTU plug-in calls an expansion interface to read and analyze the VS solution file, extracts all item information contained in the VS solution file, and adds the platform configuration file of each target compiling platform in all the item information to obtain the modified solution file. The modification of the VS project file may be: and the VSTU plug-in calls an expansion interface to read and analyze the VS item file, adds a compiling configuration file of each target compiling platform, judges whether the reference is available according to the reference configured by each platform, and deletes the unavailable reference to obtain a modified item file.
The embodiment of the invention utilizes a Jenkins automation task platform to automatically update the Unity project file to generate a VS project file, then calls a VS compilation code, outputs a result and sends the result to an enterprise WeChat, thereby realizing the automatic detection of multi-platform compilation. In addition, the user-defined processing of a Visual Studio (VS) project file generated by the Unity is realized by using an expansion interface of a VS plug-in of the Unity, compiling configurations of various different platforms are added in the VS project file, platform compiling codes can be quickly switched in the Visual Studio without switching the platforms in a Unity editor, so that compiling detection of multiple platforms can be realized by only preparing one project environment, the disk overhead of preparing one project environment for each platform is avoided, the disk space is saved, and the VS compiling codes are more efficient than the Unity editor.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a multi-platform compiling detection device according to a third embodiment of the present invention. The multi-platform compiling detection device can be implemented by software and/or hardware, for example, the multi-platform compiling detection device can be configured in a computer device. As shown in fig. 3, the apparatus includes a to-be-processed file obtaining module 310, a file compiling module 320, and a compiling result processing module 330, where:
a to-be-processed file obtaining module 310, configured to obtain a to-be-processed item file and a target compiling platform corresponding to a compiling detection instruction when the compiling detection instruction is triggered;
the file compiling module 320 is configured to call a development tool set plug-in through a development platform to obtain a target configuration file corresponding to the target compiling platform, and compile content in the project file to be processed based on the project file to be processed and the target configuration file;
and the compiling result processing module 330 is configured to obtain a compiling result sent by the development tool set, and send the compiling result to a target receiving end.
According to the embodiment of the invention, when a compiling detection instruction is triggered, a to-be-processed file acquisition module acquires a to-be-processed item file and a target compiling platform corresponding to the compiling detection instruction; a file compiling module calls a development tool set plug-in through a development platform to obtain a target configuration file corresponding to the target compiling platform, and compiles the content in the project file to be processed based on the project file to be processed and the target configuration file; and the compiling result processing module acquires the compiling result sent by the development tool set and sends the compiling result to a target receiving end, so that the efficiency of multi-platform compiling detection is improved.
Optionally, on the basis of the above scheme, the file compiling module 320 is specifically configured to:
calling an editor script in a development platform to analyze the project file to be processed to obtain an initial project file;
calling a development tool set plug-in through a development platform to modify the initial project file according to the target configuration file to obtain a project file to be compiled;
and calling a compiling tool in the development tool set plug-in through the development platform to compile the project file to be compiled.
Optionally, on the basis of the above scheme, the initial project file includes a solution original file and a project original file, the target configuration file includes a platform configuration file and a compiling configuration file, and the file compiling module 320 is specifically configured to:
calling a development tool set plug-in through a development platform to add the platform configuration file in the solution original file to obtain a target solution file;
calling a development tool set plug-in through a development platform to add the compiling configuration file in the project original file to obtain a target project file;
and generating the project file to be compiled based on the target solution file and the target project file.
Optionally, on the basis of the above scheme, the file compiling module 320 is specifically configured to:
and calling a development tool set plug-in through the development platform to acquire a target configuration file corresponding to the target compilation platform from pre-stored configuration files according to the compilation platform identifier of the target compilation platform.
Optionally, on the basis of the foregoing scheme, the apparatus further includes a configuration file storage module, configured to:
before a development tool set plug-in is called through a development platform to obtain a target configuration file corresponding to the target compiling platform, generating a configuration file corresponding to each compiling platform according to a compiling rule of the compiling platform, and correspondingly storing a compiling platform identification and the configuration file.
Optionally, on the basis of the above scheme, the development platform is a Unity development platform.
Optionally, on the basis of the above scheme, the development tool set plug-in is a Visual Studio plug-in.
The multi-platform compiling detection device provided by the embodiment of the invention can execute the multi-platform compiling detection method provided by any embodiment, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary computer device 412 suitable for use in implementing embodiments of the present invention. The computer device 412 shown in FIG. 4 is only one example and should not impose any limitations on the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 4, computer device 412 is in the form of a general purpose computing device. Components of computer device 412 may include, but are not limited to: one or more processors 416, a system memory 428, and a bus 418 that couples the various system components (including the system memory 428 and the processors 416).
Bus 418 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and processor 416, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, 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.
Computer device 412 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 412 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 428 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)430 and/or cache memory 432. The computer device 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage 434 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and 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, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 418 by one or more data media interfaces. Memory 428 can include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 440 having a set (at least one) of program modules 442 may be stored, for instance, in memory 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 442 generally perform the functions and/or methodologies of the described embodiments of the invention.
The computer device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, display 424, etc.), with one or more devices that enable a user to interact with the computer device 412, and/or with any devices (e.g., network card, modem, etc.) that enable the computer device 412 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 422. Also, computer device 412 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) through network adapter 420. As shown, network adapter 420 communicates with the other modules of computer device 412 over bus 418. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the computer device 412, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 416 executes various functional applications and data processing by executing programs stored in the system memory 428, for example, implementing a multi-platform compilation detection method provided by the embodiments of the present invention, the method includes:
when a compiling detection instruction is triggered, acquiring a to-be-processed item file and a target compiling platform corresponding to the compiling detection instruction;
calling a development tool set plug-in through a development platform to obtain a target configuration file corresponding to the target compiling platform, and compiling the content in the project file to be processed based on the project file to be processed and the target configuration file;
and acquiring a compiling result sent by the development tool set, and sending the compiling result to a target receiving end.
Of course, those skilled in the art will understand that the processor may also implement the technical solution of the multi-platform compiling detection method provided by any embodiment of the present invention.
EXAMPLE five
The fifth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the multi-platform compiling detection method provided in the fifth embodiment of the present invention, where the method includes:
when a compiling detection instruction is triggered, acquiring a to-be-processed item file and a target compiling platform corresponding to the compiling detection instruction;
calling a development tool set plug-in through a development platform to obtain a target configuration file corresponding to the target compiling platform, and compiling the content in the project file to be processed based on the project file to be processed and the target configuration file;
and acquiring a compiling result sent by the development tool set, and sending the compiling result to a target receiving end.
Of course, the computer program stored on the computer-readable storage medium provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the multi-platform compilation detection method provided by any embodiments of the present invention.
Computer storage media for embodiments of the invention may employ 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. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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 the context of 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.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. 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 aspects 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 + + or the like 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 type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. 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, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A multi-platform compilation detection method, comprising:
when a compiling detection instruction is triggered, acquiring a to-be-processed item file and a target compiling platform corresponding to the compiling detection instruction;
calling a development tool set plug-in through a development platform to obtain a target configuration file corresponding to the target compiling platform, and compiling the content in the project file to be processed based on the project file to be processed and the target configuration file;
and acquiring a compiling result sent by the development tool set, and sending the compiling result to a target receiving end.
2. The method of claim 1, wherein compiling the content in the pending item file based on the pending item file and the target configuration file comprises:
calling an editor script in a development platform to analyze the project file to be processed to obtain an initial project file;
calling a development tool set plug-in through a development platform to modify the initial project file according to the target configuration file to obtain a project file to be compiled;
and calling a compiling tool in the development tool set plug-in through the development platform to compile the project file to be compiled.
3. The method of claim 2, wherein the initial project files include solution raw files and project raw files, the target configuration files include platform configuration files and compilation configuration files, and the initial project files are modified according to the target configuration files by invoking development toolset plug-ins through a development platform to obtain project files to be compiled, including:
calling a development tool set plug-in through a development platform to add the platform configuration file in the solution original file to obtain a target solution file;
calling a development tool set plug-in through a development platform to add the compiling configuration file in the project original file to obtain a target project file;
and generating the project file to be compiled based on the target solution file and the target project file.
4. The method of claim 1, wherein the obtaining of the target configuration file corresponding to the target compilation platform by calling a development tool set plug-in through a development platform comprises:
and calling a development tool set plug-in through the development platform to acquire a target configuration file corresponding to the target compilation platform from pre-stored configuration files according to the compilation platform identifier of the target compilation platform.
5. The method of claim 4, before the obtaining of the target configuration file corresponding to the target compiling platform by calling a development tool set plug-in through a development platform, further comprising:
and generating configuration files corresponding to the compiling platforms according to the compiling rules of the compiling platforms, and correspondingly storing the compiling platform identifications and the configuration files.
6. The method of any of claims 1-5, wherein the development platform is a Unity development platform.
7. The method of any of claims 1-5, wherein the development toolset plugin is a Visualstudio plugin.
8. A multi-platform compilation detection apparatus, comprising:
the system comprises a to-be-processed file acquisition module, a target compiling platform and a compiling detection module, wherein the to-be-processed file acquisition module is used for acquiring a to-be-processed project file and the target compiling platform corresponding to a compiling detection instruction when the compiling detection instruction is triggered;
the file compiling module is used for calling a development tool set plug-in through a development platform to obtain a target configuration file corresponding to the target compiling platform and compiling the content in the project file to be processed based on the project file to be processed and the target configuration file;
and the compiling result processing module is used for acquiring the compiling result sent by the development tool set and sending the compiling result to a target receiving end.
9. A computer device, the device comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the multi-platform compilation detection method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a multi-platform compilation detection method according to any one of claims 1 to 7.
CN201911379576.2A 2019-12-27 2019-12-27 Multi-platform compiling detection method, device, equipment and medium Active CN111061489B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911379576.2A CN111061489B (en) 2019-12-27 2019-12-27 Multi-platform compiling detection method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911379576.2A CN111061489B (en) 2019-12-27 2019-12-27 Multi-platform compiling detection method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN111061489A true CN111061489A (en) 2020-04-24
CN111061489B CN111061489B (en) 2023-06-27

Family

ID=70304289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911379576.2A Active CN111061489B (en) 2019-12-27 2019-12-27 Multi-platform compiling detection method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN111061489B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552480A (en) * 2020-05-07 2020-08-18 深圳百斯特控制技术有限公司 Cross-platform compiling method, device, equipment and readable storage medium
CN111913694A (en) * 2020-08-04 2020-11-10 深圳大趋智能科技有限公司 Method and system for compiling automatic identification platform
CN113434146A (en) * 2021-06-22 2021-09-24 青岛海尔科技有限公司 Code compiling method, device, storage medium and electronic device
CN116382775A (en) * 2023-03-15 2023-07-04 中电金信软件有限公司 Hbuilderx plug-in based multi-platform program package generation method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697135A (en) * 2009-10-28 2010-04-21 北京东方网力科技有限公司 Method and device for compiling program
CN107122219A (en) * 2017-03-31 2017-09-01 腾讯科技(深圳)有限公司 The acquisition methods and device of installation file
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697135A (en) * 2009-10-28 2010-04-21 北京东方网力科技有限公司 Method and device for compiling program
CN107122219A (en) * 2017-03-31 2017-09-01 腾讯科技(深圳)有限公司 The acquisition methods and device of installation file
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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552480A (en) * 2020-05-07 2020-08-18 深圳百斯特控制技术有限公司 Cross-platform compiling method, device, equipment and readable storage medium
CN111913694A (en) * 2020-08-04 2020-11-10 深圳大趋智能科技有限公司 Method and system for compiling automatic identification platform
CN113434146A (en) * 2021-06-22 2021-09-24 青岛海尔科技有限公司 Code compiling method, device, storage medium and electronic device
CN116382775A (en) * 2023-03-15 2023-07-04 中电金信软件有限公司 Hbuilderx plug-in based multi-platform program package generation method

Also Published As

Publication number Publication date
CN111061489B (en) 2023-06-27

Similar Documents

Publication Publication Date Title
CN111061489B (en) Multi-platform compiling detection method, device, equipment and medium
CN105159833A (en) Automatic testing device and method
CN110688096B (en) Method and device for constructing application program containing plug-in, medium and electronic equipment
CN111324441A (en) Operating environment switching method and device, computer equipment and storage medium
CN110727581B (en) Crash positioning method and electronic equipment
CN111144839A (en) Project construction method, continuous integration system and terminal equipment
CN112035344A (en) Multi-scenario test method, device, equipment and computer readable storage medium
CN110688305B (en) Test environment synchronization method, device, medium and electronic equipment
CN113051514A (en) Element positioning method and device, electronic equipment and storage medium
CN109814957B (en) Label adding method and device for IOS (input/output system)
CN113704110A (en) Automatic testing method and device for user interface
CN114003269A (en) Component processing method and device, electronic equipment and storage medium
CN108595178B (en) Hook-based data acquisition method, device and equipment
CN111190791A (en) Application exception reporting method and device and electronic equipment
CN111124423B (en) Compiling detection method, device, server and medium based on multiple platforms
CN113886221B (en) Test script generation method and device, storage medium and electronic equipment
CN113138768B (en) Application package generation method and device, electronic equipment and readable storage medium
CN113986263A (en) Code automation test method, device, electronic equipment and storage medium
CN111078571B (en) Test method for analog response, terminal equipment and computer readable storage medium
CN109634636B (en) Application processing method, device, equipment and medium
CN113687880A (en) Method, device, equipment and medium for calling component
CN109284097B (en) Method, device, system and storage medium for realizing complex data analysis
CN111176718A (en) Script online method and device, storage medium and electronic equipment
CN113687878B (en) Information interaction method, device, equipment and storage medium
CN113608996B (en) Mirror image compiling test method, system, device and readable 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