forked from sourcey/webrtc-builds
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcopyfile.bat
44 lines (36 loc) · 1.38 KB
/
copyfile.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@echo off
setlocal enabledelayedexpansion
set destfile=%~1
set remove=%~2
set output=%~3
call set destsubfile=%%destfile:%remove%=%%
call set destrelfile=%%destfile:%remove%=.\%%
set thirdparty=%destrelfile:.\third_party=%
if x%thirdparty% EQU x%destrelfile% goto copyfile
set testfile=%destrelfile:abseil-cpp=%
if x%testfile% NEQ x%destrelfile% goto copyfile
set testfile=%destrelfile:boringssl=%
if x%testfile% NEQ x%destrelfile% goto copyfile
set testfile=%destrelfile:expat\files=%
if x%testfile% NEQ x%destrelfile% goto copyfile
set testfile=%destrelfile:jsoncpp\source\include\json=%
if x%testfile% NEQ x%destrelfile% goto copyfile
set testfile=%destrelfile:libjpeg=%
if x%testfile% NEQ x%destrelfile% goto copyfile
set testfile=%destrelfile:libsrtp=%
if x%testfile% NEQ x%destrelfile% goto copyfile
set testfile=%destrelfile:libyuv=%
if x%testfile% NEQ x%destrelfile% goto copyfile
set testfile=%destrelfile:libvpx=%
if x%testfile% NEQ x%destrelfile% goto copyfile
set testfile=%destrelfile:opus=%
if x%testfile% NEQ x%destrelfile% goto copyfile
set testfile=%destrelfile:protobuf=%
if x%testfile% NEQ x%destrelfile% goto copyfile
set testfile=%destrelfile:usrsctp\usrsctplib=%
if x%testfile% NEQ x%destrelfile% goto copyfile
goto exitscript
:copyfile
echo Copy %destfile%
xcopy "%destfile%" "%output%\%destsubfile%*" /Y /A >nul
:exitscript