Commit Graph

139 Commits

Author SHA1 Message Date
Kunda
31b0233393 source typo fixes pt6 2017-03-07 13:43:46 -03:00
Yorik van Havre
9f44809e9e Updated translations with latest files from crowdin 2017-03-06 11:53:09 -03:00
Bruce B. Lacey
2a88721102 Install macOS bundle executables into MacOS
* Previously, the macOS bundle executables were installed into
    bin which does not adhere to Apple guidelines and causes
    issues with certain frameworks like Qt.  The install has
    been refactored to install the executables into MacOS

Fixes #2928
2017-03-01 09:33:28 +01:00
Bruce B. Lacey
f7babe06f1 Qt5: build FreeCAD for macOS with both Qt5 and Qt4
* Extend Travis config to build and deploy FreeCAD on
     macOS with Qt5, in addition to Qt4
   * Link PySide wrapper to <bundle>/MacOS
   * Warn on install_name_tool failures (work-around to
     confirmed Apple install_name_tool bug)
   * Reference XCTest "Current" framework versus "A"
2017-02-27 10:30:36 +01:00
Bruce B. Lacey
e8f80da3a1 Packaging: macOS relocation of libraries without children
* macOS install path must be <bundle>/MacOS in order for
    QLibrary to find qt.conf to set the correct bundle paths
  * Refactored to add an explicit graph traversal to set the
    dynamic loader id to handle the case where a bundled
    resource does not have any children
  * Fixed the case where rpaths were not removed from
    libraries without children
  * Improved diagnostics when bundling fail to finds
    a dependent library in the search path

Mantis: #0002886
Refs: #535
2017-02-23 20:28:17 -08:00
Bruce B. Lacey
bb80968e6e Packaging: Set macOS dynamic loader paths
*  DYLD paths are set properly to prevent loading libraries external
     to the bundle
  a. LC_ID_DYLD is set to the basename of the library name (i.e.
     not the absolute path) when it is copied into the bundle
  b. Existing LC_RPATH entries in libraries are removed before adding
     the bundle-relative RPATH
  *  Added configurable diagnostic logging to aid in debugging

Fixes 0002886
2017-02-19 01:16:59 -08:00
wmayer
7ba2217617 py3: ported module init to python3 2017-02-04 15:56:31 +01:00
wmayer
7630e6bc2b make sure that the passed 'self' pointer to a method of the Python wrapper is never null 2017-01-24 12:34:23 +01:00
looooo
8d8dec9f3d python3: dict.has_key("key") --> "key" in dict 2017-01-20 00:06:58 -02:00
Mateusz Skowroński
ce1c021132 * Cosmetic change. Replace Qt keyword emit with Q_EMIT.
* Whitespace fixes.
2017-01-05 22:57:30 +01:00
wmayer
c33f73eb99 use Qt WebKit module 2016-12-13 19:48:22 +01:00
wmayer
0031e13953 extend generation framework to set Python class name 2016-12-03 12:50:36 +01:00
Kurt Kremitzki
53250c4a6a Fix English typo 2016-11-30 01:14:09 -06:00
Kurt Kremitzki
63ce3e1369 Fix English typo 2016-11-30 01:13:21 -06:00
wmayer
2478c9847b fix bug in generation script 2016-10-08 18:48:27 +02:00
wmayer
f1127dd2f4 Fix issues:
+ improve formatting
+ remove superfluous semicolons
+ comment unused parameters
+ rename Initialisation to Initialization
+ rename Deinitialisation to Finalization
+ remove spaces
2016-10-08 12:48:34 +02:00
Stefan Tröger
88484d7054 Extensions: Allow them to be added dynamically 2016-10-08 12:48:34 +02:00
Stefan Tröger
552fe52774 Extensions: Show up in the python interface 2016-10-08 12:48:34 +02:00
wmayer
9a411f9857 support creating Python workbench with fcbt 2016-10-04 19:40:47 +02:00
wmayer
1e4881184f add template for Python workbench 2016-10-04 19:29:53 +02:00
wmayer
f6e1cb6025 fix -Wextra in Mesh 2016-09-23 17:24:00 +02:00
wmayer
d88ecd5f56 fix -Wunused-parameter 2016-09-23 16:37:12 +02:00
wmayer
39e589a4d7 fix -Wextra in FreeCADBase 2016-09-21 15:02:02 +02:00
jriegel
5c15125451 add .gitignore for *.pyc files 2016-04-12 18:11:45 +02:00
wmayer
c74226f7a7 + increase minor and build number, rework creation of Version.h 2016-04-09 15:15:29 +02:00
Yorik van Havre
0f259a2c54 fixed wrong info in fcinfo tool 2016-03-28 00:27:43 -03:00
Bruce B. Lacey
a14caacabc Improved Mac OS X Application Packaging.
1.  Set python dependency paths in Application Bundle adhering the Homebrew convention of installing them in prefix/libexec
   2.  Add appdmg configuration to produce an os x disk image for FreeCAD application distribution
   3.  Added a Tools convenience script to produce an archive name from a serialized Version.h file using the convention FreeCAD_{Major Version Number}.{Minor Version Number}-{Git Revision Count}.{Git Short SHA}-{OS}-{Arch}
2016-03-07 20:49:58 -08:00
Yorik van Havre
6ffea8cc39 Updated translation tools 2016-03-01 12:34:16 -03:00
maurerpe
2e4efb5b10 Fix remaining toAscii/fromAscii
Qt5 does not have toAscii or fromAscii.  Use toLatin1 and fromLatin1
respectively.  Both replacement functions exist in Qt4.8.
2016-02-24 23:56:43 +01:00
Yorik van Havre
371034608b Updated offline pdf generation tool 2016-02-14 19:28:32 -02:00
Yorik van Havre
4c272535e8 updated offline doc tools to handle the Command_Reference pages 2016-02-13 20:36:28 -02:00
Yorik van Havre
1c08147821 Updated version number in offline doc tools and removed unnecessary file 2016-02-11 19:57:43 -02:00
Yorik van Havre
3106ca7df3 Added slovenian language 2016-02-03 13:36:51 -02:00
Ian Rees
7a60805a2d Added notes + warnings to mac app bundle tool. 2016-01-27 18:07:08 +13:00
Ian Rees
a600aa237f Add /Library/Frameworks/ to known system libraries
Fixes issue where the 3Dconnexion drivers weren't found in relocateable
mac application bundles.
2016-01-23 19:23:11 +13:00
Ian Rees
8cb77d8d27 Prevent adding duplicate rpaths to bundled libs 2016-01-23 19:23:11 +13:00
wmayer
4608d06942 + simplify porting of template module to Python3 2016-01-17 19:17:00 +01:00
Yorik van Havre
8a7768a04a Added script to check download stats on github 2016-01-05 12:24:57 -02:00
wmayer
5427fad693 + Add Python example of embedding FreeCAD 2015-11-20 22:35:26 +01:00
wmayer
2f44dbfc7e + move module Python stuff into C++ class 2015-10-24 18:16:17 +02:00
wmayer
24815ac196 + remove Py_TPFLAGS_BASETYPE flag for all generated Python bindings because they can't be sub-classed in Python 2015-10-12 19:59:58 +02:00
wmayer
6b67d4a4e7 + replace old C casts with static_cast in generated C++ code, remove unused parent structure of Python classes, support of -1 as return value of setCustomAttributes 2015-09-27 22:08:08 +02:00
Mateusz Skowroński
05f95c0506 Fix files encoding. Go from ISO8859-1 to UTF-8. 2015-09-21 19:50:49 -03:00
Yorik van Havre
4f481d4184 Updated ts & crowdin scripts with latest modules and languages 2015-09-14 14:31:27 -03:00
Yorik van Havre
2d269951ee Added Tools/githubstats.py script to check download stats from github 2015-09-08 00:18:31 -03:00
wmayer
9974bc36b6 + update template module 2015-07-28 15:07:27 +02:00
Sebastian Hoogen
4030703f66 remove sourceforge git url 2015-07-19 20:27:04 +02:00
Yorik van Havre
abba688ee5 Added fcinfo utility
This utility prints information about a given FreeCAD file (*.FCStd)
on screen, including document properties, number of included objects
and object sizes.

It can be used as a textconv tool for git diff by adding this utility to
your exec path andadding this entry to .gitattributes: *.fcstd diff=fcinfo

Usage: fcinfo myfile.FCStd
2015-06-27 20:01:35 -03:00
Ian Rees
962bd63311 Improves build on MacOS with Homebrew or MacPorts
Squashed commit of the following:

commit e158a2049b922cead90cee4a9d3814093db8d00d
Merge: e7c5c06 d545f5b
Author: Ian Rees <ian.rees@gmail.com>
Date:   Wed Mar 25 17:08:56 2015 +1300

    Merge branch 'mac-app-bundle' into macports-build-1

commit d545f5b0de0efa6a0fd020ac98bb6809d9254019
Author: Ian Rees <ian.rees@gmail.com>
Date:   Thu Mar 19 22:30:20 2015 +1300

    Minor fixes to Mac application bundle creation

commit e7c5c0630b47e89fc719259f3d81be724627f915
Author: Ian Rees <ian.rees@gmail.com>
Date:   Thu Mar 19 16:35:34 2015 +1300

    Report error if no OpenCasCADe found

commit 976b51c13a1619acf66b9d4fad5594fee292aa76
Author: Ian Rees <ian.rees@gmail.com>
Date:   Thu Mar 19 16:30:47 2015 +1300

    Detects OCE automatically on Homebrew and MacPorts

commit 1cc477f77f388f2ccb26f3884320819f8cb33249
Author: Ian Rees <ian.rees@gmail.com>
Date:   Tue Mar 17 15:00:34 2015 +1300

    Find PySide and Shiboken automagically on MacPorts

commit 8bf2ebf7397a1c8c4b1b6f1d97e303f335ab47d7
Author: Ian Rees <ian.rees@gmail.com>
Date:   Mon Mar 16 23:05:35 2015 +1300

    Finds the Python include dir and library on OSX

commit 8bba9b2c78cfe65d7c295c4c99f0a176e1281539
Author: Ian Rees <ian.rees@gmail.com>
Date:   Mon Mar 16 17:31:43 2015 +1300

    Detects Python executable in MacPorts or Homebrew

commit 349a2e0e5c4d370c331bdb54d80d8f4323db8a6b
Author: Ian Rees <ian.rees@gmail.com>
Date:   Mon Mar 16 08:25:16 2015 +1300

    Missing correct Python lib is error on cmake-ing

commit 1625fe7c1c7fb2d944b04d93be8cf90d5c829be9
Author: Ian Rees <ian.rees@gmail.com>
Date:   Sun Mar 15 21:06:08 2015 +1300

    Find PySide's UIC and RCC tools properly on MacPorts
2015-04-01 14:40:34 +02:00
Peter Lama
00b9f8e1d4 + get version number from Version.h 2015-04-01 12:02:51 +02:00