From: James Zern Date: Fri, 4 Jun 2010 22:05:12 +0000 (-0400) Subject: VisualStudio projects: asm tool updates X-Git-Tag: v0.9.1~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec1871554b4793ad274ed8ae764ff5044d75e0d4;p=libvpx VisualStudio projects: asm tool updates vs8 - pull yasm.rules [1] into the source tree to avoid need to install file into VC/VCProjectDefaults - reference same w/ToolFile & RelativePath - update arm branch to match vs7: - quote source file paths passed to yasm [1]: http://www.tortall.net/svn/yasm/trunk/yasm/Mkfiles/vc9/yasm.rules@2271 Change-Id: I52b801496340cd7b1d0023d12afbc04624ecefc3 --- diff --git a/build/.gitattributes b/build/.gitattributes new file mode 100644 index 000000000..03db79bc0 --- /dev/null +++ b/build/.gitattributes @@ -0,0 +1,2 @@ +*-vs8/*.rules -crlf +*-msvs/*.rules -crlf diff --git a/build/arm-wince-vs8/.gitattributes b/build/arm-wince-vs8/.gitattributes deleted file mode 100644 index be1eeb95a..000000000 --- a/build/arm-wince-vs8/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -*.rules -crlf diff --git a/build/make/gen_msvs_proj.sh b/build/make/gen_msvs_proj.sh index 6288ee5c1..d94ae4d80 100755 --- a/build/make/gen_msvs_proj.sh +++ b/build/make/gen_msvs_proj.sh @@ -12,6 +12,7 @@ self=$0 self_basename=${self##*/} +self_dirname=$(dirname "$0") EOL=$'\n' show_help() { @@ -292,8 +293,8 @@ case "$target" in x86*) platforms[0]="Win32" # these are only used by vs7 - asm_Debug_cmdline="yasm -Xvc -g cv8 -f \$(PlatformName) ${yasmincs} \$(InputPath)" - asm_Release_cmdline="yasm -Xvc -f \$(PlatformName) ${yasmincs} \$(InputPath)" + asm_Debug_cmdline="yasm -Xvc -g cv8 -f \$(PlatformName) ${yasmincs} "\$(InputPath)"" + asm_Release_cmdline="yasm -Xvc -f \$(PlatformName) ${yasmincs} "\$(InputPath)"" ;; arm*|iwmmx*) case "${name}" in @@ -343,19 +344,19 @@ generate_vcproj() { open_tag ToolFiles case "$target" in - x86*) $uses_asm && tag DefaultToolFile FileName="yasm.rules" + x86*) $uses_asm && tag ToolFile RelativePath="$self_dirname/../x86-msvs/yasm.rules" ;; arm*|iwmmx*) if [ "$name" == "vpx_decoder" ];then case "$target" in armv5*) - tag DefaultToolFile FileName="armasmv5.rules" + tag ToolFile RelativePath="$self_dirname/../arm-wince-vs8/armasmv5.rules" ;; armv6*) - tag DefaultToolFile FileName="armasmv6.rules" + tag ToolFile RelativePath="$self_dirname/../arm-wince-vs8/armasmv6.rules" ;; iwmmxt*) - tag DefaultToolFile FileName="armasmxscale.rules" + tag ToolFile RelativePath="$self_dirname/../arm-wince-vs8/armasmxscale.rules" ;; esac fi diff --git a/build/x86-msvs/yasm.rules b/build/x86-msvs/yasm.rules new file mode 100644 index 000000000..ee1fefbca --- /dev/null +++ b/build/x86-msvs/yasm.rules @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/libs.mk b/libs.mk index fd4543b07..115ceb537 100644 --- a/libs.mk +++ b/libs.mk @@ -132,7 +132,6 @@ ARM_ARCH=v6 endif obj_int_extract.vcproj: $(SRC_PATH_BARE)/build/make/obj_int_extract.c @cp $(SRC_PATH_BARE)/build/arm-wince-vs8/obj_int_extract.bat . - @cp $(SRC_PATH_BARE)/build/arm-wince-vs8/armasm$(ARM_ARCH).rules . @echo " [CREATE] $@" $(SRC_PATH_BARE)/build/make/gen_msvs_proj.sh\ --exe\