diff --git a/tools_webrtc/android/build_aar.py b/tools_webrtc/android/build_aar.py index 42a902cafd..d910b39a7c 100755 --- a/tools_webrtc/android/build_aar.py +++ b/tools_webrtc/android/build_aar.py @@ -121,7 +121,7 @@ def _RunGN(args): def _RunNinja(output_directory, args): cmd = [ - os.path.join(find_depot_tools.DEPOT_TOOLS_PATH, 'ninja'), '-C', + os.path.join(SRC_DIR, 'third_party', 'ninja', 'ninja'), '-C', output_directory ] cmd.extend(args) diff --git a/tools_webrtc/ios/build_ios_libs.py b/tools_webrtc/ios/build_ios_libs.py index 093a002d76..764c378c7b 100755 --- a/tools_webrtc/ios/build_ios_libs.py +++ b/tools_webrtc/ios/build_ios_libs.py @@ -197,7 +197,7 @@ def BuildWebRTC(output_dir, target_environment, target_arch, flavor, logging.info('Building target: %s', gn_target_name) cmd = [ - os.path.join(find_depot_tools.DEPOT_TOOLS_PATH, 'ninja'), + os.path.join(SRC_DIR, 'third_party', 'ninja', 'ninja'), '-C', output_dir, gn_target_name, diff --git a/tools_webrtc/presubmit_checks_lib/build_helpers.py b/tools_webrtc/presubmit_checks_lib/build_helpers.py index 86fc1a0bbd..3386d6d40c 100644 --- a/tools_webrtc/presubmit_checks_lib/build_helpers.py +++ b/tools_webrtc/presubmit_checks_lib/build_helpers.py @@ -69,7 +69,7 @@ def RunGnCheck(root_dir=None): def RunNinjaCommand(args, root_dir=None): """Runs ninja quietly. Any failure (e.g. clang not found) is silently discarded, since this is unlikely an error in submitted CL.""" - command = [os.path.join(find_depot_tools.DEPOT_TOOLS_PATH, 'ninja')] + args + command = [os.path.join(SRC_DIR, 'third_party', 'ninja', 'ninja')] + args p = subprocess.Popen(command, cwd=root_dir, stdout=subprocess.PIPE,