diff --git a/build/.gitattributes b/build/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..03db79bc088c361a5beec3efaf02b5d259d1319b --- /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 be1eeb95a94f6dc3a1b8626bd454c7f2c2effcbc..0000000000000000000000000000000000000000 --- 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 6288ee5c1f2a02a4f7d33dae0d287b255b6bd385..d94ae4d801047dff7a776c60734a67678408c355 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 0000000000000000000000000000000000000000..ee1fefbcaf680cc9c4c4e3469474f377c0f944b6 --- /dev/null +++ b/build/x86-msvs/yasm.rules @@ -0,0 +1,115 @@ +<?xml version="1.0" encoding="utf-8"?> +<VisualStudioToolFile + Name="Yasm" + Version="8.00" + > + <Rules> + <CustomBuildRule + Name="YASM" + DisplayName="Yasm Assembler" + CommandLine="yasm -Xvc -f $(PlatformName) [AllOptions] [AdditionalOptions] [Inputs]" + Outputs="[$ObjectFileName]" + FileExtensions="*.asm" + ExecutionDescription="Assembling $(InputFileName)" + ShowOnlyRuleProperties="false" + > + <Properties> + <StringProperty + Name="Defines" + DisplayName="Definitions" + Category="Pre-Defined Symbols" + Description="Specify pre-defined symbols ('symbol' or 'symbol = value') " + Switch="-D [value]" + Delimited="true" + Inheritable="true" + /> + <StringProperty + Name="IncludePaths" + DisplayName="Include Paths" + Category="Configuration" + Description="Set the paths for any additional include files" + Switch="-I [value]" + Delimited="true" + Inheritable="true" + /> + <StringProperty + Name="UnDefines" + DisplayName="Remove Definitions" + Category="Pre-Defined Symbols" + Description="Remove pre-defined symbols " + Switch="-U [value]" + Delimited="true" + Inheritable="true" + /> + <StringProperty + Name="ObjectFileName" + DisplayName="Object File Name" + Category="Output" + Description="Select the output file name" + Switch="-o [value]" + DefaultValue="$(IntDir)\$(InputName).obj" + /> + <StringProperty + Name="ListFileName" + DisplayName="List File Name" + Category="Output" + Description="Select an output listing by setting its file name" + Switch="-l [value]" + /> + <StringProperty + Name="PreIncludeFile" + DisplayName="Pre Include File" + Category="Configuration" + Description="Select a pre-included file by setting its name" + Switch="-P [value]" + /> + <BooleanProperty + Name="Debug" + DisplayName="Debug Information" + Category="Output" + Description="Generate debugging information" + Switch="-g cv8" + /> + <EnumProperty + Name="PreProc" + DisplayName="Pre-Processor" + Category="Configuration" + Description="Select the pre-processor ('nasm' or 'raw')" + > + <Values> + <EnumValue + Value="0" + Switch="-rnasm" + DisplayName="Nasm " + /> + <EnumValue + Value="1" + Switch="-rraw" + DisplayName="Raw" + /> + </Values> + </EnumProperty> + <EnumProperty + Name="Parser" + DisplayName="Parser" + Category="Configuration" + Description="Select the parser for Intel ('nasm') or AT&T ( 'gas') syntax" + > + <Values> + <EnumValue + Value="0" + Switch="-pnasm" + DisplayName="Nasm" + /> + <EnumValue + Value="1" + Switch="-pgas" + DisplayName="Gas" + /> + </Values> + </EnumProperty> + </Properties> + </CustomBuildRule> + </Rules> +</VisualStudioToolFile> + diff --git a/libs.mk b/libs.mk index fd4543b079f6cdd44ea9b6786cb1091d11b3dfd8..115ceb537b4fe82c0cb4c1caac75090ed091506d 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\