/opt/alt/alt-nodejs24/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp
#!/opt/alt/python38/bin/python3 """Unit tests for the xcode_emulation.py file.""" import sys import unittest from gyp.xcode_emulation import XcodeSettings class TestXcodeSettings(unittest.TestCase): def setUp(self): if sys.platform != "darwin": self.skipTest("This test only runs on macOS") def test_GetCflags(self): target = { "type": "static_library", "configurations": { "Release": {}, }, } configuration_name = "Release" xcode_settings = XcodeSettings(target) cflags = xcode_settings.GetCflags(configuration_name, "arm64") # Do not quote `-arch arm64` with spaces in one string. self.assertEqual( cflags, ["-fasm-blocks", "-mpascal-strings", "-Os", "-gdwarf-2", "-arch", "arm64"], ) def GypToBuildPath(self, path): return path def test_GetLdflags(self): target = { "type": "static_library", "configurations": { "Release": {}, }, } configuration_name = "Release" xcode_settings = XcodeSettings(target) ldflags = xcode_settings.GetLdflags( configuration_name, "PRODUCT_DIR", self.GypToBuildPath, "arm64" ) # Do not quote `-arch arm64` with spaces in one string. self.assertEqual(ldflags, ["-arch", "arm64", "-LPRODUCT_DIR"]) if __name__ == "__main__": unittest.main()
.
Edit
..
Edit
MSVSNew.py
Edit
MSVSProject.py
Edit
MSVSSettings.py
Edit
MSVSSettings_test.py
Edit
MSVSToolFile.py
Edit
MSVSUserFile.py
Edit
MSVSUtil.py
Edit
MSVSVersion.py
Edit
__init__.py
Edit
__pycache__
Edit
common.py
Edit
common_test.py
Edit
easy_xml.py
Edit
easy_xml_test.py
Edit
flock_tool.py
Edit
generator
Edit
input.py
Edit
input_test.py
Edit
mac_tool.py
Edit
msvs_emulation.py
Edit
ninja_syntax.py
Edit
simple_copy.py
Edit
win_tool.py
Edit
xcode_emulation.py
Edit
xcode_emulation_test.py
Edit
xcode_ninja.py
Edit
xcodeproj_file.py
Edit
xml_fix.py
Edit