$91 GRAYBYTE WORDPRESS FILE MANAGER $79

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cpanel/ea-nodejs22/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/

HOME
Current File : /opt/cpanel/ea-nodejs22/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp//MSVSToolFile.py
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""Visual Studio project reader/writer."""

from gyp import easy_xml


class Writer:
    """Visual Studio XML tool file writer."""

    def __init__(self, tool_file_path, name):
        """Initializes the tool file.

    Args:
      tool_file_path: Path to the tool file.
      name: Name of the tool file.
    """
        self.tool_file_path = tool_file_path
        self.name = name
        self.rules_section = ["Rules"]

    def AddCustomBuildRule(
        self, name, cmd, description, additional_dependencies, outputs, extensions
    ):
        """Adds a rule to the tool file.

    Args:
      name: Name of the rule.
      description: Description of the rule.
      cmd: Command line of the rule.
      additional_dependencies: other files which may trigger the rule.
      outputs: outputs of the rule.
      extensions: extensions handled by the rule.
    """
        rule = [
            "CustomBuildRule",
            {
                "Name": name,
                "ExecutionDescription": description,
                "CommandLine": cmd,
                "Outputs": ";".join(outputs),
                "FileExtensions": ";".join(extensions),
                "AdditionalDependencies": ";".join(additional_dependencies),
            },
        ]
        self.rules_section.append(rule)

    def WriteIfChanged(self):
        """Writes the tool file."""
        content = [
            "VisualStudioToolFile",
            {"Version": "8.00", "Name": self.name},
            self.rules_section,
        ]
        easy_xml.WriteXmlIfChanged(
            content, self.tool_file_path, encoding="Windows-1252"
        )

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
1 Jan 1970 8.00 AM
root / root
0
generator
--
16 Mar 2026 5.04 PM
root / root
0755
MSVSNew.py
12.724 KB
17 Jan 2026 1.16 AM
root / root
0644
MSVSProject.py
6.574 KB
17 Jan 2026 1.16 AM
root / root
0644
MSVSSettings.py
44.387 KB
17 Jan 2026 1.16 AM
root / root
0644
MSVSSettings_test.py
72.553 KB
17 Jan 2026 1.16 AM
root / root
0755
MSVSToolFile.py
1.74 KB
17 Jan 2026 1.16 AM
root / root
0644
MSVSUserFile.py
5.2 KB
17 Jan 2026 1.16 AM
root / root
0644
MSVSUtil.py
9.99 KB
17 Jan 2026 1.16 AM
root / root
0644
MSVSVersion.py
19.281 KB
17 Jan 2026 1.16 AM
root / root
0644
__init__.py
23.994 KB
17 Jan 2026 1.16 AM
root / root
0755
common.py
24.006 KB
17 Jan 2026 1.16 AM
root / root
0644
common_test.py
5.59 KB
17 Jan 2026 1.16 AM
root / root
0755
easy_xml.py
5.298 KB
17 Jan 2026 1.16 AM
root / root
0644
easy_xml_test.py
3.858 KB
17 Jan 2026 1.16 AM
root / root
0755
flock_tool.py
1.85 KB
17 Jan 2026 1.16 AM
root / root
0755
input.py
123.434 KB
17 Jan 2026 1.16 AM
root / root
0644
input_test.py
3.354 KB
17 Jan 2026 1.16 AM
root / root
0755
mac_tool.py
29.425 KB
17 Jan 2026 1.16 AM
root / root
0755
msvs_emulation.py
52.854 KB
17 Jan 2026 1.16 AM
root / root
0644
ninja_syntax.py
5.508 KB
17 Jan 2026 1.16 AM
root / root
0644
simple_copy.py
1.263 KB
17 Jan 2026 1.16 AM
root / root
0644
win_tool.py
14.784 KB
17 Jan 2026 1.16 AM
root / root
0755
xcode_emulation.py
80.06 KB
17 Jan 2026 1.16 AM
root / root
0644
xcode_emulation_test.py
1.454 KB
17 Jan 2026 1.16 AM
root / root
0644
xcode_ninja.py
11.841 KB
17 Jan 2026 1.16 AM
root / root
0644
xcodeproj_file.py
132.418 KB
17 Jan 2026 1.16 AM
root / root
0644
xml_fix.py
2.192 KB
17 Jan 2026 1.16 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF