GRAYBYTE WORDPRESS FILE MANAGER3398

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /usr/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."""

import gyp.common
import gyp.easy_xml as easy_xml


class Writer(object):
  """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")

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
January 01 1970 00:00:00
root / root
0
generator
--
March 03 2024 22:36:29
root / root
0755
MSVSNew.py
11.656 KB
March 10 2021 14:36:38
root / root
0644
MSVSProject.py
6.237 KB
March 10 2021 14:36:38
root / root
0644
MSVSSettings.py
44.11 KB
March 10 2021 14:36:38
root / root
0644
MSVSSettings_test.py
64.562 KB
March 10 2021 14:36:38
root / root
0644
MSVSToolFile.py
1.762 KB
March 10 2021 14:36:38
root / root
0644
MSVSUserFile.py
4.967 KB
March 10 2021 14:36:38
root / root
0644
MSVSUtil.py
9.31 KB
March 10 2021 14:36:38
root / root
0644
MSVSVersion.py
17.024 KB
March 10 2021 14:36:38
root / root
0644
__init__.py
21.868 KB
March 10 2021 14:36:38
root / root
0644
common.py
20.579 KB
March 10 2021 14:36:38
root / root
0644
common_test.py
1.918 KB
March 10 2021 14:36:38
root / root
0644
easy_xml.py
4.873 KB
March 10 2021 14:36:38
root / root
0644
easy_xml_test.py
3.249 KB
March 10 2021 14:36:38
root / root
0644
flock_tool.py
1.706 KB
March 10 2021 14:36:38
root / root
0644
input.py
113.647 KB
March 10 2021 14:36:38
root / root
0644
input_test.py
3.11 KB
March 10 2021 14:36:38
root / root
0644
mac_tool.py
22.892 KB
March 10 2021 14:36:38
root / root
0644
msvs_emulation.py
46.759 KB
March 10 2021 14:36:38
root / root
0644
ninja_syntax.py
5.406 KB
March 10 2021 14:36:38
root / root
0644
simple_copy.py
1.302 KB
March 10 2021 14:36:38
root / root
0644
win_tool.py
12.723 KB
March 10 2021 14:36:38
root / root
0644
xcode_emulation.py
64.854 KB
March 10 2021 14:36:38
root / root
0644
xcode_ninja.py
10.32 KB
March 10 2021 14:36:38
root / root
0644
xcodeproj_file.py
117.659 KB
March 10 2021 14:36:38
root / root
0644
xml_fix.py
2.123 KB
March 10 2021 14:36:38
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF