(self, gyp_path, path, build_file_dict)
| 111 | |
| 112 | class XcodeProject: |
| 113 | def __init__(self, gyp_path, path, build_file_dict): |
| 114 | self.gyp_path = gyp_path |
| 115 | self.path = path |
| 116 | self.project = gyp.xcodeproj_file.PBXProject(path=path) |
| 117 | projectDirPath = gyp.common.RelativePath( |
| 118 | os.path.dirname(os.path.abspath(self.gyp_path)), |
| 119 | os.path.dirname(path) or ".", |
| 120 | ) |
| 121 | self.project.SetProperty("projectDirPath", projectDirPath) |
| 122 | self.project_file = gyp.xcodeproj_file.XCProjectFile( |
| 123 | {"rootObject": self.project} |
| 124 | ) |
| 125 | self.build_file_dict = build_file_dict |
| 126 | |
| 127 | # TODO(mark): add destructor that cleans up self.path if created_dir is |
| 128 | # True and things didn't complete successfully. Or do something even |
| 129 | # better with "try"? |
| 130 | self.created_dir = False |
| 131 | try: |
| 132 | os.makedirs(self.path) |
| 133 | self.created_dir = True |
| 134 | except OSError as e: |
| 135 | if e.errno != errno.EEXIST: |
| 136 | raise |
| 137 | |
| 138 | def Finalize1(self, xcode_targets, serialize_all_tests): |
| 139 | # Collect a list of all of the build configuration names used by the |
nothing calls this directly
no test coverage detected