Don't link gdiplus everywhere anymore
Tested on msys2 which is the only place it would have been buggy CMake seems to share the gdiplus linkage with the other dependencies automatically now
This commit is contained in:
parent
0070cbd2ad
commit
fc99b3ba95
|
@ -768,11 +768,6 @@ find_package( Fontconfig REQUIRED )
|
||||||
# Include MinGW resource compiler.
|
# Include MinGW resource compiler.
|
||||||
include( MinGWResourceCompiler )
|
include( MinGWResourceCompiler )
|
||||||
|
|
||||||
if( WIN32 )
|
|
||||||
# we need the gdiplus library for cairo printing on windows
|
|
||||||
set( GDI_PLUS_LIBRARIES gdiplus )
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Find ngspice library, required for integrated circuit simulator
|
# Find ngspice library, required for integrated circuit simulator
|
||||||
if( KICAD_SPICE )
|
if( KICAD_SPICE )
|
||||||
find_package( ngspice REQUIRED )
|
find_package( ngspice REQUIRED )
|
||||||
|
|
|
@ -44,6 +44,11 @@ set( GAL_SRCS
|
||||||
|
|
||||||
add_library( gal STATIC ${GAL_SRCS} )
|
add_library( gal STATIC ${GAL_SRCS} )
|
||||||
|
|
||||||
|
if( WIN32 )
|
||||||
|
# we need the gdiplus library for cairo printing on windows
|
||||||
|
set( GDI_PLUS_LIBRARIES gdiplus )
|
||||||
|
endif()
|
||||||
|
|
||||||
target_link_libraries( gal
|
target_link_libraries( gal
|
||||||
common # This is needed until the circular dependency is removed
|
common # This is needed until the circular dependency is removed
|
||||||
kimath
|
kimath
|
||||||
|
|
|
@ -76,7 +76,6 @@ target_link_libraries( cvpcb_kiface
|
||||||
kimath
|
kimath
|
||||||
${PCBNEW_IO_LIBRARIES}
|
${PCBNEW_IO_LIBRARIES}
|
||||||
${wxWidgets_LIBRARIES}
|
${wxWidgets_LIBRARIES}
|
||||||
${GDI_PLUS_LIBRARIES}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Must follow github_plugin
|
# Must follow github_plugin
|
||||||
|
|
|
@ -468,7 +468,6 @@ target_link_libraries( eeschema_kiface
|
||||||
scripting
|
scripting
|
||||||
sexpr
|
sexpr
|
||||||
${wxWidgets_LIBRARIES}
|
${wxWidgets_LIBRARIES}
|
||||||
${GDI_PLUS_LIBRARIES}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if( KICAD_SPICE )
|
if( KICAD_SPICE )
|
||||||
|
|
|
@ -156,7 +156,6 @@ target_link_libraries( gerbview_kiface
|
||||||
gal
|
gal
|
||||||
common
|
common
|
||||||
${wxWidgets_LIBRARIES}
|
${wxWidgets_LIBRARIES}
|
||||||
${GDI_PLUS_LIBRARIES}
|
|
||||||
)
|
)
|
||||||
set_source_files_properties( gerbview.cpp PROPERTIES
|
set_source_files_properties( gerbview.cpp PROPERTIES
|
||||||
# The KIFACE is in gerbview.cpp, export it:
|
# The KIFACE is in gerbview.cpp, export it:
|
||||||
|
|
|
@ -87,7 +87,6 @@ else()
|
||||||
gal
|
gal
|
||||||
common #repeated due to a circular dependency between gal and common
|
common #repeated due to a circular dependency between gal and common
|
||||||
${wxWidgets_LIBRARIES}
|
${wxWidgets_LIBRARIES}
|
||||||
${GDI_PLUS_LIBRARIES}
|
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,6 @@ target_link_libraries( pl_editor_kiface
|
||||||
gal
|
gal
|
||||||
common
|
common
|
||||||
${wxWidgets_LIBRARIES}
|
${wxWidgets_LIBRARIES}
|
||||||
${GDI_PLUS_LIBRARIES}
|
|
||||||
)
|
)
|
||||||
set_target_properties( pl_editor_kiface PROPERTIES
|
set_target_properties( pl_editor_kiface PROPERTIES
|
||||||
OUTPUT_NAME pl_editor
|
OUTPUT_NAME pl_editor
|
||||||
|
|
|
@ -719,7 +719,6 @@ set( PCBNEW_KIFACE_LIBRARIES
|
||||||
markdown_lib
|
markdown_lib
|
||||||
${PCBNEW_IO_LIBRARIES}
|
${PCBNEW_IO_LIBRARIES}
|
||||||
${wxWidgets_LIBRARIES}
|
${wxWidgets_LIBRARIES}
|
||||||
${GDI_PLUS_LIBRARIES}
|
|
||||||
${PYTHON_LIBRARIES}
|
${PYTHON_LIBRARIES}
|
||||||
${Boost_LIBRARIES}
|
${Boost_LIBRARIES}
|
||||||
${PCBNEW_EXTRA_LIBS} # -lrt must follow Boost
|
${PCBNEW_EXTRA_LIBS} # -lrt must follow Boost
|
||||||
|
|
|
@ -74,7 +74,6 @@ target_link_libraries( qa_pcbnew_utils PUBLIC
|
||||||
# unit_test_utils
|
# unit_test_utils
|
||||||
# ${PCBNEW_IO_LIBRARIES}
|
# ${PCBNEW_IO_LIBRARIES}
|
||||||
# ${wxWidgets_LIBRARIES}
|
# ${wxWidgets_LIBRARIES}
|
||||||
# ${GDI_PLUS_LIBRARIES}
|
|
||||||
# ${PYTHON_LIBRARIES}
|
# ${PYTHON_LIBRARIES}
|
||||||
# ${Boost_LIBRARIES} # must follow GITHUB
|
# ${Boost_LIBRARIES} # must follow GITHUB
|
||||||
# ${PCBNEW_EXTRA_LIBS} # -lrt must follow Boost
|
# ${PCBNEW_EXTRA_LIBS} # -lrt must follow Boost
|
||||||
|
|
Loading…
Reference in New Issue