資源簡介
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萬地質圖接圖表
- 下一篇:廣東工業大學軟件工程試卷+習題答案
評論
共有 條評論