(self)
| 34 | return path |
| 35 | |
| 36 | def test_GetLdflags(self): |
| 37 | target = { |
| 38 | "type": "static_library", |
| 39 | "configurations": { |
| 40 | "Release": {}, |
| 41 | }, |
| 42 | } |
| 43 | configuration_name = "Release" |
| 44 | xcode_settings = XcodeSettings(target) |
| 45 | ldflags = xcode_settings.GetLdflags( |
| 46 | configuration_name, "PRODUCT_DIR", self.GypToBuildPath, "arm64" |
| 47 | ) |
| 48 | |
| 49 | # Do not quote `-arch arm64` with spaces in one string. |
| 50 | self.assertEqual(ldflags, ["-arch", "arm64", "-LPRODUCT_DIR"]) |
| 51 | |
| 52 | |
| 53 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected