From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 6BCDD4A282 for ; Sat, 27 Apr 2024 20:15:04 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8A03C68D29E; Sat, 27 Apr 2024 23:15:01 +0300 (EEST) Received: from btbn.de (btbn.de [144.76.60.213]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E2FBD68CD11 for ; Sat, 27 Apr 2024 23:14:54 +0300 (EEST) Received: from [authenticated] by btbn.de (Postfix) with ESMTPSA id 84DE027FFD7E6; Sat, 27 Apr 2024 22:14:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rothenpieler.org; s=mail; t=1714248893; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CvE7wJitDENDUCK8pZsJ2xe9kgImqtvWQON+gU/D7UI=; b=kssPWUFUFUCFZJ+yEhavaZj1Qyv5O+ziCG2igQTYIvb15zZB+PbBPxCXWQjwp8L8KgSmqx d5tz1dzomzOMfo986KoAV1gT9zqR2s6eNjTk31twu4OPHixrMaJBwl4iFfqJ2VEmk5y5fI heoFUY7XC6ZZ+AJGIuAztqKKse0Z/QLApDDZXbx0puO30ybf9rxAiJZ+GM3fsQQeekXyiu 30P469FylbWd/Urpq3zmeoKyK912j3HfTffEZiEnKViWBmT6s3XG9ficHyaEoS35N9aHQd wOTNiEEHfaMCPCH+4Rz/JRI+tWVLRSh9zxMl9WZGtaSm2lHAppQTck5VtOBvnw== From: Timo Rothenpieler To: ffmpeg-devel@ffmpeg.org Date: Sat, 27 Apr 2024 22:14:27 +0200 Message-ID: <20240427201448.26469-1-timo@rothenpieler.org> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240427134936.32677-1-timo@rothenpieler.org> References: <20240427134936.32677-1-timo@rothenpieler.org> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2] configure: support msvc build inside WSL X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Timo Rothenpieler Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --- configure | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 8101b4fce6..89af5f75e7 100755 --- a/configure +++ b/configure @@ -5036,7 +5036,12 @@ probe_cc(){ else _ident=$($_cc --version 2>/dev/null | head -n1 | tr -d '\r') fi - _DEPCMD='$(DEP$(1)) $(DEP$(1)FLAGS) $($(1)DEP_FLAGS) $< 2>&1 | awk '\''/including/ { sub(/^.*file: */, ""); gsub(/\\/, "/"); if (!match($$0, / /)) print "$@:", $$0 }'\'' > $(@:.o=.d)' + if [ -x "$(command -v wslpath)" ]; then + _DEPCMD='$(DEP$(1)) $(DEP$(1)FLAGS) $($(1)DEP_FLAGS) $< 2>&1 | awk '\''/including/ { sub(/^.*file: */, ""); if (!match($$0, / /)) { print $$0 } }'\'' | xargs -d\\n -n1 wslpath -u | awk '\''BEGIN { printf "%s:", "$@" }; { sub(/\r/,""); printf " %s", $$0 }; END { print "" }'\'' > $(@:.o=.d)' + + else + _DEPCMD='$(DEP$(1)) $(DEP$(1)FLAGS) $($(1)DEP_FLAGS) $< 2>&1 | awk '\''/including/ { sub(/^.*file: */, ""); gsub(/\\/, "/"); if (!match($$0, / /)) print "$@:", $$0 }'\'' > $(@:.o=.d)' + fi _DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -showIncludes -Zs' _cflags_speed="-O2" _cflags_size="-O1" -- 2.43.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".