Skip to content

Commit

Permalink
add vcpkg json and triplet
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Dec 26, 2024
1 parent 453af56 commit 16bbe71
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/triplets/x64-linux-antares.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CMAKE_SYSTEM_NAME Linux)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)

7 changes: 7 additions & 0 deletions src/triplets/x64-linux-release.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CMAKE_SYSTEM_NAME Linux)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)

# Avoid building debug artifacts
set(VCPKG_BUILD_TYPE release)
11 changes: 11 additions & 0 deletions src/triplets/x64-windows-antares.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE dynamic)

# Link zlib and minizip statically
list(APPEND STATIC_PORTS "zlib.*" "minizip.*")
foreach (STATIC_PORT IN LISTS STATIC_PORTS)
if(PORT MATCHES ${STATIC_PORT})
set(VCPKG_LIBRARY_LINKAGE static)
endif()
endforeach ()
15 changes: 15 additions & 0 deletions src/triplets/x64-windows-release.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
set(VCPKG_TARGET_ARCHITECTURE x64)

set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE dynamic)

# Avoid building debug artifacts
set(VCPKG_BUILD_TYPE release)

# Link zlib and minizip statically
list(APPEND STATIC_PORTS "zlib.*" "minizip.*")
foreach (STATIC_PORT IN LISTS STATIC_PORTS)
if(PORT MATCHES ${STATIC_PORT})
set(VCPKG_LIBRARY_LINKAGE static)
endif()
endforeach ()
46 changes: 46 additions & 0 deletions src/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "antares-simulator",
"version-string": "8.8.11",
"builtin-baseline": "9484a57dd560b89f0a583be08af6753611c57fd5",
"vcpkg-configuration": {
"overlay-ports": [
"./ports"
],
"overlay-triplets": [
"./triplets"
]
},
"dependencies": [
{
"name": "sirius-solver",
"version>=": "1.5"
},
{
"name": "wxwidgets",
"platform": "windows"
},
{
"name": "boost-test",
"version>=": "1.81.0"
},
{
"name": "boost-core",
"version>=": "1.81.0"
},
{
"name": "minizip-ng",
"default-features": false,
"version>=": "4.0.0",
"features": [
"zlib"
]
},
{
"name": "yaml-cpp"
},
{
"name": "antlr4"
}
]
}

0 comments on commit 16bbe71

Please sign in to comment.