资源简介
openvx-standard-headers-1.2.tar.bz2是对OpenVX标准1.2版本头文件中声明宏、枚举、变量类型、函数等的实现。
代码片段和文件信息
#
# Copyright (c) 2011-2017 The Khronos Group Inc.
#
# Licensed under the Apache License Version 2.0 (the “License“);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing software
# distributed under the License is distributed on an “AS IS“ BASIS
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import os
import sys
import subprocess
import shutil
from optparse import OptionParser
gProjName = “OpenVX“
class os_enum(object):
Linux = 1
Win = 2
Android = 3
@staticmethod
def toString(eVal):
if eVal == os_enum.Linux:
return “Linux“
elif eVal == os_enum.Win:
return “Win“
elif eVal == os_enum.Android:
return “Android“
return ““
class arch_enum(object):
x64 = 1
x32 = 2
@staticmethod
def toString(eVal):
if eVal == arch_enum.x64:
return “x64“
elif eVal == arch_enum.x32:
return “x32“
return ““
class configuration_enum(object):
Release = 1
Debug = 2
@staticmethod
def toString(eVal):
if eVal == configuration_enum.Release:
return “Release“
elif eVal == configuration_enum.Debug:
return “Debug“
return ““
def main():
parser = OptionParser(usage=‘usage: %prog [options]‘ description = “Generate build make / sln files“)
parser.add_option(“--os“ dest=“os“ help=“Set the operating system (Linux [For Linux or Cygwin]/ Windows / Android)“ default=‘‘)
parser.add_option(“--arch“ dest=“arch“ help=“Set the architecture (32 / 64 bit) [Default 64]“ default=‘64‘)
parser.add_option(“--conf“ dest=“conf“ help=“Set the configuration (Release / Debug) [Default Release]“ default=‘Release‘)
parser.add_option(“--c“ dest=“c_compiler“ help=“Set the C compiler [Default: the default in system (Optional)]“ default=‘‘)
parser.add_option(“--cpp“ dest=“cpp_compiler“ help=“Set the CPP compiler (Default: the default in system (Optional)]“ default=‘‘)
parser.add_option(“--gen“ dest=“generator“ help=“Set CMake generator [Default: [WIN]:\“Visual Studio 12\“ [Linux]:Cmake default gernerator]“ default=‘‘)
parser.add_option(“--env“ dest=“env_vars“ help=“Print supported environment variable [Default False]“ default=‘False‘)
parser.add_option(“--out“ dest=“out_path“ help=“Set the path to generated build / install files [Default root directory]“ default=‘‘)
parser.add_option(“--build“ dest=“build“ help=“Build and install the targets (change to non ‘true‘ value in order to generate solution / make files only) [Default True]“ default=‘True‘)
parser.add_option(“--rebuild“ dest=“rebuild“ help=“Rebuild the targets
- 上一篇:全国1:25万地质图接图表
- 下一篇:广东工业大学软件工程试卷+习题答案
相关资源
- MyBatisCodeHelperPro2.8.7 2020.3版本可用
- 亲测通过CodeSmith Generator 7.1.0 最新版原
- MongodbSample.rar
- EtherCATSlaveStackCodeTool5.12.rar
- LearningOpenCV_Code.rar
- Windows API Code Pack 1.1.zip
- iOS 9.3 Xcode开发包
- 12.4 (16G77)Xcode支持包.zip
- 百思不得姐源代码(xcode)
- Flash游戏合集(Flash Game Development_Cod
- CodeSYS 运动控制程序
- xcode12.3最新真机/模拟器包。。。。
- 摔跤报警器-一个小的动手项目
- 音频PCMSample
- AfterCodecs v1.5.0一键安装版 带汉化
- DevExpress CodeRush v12.1 破解版
- Funcode自制游戏
- Codesnitch pro
- xocde真机测试包12.3.zip
- xcode 12.2真机测试包
- clean code(中文完整版) 带书签
- SublimeCodeIntel插件
- Xcode9.X支持ios12.1真机调试文件
- iOS12.2DeveloperDiskimage
- iOS12.1 DeveloperDiskimage
- HLW8032参考设计资料V10.1
- Xcode7.3.1 ios10 developer disk image
- CODESYS V3 基础编程指南完整版(带目录
- xcode 模拟器插件 10.3 (14E269)
- x64_dbg和Sample
评论
共有 条评论