mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-15 00:28:00 +08:00
[ape] add dynamic build stuff
Tried to build dynamically but failed
This commit is contained in:
parent
16ca72dfe9
commit
7aaa4dc5d7
@ -8,8 +8,8 @@ endif()
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
set(VERSION 4.7)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/Source)
|
||||
set(PROJECT_PATH ${SOURCE_PATH}/Projects/VS2017)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src)
|
||||
set(PROJECT_PATH ${SOURCE_PATH}/Source/Projects/VS2017)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://monkeysaudio.com/files/MAC_SDK_433.zip"
|
||||
@ -19,6 +19,13 @@ vcpkg_download_distfile(ARCHIVE
|
||||
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES ${CMAKE_CURRENT_LIST_DIR}/use-dynamic-linkage.patch
|
||||
)
|
||||
endif()
|
||||
|
||||
vcpkg_build_msbuild(
|
||||
PROJECT_PATH ${PROJECT_PATH}/Console/Console.vcxproj
|
||||
)
|
||||
@ -43,5 +50,6 @@ file(COPY
|
||||
file(INSTALL ${PROJECT_PATH}/Console/Release/Console.exe
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/tools/monkeys-audio
|
||||
RENAME mac.exe)
|
||||
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/${PORT})
|
||||
|
||||
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/license DESTINATION ${CURRENT_PACKAGES_DIR}/share/monkeys-audio RENAME copyright)
|
||||
|
36
ports/monkeys-audio/use-dynamic-linkage.patch
Normal file
36
ports/monkeys-audio/use-dynamic-linkage.patch
Normal file
@ -0,0 +1,36 @@
|
||||
diff --git a/Source/Projects/VS2017/MACLib/MACLib.vcxproj b/Source/Projects/VS2017/MACLib/MACLib.vcxproj
|
||||
index ec3cf92..44c8e65 100644
|
||||
--- a/Source/Projects/VS2017/MACLib/MACLib.vcxproj
|
||||
+++ b/Source/Projects/VS2017/MACLib/MACLib.vcxproj
|
||||
@@ -25,27 +25,27 @@
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
- <ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<PlatformToolset>v141_xp</PlatformToolset>
|
||||
<UseOfMfc>false</UseOfMfc>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
- <ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<PlatformToolset>v141_xp</PlatformToolset>
|
||||
<UseOfMfc>false</UseOfMfc>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
- <ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<PlatformToolset>v141_xp</PlatformToolset>
|
||||
<UseOfMfc>false</UseOfMfc>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
- <ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<PlatformToolset>v141_xp</PlatformToolset>
|
||||
<UseOfMfc>false</UseOfMfc>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
Loading…
x
Reference in New Issue
Block a user