Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobo1 committed Sep 17, 2022
1 parent bc959f7 commit 428686c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ environment:
OGG_MSBUILD_CMD_X64: /maxcpucount /property:Configuration=Release,Platform=x64 /target:ogg

OPUS_SOL_FILE: Opus.sln
OPUS_GIT_TAG: v1.3.1
#OPUS_GIT_TAG: v1.3.1
OPUS_MSBUILD_CMD_X86: /maxcpucount /property:Configuration=Release,Platform=Win32
OPUS_MSBUILD_CMD_X64: /maxcpucount /property:Configuration=Release,Platform=x64

Expand All @@ -57,11 +57,11 @@ environment:

NASM_URL: https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/win64/nasm-2.15.05-win64.zip

FLAC_SOL_FILE: FLAC.sln
FLAC_SOL_FILE: src\libFLAC++\FLAC++.vcxproj
FLAC_CMAKE_X86: -DOGG_INCLUDE_DIR="%REPO_DIR%\lib\libogg\include" -DOGG_LIBRARY="%REPO_DIR%\lib\libogg\_build\Win32\Release\ogg.lib"
FLAC_CMAKE_X64: -DOGG_INCLUDE_DIR="%REPO_DIR%\lib\libogg\include" -DOGG_LIBRARY="%REPO_DIR%\lib\libogg\_build\x64\Release\ogg.lib"
FLAC_MSBUILD_CMD_X86: /maxcpucount /property:Configuration=Release,Platform=Win32 /target:FLAC++
FLAC_MSBUILD_CMD_X64: /maxcpucount /property:Configuration=Release,Platform=x64 /target:FLAC++
FLAC_MSBUILD_CMD_X86: /maxcpucount /property:Configuration=Release,Platform=Win32
FLAC_MSBUILD_CMD_X64: /maxcpucount /property:Configuration=Release,Platform=x64

OPUS-TOOLS_SOL_FILE: opus-tools.sln
OPUS-TOOLS_MSBUILD_CMD_X86: /maxcpucount /property:Configuration=Release,Platform=Win32
Expand Down Expand Up @@ -95,7 +95,7 @@ before_build:

# prepare opus
- cd "%REPO_DIR%\lib\opus"
- git checkout tags/%OPUS_GIT_TAG%
#- git checkout tags/%OPUS_GIT_TAG%
- mkdir "_build" && cd "_build"
- mkdir "Win32" && cd "Win32"
- cmake %CMAKE_GENERATOR_X86% %CMAKE_COMMON_DEFINES% ..\..\
Expand Down Expand Up @@ -138,7 +138,6 @@ before_build:

# prepare flac
- cd "%REPO_DIR%\lib\flac"
- ps: (Get-Content 'src\libFLAC\ia32\CMakeLists.txt') | ForEach-Object { $_ -replace '^#include_directories', 'include_directories' } | Set-Content 'src\libFLAC\ia32\CMakeLists.txt'
- mkdir "_build" && cd "_build"
- mkdir "Win32" && cd "Win32"
- cmake %CMAKE_GENERATOR_X86% %CMAKE_COMMON_DEFINES% %FLAC_CMAKE_X86% ..\..\
Expand Down
4 changes: 4 additions & 0 deletions src/libopusenc/VS2015/opusenc.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
<Link>
<AdditionalLibraryDirectories Condition="'$(Configuration)|$(Platform)'=='ReleaseDLL|Win32'">..\..\..\opus\win32\VS2015\$(Platform)\$(Configuration)</AdditionalLibraryDirectories>
<AdditionalDependencies Condition="'$(Configuration)|$(Platform)'=='ReleaseDLL|Win32'">opus.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<ControlFlowGuard Condition="'$(Configuration)|$(Platform)'=='ReleaseDLL|Win32'">Guard</ControlFlowGuard>
</Link>
<Link>
<AdditionalLibraryDirectories Condition="'$(Configuration)|$(Platform)'=='DebugDLL|x64'">..\..\..\opus\win32\VS2015\$(Platform)\$(Configuration)</AdditionalLibraryDirectories>
Expand All @@ -165,12 +166,15 @@
<Link>
<AdditionalLibraryDirectories Condition="'$(Configuration)|$(Platform)'=='ReleaseDLL|x64'">..\..\..\opus\win32\VS2015\$(Platform)\$(Configuration)</AdditionalLibraryDirectories>
<AdditionalDependencies Condition="'$(Configuration)|$(Platform)'=='ReleaseDLL|x64'">opus.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<ControlFlowGuard Condition="'$(Configuration)|$(Platform)'=='ReleaseDLL|x64'">Guard</ControlFlowGuard>
</Link>
<ClCompile>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/Gw %(AdditionalOptions)</AdditionalOptions>
<ControlFlowGuard Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Guard</ControlFlowGuard>
</ClCompile>
<ClCompile>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">/Gw %(AdditionalOptions)</AdditionalOptions>
<ControlFlowGuard Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Guard</ControlFlowGuard>
</ClCompile>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
Expand Down
1 change: 1 addition & 0 deletions src/opus-tools/VS2015/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<WholeProgramOptimization>false</WholeProgramOptimization>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release' or '$(Configuration)'=='ReleaseDLL' or '$(Configuration)'=='ReleaseDLL_fixed'">
<ControlFlowGuard>Guard</ControlFlowGuard>
<WholeProgramOptimization>true</WholeProgramOptimization>
</PropertyGroup>
<ItemDefinitionGroup>
Expand Down
4 changes: 4 additions & 0 deletions src/opusfile/VS2015/opusfile.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@
<FloatingPointModel>Fast</FloatingPointModel>
<AdditionalOptions>/Gw %(AdditionalOptions)</AdditionalOptions>
<AdditionalIncludeDirectories>..\..\..\openssl\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<ControlFlowGuard>Guard</ControlFlowGuard>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -176,6 +177,7 @@
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<FloatingPointModel>Fast</FloatingPointModel>
<AdditionalOptions>/Gw %(AdditionalOptions)</AdditionalOptions>
<ControlFlowGuard>Guard</ControlFlowGuard>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -194,6 +196,7 @@
<FloatingPointModel>Fast</FloatingPointModel>
<AdditionalOptions>/Gw %(AdditionalOptions)</AdditionalOptions>
<AdditionalIncludeDirectories>..\..\..\openssl\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<ControlFlowGuard>Guard</ControlFlowGuard>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -211,6 +214,7 @@
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<FloatingPointModel>Fast</FloatingPointModel>
<AdditionalOptions>/Gw %(AdditionalOptions)</AdditionalOptions>
<ControlFlowGuard>Guard</ControlFlowGuard>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand Down

0 comments on commit 428686c

Please sign in to comment.