Commit 31bb7093 authored by Justin Cohen's avatar Justin Cohen Committed by Commit Bot

ios: Small cleanup in convert xcodeproj script.

Change-Id: I49d19a57d9cafab3d6986f5e3beb15dfcc8dbe4e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2379950Reviewed-by: default avatarSylvain Defresne <sdefresne@chromium.org>
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Auto-Submit: Justin Cohen <justincohen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#803422}
parent f41d8c9f
......@@ -19,6 +19,7 @@ import filecmp
import json
import hashlib
import os
import re
import shutil
import subprocess
import sys
......@@ -109,11 +110,11 @@ def UpdateXcodeProject(project_dir, configurations, root_dir):
# Teach build shell script to look for the configuration and platform.
if isa == 'PBXShellScriptBuildPhase':
shell_path = value['shellPath']
if shell_path.endswith('sh'):
if shell_path.endswith('/sh'):
value['shellScript'] = value['shellScript'].replace(
'ninja -C .',
'ninja -C "../${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}"')
elif shell_path.endswith('python') or shell_path.endswith('python3'):
elif re.search('[ /]python[23]?$', shell_path):
value['shellScript'] = value['shellScript'].replace(
'ninja_params = [ \'-C\', \'.\' ]',
'ninja_params = [ \'-C\', \'../\' + os.environ[\'CONFIGURATION\']'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment