Added vcpkg manifest file
parent
1c9c0929da
commit
4634461c1d
|
@ -98,11 +98,11 @@ jobs:
|
||||||
- name: Install Colobot dependencies
|
- name: Install Colobot dependencies
|
||||||
uses: lukka/run-vcpkg@v7
|
uses: lukka/run-vcpkg@v7
|
||||||
with:
|
with:
|
||||||
vcpkgGitCommitId: 'e809a42f87565e803b2178a0c11263f462d1800a'
|
vcpkgGitCommitId: '716c3524a54f1f50a25d16a4cdd360f5a7fcc150'
|
||||||
vcpkgTriplet: ${{ matrix.vcpkg_triplet }}
|
vcpkgTriplet: ${{ matrix.vcpkg_triplet }}
|
||||||
vcpkgArguments: 'boost-system boost-filesystem boost-regex boost-lexical-cast boost-bimap boost-algorithm boost-property-tree boost-optional boost-range sdl2 sdl2-ttf sdl2-image glew libpng libwebp tiff gettext libsndfile libvorbis libogg openal-soft physfs mpg123'
|
setupOnly: true
|
||||||
# SHA-256 hash of the list of packages above, for caching purposes
|
# SHA-256 hash of the list of packages above, for caching purposes
|
||||||
appendedCacheKey: '84402d9834b06a1b571e0fda32a791915777d47a394a1469d4773322bd71614b'
|
appendedCacheKey: '56a81d2ed18a506e5ce5cf4dc4e6ed9874bba3905ed5e9b073ea717a0663db0a'
|
||||||
- name: Install external tools
|
- name: Install external tools
|
||||||
working-directory: ${{ github.workspace }}
|
working-directory: ${{ github.workspace }}
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -330,9 +330,6 @@ endif()
|
||||||
|
|
||||||
find_package(SndFile REQUIRED)
|
find_package(SndFile REQUIRED)
|
||||||
|
|
||||||
find_package(mpg123 QUIET)
|
|
||||||
find_package(mp3lame QUIET)
|
|
||||||
|
|
||||||
if(NOT ASSERTS)
|
if(NOT ASSERTS)
|
||||||
add_definitions(-DNDEBUG)
|
add_definitions(-DNDEBUG)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -493,20 +493,6 @@ target_link_libraries(colobotbase PUBLIC
|
||||||
SndFile::sndfile
|
SndFile::sndfile
|
||||||
)
|
)
|
||||||
|
|
||||||
if(mpg123_FOUND)
|
|
||||||
target_link_libraries(colobotbase PUBLIC
|
|
||||||
MPG123::libmpg123
|
|
||||||
MPG123::libout123
|
|
||||||
MPG123::libsyn123
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(mp3lame_FOUND)
|
|
||||||
target_link_libraries(colobotbase PUBLIC
|
|
||||||
mp3lame::mp3lame
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Optional libraries
|
# Optional libraries
|
||||||
if(OPENAL_SOUND)
|
if(OPENAL_SOUND)
|
||||||
target_sources(colobotbase PRIVATE
|
target_sources(colobotbase PRIVATE
|
||||||
|
@ -536,9 +522,6 @@ if(PLATFORM_WINDOWS)
|
||||||
find_package(Intl REQUIRED)
|
find_package(Intl REQUIRED)
|
||||||
|
|
||||||
find_library(BZ2_LIBRARY NAMES bz2)
|
find_library(BZ2_LIBRARY NAMES bz2)
|
||||||
find_library(JPEG_LIBRARY NAMES jpeg)
|
|
||||||
find_library(TIFF_LIBRARY NAMES tiff)
|
|
||||||
find_library(LZMA_LIBRARY NAMES lzma)
|
|
||||||
find_library(FREETYPE_LIBRARY NAMES freetype)
|
find_library(FREETYPE_LIBRARY NAMES freetype)
|
||||||
find_library(ICONV_LIBRARY NAMES iconv)
|
find_library(ICONV_LIBRARY NAMES iconv)
|
||||||
find_library(CHARSET_LIBRARY NAMES charset)
|
find_library(CHARSET_LIBRARY NAMES charset)
|
||||||
|
@ -548,10 +531,7 @@ if(PLATFORM_WINDOWS)
|
||||||
|
|
||||||
target_link_libraries(colobotbase PUBLIC
|
target_link_libraries(colobotbase PUBLIC
|
||||||
Gettext::Intl
|
Gettext::Intl
|
||||||
${JPEG_LIBRARY}
|
|
||||||
${TIFF_LIBRARY}
|
|
||||||
${BZ2_LIBRARY}
|
${BZ2_LIBRARY}
|
||||||
${LZMA_LIBRARY}
|
|
||||||
${FREETYPE_LIBRARY}
|
${FREETYPE_LIBRARY}
|
||||||
${ICONV_LIBRARY}
|
${ICONV_LIBRARY}
|
||||||
${CHARSET_LIBRARY}
|
${CHARSET_LIBRARY}
|
||||||
|
|
|
@ -0,0 +1,48 @@
|
||||||
|
{
|
||||||
|
"name": "colobot",
|
||||||
|
"version-string": "0.1.0",
|
||||||
|
"builtin-baseline": "e809a42f87565e803b2178a0c11263f462d1800a",
|
||||||
|
"dependencies": [
|
||||||
|
"boost-system",
|
||||||
|
"boost-filesystem",
|
||||||
|
"boost-regex",
|
||||||
|
"boost-lexical-cast",
|
||||||
|
"boost-bimap",
|
||||||
|
"boost-algorithm",
|
||||||
|
"boost-property-tree",
|
||||||
|
"boost-optional",
|
||||||
|
"boost-range",
|
||||||
|
"sdl2",
|
||||||
|
{
|
||||||
|
"name": "sdl2-image",
|
||||||
|
"default-features": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "sdl2-ttf",
|
||||||
|
"default-features": false
|
||||||
|
},
|
||||||
|
"glew",
|
||||||
|
"libpng",
|
||||||
|
"gettext",
|
||||||
|
{
|
||||||
|
"name": "libsndfile",
|
||||||
|
"default-features": false,
|
||||||
|
"features": [ "external-libs" ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "freetype",
|
||||||
|
"default-features": false
|
||||||
|
},
|
||||||
|
"libvorbis",
|
||||||
|
"libogg",
|
||||||
|
"opus",
|
||||||
|
"openal-soft",
|
||||||
|
"physfs",
|
||||||
|
"zlib"
|
||||||
|
],
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"name": "zlib", "version": "1.2.13"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue