File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -3833,6 +3833,9 @@ void QgisApp::loadPythonSupport()
3833
3833
QString pythonlibName (" qgispython" );
3834
3834
#ifdef Q_WS_MAC
3835
3835
pythonlibName.prepend (QgsApplication::prefixPath () + " /lib/" );
3836
+ #endif
3837
+ #ifdef __MINGW32__
3838
+ pythonlibName.prepend (" lib" );
3836
3839
#endif
3837
3840
QLibrary pythonlib (pythonlibName);
3838
3841
// It's necessary to set these two load hints, otherwise Python library won't work correctly
Original file line number Diff line number Diff line change 1
- SET (TARGET_NAME "qgispython" )
2
-
3
1
IF (WIN32 )
4
2
IF (MSVC )
5
3
ADD_DEFINITIONS ("-DPYTHON_EXPORT=__declspec(dllexport)" )
6
4
ELSE (MSVC )
7
5
ADD_DEFINITIONS ("\" -DPYTHON_EXPORT=__declspec(dllexport)\" " )
8
- SET (TARGET_NAME "libqgispython" )
9
6
ENDIF (MSVC )
10
7
ELSE (WIN32 )
11
8
# other compilers don't use that MSVC construct
@@ -22,20 +19,20 @@ INCLUDE_DIRECTORIES(
22
19
../gui
23
20
${PYTHON_INCLUDE_PATH} )
24
21
25
- ADD_LIBRARY (${TARGET_NAME} SHARED ${QGISPYTHON_SRCS} )
22
+ ADD_LIBRARY (qgispython SHARED ${QGISPYTHON_SRCS} )
26
23
27
- SET_TARGET_PROPERTIES (${TARGET_NAME} PROPERTIES
24
+ SET_TARGET_PROPERTIES (qgispython PROPERTIES
28
25
VERSION ${CPACK_PACKAGE_VERSION_MAJOR} .${CPACK_PACKAGE_VERSION_MINOR}
29
26
SOVERSION ${CPACK_PACKAGE_VERSION_MAJOR} .${CPACK_PACKAGE_VERSION_MINOR} )
30
27
31
28
32
- TARGET_LINK_LIBRARIES (${TARGET_NAME}
29
+ TARGET_LINK_LIBRARIES (qgispython
33
30
${QT_QTCORE_LIBRARY}
34
31
${QT_QTGUI_LIBRARY}
35
32
${PYTHON_LIBRARIES}
36
33
qgis_core
37
34
)
38
35
39
- INSTALL (TARGETS ${TARGET_NAME}
36
+ INSTALL (TARGETS qgispython
40
37
RUNTIME DESTINATION ${QGIS_BIN_DIR}
41
38
LIBRARY DESTINATION ${QGIS_LIB_DIR} )
You can’t perform that action at this time.
0 commit comments