资源简介

libyuv vs2013工程,可以自己编译~~~~~~~~~~~~~~~~~~~~~~~~~~~

资源截图

代码片段和文件信息

#!/usr/bin/env python
# Copyright 2017 The LibYuv Project Authors. All rights reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.

# This is a copy of the file from WebRTC in:
# https://chromium.googlesource.com/external/webrtc/+/master/cleanup_links.py

“““script to cleanup symlinks created from setup_links.py.

Before 177567c518b121731e507e9b9c4049c4dc96e4c8 (#15754) we had a Chromium
checkout which we created symlinks into. In order to do clean syncs after
landing that change this script cleans up any old symlinks avoiding annoying
manual cleanup needed in order to complete gclient sync.
“““

import logging
import optparse
import os
import shelve
import subprocess
import sys


ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
linkS_DB = ‘links‘

# Version management to make future upgrades/downgrades easier to support.
SCHEMA_VERSION = 1

class WebRTClinkSetup(object):
  def __init__(self links_db dry_run=False):
    self._dry_run = dry_run
    self._links_db = links_db

  def Cleanuplinks(self):
    logging.debug(‘Cleanuplinks‘)
    for source link_path  in self._links_db.iteritems():
      if source == ‘SCHEMA_VERSION‘:
        continue
      if os.path.islink(link_path) or sys.platform.startswith(‘win‘):
        # os.path.islink() always returns false on Windows
        # See http://bugs.python.org/issue13143.
        logging.debug(‘Removing link to %s at %s‘ source link_path)
        if not self._dry_run:
          if os.path.exists(link_path):
            if sys.platform.startswith(‘win‘) and os.path.isdir(link_path):
              subprocess.check_call([‘rmdir‘ ‘/q‘ ‘/s‘ link_path]
                                    shell=True)
            else:
              os.remove(link_path)
          del self._links_db[source]


def _initialize_database(filename):
  links_database = shelve.open(filename)
  # Wipe the database if this version of the script ends up looking at a
  # newer (future) version of the links db just to be sure.
  version = links_database.get(‘SCHEMA_VERSION‘)
  if version and version != SCHEMA_VERSION:
    logging.info(‘Found database with schema version %s while this script only ‘
                 ‘supports %s. Wiping previous database contents.‘ version
                 SCHEMA_VERSION)
    links_database.clear()
  links_database[‘SCHEMA_VERSION‘] = SCHEMA_VERSION
  return links_database


def main():
  parser = optparse.OptionParser()
  parser.add_option(‘-d‘ ‘--dry-run‘ action=‘store_true‘ default=False
                    help=‘Print what would be done but don\‘t perform any ‘
                         ‘operations. This will automatically set logging to ‘
                         ‘verbose.‘)
  parser.add_option(‘-v‘ ‘--ver

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-04-30 20:17  libyuv-master\
     文件         178  2018-04-28 20:51  libyuv-master\.clang-format
     文件         424  2018-04-28 20:51  libyuv-master\.gitignore
     文件        1573  2018-04-28 20:51  libyuv-master\.gn
     文件        1416  2018-04-28 20:51  libyuv-master\.vpython
     文件         646  2018-04-28 20:51  libyuv-master\all.gyp
     文件        3091  2018-04-28 20:51  libyuv-master\Android.bp
     文件        2920  2018-04-28 20:51  libyuv-master\Android.mk
     文件         130  2018-04-28 20:51  libyuv-master\AUTHORS
     目录           0  2018-04-30 22:26  libyuv-master\build\
     文件        9629  2018-04-28 20:51  libyuv-master\BUILD.gn
     文件       56293  2018-04-30 20:19  libyuv-master\build\ALL_BUILD.vcxproj
     文件         275  2018-04-30 20:19  libyuv-master\build\ALL_BUILD.vcxproj.filters
     文件       13928  2018-04-30 20:18  libyuv-master\build\CMakeCache.txt
     目录           0  2018-04-30 21:15  libyuv-master\build\CMakeFiles\
     目录           0  2018-04-30 20:19  libyuv-master\build\CMakeFiles\11c89a285a1434688f12c0c243e93a1e\
     文件          24  2001-01-01 08:00  libyuv-master\build\CMakeFiles\11c89a285a1434688f12c0c243e93a1e\generate.stamp.rule
     文件          24  2001-01-01 08:00  libyuv-master\build\CMakeFiles\11c89a285a1434688f12c0c243e93a1e\INSTALL_force.rule
     文件          24  2001-01-01 08:00  libyuv-master\build\CMakeFiles\11c89a285a1434688f12c0c243e93a1e\PACKAGE_force.rule
     目录           0  2018-04-30 20:18  libyuv-master\build\CMakeFiles\3.11.1\
     文件        2086  2018-04-30 20:18  libyuv-master\build\CMakeFiles\3.11.1\CMakeCCompiler.cmake
     文件        2973  2018-04-30 20:18  libyuv-master\build\CMakeFiles\3.11.1\CMakeCXXCompiler.cmake
     文件       30208  2018-04-30 20:18  libyuv-master\build\CMakeFiles\3.11.1\CMakeDetermineCompilerABI_C.bin
     文件       30208  2018-04-30 20:18  libyuv-master\build\CMakeFiles\3.11.1\CMakeDetermineCompilerABI_CXX.bin
     文件         212  2018-04-30 20:18  libyuv-master\build\CMakeFiles\3.11.1\CMakeRCCompiler.cmake
     文件         387  2018-04-30 20:17  libyuv-master\build\CMakeFiles\3.11.1\CMakeSystem.cmake
     目录           0  2018-04-30 20:18  libyuv-master\build\CMakeFiles\3.11.1\CompilerIdC\
     目录           0  2018-04-30 20:18  libyuv-master\build\CMakeFiles\3.11.1\CompilerIdCXX\
     文件       19092  2018-04-30 20:18  libyuv-master\build\CMakeFiles\3.11.1\CompilerIdCXX\CMakeCXXCompilerId.cpp
     文件        9728  2018-04-30 20:18  libyuv-master\build\CMakeFiles\3.11.1\CompilerIdCXX\CompilerIdCXX.exe
     文件        2617  2018-04-30 20:18  libyuv-master\build\CMakeFiles\3.11.1\CompilerIdCXX\CompilerIdCXX.vcxproj
............此处省略544个文件信息

评论

共有 条评论