Commits

Alexey Petruchik  committed 00878b2

tiny fixes

  • Participants
  • Parent commits f11a45f

Comments (0)

Files changed (1)

File src/engine/SCons/Tool/xcode.py

 
     configuration = get_param(env, 'configuration', 'Default')
     buildtarget = get_param(env, 'buildtarget', project_name)
-    runfile = get_param(env, 'runfile', '')
+    runfile = get_param(env, 'runfile', buildtarget)
 
     # Validation
     if len(configuration) != len(buildtarget):
     project = PBXProject(context, 'Project object', project_name, configurationBuildSettings)
 
     # Add targets to project
-    project.targets.append(PBXLegacyTarget(context, buildtarget[0], configurationBuildSettings))
+    target_name = os.path.basename(os.path.abspath(runfile[0]))
+    project.targets.append(PBXLegacyTarget(context, target_name, configurationBuildSettings))
     if context.generate_codenav_targets:
-        project.targets.append(PBXNativeTarget(context, buildtarget[0] + '-codenav', configurationBuildSettings))
+        project.targets.append(PBXNativeTarget(context, target_name + '-codenav', configurationBuildSettings))
 
     # Add all source files to project's source group
     sourcesGroup = project.mainGroup.subgroup_by_name(project_name)