diff --git a/build/platform-mingw_nt.mk b/build/platform-mingw_nt.mk index 77373bf9..e1c3771a 100644 --- a/build/platform-mingw_nt.mk +++ b/build/platform-mingw_nt.mk @@ -5,13 +5,11 @@ LDFLAGS += ifeq ($(ENABLE64BIT), Yes) ASMFLAGS += -f win64 ASMFLAGS_PLATFORM = -DWIN64 -CFLAGS += -DWIN64 CC = x86_64-w64-mingw32-gcc CXX = x86_64-w64-mingw32-g++ AR = x86_64-w64-mingw32-ar else ASMFLAGS += -f win32 -DPREFIX -CFLAGS += -DWIN32 endif EXEEXT = .exe diff --git a/build/platform-msvc-common.mk b/build/platform-msvc-common.mk index 72727a1d..971fe36c 100644 --- a/build/platform-msvc-common.mk +++ b/build/platform-msvc-common.mk @@ -3,13 +3,10 @@ ifeq ($(ASM_ARCH), x86) ifeq ($(ENABLE64BIT), Yes) ASMFLAGS += -f win64 ASMFLAGS_PLATFORM = -DWIN64 -CFLAGS += -DWIN64 else ASMFLAGS += -f win32 -DPREFIX -CFLAGS += -DWIN32 endif else -CFLAGS += -DWIN32 endif ifeq ($(ASM_ARCH), arm) CCAS = gas-preprocessor.pl -as-type armasm -force-thumb -- armasm diff --git a/build/platform-x86-common.mk b/build/platform-x86-common.mk index fc90fbd3..b5730459 100644 --- a/build/platform-x86-common.mk +++ b/build/platform-x86-common.mk @@ -17,7 +17,7 @@ ASMFLAGS_PLATFORM = -DX86_32 endif ifeq ($(USE_ASM),Yes) CFLAGS += -DX86_ASM -endif ASM_ARCH = x86 +endif ASM = nasm ASMFLAGS += $(ASMFLAGS_PLATFORM) diff --git a/codec/build/win32/dec/WelsDecCore.vcproj b/codec/build/win32/dec/WelsDecCore.vcproj index 14e98e8e..7ae63e06 100644 --- a/codec/build/win32/dec/WelsDecCore.vcproj +++ b/codec/build/win32/dec/WelsDecCore.vcproj @@ -54,7 +54,7 @@ Optimization="2" InlineFunctionExpansion="1" AdditionalIncludeDirectories="..\..\..\decoder\core\inc;..\..\..\common\inc;..\..\..\api\svc;..\..\..\hwDecoder\core\inc;..\..\..\hwDecoder\dxva\inc" - PreprocessorDefinitions="WIN32;NDEBUG;_LIB;X86_ASM" + PreprocessorDefinitions="NDEBUG;_LIB;X86_ASM" StringPooling="true" RuntimeLibrary="0" EnableFunctionLevelLinking="true" @@ -134,7 +134,7 @@ Optimization="2" InlineFunctionExpansion="1" AdditionalIncludeDirectories="..\..\..\decoder\core\inc;..\..\..\common\inc;..\..\..\api\svc;..\..\..\hwDecoder\core\inc;..\..\..\hwDecoder\dxva\inc" - PreprocessorDefinitions="WIN64;NDEBUG;_LIB;X86_ASM" + PreprocessorDefinitions="NDEBUG;_LIB;X86_ASM" StringPooling="true" RuntimeLibrary="0" EnableFunctionLevelLinking="true" @@ -212,7 +212,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\..\decoder\core\inc;..\..\..\common\inc;..\..\..\api\svc;..\..\..\hwDecoder\core\inc;..\..\..\hwDecoder\dxva\inc" - PreprocessorDefinitions="WIN32;_DEBUG;_LIB;X86_ASM" + PreprocessorDefinitions="_DEBUG;_LIB;X86_ASM" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="1" @@ -291,7 +291,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\..\decoder\core\inc;..\..\..\common\inc;..\..\..\api\svc;..\..\..\hwDecoder\core\inc;..\..\..\hwDecoder\dxva\inc" - PreprocessorDefinitions="WIN64;_DEBUG;_LIB;X86_ASM" + PreprocessorDefinitions="_DEBUG;_LIB;X86_ASM" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="1" diff --git a/codec/build/win32/dec/WelsDecPlus.vcproj b/codec/build/win32/dec/WelsDecPlus.vcproj index 7f0197ce..2a6a7852 100644 --- a/codec/build/win32/dec/WelsDecPlus.vcproj +++ b/codec/build/win32/dec/WelsDecPlus.vcproj @@ -54,7 +54,7 @@ Optimization="2" InlineFunctionExpansion="1" AdditionalIncludeDirectories="..\..\..\decoder\plus\inc;..\..\..\decoder\core\inc;..\..\..\api\svc;..\..\..\common\inc;..\..\..\hwDecoder\plus\inc;..\..\..\hwDecoder\core\inc" - PreprocessorDefinitions="WIN32;NDEBUG;_USRDLL;X86_ASM" + PreprocessorDefinitions="NDEBUG;_USRDLL;X86_ASM" StringPooling="true" RuntimeLibrary="0" EnableFunctionLevelLinking="true" @@ -154,7 +154,7 @@ Optimization="2" InlineFunctionExpansion="1" AdditionalIncludeDirectories="..\..\..\decoder\plus\inc;..\..\..\decoder\core\inc;..\..\..\api\svc;..\..\..\common\inc;..\..\..\hwDecoder\plus\inc;..\..\..\hwDecoder\core\inc" - PreprocessorDefinitions="WIN64;NDEBUG;_USRDLL;X86_ASM" + PreprocessorDefinitions="NDEBUG;_USRDLL;X86_ASM" StringPooling="true" RuntimeLibrary="0" EnableFunctionLevelLinking="true" @@ -253,7 +253,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\..\decoder\plus\inc;..\..\..\decoder\core\inc;..\..\..\api\svc;..\..\..\common\inc;..\..\..\hwDecoder\plus\inc;..\..\..\hwDecoder\core\inc" - PreprocessorDefinitions="WIN32;_DEBUG;_USRDLL;X86_ASM" + PreprocessorDefinitions="_DEBUG;_USRDLL;X86_ASM" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="1" @@ -350,7 +350,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\..\decoder\plus\inc;..\..\..\decoder\core\inc;..\..\..\api\svc;..\..\..\common\inc;..\..\..\hwDecoder\plus\inc;..\..\..\hwDecoder\core\inc" - PreprocessorDefinitions="WIN64;_DEBUG;_USRDLL;X86_ASM" + PreprocessorDefinitions="_DEBUG;_USRDLL;X86_ASM" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="1" diff --git a/codec/build/win32/dec/decConsole.vcproj b/codec/build/win32/dec/decConsole.vcproj index 444ae18c..dd345832 100644 --- a/codec/build/win32/dec/decConsole.vcproj +++ b/codec/build/win32/dec/decConsole.vcproj @@ -50,7 +50,7 @@ Optimization="2" InlineFunctionExpansion="1" AdditionalIncludeDirectories="..\..\..\console\dec\inc,..\..\..\api\svc,..\..\..\common\inc,..\..\..\encoder\core\inc" - PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" + PreprocessorDefinitions="NDEBUG;_CONSOLE" StringPooling="true" RuntimeLibrary="0" EnableFunctionLevelLinking="true" @@ -143,7 +143,7 @@ Optimization="2" InlineFunctionExpansion="1" AdditionalIncludeDirectories="..\..\..\console\dec\inc,..\..\..\api\svc,..\..\..\common\inc,..\..\..\encoder\core\inc" - PreprocessorDefinitions="WIN64;NDEBUG;_CONSOLE" + PreprocessorDefinitions="NDEBUG;_CONSOLE" StringPooling="true" RuntimeLibrary="0" EnableFunctionLevelLinking="true" @@ -234,7 +234,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\..\console\dec\inc,..\..\..\api\svc,..\..\..\common\inc,..\..\..\decoder\core\inc,..\..\..\encoder\core\inc" - PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE" + PreprocessorDefinitions="_DEBUG;_CONSOLE" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="1" @@ -328,7 +328,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\..\console\dec\inc,..\..\..\api\svc,..\..\..\common\inc,..\..\..\decoder\core\inc,..\..\..\encoder\core\inc" - PreprocessorDefinitions="WIN64;_DEBUG;_CONSOLE" + PreprocessorDefinitions="_DEBUG;_CONSOLE" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="1" diff --git a/codec/build/win32/enc/WelsEncCore.vcproj b/codec/build/win32/enc/WelsEncCore.vcproj index 16dd6bf9..d1d71f56 100644 --- a/codec/build/win32/enc/WelsEncCore.vcproj +++ b/codec/build/win32/enc/WelsEncCore.vcproj @@ -53,7 +53,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\..\common\inc;..\..\..\encoder\core\inc,..\..\..\api\svc;..\..\..\processing\interface" - PreprocessorDefinitions="WIN32;_DEBUG;_LIB;X86_ASM" + PreprocessorDefinitions="_DEBUG;_LIB;X86_ASM" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="1" @@ -133,7 +133,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\..\common\inc;..\..\..\encoder\core\inc,..\..\..\api\svc;..\..\..\processing\interface" - PreprocessorDefinitions="WIN64;_DEBUG;_LIB;X86_ASM" + PreprocessorDefinitions="_DEBUG;_LIB;X86_ASM" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="1" @@ -215,7 +215,7 @@ FavorSizeOrSpeed="1" WholeProgramOptimization="true" AdditionalIncludeDirectories="..\..\..\common\inc;..\..\..\encoder\core\inc,..\..\..\api\svc;..\..\..\processing\interface" - PreprocessorDefinitions="WIN32;NDEBUG;_LIB;X86_ASM" + PreprocessorDefinitions="NDEBUG;_LIB;X86_ASM" StringPooling="true" RuntimeLibrary="0" EnableFunctionLevelLinking="true" @@ -299,7 +299,7 @@ FavorSizeOrSpeed="1" WholeProgramOptimization="true" AdditionalIncludeDirectories="..\..\..\common\inc;..\..\..\encoder\core\inc,..\..\..\api\svc;..\..\..\processing\interface" - PreprocessorDefinitions="WIN64;NDEBUG;_LIB;X86_ASM" + PreprocessorDefinitions="NDEBUG;_LIB;X86_ASM" StringPooling="true" RuntimeLibrary="0" EnableFunctionLevelLinking="true" diff --git a/codec/build/win32/enc/WelsEncPlus.vcproj b/codec/build/win32/enc/WelsEncPlus.vcproj index 5ff4e08f..553345d1 100644 --- a/codec/build/win32/enc/WelsEncPlus.vcproj +++ b/codec/build/win32/enc/WelsEncPlus.vcproj @@ -53,7 +53,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\..\encoder\plus\inc;..\..\..\encoder\core\inc;..\..\..\api\svc;..\..\..\common\inc;..\..\..\processing\interface" - PreprocessorDefinitions="WIN32;_DEBUG;_USRDLL;X86_ASM" + PreprocessorDefinitions="_DEBUG;_USRDLL;X86_ASM" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="1" @@ -152,7 +152,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\..\encoder\plus\inc;..\..\..\encoder\core\inc;..\..\..\api\svc;..\..\..\common\inc;..\..\..\processing\interface" - PreprocessorDefinitions="WIN64;_DEBUG;_USRDLL;X86_ASM" + PreprocessorDefinitions="_DEBUG;_USRDLL;X86_ASM" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="1" @@ -255,7 +255,7 @@ EnableFiberSafeOptimizations="true" WholeProgramOptimization="true" AdditionalIncludeDirectories="..\..\..\encoder\plus\inc;..\..\..\encoder\core\inc;..\..\..\api\svc;..\..\..\common\inc;..\..\..\processing\interface" - PreprocessorDefinitions="WIN32;NDEBUG;_USRDLL;X86_ASM" + PreprocessorDefinitions="NDEBUG;_USRDLL;X86_ASM" StringPooling="true" RuntimeLibrary="0" EnableFunctionLevelLinking="true" @@ -360,7 +360,7 @@ EnableFiberSafeOptimizations="true" WholeProgramOptimization="true" AdditionalIncludeDirectories="..\..\..\encoder\plus\inc;..\..\..\encoder\core\inc;..\..\..\api\svc;..\..\..\common\inc;..\..\..\processing\interface" - PreprocessorDefinitions="WIN64;NDEBUG;_USRDLL;X86_ASM" + PreprocessorDefinitions="NDEBUG;_USRDLL;X86_ASM" StringPooling="true" RuntimeLibrary="0" EnableFunctionLevelLinking="true" diff --git a/codec/build/win32/enc/encConsole.vcproj b/codec/build/win32/enc/encConsole.vcproj index 59ea6aee..1f447313 100644 --- a/codec/build/win32/enc/encConsole.vcproj +++ b/codec/build/win32/enc/encConsole.vcproj @@ -49,7 +49,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\..\console\enc\inc,..\..\..\api\svc,..\..\..\WelsThreadLib\api,..\..\..\encoder\core\inc,..\..\..\common\inc,..\..\..\processing\interface" - PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;" + PreprocessorDefinitions="_DEBUG;_CONSOLE;" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="1" @@ -144,7 +144,7 @@ Optimization="2" InlineFunctionExpansion="1" AdditionalIncludeDirectories="..\..\..\console\enc\inc,..\..\..\api\svc,..\..\..\WelsThreadLib\api,..\..\..\encoder\core\inc,..\..\..\common\inc,..\..\..\processing\interface" - PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;X86_ASM;" + PreprocessorDefinitions="NDEBUG;_CONSOLE;X86_ASM;" StringPooling="true" RuntimeLibrary="0" EnableFunctionLevelLinking="true" @@ -239,7 +239,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\..\console\enc\inc,..\..\..\api\svc,..\..\..\WelsThreadLib\api,..\..\..\encoder\core\inc,..\..\..\common\inc,..\..\..\processing\interface" - PreprocessorDefinitions="WIN64;_DEBUG;_CONSOLE" + PreprocessorDefinitions="_DEBUG;_CONSOLE" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="1" @@ -335,7 +335,7 @@ Optimization="2" InlineFunctionExpansion="1" AdditionalIncludeDirectories="..\..\..\console\enc\inc,..\..\..\api\svc,..\..\..\WelsThreadLib\api,..\..\..\encoder\core\inc,..\..\..\common\inc,..\..\..\processing\interface" - PreprocessorDefinitions="WIN64;NDEBUG;_CONSOLE" + PreprocessorDefinitions="NDEBUG;_CONSOLE" StringPooling="true" RuntimeLibrary="0" EnableFunctionLevelLinking="true" diff --git a/codec/processing/build/win32/WelsVP.vcproj b/codec/processing/build/win32/WelsVP.vcproj index 7215032f..fb60ad06 100644 --- a/codec/processing/build/win32/WelsVP.vcproj +++ b/codec/processing/build/win32/WelsVP.vcproj @@ -53,7 +53,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="../../../common/inc;../../interface;../../src/common" - PreprocessorDefinitions="WIN32;_DEBUG;_USRDLL;X86_ASM" + PreprocessorDefinitions="_DEBUG;_USRDLL;X86_ASM" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="1" @@ -138,7 +138,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="../../../common/inc;../../interface;../../src/common" - PreprocessorDefinitions="WIN64;_DEBUG;_USRDLL;X86_ASM" + PreprocessorDefinitions="_DEBUG;_USRDLL;X86_ASM" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="1" @@ -225,7 +225,7 @@ EnableIntrinsicFunctions="false" FavorSizeOrSpeed="1" AdditionalIncludeDirectories="../../../common/inc/;../../interface;../../src/common" - PreprocessorDefinitions="WIN32;NDEBUG;_USRDLL;X86_ASM" + PreprocessorDefinitions="NDEBUG;_USRDLL;X86_ASM" RuntimeLibrary="0" EnableFunctionLevelLinking="false" UsePrecompiledHeader="0" @@ -315,7 +315,7 @@ EnableIntrinsicFunctions="false" FavorSizeOrSpeed="1" AdditionalIncludeDirectories="../../../common/inc/;../../interface;../../src/common" - PreprocessorDefinitions="WIN64;NDEBUG;_USRDLL;X86_ASM" + PreprocessorDefinitions="NDEBUG;_USRDLL;X86_ASM" RuntimeLibrary="0" EnableFunctionLevelLinking="false" UsePrecompiledHeader="0"