windows extract all header files of webrtc

Under windows:

Enter the webrtc directory (that is, the upper-level directory of src) and write this script

echo off

:: 定义源目录
set sourcePath=.\src
::定义目标路径
set resulePath=.\include

xcopy %sourcePath%\*.h %resulePath%\  /s /e /c /y /h /r

pause

This method will also retain the previous directory structure

 

Under linux:

注:脚本应当在WebRTC的webrtc目录的上一级目录运行 这样才能对应头文件中的相对路径关系.

  #!/bin/bash

  src=`find webrtc/ -name "*.h*"`
  echo $src
  for obj in $src
  do
      echo "cp header file $obj"
      cp --parents $obj inc/
  done

一个简单的脚本即可以提取出头文件,这个方法同样适用于提取任意工程的指定类型文件.

cp --parents command, Linux cp command with parents parameter, you can maintain the directory structure

 

Guess you like

Origin blog.csdn.net/hyl999/article/details/114821657