CN112395253B - Index file generation method, terminal device, electronic device and medium - Google Patents

Index file generation method, terminal device, electronic device and medium Download PDF

Info

Publication number
CN112395253B
CN112395253B CN202011289784.6A CN202011289784A CN112395253B CN 112395253 B CN112395253 B CN 112395253B CN 202011289784 A CN202011289784 A CN 202011289784A CN 112395253 B CN112395253 B CN 112395253B
Authority
CN
China
Prior art keywords
target
index file
directory
application program
target application
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
CN202011289784.6A
Other languages
Chinese (zh)
Other versions
CN112395253A (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.)
Douyin Vision Co Ltd
Original Assignee
Douyin Vision 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 Douyin Vision Co Ltd filed Critical Douyin Vision Co Ltd
Priority to CN202011289784.6A priority Critical patent/CN112395253B/en
Publication of CN112395253A publication Critical patent/CN112395253A/en
Priority to PCT/CN2021/126885 priority patent/WO2022105563A1/en
Application granted granted Critical
Publication of CN112395253B publication Critical patent/CN112395253B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • 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)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the disclosure provides an index file generation method, terminal equipment, electronic equipment and a medium. The method is executed by a terminal device and comprises the following steps: acquiring a first index file of a target application program and compiling process data, wherein the first index file is generated when compiling a source code of the target application program, a directory path of each target file is recorded in the first index file, and the compiling process data is data related to the first index file generated in the compiling process; determining target replacement parameters by utilizing compiling process data; determining a parameter value of a target replacement parameter corresponding to a target application program in terminal equipment; and replacing the parameter value of the target replacement parameter in the first index file with the determined parameter value to obtain a second index file corresponding to the target application program in the terminal equipment. The embodiment of the disclosure realizes the rapid generation of the index file, reduces the time consumption and improves the development efficiency of the application program.

Description

Index file generation method, terminal device, electronic device and medium
Technical Field
The disclosure relates to the technical field of computers, and in particular relates to an index file generation method, terminal equipment, electronic equipment and a medium.
Background
In the development process of an application program, the functions of jumping, highlighting, reconstructing, searching, static checking and the like are needed to be frequently used when the code is edited or read, and the functions are needed to be completed by utilizing an index file of the application program, wherein the index file is mainly used for recording the relation between data and a storage path thereof.
Typically, the storage path of data in one electronic device differs from the storage path of the data in another electronic device, which makes the index file generated by one electronic device unusable in the other electronic device. Thus, for each electronic device that needs to compile the source code of the application, the electronic device needs to generate an index file before or during compiling the source code of the application. If the electronic device generates the index file before compiling the source code of the application program, a large amount of time resources are consumed, and a large amount of system resources are occupied, so that the electronic device is difficult to execute other operations for a long time; if the electronic device generates the index file in the process of compiling the source code of the application program, a great amount of time resources are consumed, the compiling time is greatly increased, and the development process of the application program is influenced.
Disclosure of Invention
The invention provides an index file generation method, terminal equipment, electronic equipment and a medium, which can quickly generate an index file.
In a first aspect, there is provided an index file generating method, which is performed by a terminal device, including:
acquiring a first index file of a target application program and compiling process data, wherein the first index file is generated when compiling a source code of the target application program, a directory path of each target file is recorded in the first index file, and the compiling process data is data related to the first index file generated in the compiling process;
determining target replacement parameters by utilizing compiling process data;
determining a parameter value of a target replacement parameter corresponding to a target application program in terminal equipment;
and replacing the parameter value of the target replacement parameter in the first index file with the determined parameter value to obtain a second index file corresponding to the target application program in the terminal equipment.
In a second aspect, there is provided a terminal device comprising:
the system comprises an acquisition module, a compiling module and a compiling module, wherein the acquisition module is used for acquiring a first index file of a target application program and compiling process data, the first index file is generated when compiling a source code of the target application program, directory paths of all target files are recorded in the first index file, and the compiling process data is data related to the first index file generated in the compiling process;
The first determining module is used for determining target replacement parameters by utilizing compiling process data;
the second determining module is used for determining a parameter value of a target replacement parameter corresponding to the target application program in the terminal equipment;
and the replacing module is used for replacing the parameter value of the target replacement parameter in the first index file by the determined parameter value to obtain a second index file corresponding to the target application program in the terminal equipment.
In a third aspect, an electronic device is provided, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: the operations corresponding to the index file generation method according to the first aspect are performed.
In a fourth aspect, there is provided a computer-readable medium having stored thereon a computer program which, when executed by a processor, implements the index file generation method of the first aspect.
The beneficial effects that this disclosure provided technical scheme brought are:
compared with the prior art, the method comprises the steps of obtaining a first index file of a target application program and compiling process data, wherein the first index file is generated in the process of compiling source codes of the target application program, directory paths of all target files are recorded in the first index file, the compiling process data are data related to the first index file generated in the compiling process, then determining target replacement parameters by utilizing the compiling process data, determining parameter values of the target replacement parameters corresponding to the target application program in the terminal device, finally replacing parameter values of the target replacement parameters in the first index file by utilizing the determined parameter values to obtain a second index file corresponding to the target application program in the terminal device, and therefore the index file corresponding to the target application program in the terminal device is obtained quickly, time consumption is reduced, and development efficiency of the application program is improved.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
Fig. 1 is a flowchart of an index file generating method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are used merely to distinguish one device, module, or unit from another device, module, or unit, and are not intended to limit the order or interdependence of the functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The following describes the technical solutions of the present disclosure and how the technical solutions of the present disclosure solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
The embodiment of the disclosure provides an index file generating method, which can be executed by a terminal device, wherein the terminal device can be a mobile phone, a tablet computer, a desktop computer, a notebook computer, etc., as shown in fig. 1, and the method comprises steps S101-S104.
Step S101, a first index file of a target application program and compiling process data are obtained.
The first index file is generated when compiling the source code of the target application program, the directory path of each target file is recorded in the first index file, and the compiling process data is data related to the first index file generated in the compiling process.
Specifically, the first index file is generated by a server of the target application program in the process of compiling the source code of the program.
In the embodiment of the present disclosure, a server of a target Application (App) is a server that provides a service of the target App. The server of the target APP may compile the source code of the target APP, and generate an index file of the target APP (i.e., the first index file) and data related to the index file (including, but not limited to, the compiling process data) during the compiling process, where the related data may include, but not limited to, data such as a storage location or a storage path of a file related to the index file.
Step S102, determining target replacement parameters by utilizing compiling process data.
Step S103, determining a parameter value of a target replacement parameter corresponding to the target application in the terminal device.
Step S104, the determined parameter value is used for replacing the parameter value of the target replacement parameter in the first index file, and a second index file corresponding to the target application program in the terminal equipment is obtained.
In the embodiment of the disclosure, the index file (including the first index file and the second index file) is also called a unit file, and the unit file structure of one index generally includes three parts, which are respectively a directory path of the index file, a file name of the target file, and a check code corresponding to the target file, where the check code may be a Hash (Hash) check code.
For example, a unit file structure of an index may be: the method comprises the steps of (1)/xxx/Index/DataStore/v 5/units/TTBridgePlugins-dummy.o-3GROH29GTL804, wherein/xxx/Index/DataStore/v 5/units are directory paths of Index files, TTBridgePlugins-dummy.o is a file name of a target file, and 3GROH29GTL804 is a check code corresponding to the target file.
The object file is the OBJ file. The file name and the check code of the target file are obtained by calculating the related information of the target file, and the related information of the target file can be a directory path of the target file.
For example, TTBridgePlugins-dummy.o-3GROH29GTL804 is obtained by calculating the relevant information of the target file, which may be: "/Users/yyy/Library/development/Xcode/development data/Article-eyvyloqhxkpnlkb zndcpojajjnbr/Build/Intermedia. Nonindex/Article. Build/Video-iphonesift or/Video InHouse. Build/Objects-normal/x86_64/BDViewController. O", the relevant information of the target file is the directory path of the target file.
In the embodiment of the present disclosure, an index database read-write tool may be installed in the terminal device, and the relevant steps in step S101 to step S104 may be performed by using the index database read-write tool. The index database read-write tool is available based on an underlying virtual machine (Low Level Virtual Machine, LLVM) and can be used for modifying parameter values of target replacement parameters in an index file.
Compared with the prior art, the method for generating the index file includes the steps that a first index file of a target application program and compiling process data are obtained, wherein the first index file is generated when compiling is conducted on source codes of the target application program, directory paths of all target files are recorded in the first index file, the compiling process data are data related to the first index file generated in the compiling process, target replacement parameters are determined by utilizing the compiling process data, parameter values of the target replacement parameters corresponding to the target application program in the terminal device are determined, finally, the determined parameter values of the target replacement parameters in the first index file are utilized to replace parameter values of the target replacement parameters in the terminal device, a second index file corresponding to the target application program in the terminal device is obtained, replacement of the parameter values of the target replacement parameters in the original index file is achieved, accordingly, the index file corresponding to the target application program in the terminal device is obtained quickly, time consumption is reduced, and development efficiency of the application program is improved.
Another possible implementation of an embodiment of the present disclosure, for either one of the first index file and the second index file, the index file includes at least one of the following information A1-A4 therein.
The index file may be a first index file or a second index file, that is, the file content styles of the first index file and the second index file are the same, and the difference between the two files is that the parameter values of the target replacement parameters in the two files are different.
Information A1, work directory information, i.e., work dir information, includes directory paths of parent directories of the target application's workspace.
For example, the work dir information in the index file may include: users/yyy/Desktop/workbench/TTvideo/arc, wherein the path comprises a directory path of a parent directory of the Workspace of the target application.
In the embodiment of the disclosure, the work_dir information in the first index file is included in a server of a target application program, and a directory path of a parent directory of a working space of the target application program; the work dir information in the second index file is included in the terminal device, and the directory path of the parent directory of the workspace of the target application.
Information A2, main path information, i.e., mainPath information, includes a directory path of source code of the target application.
For example, the mainPath information in the index file may include: users/yyy/Desktop/workbench/TTvideo/arc/short video/Detail/Classes/video details page/Actions/ADvideo details ActionManager.m, wherein the path comprises a directory path of source code of the target application.
In the embodiment of the disclosure, the main path information in the first index file is included in a server of a target application program, and a directory path of source code of the target application program; the main path information in the second index file is included in the terminal device, and the directory path of the source code of the target application program.
Information A3, the outer directory information, i.e., out_dir information, includes directory paths of respective target files generated in the process of compiling the source code of the target application.
For example, the out dir information of the index file may include: users/yyy/Library/development/Xcode/development data/handle-eyvyloqhxkpnlkbz ndcpojajjnbr/Build/intermediate. Nonindex/handle. Build/Video-iphonesider/Video InHouse. Build/Objects-normal/x86_64/ADvideo DetaileActionmanager. O, wherein the path includes a directory path for each target file generated during compilation of source code of the target application.
In the embodiment of the disclosure, the out_dir information in the first index file is included in a server of a target application program, and a directory path of each target file is generated in the process of compiling source codes of the target application program; the out dir information in the second index file includes directory paths of respective target files generated in the process of compiling the source code of the target application in the terminal device.
Information A4, dependent on directory information, namely dep dir information, which includes directory paths of the respective files on which the source code of the target application depends.
For example, the dep_dir information of the index file may include: users/yyy/Desktop/workbench/TTvideo/handle/Model/DataModel/handle+Biz.h|handle+Biz.h-8U 985XT788VJ, including the directory path of the individual files on which the source code of the target application depends.
In another possible implementation manner of the embodiment of the present disclosure, in step S101, acquiring a first index file of a target application program and compiling process data may specifically include: and acquiring a first index file and compiling process data of the target application program from the cloud server.
The cloud server is a server for storing the first index file and compiling process data, and when the server of the target application program compiles the source code of the target application program each time to generate the first index file and data related to the first index file, the generated first index file and the data related to the first index file are uploaded to the cloud server.
In the embodiment of the disclosure, after compiling the source code of the target application program each time, the server of the target application program may acquire a first index file generated in the process of compiling the source code of the target application program and data related to the first index file generated in the process of compiling the source code of the target application program, and upload the generated first index file and the data related to the first index file to the cloud server.
After uploading the generated first index file and the data related to the first index file to the cloud server each time, the mark information may be generated by using the Commit number (Commit ID) of the target application program, and the first index file and the data related to the first index file that are uploaded at this time may be marked by using the mark information.
In generating the tag information using the commit number, the commit number may be used as the tag information, or the tag information may be generated using the commit number and other information, which may include a uniform resource locator (Uniform Resource Locator, URL) of a distributed version control system (Git), and/or identification information (e.g., name) of the target application program, or the like.
In the embodiment of the disclosure, when the terminal device detects that the target application program is updated, a first index file corresponding to the target mark information and data related to the first index file may be obtained from the cloud server according to the updated submission number of the target application program, the first index file corresponding to the target mark information is used as the first index file, and the data related to the first index file corresponding to the target mark information is used as compiling process data. The target mark information comprises updated commit numbers.
Another possible implementation of an embodiment of the present disclosure, the compilation process data includes workspace information and storage space information of cache data generated during the compilation process.
In the embodiment of the disclosure, the working space information is workspace information, and the storage space information of the cache data generated in the compiling process is devieddata information. It should be noted that, in general, in the project start stage, a working space file of the project needs to be set, where the working space file includes at least one file and/or at least one folder, and the devieddata file mainly stores cache data.
It will be appreciated that the compilation process data includes, but is not limited to, workspaces information and DerviedData information.
In step S102, the target replacement parameter is determined by using the compiling process data, which may specifically include step S1021 and step S1022.
Step S1021, determining the parent directory of the working space of the target application program as the target replacement parameter according to the working space information. The parent directory of the workspace of the target application is taken as the target replacement parameter.
In the embodiment of the disclosure, the workspace of the target application program and the parent directory of the workspace can be determined according to the workspace information. Wherein the workspace of the target application is xcworkspace.
For example, the directory path of the workspace may be: users/yyy/Desktop/workbench/TTvideo/arc.
It will be appreciated that the parameter values of the target replacement parameters in the index file include the directory path of the parent directory of the workspace, which is also referred to as workdir.
For example, the parent directory of the workspace is an arc whose directory path is: users/yyy/Desktop/workbench/TTVideo/Article. Namely, workbench is: users/yyy/Desktop/workbench/TTVideo/Article.
It should be noted that the work_dir information in the information A1 includes a directory path of a parent directory of the Workspace, for example, a directory path of the parent directory of the Workspace, i.e., a directory path of the arc, which is a directory path of the parent directory of the Workspace, is a/Users/yyy/Desktop/Workspace/TTVideo/arc in the work_dir information.
It should be noted that, the workspaces information may include xcworkspaces and its directory paths, the parent directory and directory paths of the xcworkspaces, and the child directory and directory paths of the child directory of the xcworkspaces, such as the workspaces, xcsettings, etc. of the corresponding user under the xcworkspaces directory.
Step S1022, determining the root directory of the target file corresponding to the target application program according to the storage space information, and taking the root directory as the target replacement parameter. The root directory of the target file corresponding to the target application program is used as a target replacement parameter.
In the embodiment of the disclosure, the ROOT directory of the target file may be determined according to the devieddata information, where the ROOT directory of the target file is obj_root.
It will be appreciated that the parameter values of the target replacement parameters in the index files (including the first index file and the second index file referred to above) include the directory path of obj_root.
For example, the directory path of obj_root may be: users/yyy/Library/development/Xcode/development data/arc-eyvyloqhxkpnlkbz ndcpojajjnbr/Build/intermediates.
It should be noted that the devieddata information may include devieddata, obj_root in devieddata, and the like, which are not limited herein.
Another possible implementation of an embodiment of the present disclosure, if the target replacement parameter includes a parent directory of the workspace of the target application; in step S103, determining the parameter value of the target replacement parameter corresponding to the target application in the terminal device may specifically include: determining a working space of a target application program in the terminal equipment; determining a directory path of a parent directory of the working space, and taking the directory path of the parent directory of the determined working space as a parameter value of the parent directory of the working space corresponding to the target application program in the terminal equipment.
If the target replacement parameter comprises the root directory of the target file; in step S103, determining the parameter value of the target replacement parameter corresponding to the target application in the terminal device may specifically include: determining a working space of a target application program in the terminal equipment; and determining the directory path of the root directory of the target file corresponding to the target application program in the terminal equipment by utilizing the directory path of the working space, and taking the determined directory path of the root directory of the target file as the parameter value of the root directory of the target file.
These two cases will be described in detail below, respectively. Specifically:
in step S103, the parameter value of the target replacement parameter corresponding to the target application in the terminal device is determined, and may specifically include steps S1031 to S1032.
Step S1031, determining a workspace of the target application in the terminal device.
In step S1032, the parameter values of the target replacement parameters corresponding to the target application program in the terminal device are determined by using the workspace.
In the embodiment of the disclosure, the working space xcworkspace of the target application program in the terminal equipment can be determined, and the parameter value of the target replacement parameter corresponding to the target application program in the terminal equipment is determined by using the xcworkspace of the target application program in the terminal equipment.
Wherein if the target replacement parameter comprises a parent directory of the workspace of the target application. Then, in step S1032, the determining, using the workspace, the parameter value of the target replacement parameter corresponding to the target application in the terminal device may specifically include:
determining a directory path of a parent directory of the working space, and taking the directory path of the parent directory of the determined working space as a parameter value of the parent directory of the working space corresponding to the target application program in the terminal equipment.
In the embodiment of the disclosure, the directory path of the parent directory of the xcworkspace can be determined by using the working space xcworkspace of the target application program in the terminal equipment, and the determined directory path of the parent directory of the xcworkspace is used as the parameter value of the parent directory of the xcworkspace corresponding to the target application program in the terminal equipment.
That is, the target replacement parameter includes a parent directory of the xcworkspace of the target application, and correspondingly, the parameter value of the target replacement parameter includes a directory path of the parent directory of the xcworkspace of the target application.
When executing step S104, the directory path of the parent directory of the xcworkspace in the first index file may be replaced, and the directory path of the parent directory of the xcworkspace in the first index file is replaced by the directory path of the parent directory of the xcworkspace of the target application in the terminal device, where the directory path of the parent directory of the xcworkspace in the first index file is the directory path of the parent directory of the xcworkspace of the target application in the server of the target application.
In general, the directory paths of the parent directory of xcworkspace in the work_dir information, the main path information and the dep_dir information in the first index file may be replaced by the directory paths of the parent directory of xcworkspace in the three information.
Of course, at least one of the work_dir information, the main path information, and the dep_dir information may not include a directory path of the parent directory of the xcworkspace, and/or other information in the first index file may also include a directory path of the parent directory of the xcworkspace, which is not limited herein.
If the target replacement parameter includes a root directory of the target file. Then, in step S1032, the determining, using the workspace, the parameter value of the target replacement parameter corresponding to the target application in the terminal device may specifically include:
and determining the directory path of the root directory of the target file corresponding to the target application program in the terminal equipment by utilizing the directory path of the working space, and taking the determined directory path of the root directory of the target file as the parameter value of the root directory of the target file.
In the embodiment of the present disclosure, the workspace xcworkspace of the target application in the terminal device may be used to determine a directory path of the xcworkspace, for example, the directory path of the xcworkspace may be: users/yyy/Desktop/workbench/TTvideo/arc.
The directory path of the temporary directory may be determined using the directory path of xcworkspace in the terminal device. The temporary directory is a directory of a target file generated by the terminal device when compiling the source code of the target application program. For example, the directory path of the temporary directory may be: users/yyy/Library/development/Xcode/development data/art-eyvyloqhxkpnlkbz ndcpojajjnbr.
In the directory path of the temporary directory in the terminal device, a directory path of the root directory of the target file corresponding to the target application in the terminal device may be determined, and the determined directory path of the root directory of the target file is used as a parameter value of the root directory of the target file.
For example, the following path may be determined from the directory path of the temporary directory: users/yyy/Library/development/Xcode/development data/optics-eyvyloqhxkpnlkbz ndcpojajjnbr/Build/intermediates.nonindex, which is the directory path of the root directory of the determined target file.
It should be noted that, the target replacement parameter includes a ROOT directory obj_root of the target file, and correspondingly, the parameter value of the target replacement parameter includes a directory path of obj_root, that is, the directory path of obj_root is the parameter value of obj_root.
When step S104 is performed, the directory path of obj_root in the first index file may be replaced, and the directory path of obj_root in the first index file is replaced by the directory path of obj_root of the target application in the terminal device, where the directory path of obj_root in the first index file is the directory path of obj_root of the target application in the server of the target application.
In general, the directory paths including obj_root in the out_dir information and the dep_dir information in the first index file may be replaced with the directory paths including obj_root in the above two information.
Of course, at least one of the out_dir information and the dep_dir information may not include the directory path of the obj_root, and/or other information in the first index file may also include the directory path of the obj_root, which is not limited herein.
The method for generating the index file is specifically described from the aspect of method steps, and the terminal device is specifically described from the aspect of the virtual module as follows:
the embodiment of the present disclosure provides a terminal device, as shown in fig. 2, the terminal device 20 may include: an acquisition module 201, a first determination module 202, a second determination module 203, and a replacement module 204, wherein,
the obtaining module 201 is configured to obtain a first index file of a target application program and compiling process data, where the first index file is generated when compiling a source code of the target application program, a directory path of each target file is recorded in the first index file, and the compiling process data is data related to the first index file generated in the compiling process.
A first determination module 202 is configured to determine a target replacement parameter using the compilation process data.
The second determining module 203 is configured to determine a parameter value of a target replacement parameter corresponding to the target application in the terminal device.
And the replacing module 204 is configured to replace the parameter value of the target replacement parameter in the first index file with the determined parameter value, so as to obtain a second index file corresponding to the target application program in the terminal device.
In another possible implementation manner of the embodiment of the present disclosure, when the obtaining module 201 obtains the first index file of the target application program and the compiling process data, the obtaining module is specifically configured to:
acquiring a first index file and compiling process data of a target application program from a cloud server;
the cloud server is a server for storing the first index file and compiling process data, and when the server of the target application program compiles the source code of the target application program each time to generate the first index file and data related to the first index file, the generated first index file and the data related to the first index file are uploaded to the cloud server.
Another possible implementation manner of the embodiment of the disclosure, the compiling process data includes working space information and storage space information of cache data generated in the compiling process;
The first determining module 202 is specifically configured to, when determining the target replacement parameter using the compiling process data:
determining a parent directory of the working space of the target application program according to the working space information as a target replacement parameter;
and determining the root directory of the target file corresponding to the target application program according to the storage space information, and taking the root directory as a target replacement parameter.
Another possible implementation of an embodiment of the present disclosure, if the target replacement parameter includes a parent directory of the workspace of the target application;
the second determining module 203 is specifically configured to, when determining a parameter value of a target replacement parameter corresponding to a target application in the terminal device:
determining a working space of a target application program in the terminal equipment;
determining a directory path of a parent directory of the working space, and taking the directory path of the parent directory of the determined working space as a parameter value of the parent directory of the working space corresponding to the target application program in the terminal equipment.
Another possible implementation of an embodiment of the present disclosure, if the target replacement parameter includes a root directory of the target file;
the second determining module 203 is specifically configured to, when determining a parameter value of a target replacement parameter corresponding to a target application in the terminal device:
Determining a working space of a target application program in the terminal equipment;
and determining the directory path of the root directory of the target file corresponding to the target application program in the terminal equipment by utilizing the directory path of the working space, and taking the determined directory path of the root directory of the target file as the parameter value of the root directory of the target file.
Another possible implementation manner of the embodiment of the present disclosure, for any one index file of the first index file and the second index file, the index file includes at least one of the following:
work_dir information including a directory path of a parent directory of a workspace of the target application;
main path mail path information including a directory path of source code of the target application;
the external directory out_dir information comprises directory paths of all target files generated in the process of compiling source codes of target application programs;
the directory dep dir information is relied upon, which includes the directory paths of the individual files on which the source code of the target application depends.
In the embodiment of the disclosure, the first determining module 202 and the second determining module 203 may be the same determining module, or may be different determining modules, which is not limited herein.
The terminal device of the present embodiment may execute an index file generating method provided by the embodiment of the present disclosure, and its implementation principle is similar, and will not be described herein again.
Compared with the prior art, the method and the device have the advantages that the first index file of the target application program and compiling process data are obtained, wherein the first index file is generated in the compiling process of source codes of the target application program, directory paths of all the target files are recorded in the first index file, the compiling process data are data related to the first index file generated in the compiling process, target replacement parameters are determined by utilizing the compiling process data, parameter values of the target replacement parameters corresponding to the target application program in the terminal device are determined, finally, the determined parameter values of the target replacement parameters in the first index file are utilized to replace parameter values of the target replacement parameters in the first index file, a second index file corresponding to the target application program in the terminal device is obtained, replacement of the parameter values of the target replacement parameters in the original index file is achieved, accordingly, the index file corresponding to the target application program in the terminal device is obtained quickly, time consumption is reduced, and development efficiency of the application program is improved.
The terminal device of the present disclosure is described above from the viewpoint of a virtual module, and the electronic device of the present disclosure is described below from the viewpoint of a physical device.
Referring now to fig. 3, a schematic diagram of an electronic device 300 (e.g., a terminal device in the above-described embodiments) suitable for use in implementing embodiments of the present disclosure is shown. The electronic device includes:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: the index file generation method shown in the embodiment of the method is executed.
The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 3 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
An electronic device includes: a memory and a processor, where the processor may be referred to as a processing device 301 described below, the memory may include at least one of a Read Only Memory (ROM) 302, a Random Access Memory (RAM) 303, and a storage device 308 described below, as follows:
as shown in fig. 3, the electronic device 300 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 301 that may perform various suitable actions and processes in accordance with a program stored in a Read Only Memory (ROM) 302 or a program loaded from a storage means 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
In general, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 308 including, for example, magnetic tape, hard disk, etc.; and communication means 309. The communication means 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. While fig. 3 shows an electronic device 300 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via a communication device 309, or installed from a storage device 308, or installed from a ROM 302. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing means 301.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. 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 of the computer-readable storage medium may include, but are not limited to: 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 disclosure, 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. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. 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: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a first index file of a target application program and compiling process data, wherein the first index file is generated when compiling a source code of the target application program, directory paths of all target files are recorded in the first index file, and the compiling process data is data related to the first index file generated in the compiling process; determining a target replacement parameter by using the compiling process data; determining a parameter value of the target replacement parameter corresponding to the target application program in the terminal equipment; and replacing the parameter value of the target replacement parameter in the first index file by the determined parameter value to obtain a second index file corresponding to the target application program in the terminal equipment.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, 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).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules or units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The name of a module or unit does not in some case constitute a limitation of the unit itself, for example, the first determination module may also be described as "a module for determining a target replacement parameter using compilation process data".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on 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.
The embodiment of the disclosure provides an electronic device, which includes: a memory and a processor; at least one program stored in the memory for execution by the processor, which, when executed by the processor, performs: the method comprises the steps of obtaining a first index file of a target application program and compiling process data, wherein the first index file is generated when compiling a source code of the target application program, directory paths of all target files are recorded in the first index file, the compiling process data are data related to the first index file generated in the compiling process, determining target replacement parameters by utilizing the compiling process data, determining parameter values of the target replacement parameters corresponding to the target application program in terminal equipment, and finally replacing the parameter values of the target replacement parameters in the first index file by utilizing the determined parameter values to obtain a second index file corresponding to the target application program in the terminal equipment, so that the index file corresponding to the target application program in the terminal equipment is quickly obtained, time consumption is reduced, and development efficiency of the application program is improved.
The electronic apparatus of the present disclosure is described above in terms of a physical device, and the computer-readable medium of the present disclosure is described below in terms of a medium.
The disclosed embodiments provide a computer readable medium having a computer program stored thereon, which when run on a computer, causes the computer to perform the corresponding method embodiments described above. Compared with the prior art, the method has the advantages that the first index file of the target application program and compiling process data are obtained, wherein the first index file is generated when compiling is conducted on source codes of the target application program, directory paths of all the target files are recorded in the first index file, the compiling process data are data related to the first index file and generated in the compiling process, then target replacement parameters are determined by utilizing the compiling process data, parameter values of the target replacement parameters corresponding to the target application program in the terminal equipment are determined, finally the determined parameter values are utilized to replace the parameter values of the target replacement parameters in the first index file, a second index file corresponding to the target application program in the terminal equipment is obtained, replacement of the parameter values of the target replacement parameters in the original index file is achieved, accordingly, the index file corresponding to the target application program in the terminal equipment is obtained quickly, time consumption is reduced, and development efficiency of the application program is improved.
According to one or more embodiments of the present disclosure, there is provided an index file generation method, which is performed by a terminal device, including:
acquiring a first index file of a target application program and compiling process data, wherein the first index file is generated when compiling a source code of the target application program, directory paths of all target files are recorded in the first index file, and the compiling process data is data related to the first index file generated in the compiling process;
determining a target replacement parameter by using the compiling process data;
determining a parameter value of the target replacement parameter corresponding to the target application program in the terminal equipment;
and replacing the parameter value of the target replacement parameter in the first index file by the determined parameter value to obtain a second index file corresponding to the target application program in the terminal equipment.
According to one or more embodiments of the present disclosure, the obtaining the first index file of the target application program and the compiling process data includes:
acquiring a first index file and compiling process data of the target application program from a cloud server;
The cloud server is a server storing the first index file and the compiling process data, and when the server of the target application program compiles the source code of the target application program each time to generate the first index file and the data related to the first index file, the generated first index file and the data related to the first index file are uploaded to the cloud server.
According to one or more embodiments of the present disclosure, the compiling process data includes workspace information and storage space information of cache data generated in the compiling process;
the determining the target replacement parameter by using the compiling process data comprises the following steps:
determining a parent directory of the working space of the target application program according to the working space information, and taking the parent directory as a target replacement parameter;
and determining a root directory of a target file corresponding to the target application program according to the storage space information, and taking the root directory as the target replacement parameter.
According to one or more embodiments of the present disclosure, if the target replacement parameter includes a parent directory of a workspace of the target application;
the determining the parameter value of the target replacement parameter corresponding to the target application program in the terminal equipment comprises the following steps:
Determining a working space of the target application program in the terminal equipment;
and determining the directory path of the parent directory of the working space, and taking the determined directory path of the parent directory of the working space as the parameter value of the parent directory of the working space corresponding to the target application program in the terminal equipment.
According to one or more embodiments of the present disclosure, if the target replacement parameter includes a root directory of the target file;
the determining the parameter value of the target replacement parameter corresponding to the target application program in the terminal equipment comprises the following steps:
determining a working space of the target application program in the terminal equipment;
and determining the directory path of the root directory of the target file corresponding to the target application program in the terminal equipment by utilizing the directory path of the working space, and taking the determined directory path of the root directory of the target file as the parameter value of the root directory of the target file.
According to one or more embodiments of the present disclosure, for any one of the first index file and the second index file, at least one of the following is included in the index file:
Work_dir information including a directory path of a parent directory of a workspace of the target application;
main path mail path information, wherein the mail path information comprises a directory path of source codes of the target application program;
the external directory out_dir information comprises directory paths of all target files generated in the process of compiling source codes of the target application programs;
and relying on directory dep dir information, wherein the dep dir information comprises directory paths of various files on which source codes of the target application programs depend.
According to one or more embodiments of the present disclosure, there is provided a terminal device including:
the system comprises an acquisition module, a compiling module and a compiling module, wherein the acquisition module is used for acquiring a first index file of a target application program and compiling process data, the first index file is generated when compiling a source code of the target application program, directory paths of all target files are recorded in the first index file, and the compiling process data is data related to the first index file generated in the compiling process;
a first determining module for determining a target replacement parameter using the compiling process data;
The second determining module is used for determining a parameter value of the target replacement parameter corresponding to the target application program in the terminal equipment;
and the replacing module is used for replacing the parameter value of the target replacing parameter in the first index file by the determined parameter value to obtain a second index file corresponding to the target application program in the terminal equipment.
According to one or more embodiments of the present disclosure, the obtaining module is specifically configured to, when obtaining the first index file of the target application program and the compiling process data:
acquiring a first index file and compiling process data of the target application program from a cloud server;
the cloud server is a server storing the first index file and the compiling process data, and when the server of the target application program compiles the source code of the target application program each time to generate the first index file and the data related to the first index file, the generated first index file and the data related to the first index file are uploaded to the cloud server.
According to one or more embodiments of the present disclosure, the compiling process data includes workspace information and storage space information of cache data generated in the compiling process;
The first determining module is specifically configured to, when determining the target replacement parameter using the compiling process data:
determining a parent directory of the working space of the target application program according to the working space information, and taking the parent directory as a target replacement parameter;
and determining a root directory of a target file corresponding to the target application program according to the storage space information, and taking the root directory as the target replacement parameter.
According to one or more embodiments of the present disclosure, if the target replacement parameter includes a parent directory of a workspace of the target application;
the second determining module is specifically configured to, when determining a parameter value of the target replacement parameter corresponding to the target application in the terminal device:
determining a working space of the target application program in the terminal equipment;
and determining the directory path of the parent directory of the working space, and taking the determined directory path of the parent directory of the working space as the parameter value of the parent directory of the working space corresponding to the target application program in the terminal equipment.
According to one or more embodiments of the present disclosure, if the target replacement parameter includes a root directory of the target file;
The second determining module is specifically configured to, when determining a parameter value of the target replacement parameter corresponding to the target application in the terminal device:
determining a working space of the target application program in the terminal equipment;
and determining the directory path of the root directory of the target file corresponding to the target application program in the terminal equipment by utilizing the directory path of the working space, and taking the determined directory path of the root directory of the target file as the parameter value of the root directory of the target file.
According to one or more embodiments of the present disclosure, for any one of the first index file and the second index file, at least one of the following is included in the index file:
work_dir information including a directory path of a parent directory of a workspace of the target application;
main path mail path information, wherein the mail path information comprises a directory path of source codes of the target application program;
the external directory out_dir information comprises directory paths of all target files generated in the process of compiling source codes of the target application programs;
And relying on directory dep dir information, wherein the dep dir information comprises directory paths of various files on which source codes of the target application programs depend.
According to one or more embodiments of the present disclosure, there is provided an electronic device including:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: the index file generation method shown in the embodiment of the method is executed.
According to one or more embodiments of the present disclosure, there is provided a computer-readable medium having stored thereon a computer program which, when executed by a processor, implements the index file generation method shown in the method embodiments.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.

Claims (8)

1. An index file generation method, comprising:
acquiring a first index file of a target application program and compiling process data, wherein the first index file is generated when compiling a source code of the target application program, directory paths of all target files are recorded in the first index file, and the compiling process data is data related to the first index file generated in the compiling process;
Determining a target replacement parameter by using the compiling process data;
determining a parameter value of the target replacement parameter corresponding to the target application program in the terminal equipment;
replacing the parameter value of the target replacement parameter in the first index file by the determined parameter value to obtain a second index file corresponding to the target application program in the terminal equipment;
the compiling process data comprises working space information and storage space information of cache data generated in the compiling process;
the determining the target replacement parameter by using the compiling process data comprises the following steps:
determining a parent directory of the working space of the target application program according to the working space information, and taking the parent directory as a target replacement parameter;
and determining a root directory of a target file corresponding to the target application program according to the storage space information, and taking the root directory as the target replacement parameter.
2. The method of claim 1, wherein the obtaining the first index file of the target application and the compilation process data comprises:
acquiring a first index file and compiling process data of the target application program from a cloud server;
the cloud server is a server storing the first index file and the compiling process data, and when the server of the target application program compiles the source code of the target application program each time to generate the first index file and the data related to the first index file, the generated first index file and the data related to the first index file are uploaded to the cloud server.
3. The method of claim 1, wherein if the target replacement parameter comprises a parent directory of a workspace of the target application;
the determining the parameter value of the target replacement parameter corresponding to the target application program in the terminal equipment comprises the following steps:
determining a working space of the target application program in the terminal equipment;
and determining the directory path of the parent directory of the working space, and taking the determined directory path of the parent directory of the working space as the parameter value of the parent directory of the working space corresponding to the target application program in the terminal equipment.
4. The method of claim 1, wherein if the target replacement parameter comprises a root directory of the target file;
the determining the parameter value of the target replacement parameter corresponding to the target application program in the terminal equipment comprises the following steps:
determining a working space of the target application program in the terminal equipment;
and determining the directory path of the root directory of the target file corresponding to the target application program in the terminal equipment by utilizing the directory path of the working space, and taking the determined directory path of the root directory of the target file as the parameter value of the root directory of the target file.
5. The method of any of claims 1-4, wherein for any of the first index file and the second index file, at least one of:
work_dir information including a directory path of a parent directory of a workspace of the target application;
main path mail path information, wherein the mail path information comprises a directory path of source codes of the target application program;
the external directory out_dir information comprises directory paths of all target files generated in the process of compiling source codes of the target application programs;
and relying on directory dep dir information, wherein the dep dir information comprises directory paths of various files on which source codes of the target application programs depend.
6. A terminal device, comprising:
the system comprises an acquisition module, a compiling module and a compiling module, wherein the acquisition module is used for acquiring a first index file of a target application program and compiling process data, the first index file is generated when compiling a source code of the target application program, directory paths of all target files are recorded in the first index file, and the compiling process data is data related to the first index file generated in the compiling process;
A first determining module for determining a target replacement parameter using the compiling process data;
the second determining module is used for determining a parameter value of the target replacement parameter corresponding to the target application program in the terminal equipment;
the replacing module is used for replacing the parameter value of the target replacing parameter in the first index file by the determined parameter value to obtain a second index file corresponding to the target application program in the terminal equipment;
the compiling process data comprises working space information and storage space information of cache data generated in the compiling process;
the first determining module is specifically configured to:
determining a parent directory of the working space of the target application program according to the working space information, and taking the parent directory as a target replacement parameter;
and determining a root directory of a target file corresponding to the target application program according to the storage space information, and taking the root directory as the target replacement parameter.
7. An electronic device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: the index file generation method according to any one of claims 1 to 5 is performed.
8. A computer-readable medium, on which a computer program is stored, characterized in that the program, when executed by a processor, implements the index file generation method of any one of claims 1 to 5.
CN202011289784.6A 2020-11-17 2020-11-17 Index file generation method, terminal device, electronic device and medium Active CN112395253B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011289784.6A CN112395253B (en) 2020-11-17 2020-11-17 Index file generation method, terminal device, electronic device and medium
PCT/CN2021/126885 WO2022105563A1 (en) 2020-11-17 2021-10-28 Indexed file generation method, terminal device, electronic device, and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011289784.6A CN112395253B (en) 2020-11-17 2020-11-17 Index file generation method, terminal device, electronic device and medium

Publications (2)

Publication Number Publication Date
CN112395253A CN112395253A (en) 2021-02-23
CN112395253B true CN112395253B (en) 2024-03-12

Family

ID=74606372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011289784.6A Active CN112395253B (en) 2020-11-17 2020-11-17 Index file generation method, terminal device, electronic device and medium

Country Status (2)

Country Link
CN (1) CN112395253B (en)
WO (1) WO2022105563A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112395253B (en) * 2020-11-17 2024-03-12 抖音视界有限公司 Index file generation method, terminal device, electronic device and medium
CN114117530B (en) * 2021-11-29 2023-08-22 抖音视界有限公司 File leakage detection method and device
CN114040222A (en) * 2021-12-24 2022-02-11 湖南快乐阳光互动娱乐传媒有限公司 Multimedia file tamper-proof playing method, processing method and device
CN116624361B (en) * 2023-04-11 2024-03-22 北京通嘉宏瑞科技有限公司 Vacuum pump working method, device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799679A (en) * 2012-07-24 2012-11-28 河海大学 Hadoop-based massive spatial data indexing updating system and method
CN107544785A (en) * 2017-06-28 2018-01-05 新华三技术有限公司 A kind of application program update method and device
CN110119381A (en) * 2019-05-17 2019-08-13 北京思维造物信息科技股份有限公司 A kind of index updating method, device, equipment and medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7739318B2 (en) * 2005-06-20 2010-06-15 Netapp, Inc. System and method for maintaining mappings from data containers to their parent directories
CN112395253B (en) * 2020-11-17 2024-03-12 抖音视界有限公司 Index file generation method, terminal device, electronic device and medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799679A (en) * 2012-07-24 2012-11-28 河海大学 Hadoop-based massive spatial data indexing updating system and method
CN107544785A (en) * 2017-06-28 2018-01-05 新华三技术有限公司 A kind of application program update method and device
CN110119381A (en) * 2019-05-17 2019-08-13 北京思维造物信息科技股份有限公司 A kind of index updating method, device, equipment and medium

Also Published As

Publication number Publication date
WO2022105563A1 (en) 2022-05-27
CN112395253A (en) 2021-02-23

Similar Documents

Publication Publication Date Title
CN109634598B (en) Page display method, device, equipment and storage medium
CN112395253B (en) Index file generation method, terminal device, electronic device and medium
CN110960855B (en) Communication protocol code updating method and device, electronic equipment and storage medium
CN109726217B (en) Database operation method, device, equipment and storage medium
CN111857720B (en) User interface state information generation method and device, electronic equipment and medium
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN111338944B (en) Remote Procedure Call (RPC) interface testing method, device, medium and equipment
CN112416303B (en) Software development kit hot repair method and device and electronic equipment
CN111124541B (en) Configuration file generation method, device, equipment and medium
CN113391811B (en) Function compiling method, function compiling device, electronic equipment and computer readable storage medium
CN111625232B (en) Method and device for generating application program installation package, readable medium and electronic equipment
US8615744B2 (en) Methods and system for managing assets in programming code translation
CN111737040B (en) Program code repairing method and device
CN111399902B (en) Client source file processing method and device, readable medium and electronic equipment
CN111143355B (en) Data processing method and device
CN111240657A (en) Method and device for generating SDK and electronic equipment
CN111581930A (en) Online form data processing method and device, electronic equipment and readable medium
CN112445820A (en) Data conversion method and device
CN114428615B (en) CSS compiling method, style updating device, medium and equipment
CN112084003B (en) Method, device, medium and electronic equipment for isolating data
CN110908867B (en) Task completion judging method and device, storage medium and electronic equipment
CN115705193A (en) Distributed compiling method, device, equipment and medium
CN112486494A (en) File generation method and device, electronic equipment and computer readable storage medium
CN116432954A (en) Report management scheduling method, system, equipment and storage medium for new energy power plant
CN118094680A (en) Content generation method, device, medium, electronic device, and program product

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
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant