mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 19:17:10 +01:00
Merge pull request #1247 from codicodi/fltk-dll
[fltk] force import macro to either 0 or 1
This commit is contained in:
commit
af3f6a8fd6
@ -1,4 +1,4 @@
|
|||||||
Source: fltk
|
Source: fltk
|
||||||
Version: 1.3.4-3
|
Version: 1.3.4-4
|
||||||
Description: FLTK (pronounced fulltick) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. FLTK provides modern GUI functionality without the bloat and supports 3D graphics via OpenGL and its built-in GLUT emulation.
|
Description: FLTK (pronounced fulltick) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. FLTK provides modern GUI functionality without the bloat and supports 3D graphics via OpenGL and its built-in GLUT emulation.
|
||||||
Build-Depends: zlib, libpng, libjpeg-turbo
|
Build-Depends: zlib, libpng, libjpeg-turbo
|
@ -28,6 +28,7 @@ endif()
|
|||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${SOURCE_PATH}
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
|
PREFER_NINJA
|
||||||
OPTIONS
|
OPTIONS
|
||||||
-DOPTION_BUILD_EXAMPLES=OFF
|
-DOPTION_BUILD_EXAMPLES=OFF
|
||||||
-DOPTION_USE_SYSTEM_ZLIB=ON
|
-DOPTION_USE_SYSTEM_ZLIB=ON
|
||||||
@ -71,6 +72,16 @@ else()
|
|||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
foreach(FILE Fl_Export.H fl_utf8.h)
|
||||||
|
file(READ ${CURRENT_PACKAGES_DIR}/include/FL/${FILE} FLTK_HEADER)
|
||||||
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||||
|
string(REPLACE "defined(FL_DLL)" "0" FLTK_HEADER "${FLTK_HEADER}")
|
||||||
|
else()
|
||||||
|
string(REPLACE "defined(FL_DLL)" "1" FLTK_HEADER "${FLTK_HEADER}")
|
||||||
|
endif()
|
||||||
|
file(WRITE ${CURRENT_PACKAGES_DIR}/include/FL/${FILE} "${FLTK_HEADER}")
|
||||||
|
endforeach()
|
||||||
|
|
||||||
file(INSTALL
|
file(INSTALL
|
||||||
${SOURCE_PATH}/COPYING
|
${SOURCE_PATH}/COPYING
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/share/fltk
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/fltk
|
||||||
|
Loading…
x
Reference in New Issue
Block a user