From 99b640584f9f876373f0fe7e16ced4695c8048bb Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 6 Nov 2013 08:33:49 +0100 Subject: [PATCH] page layout editor: Add missing Info.plist for OSX. Mingw, all: remove static link of libgcc, which can create issues when using dll version of wxWidgets. Therefore libgcc_s_dw2-1.dll should be in the paths for executables. --- CMakeLists.txt | 9 ++++-- pagelayout_editor/Info.plist | 53 ++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 pagelayout_editor/Info.plist diff --git a/CMakeLists.txt b/CMakeLists.txt index c2440eb5cd..fe4ef5a6ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,10 +114,15 @@ if( CMAKE_COMPILER_IS_GNUCXX ) if( MINGW ) # Set default flags for Release build. - set( CMAKE_EXE_LINKER_FLAGS_RELEASE "-s -static-libgcc -static-libstdc++" ) + # Use a static link for libstdc++ reduce the starting time for Pcbnew (and eeschema) + # (10 times faster) + # This problem is caused by large relocation table and inefficient MinGW implementation + # see http://sourceforge.net/p/mingw/bugs/1747/ and also + # http://stackoverflow.com/questions/15310996/clang-slow-startup-using-mingw + set( CMAKE_EXE_LINKER_FLAGS_RELEASE "-s -static-libstdc++" ) # Set default flags for Debug build. - set( CMAKE_MODULE_LINKER_FLAGS "-static-libgcc -static-libstdc++") # SWIG macros on Windows + set( CMAKE_MODULE_LINKER_FLAGS "-static-libstdc++") else() # We build DLL/DSOs from static libraries, so create position independent code diff --git a/pagelayout_editor/Info.plist b/pagelayout_editor/Info.plist new file mode 100644 index 0000000000..99bd82ca0c --- /dev/null +++ b/pagelayout_editor/Info.plist @@ -0,0 +1,53 @@ + + + + + CFBundleDocumentTypes + + + CFBundleTypeRole + Editor + CFBundleTypeExtensions + + kicad_wks + + CFBundleTypeIconFile + pl_editor.icns + CFBundleTypeName + pl_editor document + LSHandlerRank + Owner + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + pl_editor + CFBundleGetInfoString + + CFBundleIconFile + pl_editor.icns + CFBundleIdentifier + org.kicad-eda.pl_editor + CFBundleInfoDictionaryVersion + 6.0 + CFBundleLongVersionString + + CFBundleName + pl_editor + CFBundlePackageType + APPL + CFBundleShortVersionString + + CFBundleSignature + ???? + CFBundleVersion + + CSResourcesFileMapped + + LSRequiresCarbon + + NSHumanReadableCopyright + + +