From: <sm...@us...> - 2009-03-24 08:20:17
|
Revision: 9770 http://plplot.svn.sourceforge.net/plplot/?rev=9770&view=rev Author: smekal Date: 2009-03-24 08:20:09 +0000 (Tue, 24 Mar 2009) Log Message: ----------- The import library for libplplotf95d.dll is now created for the gfortran compiler. Added the definition file with to be exported symbols for MinGW. Modified Paths: -------------- trunk/bindings/f95/CMakeLists.txt Added Paths: ----------- trunk/bindings/f95/plplotf95_mingw.def Modified: trunk/bindings/f95/CMakeLists.txt =================================================================== --- trunk/bindings/f95/CMakeLists.txt 2009-03-22 06:06:51 UTC (rev 9769) +++ trunk/bindings/f95/CMakeLists.txt 2009-03-24 08:20:09 UTC (rev 9770) @@ -74,6 +74,11 @@ scstubs.c ) + if(BUILD_SHARED_LIBS) + SET_SOURCE_FILES_PROPERTIES(${plplotf95c${LIB_TAG}_LIB_SRCS} + PROPERTIES COMPILE_FLAGS "-DUSINGDLL" ) + endif(BUILD_SHARED_LIBS) + add_library(plplotf95c${LIB_TAG} ${plplotf95c${LIB_TAG}_LIB_SRCS}) target_link_libraries(plplotf95c${LIB_TAG} plplot${LIB_TAG}) @@ -111,21 +116,26 @@ sfstubs.h ) - if(WIN32 AND BUILD_SHARED_LIBS) + if(WIN32 AND BUILD_SHARED_LIBS AND NOT MINGW) SET(plplotf95${LIB_TAG}_LIB_SRCS ${plplotf95${LIB_TAG}_LIB_SRCS} plplotf95.def) - endif(WIN32 AND BUILD_SHARED_LIBS) + endif(WIN32 AND BUILD_SHARED_LIBS AND NOT MINGW) - if(BUILD_SHARED_LIBS) - SET_SOURCE_FILES_PROPERTIES(${plplotf95c${LIB_TAG}_LIB_SRCS} - PROPERTIES COMPILE_FLAGS "-DUSINGDLL" ) - endif(BUILD_SHARED_LIBS) - # Explicitly include dependencies for sfstubsf95.f90 include(AddFileDependencies) add_file_dependencies(sfstubsf95.f90 ${CMAKE_CURRENT_BINARY_DIR}/plflt.inc) add_library(plplotf95${LIB_TAG} ${plplotf95${LIB_TAG}_LIB_SRCS}) + if(MINGW AND BUILD_SHARED_LIBS) + add_custom_command( + TARGET plplotf95${LIB_TAG} + POST_BUILD + COMMAND dlltool libplplotf95${LIB_TAG}.dll -d ${CMAKE_CURRENT_SOURCE_DIR}/plplotf95_mingw.def -l libplplotf95${LIB_TAG}.dll.a + WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/dll + COMMENT "Creating library file: libplplotf95${LIB_TAG}.dll.a" + ) + endif(MINGW AND BUILD_SHARED_LIBS) + target_link_libraries(plplotf95${LIB_TAG} plplotf95c${LIB_TAG}) if(USE_RPATH) Added: trunk/bindings/f95/plplotf95_mingw.def =================================================================== --- trunk/bindings/f95/plplotf95_mingw.def (rev 0) +++ trunk/bindings/f95/plplotf95_mingw.def 2009-03-24 08:20:09 UTC (rev 9770) @@ -0,0 +1,78 @@ +; +EXPORTS + plparseopts_ + __plplotp_MOD_plaxes + __plplotp_MOD_plbox3 + __plplotp_MOD_plbox + __plplotp_MOD_plcontour_0 + __plplotp_MOD_plcontour_1 + __plplotp_MOD_plcontour_2 + __plplotp_MOD_plcontour_tr + __plplotp_MOD_plcontour_0_all + __plplotp_MOD_plcontour_1_all + __plplotp_MOD_plcontour_2_all + __plplotp_MOD_plcontour_tr_all + __plplotp_MOD_plgdev + __plplotp_MOD_plgfnam + __plplotp_MOD_plgver + __plplotp_MOD_plimagefr_0 + __plplotp_MOD_plimagefr_1 + __plplotp_MOD_plimagefr_2 + __plplotp_MOD_plimagefr_tr + __plplotp_MOD_pllab + __plplotp_MOD_plmap + __plplotp_MOD_plmeridians + __plplotp_MOD_plmtex3 + __plplotp_MOD_plmtex + __plplotp_MOD_plptex3 + __plplotp_MOD_plptex + __plplotp_MOD_plsdev + __plplotp_MOD_plsetopt + __plplotp_MOD_plsfnam + __plplotp_MOD_plshade_single_0 + __plplotp_MOD_plshade_single_1 + __plplotp_MOD_plshade_single_2 + __plplotp_MOD_plshade_single_tr + __plplotp_MOD_plshades_multiple_0 + __plplotp_MOD_plshades_multiple_1 + __plplotp_MOD_plshades_multiple_2 + __plplotp_MOD_plshades_multiple_tr + __plplotp_MOD_plstart + __plplotp_MOD_pltimefmt + __plplotp_MOD_plvectors_0 + __plplotp_MOD_plvectors_1 + __plplotp_MOD_plvectors_2 + __plplotp_MOD_plvectors_tr + __plplot_MOD_plbin + __plplot_MOD_plcpstrm + __plplot_MOD_plerrx + __plplot_MOD_plerry + __plplot_MOD_plfill + __plplot_MOD_plfill3 + __plplot_MOD_plgriddata + __plplot_MOD_plhist + __plplot_MOD_plimage + __plplot_MOD_plline + __plplot_MOD_plline3 + __plplot_MOD_plmesh + __plplot_MOD_plmeshc + __plplot_MOD_plot3d + __plplot_MOD_plot3dc + __plplot_MOD_plrandd + __plplot_MOD_plspause + __plplot_MOD_plsurf3d + __plplot_MOD_plpoin + __plplot_MOD_plpoin3 + __plplot_MOD_plpoly3 + __plplot_MOD_plscmap0 + __plplot_MOD_plscmap0a + __plplot_MOD_plscmap1 + __plplot_MOD_plscmap1a + __plplot_MOD_plscmap1l + __plplot_MOD_plscmap1la + __plplot_MOD_plscmap1la2 + __plplot_MOD_plscmap1l2 + __plplot_MOD_plstripc + __plplot_MOD_plsvect + __plplot_MOD_plsym + __plplot_MOD_plxormod Property changes on: trunk/bindings/f95/plplotf95_mingw.def ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |