Skip to content

Commit

Permalink
Added missing dependencies for Appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
robbr48 committed Oct 16, 2024
1 parent 91e923a commit 4708b54
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ configuration: Release
install:
- git submodule update --init
- cd dependencies
- download-dependencies.py discount fmilibrary qwt zeromq cppzmq msgpack-c katex tclap fmi4c
- download-dependencies.py discount fmilibrary qwt zeromq cppzmq msgpack-c katex tclap fmi4c xerces asio zlib libzip dcplib
- cd ..
build_script:
# Remove sh.exe from PATH so that CMake works
Expand Down
26 changes: 26 additions & 0 deletions dependencies/libzip.pri
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
libzip_dir = $${PWD}/libzip
zlib_dir = $${PWD}/zlib
message(libzip_dir)
exists($${libzip_dir}) {
INCLUDEPATH *= $${libzip_dir}/include
LIBS *= -L$${libzip_dir}/bin -lzip

macx {
# Not supported
} win32 {
src_file = $$quote($${libzip_dir}/bin/libzip.dll)
src_file_zlib = $$quote($${zlib_dir}/bin/libzlib.dll)
dst_dir = $$quote($${PWD}/../bin)
# Replace slashes in paths with backslashes for Windows
src_file ~= s,/,\\,g
src_file_zlib ~= s,/,\\,g
dst_dir ~= s,/,\\,g

QMAKE_POST_LINK += $$QMAKE_COPY $${src_file} $${dst_dir} $$escape_expand(\\n\\t)
QMAKE_POST_LINK += $$QMAKE_COPY $${src_file_zlib} $${dst_dir} $$escape_expand(\\n\\t)
} else {
# Note! The RPATH is absolute and only meant for dev builds in the IDE, on release runtime paths should be stripped
unix:QMAKE_RPATHDIR *= $${libzip_dir/bin}
}
}

25 changes: 25 additions & 0 deletions dependencies/xerces.pri
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
xerces_dir = $${PWD}/xerces

exists($${xerces_dir}) {
INCLUDEPATH *= $${xerces_dir}/include
LIBS *= -L$${xerces_dir}/bin -lxerces-c

macx {
# Not supported
} win32 {
src_file = $$quote($${xerces_dir}/bin/libxerces-c.dll)
dst_dir = $$quote($${PWD}/../bin)
# Replace slashes in paths with backslashes for Windows
src_file ~= s,/,\\,g
dst_dir ~= s,/,\\,g

message($${src_file})
message($${dst_dir})

QMAKE_POST_LINK += $$QMAKE_COPY $${src_file} $${dst_dir} $$escape_expand(\\n\\t)
} else {
# Note! The RPATH is absolute and only meant for dev builds in the IDE, on release runtime paths should be stripped
unix:QMAKE_RPATHDIR *= $${xerces_dir/bin}
}
}

0 comments on commit 4708b54

Please sign in to comment.