mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 04:09:00 +08:00
[qt5] Update fixcmake.py for new manual-link directory
This commit is contained in:
parent
c2a735f6be
commit
956ced64d3
@ -18,6 +18,10 @@ for f in files:
|
||||
builder += "\n " + line.replace("/bin/", "/debug/bin/")
|
||||
builder += " endif()\n"
|
||||
elif "_install_prefix}/lib/${LIB_LOCATION}" in line:
|
||||
# Qt5AxServer(d).lib has been moved to manual-link:
|
||||
if '_qt5AxServer_install_prefix' in line:
|
||||
line = line.replace('/lib/', '/lib/manual-link/')
|
||||
|
||||
builder += " if (${Configuration} STREQUAL \"RELEASE\")"
|
||||
builder += "\n " + line
|
||||
builder += " else()"
|
||||
@ -30,7 +34,8 @@ for f in files:
|
||||
builder += "\n " + line.replace("/lib/", "/debug/lib/")
|
||||
builder += " endif()\n"
|
||||
elif "_install_prefix}/lib/qtmaind.lib" in line:
|
||||
builder += line.replace("/lib/", "/debug/lib/")
|
||||
# qtmaind.lib has been moved to manual-link:
|
||||
builder += line.replace("/lib/", "/debug/lib/manual-link/")
|
||||
elif "_install_prefix}/plugins/${PLUGIN_LOCATION}" in line:
|
||||
builder += " if (${Configuration} STREQUAL \"RELEASE\")"
|
||||
builder += "\n " + line
|
||||
@ -38,8 +43,9 @@ for f in files:
|
||||
builder += "\n " + line.replace("/plugins/", "/debug/plugins/")
|
||||
builder += " endif()\n"
|
||||
elif "_install_prefix}/lib/qtmain.lib" in line:
|
||||
builder += line
|
||||
builder += " set(imported_location_debug \"${_qt5Core_install_prefix}/debug/lib/qtmaind.lib\")\n"
|
||||
# qtmain(d).lib has been moved to manual-link:
|
||||
builder += line.replace("/lib/", "/lib/manual-link/")
|
||||
builder += " set(imported_location_debug \"${_qt5Core_install_prefix}/debug/lib/manual-link/qtmaind.lib\")\n"
|
||||
builder += "\n"
|
||||
builder += " set_target_properties(Qt5::WinMain PROPERTIES\n"
|
||||
builder += " IMPORTED_LOCATION_DEBUG ${imported_location_debug}\n"
|
||||
|
Loading…
Reference in New Issue
Block a user