mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-30 20:59:12 +08:00
Merge branch 'pango_static' of https://github.com/AlexanderTaeschner/vcpkg into AlexanderTaeschner-pango_static
This commit is contained in:
commit
3ffef6223b
@ -49,6 +49,16 @@ foreach(FILE
|
||||
file(COPY ${FILE} DESTINATION ${CURRENT_PACKAGES_DIR}/include/cairo)
|
||||
endforeach()
|
||||
|
||||
foreach(FILE "${CURRENT_PACKAGES_DIR}/include/cairo.h")
|
||||
file(READ ${FILE} CAIRO_H)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
string(REPLACE "defined (CAIRO_WIN32_STATIC_BUILD)" "1" CAIRO_H "${CAIRO_H}")
|
||||
else()
|
||||
string(REPLACE "defined (CAIRO_WIN32_STATIC_BUILD)" "0" CAIRO_H "${CAIRO_H}")
|
||||
endif()
|
||||
file(WRITE ${FILE} "${CAIRO_H}")
|
||||
endforeach()
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/cairo)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/cairo/COPYING ${CURRENT_PACKAGES_DIR}/share/cairo/copyright)
|
||||
|
Loading…
x
Reference in New Issue
Block a user