Compare commits

...

680 commits

Author SHA1 Message Date
Marius Kintel
2f7f645528 Added 3MF export/import test 2016-10-23 22:05:53 -04:00
Marius Kintel
eaae63dd9c cosmetics 2016-10-23 22:05:14 -04:00
Marius Kintel
6c3724415c Merge remote-tracking branch 'origin/master' into 3mf-import-export 2016-10-23 21:51:50 -04:00
Marius Kintel
cfd46eaa3a #1822 - trivial export/import test for all bidirectionally supported file formats 2016-10-23 21:21:05 -04:00
Marius Kintel
b0f567ccd2 Merge branch 'master' of github.com:openscad/openscad 2016-10-23 20:36:19 -04:00
Marius Kintel
40e0db27d8 qscintilla 2.9.3 2016-10-23 20:36:11 -04:00
Marius Kintel
cc2f80c093 Merge pull request #1827 from openscad/assert-feature
Assert feature
2016-10-23 20:15:24 -04:00
Torsten Paul
9df3a9f198 Add test cases. 2016-10-23 02:17:01 +02:00
Torsten Paul
87adbd4363 Add assert() expression and statement. 2016-10-23 02:17:01 +02:00
Torsten Paul
b0c8c6761f Encode error/warning messages when writing to console window. 2016-10-22 23:59:33 +02:00
Torsten Paul
031b7ddd7e Show homebrew installation progress. 2016-10-12 22:07:03 +02:00
Torsten Paul
6dd22ccb01 Update for MXE build. 2016-10-10 18:13:12 +02:00
Torsten Paul
64f89228d0 Force binary stream mode for 3MF export. 2016-10-10 18:13:12 +02:00
Torsten Paul
e40ec7b0e9 Fix crash if conversion from Geometry to NEF-Polyhedron failed. 2016-10-10 18:13:12 +02:00
Marius Kintel
3af7c6955b Added lib3mf 2016-10-10 18:13:12 +02:00
Torsten Paul
666ebc69e6 Make 3MF import/export experimental. 2016-10-10 18:13:12 +02:00
Torsten Paul
b779162979 Add lib3mf to homebrew build via openscad tap. 2016-10-10 18:13:12 +02:00
Torsten Paul
e6466a2618 Move travis package install to separate script. 2016-10-10 18:13:12 +02:00
Torsten Paul
5aa8d454eb Add 3MF export. 2016-10-10 17:54:59 +02:00
Torsten Paul
6f15a263c6 Add 3MF import. 2016-10-10 17:54:59 +02:00
Marius Kintel
5cb40a2aee Merge pull request #1821 from openscad/issue1803
#1803: Fixed regression - intersections with difference child failed to preview correctly
2016-10-08 14:21:09 +02:00
Marius Kintel
29bc3fe634 #1803 bugfix: Intersections with a left-side operation failed to render properly. Regression introduced in 44a0632751 2016-10-08 12:39:50 +02:00
Marius Kintel
de7550fdfd Added testcase for #1803 2016-10-08 12:38:32 +02:00
Marius Kintel
5893b88db2 Merge branch 'master' of github.com:openscad/openscad 2016-10-07 15:35:59 +02:00
Marius Kintel
06c2847b58 Bumped OpenCSG to 1.4.2 2016-10-07 15:35:46 +02:00
Marius Kintel
836f9ff8de Merge pull request #1817 from openscad/wininfo_fix_2016
Wininfo fix 2016 for issue #1800
2016-10-07 13:03:49 +02:00
Don Bright
42d3003c39 typo fix 2016-10-06 21:35:59 -05:00
Don Bright
c2df8a6f42 fix previous commit (show fmt.str() ) 2016-10-06 21:33:28 -05:00
Torsten Paul
569c11fbde Don't rely on return status from brew ls --versions.
This seems to have changed with the Taravis macOS environment upgrade
to travis-ci-osx10.11-xcode7.3.
2016-10-07 03:52:22 +02:00
Don Bright
3531feb6ae in which i remove a semi colon because it makes the compiler unhappy 2016-10-06 20:22:57 -05:00
Don Bright
933344b869 forgot to add winmanifest.xml , simplify sysinfo string 2016-10-06 19:18:18 -05:00
Torsten Paul
aa5289b59b Merge pull request #1819 from openscad/qt4-compile-fix
Remove clearButtonEnabled property introduced with #1767.
2016-10-07 01:45:07 +02:00
Torsten Paul
5d692b95fc Remove clearButtonEnabled property introduced with #1767.
This breaks compilation with Qt4 as the property was added in Qt5.2.
2016-10-07 01:30:21 +02:00
Marius Kintel
9592df2bbd Merge pull request #1767 from onewhl/issue962
Redesign find and replace panel
2016-10-07 01:04:01 +02:00
Marius Kintel
7a17e50982 Merge pull request #1772 from vesim987/master
fix: Qt moved QT_VERSION_STR to qconfig.h
2016-10-07 00:46:28 +02:00
don bright
5bfb66d0e5 detect windows 10 w manifest. cleanup stuff related to old versions (XP etc) 2016-10-05 00:35:45 -05:00
don bright
0eadea0b71 second attempt to add manifest 2016-10-04 23:08:56 -05:00
don bright
f4dc1bfcce attempt to add windows (TM) manifest file 2016-10-04 22:30:49 -05:00
don bright
1da3a2daa1 basic refactor so the sysinfo() code is legible 2016-10-04 22:21:29 -05:00
Marius Kintel
7e0935d02c sync 2016-10-01 01:32:42 +02:00
Marius Kintel
d75cf8c234 Merge pull request #1804 from clothbot/patch-4
File names changed to QScintilla_gpl-2.9.2.tar.gz
2016-09-23 00:25:03 -04:00
Andrew Plumb
40b6e5007d File names changed to QScintilla_gpl-2.9.2.tar.gz
Looks like the project decided to change QScintilla-gpl-* to QScintilla_gpl-* in version 2.9.2 and 2.9.3.
2016-09-22 18:04:10 -04:00
Marius Kintel
7020e60e99 Merge pull request #1799 from openscad/png-export-exit-status
Indicate failure to create offscreen buffer for PNG export with non-zero exit status.
2016-09-21 23:49:23 -04:00
Marius Kintel
4a0f3b2ad5 Make sure new assignments get a location 2016-09-19 16:17:49 -04:00
Marius Kintel
9331e48c19 Added ASTNode::setLocation() 2016-09-19 16:11:47 -04:00
Torsten Paul
fbf6db2d12 Latest libxml2 from MXE needs to link against liblzma. 2016-09-18 19:31:29 +02:00
Torsten Paul
c854662766 Indicate failure to create offscreen buffer for PNG export with non-zero exit status. 2016-09-18 19:21:32 +02:00
Torsten Paul
a5e4def690 Add libxml2. 2016-09-17 23:22:04 +02:00
Marius Kintel
2bd8a2ed14 Merge pull request #1789 from senttech/l10n-pl
Polish translation
2016-09-16 00:51:04 -04:00
Marius Kintel
3531d9ad21 Merge pull request #1794 from SlesarevIlya/master
Fix Russian translation
2016-09-16 00:44:07 -04:00
don bright
a2e658e709 use qt4 on kde neon linux distro, issue #1792 2016-09-15 03:50:24 -05:00
don bright
7b43c83abb Merge branch 'master' of github.com:openscad/openscad 2016-09-14 22:27:23 -05:00
don bright
b2b3f8ef29 Merge pull request #1790 from yeus/master
dependency helper scripted adapted for KDE Neon distribution
2016-09-14 22:26:30 -05:00
don bright
e65a2b2bd6 dont look at /etc/fedora-release if it doesnt exist (prevent error) 2016-09-14 22:21:31 -05:00
Thomas.Meschede
f0b34548ec dependency helper scripted adapted for KDE Neon distribution 2016-09-14 10:06:21 +02:00
SlesarevIlya
0a2ed5baf4 Merge branch 'master' of git://github.com/openscad/openscad 2016-09-14 01:19:04 +03:00
SlesarevIlya
e580c8499f Fix Russian translation 2016-09-14 01:05:56 +03:00
MarPiRK
7a5ddc96a5 Polish translation
Also updated pot file.
2016-09-13 23:39:17 +02:00
Marius Kintel
4a0ac7b2fa Updated to OpenCSG 1.4.1 2016-09-11 14:40:52 -04:00
don bright
ba26a08d1b fix build on ubuntu 16 by upgrading version of gmp + cgal 2016-09-09 01:27:12 +00:00
don bright
31211c6b7f improve QtOpenGLWidget gl format reporting 2016-09-04 18:37:35 -05:00
don bright
2d5504bcc6 allow build with system supplied fontconfig,libxml2 even if we have
other dependencies built (this makes it easier for example to build
against just our own custom opencsg or just our own custom boost version)
2016-09-04 16:05:49 -05:00
don bright
fb30128f6c try to fix Xvfb PID detection for Travis CI ubuntu 14 2016-09-04 00:55:18 -05:00
don bright
1852230ade repair indentation to original state 2016-09-02 22:07:33 -05:00
don bright
67170488ef fix segfault crash when DISPLAY is empty (getenv returned null pointer) 2016-09-02 22:05:01 -05:00
Marius Kintel
77782d24f6 Added note about script running to fast to catch the VFB PID 2016-09-01 23:50:00 -04:00
Marius Kintel
a47e303b0d Minor fix: Moved isListComprehension() out of the Expression API 2016-09-01 23:24:27 -04:00
Marius Kintel
acb5b6fc03 Merge branch 'master' of github.com:openscad/openscad 2016-09-01 22:37:38 -04:00
Marius Kintel
f82bb52b17 Use proper qscintilla2 package. Don't unlink boost. Fixes #1784 2016-09-01 22:37:35 -04:00
Marius Kintel
4272a97d76 Merge pull request #1782 from openscad/ppc64buildfix2016
Ppc64buildfix2016
2016-09-01 22:33:57 -04:00
don bright
733562b1ee fix build on newer fedora 2016-08-25 23:50:58 +00:00
Don Bright
9dd6ddf9b9 prevent font direction bug by upgrading freetype version 2016-08-25 01:19:16 -04:00
Don Bright
c78275eca4 avoid font direction bug by upgrading harfbuzz version 2016-08-25 01:02:52 -04:00
Don Bright
65c252665a Merge branch 'ppc64buildfix2016' of github.com:openscad/openscad into ppc64buildfix2016 2016-08-25 01:01:06 -04:00
Don Bright
3d5c11b077 fix bug with directional font rendering by upgrading harfbuzz version 2016-08-25 01:00:10 -04:00
don bright
e3acb6c79f qscintilla build workarounds 2016-08-25 04:30:13 +00:00
don bright
7e930cdd3b actually build diffpng if needed 2016-08-25 04:13:08 +00:00
Don Bright
c53fa5a64e fix for debian 8 build 2016-08-24 23:31:47 -04:00
don bright
a42b2dda6f build fixes for gcc110 (IBM ppc64 gcc farm machine at OSUOSL) 2016-08-25 03:10:34 +00:00
Don Bright
8b7b6fb165 build on ElementaryOS 2016-08-24 07:14:39 -05:00
Marius Kintel
c55572313c Merge pull request #1780 from openscad/issue1775
Fix #1775: Remove fglrx drivers
2016-08-21 14:45:50 -04:00
Marius Kintel
68af43cad8 Fix #1775: Remove fglrx drivers which were recently introduced to travis ci 2016-08-21 13:43:41 -04:00
Marius Kintel
7dba7bd77c Merge pull request #1779 from onewhl/issue801p2
Fix issue801. Made Undo button disabled when nothing to undo
2016-08-21 13:37:52 -04:00
onewhl
742ac16849 change parameter in isUndoAvailabel() 2016-08-21 01:49:26 +03:00
onewhl
5f7135fb6e added checking undo stack 2016-08-21 01:04:10 +03:00
Marius Kintel
222b79ccf4 Merge pull request #1771 from onewhl/fixreplace
Fix replace function: when selected string is empty do not replace
2016-08-20 13:20:11 -04:00
Marius Kintel
1d8676ff67 Merge pull request #1776 from onewhl/issue1392
Fix issue #1392. Added folding else/if
2016-08-20 13:16:05 -04:00
don bright
37bc956ba3 fix test build on ubuntu 16 lts 2016-08-18 22:13:23 -05:00
don bright
95fc916d78 fix issue #1542 reported by chrysn + clarify dump of .xsession-errors 2016-08-18 20:38:41 -05:00
Don Bright
f13005d9cc clairfy MXE mingw Windows cross build, use 64bit as default and 32bit optional 2016-08-18 19:41:22 -05:00
onewhl
d99817c662 add folding else_if 2016-08-18 23:50:50 +03:00
Marius Kintel
156ec5c9cb Merge pull request #1759 from Martin005/patch-1
Update cs.po
2016-08-17 18:29:15 -04:00
vesim987
eaabf670ca fix: Qt moved QT_VERSION_STR to qconfig.h 2016-08-14 16:49:36 +02:00
onewhl
bc1c3e0e90 fix replaceSelectedText 2016-08-12 20:40:05 +03:00
Don
af338f3575 fix ubuntu 16 build 2016-08-11 20:52:50 -05:00
Zarina Kurbatova
0afe980c17 fix tab 2016-08-11 13:51:05 +04:00
onewhl
190eb49140 redesign find and replace panel 2016-08-11 12:44:16 +03:00
Torsten Paul
b8c796c664 Fix static mingw build. 2016-08-07 21:04:17 +02:00
Martin Chrástek
8eb5d15ca3 Update cs.po 2016-07-26 15:34:15 +02:00
Marius Kintel
1c4c93149b Merge pull request #1752 from lewisjb/master
Fixed README
2016-07-25 10:20:10 -04:00
lewisjb
2d4c78c0a2 Fixed README 2016-07-25 19:01:39 +10:00
Marius Kintel
9519cc9939 Escape html characters in text test output 2016-07-22 15:16:19 -04:00
Marius Kintel
e0c0b70bde Merge pull request #1745 from openscad/filemodule-cleanup
Filemodule cleanup
2016-07-22 13:14:06 -04:00
Marius Kintel
f4d9f50a32 No need to dynamic_cast as the return type is already correct 2016-07-22 12:12:40 -04:00
Marius Kintel
e8ee266f3c Refactoring bugfix: Make sure to initiate usedlibs_p at the right time 2016-07-22 12:12:09 -04:00
Marius Kintel
196cf61c21 Refactoring bugfix: Accidentally moved initializeModule() out of the try block 2016-07-21 17:21:22 -04:00
Marius Kintel
6f71c7c889 Green refactor: Remove need for a mutable FileContext pointer in FileModule 2016-07-21 15:28:15 -04:00
Marius Kintel
4c89a65174 Green refactor: No need for a module parameter to the FileContext constructor 2016-07-21 14:38:42 -04:00
Marius Kintel
f3b3738e68 fix: There is no need to ever clear the font cache 2016-07-21 12:57:27 -04:00
Marius Kintel
e118f467eb cosmetics 2016-07-21 12:56:19 -04:00
Marius Kintel
9e6b9fbdd1 Update ignores 2016-07-20 16:29:21 -04:00
Marius Kintel
d938b7a794 Fix deprecated DebugAssert on OS X 10.8+ 2016-07-20 15:49:27 -04:00
Marius Kintel
a0d9273129 Turn off parallel tests on trusty 2016-07-20 14:05:37 -04:00
Marius Kintel
4bfbb94f26 Updated class hierarchy 2016-07-20 13:50:19 -04:00
Marius Kintel
e977ab388b More travis debug output 2016-07-19 18:32:52 -04:00
Marius Kintel
2c56845fe8 Merge pull request #1716 from openscad/travis-osx
Travis build for OS X & Trusty
2016-07-19 17:41:07 -04:00
Marius Kintel
194da52df0 Merge pull request #834 from openscad/svg-import
SVG Import
2016-07-19 16:52:05 -04:00
Marius Kintel
a7d94ad0f8 Enable DIST-specific test parallelization 2016-07-19 16:50:13 -04:00
Marius Kintel
d28811864b Disable svgpngtest_text-font-direction-tests (#899) 2016-07-19 16:00:34 -04:00
Marius Kintel
9bcab11129 Added OS X build and trusty build to travis config 2016-07-19 15:32:27 -04:00
Marius Kintel
82e824a507 Added experimental + nogui to coverity build 2016-07-19 15:26:17 -04:00
Marius Kintel
044b6acfa6 Clarified some ambiguous math library usage (int vs. double) 2016-07-19 15:06:06 -04:00
Marius Kintel
bd20fe6bf8 Added experimental SVG import 2016-07-19 14:44:35 -04:00
Marius Kintel
fdd42098e3 Removed defunct Bitdeli badge 2016-07-19 00:40:36 -04:00
Marius Kintel
3a63c01b7f Merge branch 'master' of github.com:openscad/openscad 2016-07-18 21:30:17 -04:00
Marius Kintel
7744377a4e Even more xvfb debugging 2016-07-18 21:27:39 -04:00
Marius Kintel
d1d2136b56 Merge pull request #1739 from openscad/import-refactor
Refactored the import code into separate files per format
2016-07-18 20:57:13 -04:00
Marius Kintel
34d62c1a30 Updated homebrew instructions - it works again now 2016-07-18 20:20:23 -04:00
Marius Kintel
25ec72ce07 Refactored the import code into separate files per format 2016-07-18 20:14:31 -04:00
Marius Kintel
ad2956dcd0 More offscreen context testing, better error reporting 2016-07-15 12:38:14 -04:00
Marius Kintel
f225d0de15 More virtualfb debugging 2016-07-15 11:49:18 -04:00
Marius Kintel
2b09df816a Removed deprecated pixel format attribute. Added comment for how to force software rendering 2016-07-15 01:26:53 -04:00
Marius Kintel
204032ba9e We now require OS X >= 10.8 2016-07-15 01:26:15 -04:00
Marius Kintel
557d15c61d Enable debugging of virtualfb.sh to figure out why Travis CI sometimes fails 2016-07-15 01:24:48 -04:00
Torsten Paul
eef2a4048f Update Qt info (fixes #1736) 2016-07-14 13:37:18 +02:00
Marius Kintel
fee7a72924 Merge pull request #1714 from openscad/obs-fix
Ensure to always return a value to fix OBS builds.
2016-06-30 14:30:37 -04:00
Marius Kintel
6d750ee7c9 Removed a few unneccessary boosty includes 2016-06-30 13:29:16 -04:00
Konrad Malkowski
0a38deaed7 #1647 remove workarounds for older versions of boost
another config

another one
2016-06-27 22:52:41 -04:00
Torsten Paul
802bb992b1 Ensure to always return a value to fix OBS builds. 2016-06-26 18:19:26 +02:00
Marius Kintel
02439847dc Merge branch 'master' of github.com:openscad/openscad 2016-06-25 17:32:16 -04:00
Marius Kintel
aba13a386e #1588 Set SUFeedURL to fix Sparkle-related crash. add http download exception for now 2016-06-25 17:31:50 -04:00
Marius Kintel
10f80dd9c4 Updated libraries, use @rpath instead of absolute paths 2016-06-25 17:31:47 -04:00
Marius Kintel
d5bf793814 Qt 5.7 requires OS X 10.8+ 2016-06-25 17:29:17 -04:00
Marius Kintel
ae11be80d5 Merge branch 'ast-refactor' 2016-06-24 12:10:22 -04:00
Marius Kintel
ae7438bddf Correctly handle locations in the lexer 2016-06-24 12:08:04 -04:00
Marius Kintel
33773ec251 Return const ref to the Location object 2016-06-24 12:07:47 -04:00
Marius Kintel
1ee2edaf7b Merge branch 'ast-refactor' 2016-06-21 22:49:26 -04:00
Marius Kintel
7036a6dd5c #1672 Report error instead of crashing 2016-06-19 13:26:36 -04:00
Marius Kintel
c3a6128e6a #1672 Added testcase 2016-06-19 13:26:05 -04:00
Marius Kintel
7452397e96 Moved fixed bug to issues/ 2016-06-19 13:07:47 -04:00
Marius Kintel
a63c5127b6 #1671 Don't crash - report CGAL exception instead 2016-06-19 13:04:44 -04:00
Marius Kintel
316abc6eaa Merge branch 'master' of github.com:openscad/openscad 2016-06-19 12:45:39 -04:00
Marius Kintel
7956f57cef #1671 Added testcase 2016-06-19 12:45:23 -04:00
Marius Kintel
68316c443e Moved arguments that should be available at construction-time into the constructor 2016-06-14 19:20:17 -04:00
Marius Kintel
f4ddead656 C++11: gcc-4.6.1 doesn't support delegating constructors 2016-06-13 21:38:21 -04:00
Marius Kintel
b509afd4ed Added a Location object to ASTNode, to track source code locations 2016-06-13 20:20:04 -04:00
Marius Kintel
0eadffea33 ast refactoring: added recently changed files 2016-06-13 19:35:43 -04:00
Marius Kintel
95b5306495 ast refactoring: Made the traverser part of NodeVisitor as it was dependent on the node tree 2016-06-13 19:35:43 -04:00
Marius Kintel
ae60056968 Split the module file into module, FileModule, UserModule and GroupModule to better manage dependencies 2016-06-13 19:35:43 -04:00
Marius Kintel
33e49a84a1 C++11: gcc-4.6.3 (Ubuntu 12.04) doesn't support non-static member initializers 2016-06-13 19:35:43 -04:00
Marius Kintel
d8523ae6be AST refactor: Refactored the visitor system to a more general purpose visitor 2016-06-13 19:35:43 -04:00
Marius Kintel
9f899914a6 Renamed Visitor to SettingsVisitor to avoid naming confusion 2016-06-13 19:35:42 -04:00
Marius Kintel
7800683cf1 AST refacroting: Green refactoring preparing for a more general visitor system: Made accept() a macro and use a common supertype BaseVisitable. 2016-06-13 19:35:42 -04:00
Marius Kintel
fb18ec935b AST refactoring: New ASTNode supertype, refactored Expression, Module and Function class hierarchies 2016-06-13 19:35:42 -04:00
Marius Kintel
b95227280d Merge pull request #1665 from mnottale/fix-invalid-use-after-free
Fix invalid use after free in compileTopLevelDocument.
2016-06-13 15:16:59 -04:00
Matthieu Nottale
41aef27643 Fix invalid use after free in compileTopLevelDocument. 2016-06-13 20:44:27 +02:00
Marius Kintel
365e399036 Merge pull request #1654 from mnottale/rlimit-stack-infinity
Handle RLIMIT_STACK set to infinity.
2016-06-04 02:05:25 -04:00
Matthieu Nottale
e6def11a69 Handle RLIMIT_STACK set to infinity. 2016-05-30 20:27:09 +02:00
Marius Kintel
0cbef206ef Merge pull request #1637 from doug-moen/issue214
Fix issue 214. When a syntax error is reported, we report the source …
2016-05-27 16:52:54 -04:00
Marius Kintel
09c8d9b18b removed obsolete env files 2016-05-24 23:55:09 -04:00
Doug Moen
26348d0f42 add manual tests 2016-05-16 12:59:47 -04:00
Doug Moen
d61f76fa20 fix bug: include broken in GUI (but not CLI) 2016-05-16 09:46:51 -04:00
Marius Kintel
7f4a6b1d25 Merge pull request #1615 from jasleenkaur/Line_Number
shrink margin on demand
2016-05-15 13:50:58 -04:00
Marius Kintel
133303e1dd Merge branch 'anna-marina-backspace-unindent-feature' 2016-05-15 13:44:24 -04:00
Marius Kintel
527fc3173a Accept backspace unindent feature, but set default value to false 2016-05-15 13:44:12 -04:00
Marius Kintel
7b8265a6c9 #872 Use Ctrl-Shift-F to trigger Find&Replace on Windows, as AltGr is used to simulate Ctrl+Alt on that platform 2016-05-12 16:38:00 -04:00
Marius Kintel
c00f5830c8 Merge branch 'backspace-unindent-feature' of https://github.com/anna-marina/openscad into anna-marina-backspace-unindent-feature 2016-05-10 22:42:15 -04:00
Marius Kintel
d3db6a6f50 Revert "removed unnecessary include"
This reverts commit 00090fde1a.
2016-05-08 22:53:20 -04:00
Marius Kintel
00090fde1a removed unnecessary include 2016-05-08 22:07:18 -04:00
Anna
155398cf8e Add scintilla backspace unindents feature 2016-05-05 19:22:55 +03:00
Anna
3d7283486a Add spacer 2016-05-05 18:57:26 +03:00
Anna
1345d6650d Trying to add preferences item 2016-05-05 18:41:37 +03:00
Doug Moen
72b7a86e3d Fix 2nd travis-ci build failure.
See https://travis-ci.org/openscad/openscad/builds/127839452
A portability problem involving old versions of Qt and Boost,
or an old C++ compiler.
2016-05-04 12:44:41 -04:00
Doug Moen
caa5533366 Fix travis-ci build failure.
See https://travis-ci.org/openscad/openscad/builds/127687399
Fixed 'clever' code that wasn't portable between boost versions.
2016-05-04 12:12:40 -04:00
Marius Kintel
3e614dec95 #1625 Crash fix: Don't attempt to export an empty geometry 2016-05-04 00:09:35 -04:00
Doug Moen
a60ba41b77 Fix issue 214. When a syntax error is reported, we report the source file name
and the line number within the source file where the error occurred.
This works even if the syntax error is within an included file.

The parse() function, and the places where it is called, have been changed
as necessary to enforce the convention that the second argument is the source
filename, and not the name of the parent directory containing the source file.
Previously, different calls to parse() made different assumptions about
the meaning of the second argument, which probably means include and import
were broken in some cases.
2016-05-03 21:48:51 -04:00
Marius Kintel
e2c3492984 Merge pull request #1601 from amarjeetkapoor1/master
shortcut key for view all (ctrl +shift+ v)
2016-05-02 00:42:40 -04:00
Marius Kintel
0182e95a78 Merge pull request #1627 from anna-marina/fix-save-log
Do not clear handler after save
2016-05-01 00:57:07 -04:00
Marius Kintel
5af6ce171c Merge pull request #1634 from anna-marina/disable-spinbox-wrap-indent
Disable spinbox when it has no effect. Fix issue #1187
2016-04-28 15:48:43 -04:00
Anna
24375f3226 Disable spinbox when it has no effect. Fix issue #1187 2016-04-28 21:12:24 +03:00
Anna
3ae370441d Do not clear handler after save 2016-04-21 00:01:53 +03:00
jasleenkaur
1517b28eeb margins set to display markers 2016-04-20 18:42:51 +05:30
jasleenkaur
d640838af5 Shrink margin on demand 2016-04-18 00:39:41 +05:30
jasleenkaur
dbd259538c shrink on demand 2016-04-17 23:50:14 +05:30
Marius Kintel
50441e85a2 Merge pull request #1622 from javialamo/master
Updated spanish translation
2016-04-13 11:01:22 -04:00
javialamo
f3fd2c3c1b Updated spanish translation 2016-04-13 03:00:11 +02:00
Marius Kintel
64e65b874a Update README.md 2016-04-10 12:22:35 -04:00
jasleenkaur
57a0c7513a shrink margin on demand 2016-04-06 01:20:22 +05:30
Marius Kintel
9caee5b80a Merge pull request #1612 from jasleenkaur/Line_Number
added line number option on editor preferences
2016-03-31 11:55:27 -04:00
jasleenkaur
012a4a977f minor changes in line numering check Box 2016-03-31 10:43:34 +05:30
jasleenkaur
588ec0fa0f added line number option on editor preferences 2016-03-30 20:17:30 +05:30
Marius Kintel
8308bd71ba #1607 Refactored export UI code to make 2D and 3D export use the same code path. 2016-03-25 12:56:21 -04:00
Marius Kintel
e56648930d pre-fill filename for image export. Fixes #1606 2016-03-24 19:51:49 -04:00
Marius Kintel
444d7373b3 Merge branch 'anna-marina-directory-mix' 2016-03-24 11:45:21 -04:00
Marius Kintel
9f2c46972b cosmetics 2016-03-24 11:45:08 -04:00
Marius Kintel
842f024830 Merge branch 'directory-mix' of https://github.com/anna-marina/openscad into anna-marina-directory-mix 2016-03-24 11:42:21 -04:00
Marius Kintel
45017535c7 Merge pull request #1598 from anna-marina/export-prefill-fix
Pre-fill full file base name on export. Fix #1552.
2016-03-24 11:30:56 -04:00
Marius Kintel
1b678083d3 Merge pull request #1603 from anna-marina/fold-comments
Add multiline comment folding. Resolve #1408
2016-03-24 11:23:41 -04:00
Anna Maryina
e3a6138fc8 Add multiline comment folding. Resolve #1408 2016-03-20 23:15:49 +03:00
amarjeetkapoor1
84d260f0d5 shortkey for view all 2016-03-11 12:46:00 +05:30
Marius Kintel
dafbdd7d30 Merge pull request #1600 from openscad/svg-fix
Restore width & height parameters and use mm in SVG header
2016-03-10 15:36:08 -05:00
Torsten Paul
6ecf8ed375 Restore width & height parameters and use mm in SVG header (fixes #1597). 2016-03-10 21:25:55 +01:00
Anna Maryina
83c2ef85aa Save to rigth path when multiple files are opened. Fix #1530. 2016-03-10 22:55:12 +03:00
Anna Maryina
cc4b3c0812 Pre-fill full file base name on export. Fix #1552. 2016-03-10 21:35:13 +03:00
Marius Kintel
bd5b7baccd Merge branch 'master' of github.com:openscad/openscad 2016-02-24 16:31:52 -05:00
Marius Kintel
d1df5bc842 Added parallel vs. sequential lookup test for echo 2016-02-24 16:31:43 -05:00
Marius Kintel
a2fc2044a9 Merge pull request #1586 from reox/master
remove deprecated option from the manpage
2016-02-20 10:00:57 -07:00
Sebastian Bachmann
f4937f2636 remove deprecated option from the manpage 2016-02-20 17:54:23 +01:00
Marius Kintel
f00a036131 #1580 Tweaked test cases 2016-02-17 16:36:56 -05:00
Marius Kintel
de6c9f6564 sync with 2015.03-branch 2016-02-17 16:34:07 -05:00
Marius Kintel
08154b1921 #1580 testcase cleanup 2016-02-17 13:56:33 -05:00
Marius Kintel
bbcee74e3e #1580 test cases 2016-02-17 12:51:16 -05:00
Marius Kintel
22cf081d00 Merge pull request #1579 from openscad/leafnode-const
Change LeafNode::createGeometry() to return a const geometry pointer.
2016-02-11 23:40:02 -05:00
Torsten Paul
5f0e716d6e Change LeafNode::createGeometry() to return a const geometry pointer. 2016-02-11 21:51:05 +01:00
Marius Kintel
9950e6aa50 Merge pull request #1577 from tarsius/patch-1
Provide correct feature in scad-mode.el
2016-02-05 13:43:15 -05:00
Jonas Bernoulli
e78f26c5f1 Provide correct feature in scad-mode.el
The feature name has to match the file name.
2016-02-05 19:37:43 +01:00
Marius Kintel
be4fd23dc6 Cleaned out old 32-bit Mac builds 2016-01-27 14:18:03 -05:00
Marius Kintel
96051b895d c++11 build fix: remove mathc99.cc 2016-01-27 12:06:22 -05:00
Marius Kintel
2960e7e8e9 c++11 build fix: cstdint 2016-01-27 11:52:14 -05:00
Marius Kintel
176a1e8736 Merge pull request #1551 from openscad/c++11
Require C++11
2016-01-27 11:29:33 -05:00
Marius Kintel
c40cb9ad13 Merge remote-tracking branch 'origin/c++11' 2016-01-27 11:25:10 -05:00
Marius Kintel
87ae5b2c15 Merge pull request #1569 from openscad/openscadapp
Refactor: WindowManager and OpenSCADApp classes
2016-01-27 11:19:40 -05:00
Marius Kintel
8c946e46db doc 2016-01-27 02:50:33 -05:00
Marius Kintel
fe20aae964 Compile fix for math constants 2016-01-27 02:49:43 -05:00
Marius Kintel
d2f6820471 Merge pull request #1571 from openscad/show-viewport-size
Show viewport size in status bar.
2016-01-27 02:40:13 -05:00
Marius Kintel
d621361a3c C++11: Cleaned up some stdint.h stuff 2016-01-26 17:49:09 -05:00
Marius Kintel
576fa0f964 C++11: No longer need mathc99 2016-01-26 17:31:45 -05:00
Torsten Paul
a9288da6ec Show viewport size in status bar. 2016-01-26 21:38:27 +01:00
Marius Kintel
0ecd392e0b Merge remote-tracking branch 'origin/master' into c++11 2016-01-25 22:20:37 -05:00
Marius Kintel
930896ed99 Merge branch 'master' into openscadapp 2016-01-25 22:20:20 -05:00
Marius Kintel
44a50d202a Merge remote-tracking branch 'origin/lc-extensions' 2016-01-25 22:18:02 -05:00
Marius Kintel
ee67a842b7 Merge pull request #1537 from openscad/lc-extensions-cstyle-for
Extend List-Comprehension with c-style for
2016-01-25 22:16:47 -05:00
Marius Kintel
3d1602c517 #1569 Show error message on uncaught exceptions 2016-01-25 22:11:59 -05:00
Marius Kintel
7b2cd87d73 Some C++11 stuff snuck in 2016-01-25 21:51:12 -05:00
Marius Kintel
7c104f0630 Moved font cache dialog to OpenSCADApp 2016-01-25 20:22:42 -05:00
Marius Kintel
a20e327f54 #1569 Moved EventFilter and requestOpenFile() to OpenSCADApp 2016-01-25 20:11:04 -05:00
Marius Kintel
9122dc4de5 C++11: BOOST_FOREACH -> for 2016-01-25 18:32:25 -05:00
Marius Kintel
bcb8723527 Merge branch 'master' into c++11 2016-01-25 18:20:51 -05:00
Marius Kintel
e47cb3df38 Refactored MainWindow handling to separate WindowManager class, added OpenSCADApp as a custom QApplication subtype 2016-01-25 18:01:25 -05:00
Marius Kintel
1799fe5ebf Merge branch 'master' of github.com:openscad/openscad 2016-01-25 01:49:28 -05:00
Marius Kintel
1c01100db7 #1567 background and highlight objects were not cleared between renders 2016-01-25 01:25:49 -05:00
Marius Kintel
fd5833b8fe Merge remote-tracking branch 'origin/master' into let-module 2016-01-25 01:12:29 -05:00
Marius Kintel
aee6119f00 #1202 Render 2D objects in the XY plane rather than at z=-0.1 2016-01-23 18:05:13 -05:00
Marius Kintel
80e0149b29 Tag some tests as Heavy 2016-01-23 14:47:24 -05:00
Marius Kintel
f2b5382247 Merge remote-tracking branch 'origin/master' into c++11 2016-01-20 00:42:19 -05:00
Marius Kintel
a7a629cec9 Merge branch 'lc-extensions' into lc-extensions-cstyle-for
Make C-style for an experimental feature
2016-01-20 00:35:28 -05:00
Marius Kintel
d37c20f568 #1549 Refactored duplicated code into EvalContext::assignTo() 2016-01-19 13:48:31 -05:00
Marius Kintel
085167bfae Merge pull request #1536 from openscad/lc-extensions
Extended List-Comprehension
2016-01-19 12:16:05 -05:00
Marius Kintel
9f2fc6e74c Merge remote-tracking branch 'origin/master' into c++11 2016-01-18 14:40:01 -05:00
Marius Kintel
84c9f7699d Merge pull request #1527 from openscad/csgterm-refactor
Csgterm refactor
2016-01-18 12:00:33 -05:00
Marius Kintel
888c5bb600 Merge remote-tracking branch 'origin/master' into csgterm-refactor 2016-01-18 11:56:55 -05:00
Marius Kintel
2b7c325ddd Explicitly request Qt widgets, needed for CONFIG+=nogui 2016-01-13 00:29:48 -05:00
Marius Kintel
0c1e91e6e3 Merge branch 'master' of github.com:openscad/openscad 2016-01-12 17:50:30 -05:00
Marius Kintel
5ec7b39999 Don't pass Eigen vectors by value. See also http://eigen.tuxfamily.org/dox/group__TopicPassingByValue.html 2016-01-12 15:06:41 -05:00
Marius Kintel
5ca85f0965 Be consistent with namespace usage; remove Eigen:: namespace specifier 2016-01-12 15:05:08 -05:00
Marius Kintel
6cef99e752 Removed unecessary constructor 2016-01-12 00:41:00 -05:00
Marius Kintel
057ff54445 C++11: Killed some warnings in 3rd party libs 2016-01-12 00:33:01 -05:00
Marius Kintel
b7df36c831 C++11: Removed use of deprecated 'register' specifier 2016-01-12 00:32:40 -05:00
Marius Kintel
6646b2a07b Fall back to -std=c++0x on gcc to support gcc < 4.7 2016-01-11 11:04:51 -05:00
Marius Kintel
ac646cd8e2 Fall back to -std=c++0x on gcc to support gcc < 4.7 2016-01-11 10:45:47 -05:00
Marius Kintel
a0bcae241c C++11: Added hash.cc 2016-01-10 18:43:10 -05:00
Marius Kintel
591c7006eb Eigen/StdVector conflicts with C++11 initializers 2016-01-10 18:37:58 -05:00
Marius Kintel
a2ba33de7f Merge remote-tracking branch 'origin/master' into c++11 2016-01-10 18:36:05 -05:00
Marius Kintel
90b9359bb2 C++11: Use isinf()/isnan() from std:: rather than boost 2016-01-10 18:31:27 -05:00
Marius Kintel
2e27480ef5 C++11: Moved lexer usage of foreach from boost to std c++11 2016-01-10 18:16:13 -05:00
Marius Kintel
f44b97bdee C++11: Moved parser usage of foreach and shared_ptr from boost to std c++11 2016-01-10 18:14:59 -05:00
Marius Kintel
686071cdcc C++11: Cosmetics 2016-01-10 17:51:18 -05:00
Marius Kintel
6f43d97ba3 C++11: Use std::shared_ptr insted of boost::shared_ptr 2016-01-10 17:43:45 -05:00
Marius Kintel
a9d2cb2838 C++11: Use unordered containers from std instead of boost 2016-01-10 17:19:43 -05:00
Marius Kintel
34e7761a79 C++11: Use range-based for instead of BOOST_FOREACH 2016-01-10 16:10:17 -05:00
Marius Kintel
f460ca231a Merge pull request #1550 from openscad/issue1545
Link to GLU and X11 also when using QOpenGLWidget (fixes #1545).
2016-01-10 15:52:27 -05:00
Torsten Paul
d8f7102cea Link to GLU and X11 also when using QOpenGLWidget (fixes #1545). 2016-01-10 21:49:49 +01:00
Marius Kintel
10a0285f81 Merge pull request #1547 from openscad/issue1523
Check error code from glReadPixels() to prevent invalid zoom.
2016-01-10 15:40:16 -05:00
Torsten Paul
4c77052002 Add let() module to allow creating scoped assignments on statement level. 2016-01-10 20:25:58 +01:00
Torsten Paul
143db7bfa8 Check error code from glReadPixels() to prevent invalid zoom. 2016-01-10 17:51:07 +01:00
Marius Kintel
50a77b6321 killed old comment 2016-01-09 01:16:27 -05:00
Marius Kintel
75c9d7de68 Merge remote-tracking branch 'origin/master' into csgterm-refactor 2016-01-09 00:35:35 -05:00
Marius Kintel
2dc6335bf5 #1543 Only link with Qt's opengl module if we're using QGLWidget 2016-01-08 16:33:03 -05:00
Marius Kintel
d4bfcdf373 Merge pull request #1544 from openscad/svg-export-fix
Fix SVG export.
2016-01-08 15:38:15 -05:00
Torsten Paul
d82a4d10aa Fix SVG export. 2016-01-08 21:34:57 +01:00
Torsten Paul
6e30eae31f Fix include for standard exceptions. 2016-01-08 14:17:28 +01:00
Torsten Paul
a65a55db4f Flag both "each" and "else" expressions as experimental.
This also moves the new test cases to a separate test case
(echotest_list-comprehensions-experimental) which will be
run with "--enable=lc-each --enable=lc-else".
2016-01-08 02:36:40 +01:00
Marius Kintel
9bf22c6dea Merge branch 'master' of github.com:openscad/openscad 2016-01-07 19:50:17 -05:00
Marius Kintel
39aac370e7 Prefer QOpenGLWidget, except for on Windows (until we sort out Windows issues) 2016-01-07 19:50:13 -05:00
Marius Kintel
3d8844c566 Merge pull request #1540 from openscad/qopenglwidget-fix
Use correct define for disabling the SwapInterval configuration.
2016-01-07 17:36:48 -05:00
Torsten Paul
6bac7c3912 Use correct define for disabling the SwapInterval configuration. 2016-01-07 23:29:33 +01:00
Torsten Paul
b081a627c0 Allow parenthesis around list comprehension expressions.
This mainly allows to group nested if/else expressions, otherwise else
would always bind to the nearest if.
2016-01-07 20:57:16 +01:00
Marius Kintel
27c05e1132 Our custom FindBoost.cmake was removed a while ago 2016-01-06 13:22:40 -05:00
Torsten Paul
d928082e53 Add c-style for as list comprehension generator expression. 2016-01-06 00:51:02 +01:00
Torsten Paul
ec73c8ba49 Add each as list comprehension generator expression. 2016-01-06 00:50:34 +01:00
Torsten Paul
75b09ab2d7 Add if-else for list-comprehensions.
This also splits the ExpressionLc class into separate classes for each
of the list-comprehension expressions, leaving ExpressionLc as base class.
2016-01-06 00:50:34 +01:00
Torsten Paul
eed5d9298a Allow list comprehensions to be included in general vector expressions. 2016-01-06 00:50:34 +01:00
Marius Kintel
9e9263b39b Plugged memory leak, by @obliviand 2016-01-05 18:48:23 -05:00
Marius Kintel
3a090f3401 #1527 Updated test results 2016-01-05 01:13:08 -05:00
Marius Kintel
ec3ccbd281 Adapted to new root node behavior in master 2016-01-05 00:50:42 -05:00
Marius Kintel
caab2595e9 Renamed CsgNode to CsgOpNode 2016-01-05 00:25:59 -05:00
Marius Kintel
23d66355f2 Plugged memory leak 2016-01-04 23:49:15 -05:00
Marius Kintel
8f1e48a7c4 Removed some unused code 2016-01-04 23:49:03 -05:00
Marius Kintel
bef26b4580 Renamed csgterm.cc to csgnode.cc 2016-01-04 23:48:28 -05:00
Marius Kintel
d6e2fb319c #1527 Refactored some memory management issues 2016-01-04 23:33:08 -05:00
Marius Kintel
63d7329e2c Merge remote-tracking branch 'origin/master' into csgterm-refactor 2016-01-04 23:06:38 -05:00
Marius Kintel
39da6e9e2e Merge branch 'master' of github.com:openscad/openscad 2016-01-04 01:26:44 -05:00
Marius Kintel
3df1947d70 cosmetics 2016-01-04 01:10:30 -05:00
Marius Kintel
76e744fa60 fixed outdated ignore 2016-01-04 01:05:50 -05:00
Marius Kintel
bf19e009ff Require C++11 2016-01-04 01:01:36 -05:00
Marius Kintel
e9685b7001 Merge remote-tracking branch 'origin/master' into csgterm-refactor 2015-12-28 18:49:05 -05:00
Marius Kintel
1331357d55 Merge pull request #1533 from openscad/issue1532-stl-export-fix
Fix duplicate header/footer for STL export (fixes #1532).
2015-12-28 17:41:34 -05:00
Torsten Paul
4311c24965 Disable test case, this needs #420 to be implemented for stable results. 2015-12-28 23:30:45 +01:00
Torsten Paul
e72b6c4127 Fix duplicate header/footer for STL export (fixes #1532). 2015-12-28 22:16:16 +01:00
Marius Kintel
dff10cc9af forgot to update test 2015-12-27 03:07:39 -05:00
Marius Kintel
0815b30fff forgot to update csgtexttest 2015-12-27 03:05:53 -05:00
Marius Kintel
d3c6c5cf15 Refactoring: Added explicit group node and root note to clarify some code, removed implicitly added top-level group in .csg output 2015-12-27 02:39:25 -05:00
Marius Kintel
9d5ec27db9 doc fix 2015-12-27 02:36:01 -05:00
Marius Kintel
ab338a2c20 Green refactoring: Split export into separate files 2015-12-26 23:06:18 -05:00
Marius Kintel
5ac04ae1cc renamed typedefs for more clarity 2015-12-26 23:04:02 -05:00
Marius Kintel
577a5908fd green refactor: Use shared_ptr strings 2015-12-26 21:12:48 -05:00
Marius Kintel
d065aff2d3 more ignores 2015-12-26 21:07:29 -05:00
Marius Kintel
33b773a1c8 bugfix: Empty surface() shouldn't generate any geometry. Temporarily disabled tests returning error code 1 2015-12-26 21:06:53 -05:00
Marius Kintel
77ae07db7a #1527 Green refactoring: Renamed some classes, cleaned up some member visibility and redundant copying 2015-12-25 21:45:15 -05:00
Marius Kintel
c468f9a531 #1529 Added testcase 2015-12-23 03:21:29 -05:00
Marius Kintel
06147d81ea #1527 Added testcases 2015-12-23 03:03:41 -05:00
Marius Kintel
d6d7e1b183 Merge remote-tracking branch 'origin/master' into csgterm-refactor 2015-12-23 02:03:01 -05:00
Marius Kintel
800cba545c #1528 Fixed crash bug; vector argument wasn't validated before indexing 2015-12-22 11:09:30 -05:00
Marius Kintel
8098e570b5 #1528 Added testcase 2015-12-22 10:59:32 -05:00
Marius Kintel
3f7b6b3aeb Final tweaks of CSGTerm refactoring 2015-12-19 23:26:29 -05:00
Marius Kintel
f3590c648e modified ignores 2015-12-19 23:26:14 -05:00
Marius Kintel
f0a935d8c6 Merge pull request #1520 from GilesBathgate/tesscombine-memleak
Restores the call to combineCallback with NULL args.
2015-12-14 19:24:36 -05:00
Giles Bathgate
cb699c732a Restores the call to combineCallback with NULL args.
This was required to ensure pcache is cleared. Without it there
was a minor memory leak.
2015-12-14 21:23:33 +00:00
Marius Kintel
a9ac29f2e4 Merge remote-tracking branch 'origin/master' into csgterm-refactor 2015-12-12 00:13:40 -05:00
Marius Kintel
0f9ea908b0 Background and highlight handling should be be correct. New use-cases hasn't been properly investigated yet 2015-12-12 00:13:11 -05:00
Marius Kintel
81994d2c3d #1516 Moved fixed bug to issues 2015-12-11 12:21:01 -05:00
Marius Kintel
fd3ba84544 #1516 Don't crash when multiplying something with nothing 2015-12-11 12:19:26 -05:00
Marius Kintel
a6fe98d0b4 #1516 Correct test result 2015-12-11 12:18:19 -05:00
Marius Kintel
4e1f4bad50 #1516 Added test case 2015-12-11 12:13:30 -05:00
Marius Kintel
b6eed4b153 Fix: Make crashing tests fail 2015-12-11 12:12:38 -05:00
Marius Kintel
0190d52d8e Flags should not be overlapping 2015-12-08 16:04:20 -05:00
Marius Kintel
74eaeba2eb Refactored the various operation enums to use OpenSCADOperation 2015-12-08 11:29:07 -05:00
Marius Kintel
97073e54a7 Tweaks to keep tests mostly green 2015-12-07 23:12:42 -05:00
Marius Kintel
97cab4589b Refactor 2015-12-07 02:27:37 -05:00
Marius Kintel
754cb0f750 Merge pull request #1509 from thehans/patch-2
Issue #1502 ambient shading
2015-12-05 00:31:28 -05:00
Hans L
bfb68fc2fc Issue #1502 ambient shading 2015-12-03 19:10:11 -08:00
Marius Kintel
44a0632751 Continued attempt to refactor CSG products 2015-12-03 18:04:52 -05:00
Marius Kintel
cd7d811720 Initial attempt at refactoring CSG product rendering 2015-12-03 16:06:32 -05:00
Marius Kintel
5098a1792a Initial attempt at refactoring CSG product rendering 2015-12-03 16:06:12 -05:00
Marius Kintel
eba4a4f817 Merge pull request #1498 from thehans/issue1495
Avoid transparencies on cut faces.
2015-12-03 16:04:06 -05:00
Hans Loeblich
7205eae5d9 Remove debugging statements from previous commit 2015-12-03 13:56:40 -06:00
Hans Loeblich
19360666fe updated test results 2015-12-03 01:39:59 -06:00
Marius Kintel
c1a7d14e1b OS X: Removed duplicate handling of libc++ 2015-12-03 01:49:57 -05:00
Hans Loeblich
4057d32944 Fix for highlighted products being rendered with root chain 2015-12-02 23:47:08 -06:00
Marius Kintel
97e97422cb Show correct QOpenGLWidget vs. QGLWidget in Library Info 2015-12-02 17:56:18 -05:00
Marius Kintel
01f8bbb827 Merge pull request #1463 from GilesBathgate/QOpenGLWidget
QOpenGLWidget
2015-12-02 16:49:25 -05:00
Marius Kintel
1d5bdcc4d5 doc 2015-12-02 16:36:21 -05:00
Giles Bathgate
ab6e3ae096 Merge pull request #1 from openscad/QOpenGLWidget
QOpenGLWidget fixes
2015-12-02 21:15:58 +00:00
Marius Kintel
7ada64aebb Improved some USE_QOPENGLWIDGET defines 2015-12-02 15:57:19 -05:00
Marius Kintel
e7a4587a7b Merge branch 'QOpenGLWidget' of https://github.com/GilesBathgate/openscad into QOpenGLWidget 2015-12-02 15:00:15 -05:00
Giles Bathgate
f80e23bdc5 Ensure running_under_wine is not referenced in init() for QOpenGLWidget. 2015-12-02 19:47:59 +00:00
Marius Kintel
4af8cc7525 Introduce a USE_QOPENGLWIDGET define, added qopenglwidget CONFIG to qmake 2015-12-02 13:24:18 -05:00
Marius Kintel
510daf3636 Merge branch 'QOpenGLWidget' of https://github.com/GilesBathgate/openscad into GilesBathgate-QOpenGLWidget 2015-12-02 12:37:09 -05:00
Hans L
452f17cd7f Merge pull request #1 from openscad/issue1495
#1498 Updated test results
2015-12-02 11:10:09 -06:00
Marius Kintel
9d22fb6b25 #1498 Updated test results 2015-12-02 11:36:02 -05:00
Marius Kintel
1378e8ccb6 #1478 Updated test results 2015-12-02 01:14:43 -05:00
Marius Kintel
2592f107a5 CMake should have a decent FindBoost by now. This one isn't working properly on Mac any longer 2015-12-02 00:55:18 -05:00
Marius Kintel
a7202f5468 Support Xcode 7 2015-12-02 00:54:49 -05:00
Marius Kintel
9716dffdf1 #1478 Updated test results 2015-12-02 00:54:24 -05:00
Marius Kintel
701faecf49 Merge branch 'master' of github.com:openscad/openscad 2015-12-01 22:43:58 -05:00
Marius Kintel
9f0ca6d5a5 Merge pull request #1508 from thehans/ctrlY
Support Ctrl-Y Redo in addition to Ctrl-Shift-Z
2015-12-01 22:41:40 -05:00
Marius Kintel
9bf581fcf3 Merge branch 'master' of github.com:openscad/openscad 2015-12-01 22:10:47 -05:00
Marius Kintel
9025199225 #1493 Revert QScintilla to 2.8.4 2015-12-01 22:10:30 -05:00
Hans Loeblich
0f42ba52ce revert setting alpha=1 for differences 2015-12-01 19:34:35 -06:00
Hans Loeblich
4deb5f9ca7 Support Ctrl-Y Redo in addition to Ctrl-Shift-Z 2015-12-01 18:39:53 -06:00
Marius Kintel
497e26afb2 Merge pull request #1505 from openscad/update-js-libs
Update js libs
2015-11-30 00:19:41 -05:00
Marius Kintel
ebac29bf84 Merge pull request #1506 from openscad/camera-fix
Camera fix
2015-11-30 00:19:16 -05:00
Torsten Paul
43863c1d30 Fix check for GIMBAL camera. 2015-11-29 19:35:46 +01:00
Torsten Paul
62f69f6948 Fix Camera initialization for PNG export. 2015-11-29 19:22:44 +01:00
Torsten Paul
a7298a1c1b Read categories from examples.json. 2015-11-28 18:24:16 +01:00
Torsten Paul
94cfd4fce4 Update JS libs and add non-minified source to ease Linux distro packaging. 2015-11-28 18:23:56 +01:00
Marius Kintel
f7db2eeff0 Merge pull request #1503 from clothbot/patch-3
Update macosx-build-dependencies.sh
2015-11-22 02:40:01 -05:00
Andrew Plumb
779e9c504c Update macosx-build-dependencies.sh
Split the single 'make -j"$NUMCPU" install' into two-stage.
2015-11-22 00:23:06 -05:00
Marius Kintel
b99ac24898 Merge pull request #1501 from clothbot/patch-2
Update macosx-build-dependencies.sh
2015-11-21 21:58:54 -05:00
Andrew Plumb
6f57125efa Update macosx-build-dependencies.sh
Addresses the build problem captured in issue #1490.
2015-11-21 21:55:18 -05:00
Don Bright
d5f99aa0e1 allow build against custom version of qscintilla. see issue 1493 2015-11-20 20:25:40 -06:00
Marius Kintel
3caaa1b8ed Started on new release notes 2015-11-20 01:39:26 -05:00
Marius Kintel
ea50b90c69 Merge pull request #1478 from openscad/rotate_extrude-angle
Angle parameter for rotate_extrude
2015-11-20 01:37:43 -05:00
Hans Loeblich
e3a7fe220a Avoid transparencies on cut faces. 2015-11-19 14:35:10 -06:00
Marius Kintel
da79f97043 Merge pull request #1466 from openscad/smapdebug
".nefdbg" extension to dump debug info on CGALNefPolyhedron3+SphereMaps
2015-11-18 00:25:50 -05:00
Marius Kintel
16e8ca9835 Merge pull request #1469 from josefpavlik/master
new feature - interactive adjust of numerical value in source code
2015-11-18 00:19:14 -05:00
Marius Kintel
4050381f03 #1491 Clarified sparkle-related license 2015-11-16 11:43:32 -05:00
Marius Kintel
a5ed1ac0ee Revert "#1491 Clarified sparkle-related license"
This reverts commit 400ff8f53f.
2015-11-16 11:42:50 -05:00
Marius Kintel
400ff8f53f #1491 Clarified sparkle-related license 2015-11-16 11:41:13 -05:00
Josef Pavlik
280fc5acf0 grouping action for undo, undo/redo auto preview 2015-11-16 16:31:26 +01:00
Marius Kintel
746006c948 sync with 2015.03-2 2015-11-16 00:31:04 -05:00
Marius Kintel
777f29dc39 #1481 Make sure we start animation when Steps are updated 2015-11-16 00:09:52 -05:00
Marius Kintel
74756551b2 minor doc update 2015-11-15 23:57:16 -05:00
Marius Kintel
dafe06faf7 cosmetics 2015-11-15 23:56:52 -05:00
Marius Kintel
0dfe7f74bb Added release notes for 2015.03-2 2015-11-15 23:53:12 -05:00
Marius Kintel
8aaa5982b0 Added release notes for 2015.03-1 2015-11-15 20:02:06 -05:00
Marius Kintel
28d27c3bf4 Merge pull request #1489 from thehans/master
resolve remaining tests, add new test, and updated example
2015-11-15 18:54:51 -05:00
Hans Loeblich
bcb3b4abaf Updated examples/rotate_extrude, added rotate_extrude-angle test, updated expected dumptests 2015-11-15 13:51:18 -06:00
Hans Loeblich
5460351510 updated example to demonstrate angle parameter. a half yin-yang/paisley sort of shape 2015-11-15 10:48:58 -06:00
Marius Kintel
2d9f8d1e58 Merge pull request #1487 from thehans/master
if angle==360 then use legacy orientation, starting from -x side
2015-11-15 11:04:31 -05:00
Hans Loeblich
331c4fb63d if angle==360 then use legacy orientation, starting from -x side 2015-11-15 04:31:16 -06:00
Marius Kintel
7060b25827 Added support for @rpath 2015-11-15 02:41:02 -05:00
Marius Kintel
9a9c7ec31d #1479 Be more robust when passed invalid value 2015-11-15 01:53:24 -05:00
Marius Kintel
7cfaa7856a bugfix: #1481 don't divide by zero 2015-11-15 01:35:00 -05:00
Hans Loeblich
c6bec5eff5 Merge branch 'master' of https://github.com/openscad/openscad 2015-11-14 04:24:37 -06:00
Marius Kintel
284034e5b6 Merge pull request #1486 from openscad/qtchosepoorly
use qt5 on ubuntu >=14 mint >=17 (unless qt4 has already been chosen)
2015-11-14 00:25:00 -05:00
Don Bright
45a9f4124a use qt5 on ubuntu >=14 mint >=17 (unless qt4 has already been chosen) 2015-11-13 21:45:27 -06:00
Marius Kintel
5edc845ae6 Merge pull request #1484 from thehans/patch-1
Fix Z-fighting in Ortho view, Issue #1483
2015-11-13 12:03:57 -05:00
Hans L
28d96969e1 Fix Z-fighting in Ortho view, Issue #1483 2015-11-13 05:06:45 -06:00
Torsten Paul
d4c4a95be4 Merge pull request #1480 from thehans/master
Handle angle values for 0, Inf/-Inf, NaN.  Also handle small angles
2015-11-12 12:12:59 +01:00
Hans Loeblich
ab8e176abc Handle angle values for 0, Inf/-Inf, NaN. Also handle small angles 2015-11-12 04:20:59 -06:00
Hans Loeblich
8ffd03b58f Simplified how faces/vertices were reversed. resolved segfault 2015-11-11 14:48:05 -06:00
Hans Loeblich
2f8297891e Changed default rotation angle to clockwise, fixed negative faces (Issue #1282). Allow negative angles which arc in counterclockwise direction. 2015-11-11 07:13:10 -06:00
Josef Pavlik
0442bfb646 Merge pull request #1 from openscad/josefpavlik-master
Mac build fix
2015-11-11 12:05:39 +01:00
Hans Loeblich
f0c56a4d05 addded angle parameter for rotate_extrude 2015-11-10 03:50:55 -06:00
Marius Kintel
8819d6bde6 #1472 Another attempt at fixing; fix the iterator 2015-11-09 21:12:36 -05:00
Marius Kintel
9e43ca1299 #1472: Fixed infinite loop when passing NaN to for loops 2015-11-09 19:52:47 -05:00
Marius Kintel
1b030d7b71 #1472: Fixed infinite loop when passing NaN to for loops 2015-11-09 18:12:55 -05:00
Marius Kintel
c12ab83d22 Added echo OK 2015-11-09 18:10:36 -05:00
Marius Kintel
46e79118b1 #1472 Added test case 2015-11-09 17:52:50 -05:00
Marius Kintel
c270bfc40d Arrow keys causes KeypadModifier on Mac 2015-11-09 14:40:37 -05:00
Marius Kintel
5f4ec8d206 Merge branch 'master' of https://github.com/josefpavlik/openscad into josefpavlik-master 2015-11-09 14:15:24 -05:00
Marius Kintel
16026cfed7 Merge branch 'master' of github.com:openscad/openscad 2015-11-03 02:21:45 -05:00
Marius Kintel
e15c36f53f Patch Qt scaling issue when using pixmaps in QLabels 2015-11-03 02:21:42 -05:00
Marius Kintel
fbb5e895ab Updated Qt to 5.5.1, Sparkle to 1.11.0, added tweaks to build using Xcode 7 2015-11-03 01:35:11 -05:00
Marius Kintel
5639962224 doc 2015-11-03 01:18:18 -05:00
Don
2794123deb improve shared library MXE cross build. set CONFIG proper and copy .dll libs 2015-11-03 00:15:33 -05:00
Josef Pavlik
84d442a939 interactive modify bugfix and auto preview of undo
alt-up and alt-down now check if we are on a number

alt backspace (undo) when pressed immediately after interactive modify
without release the alt key invokes preview of model (simulates F5).
alt-backspace behavior is not changed during 'normal' work.
2015-11-02 09:17:27 +01:00
Don
b9ff5fc5a7 allow shared library cross-build under MXE 2015-11-01 21:26:48 -05:00
Don
ab73c8c8a2 updates to MXE/win cross-build. use mingw64.static build dir.
check for 'zip' command when building package. auto detect mxe in /opt/mxe
2015-11-01 17:41:09 -05:00
Don
a2814e11a7 add some updated notes on MXE cross build 2015-11-01 16:57:04 -05:00
Josef Pavlik
3b64b3c370 interactive number adjust
When the cursor is on number, you can increment or decrement it with Alt-Up or Alt-Down keys
and see the change of model in real time.
The Alt-Left and Alt-Right keys navigates to left or right within the number and allow you to change
the increment value. Navigating to right over the number, new decimal digits are added automatically.
When the update of preview is slow and you change the number quickly, the frame rate is limited, however
when you stop to increment, the actual model is shown as soon as possible.
2015-10-30 10:17:43 +01:00
Don Bright
f65cc7816c use boost cstdint.hpp, prevent "int32_t does not name a type" error on new gcc 2015-10-28 21:05:26 -05:00
Don Bright
56c5125fa8 add .nef3 output extension. fixup cgal/decompose for linux 2015-10-26 21:09:23 -05:00
Don Bright
07e948f522 ".nefdbg" extension to dump debug info on CGALNefPolyhedron3+SphereMaps 2015-10-26 19:43:07 -05:00
Marius Kintel
53c255d4fd Merge branch 'master' of github.com:openscad/openscad 2015-10-26 15:45:28 -04:00
Marius Kintel
6736b1e3a3 Merge pull request #1464 from openscad/issue452part2
Issue452part2
2015-10-26 15:45:22 -04:00
Marius Kintel
e3c1a90a97 Detect El Capitan 2015-10-26 15:39:19 -04:00
Marius Kintel
5bdc9383f5 Merge pull request #1462 from GilesBathgate/Enable_OpenCSG
Enable compilation without OpenCSG.
2015-10-25 17:44:19 -04:00
Giles Bathgate
a6a1c4bc15 Ensure UpdateGL is available as a slot. 2015-10-25 17:08:38 +00:00
Don Bright
24124f62bf improve infinity tests per discussion on email list 2015-10-24 21:57:19 -05:00
Don Bright
65cc670385 make Orthogonal View button show Orthogonal projected cube, not perspective. 2015-10-24 12:48:53 -05:00
don bright
da426df8c7 simplify documentation, for deeper knowledge people should follow urls 2015-10-23 22:16:45 -05:00
don bright
a667eba60c remove extraneous space 2015-10-23 22:12:56 -05:00
don bright
0dded01c37 improve documentation of number conversion function (again) 2015-10-23 22:11:03 -05:00
don bright
fa34694af4 better documentation of number conversion function 2015-10-23 22:09:12 -05:00
don bright
cb69ab404f Merge branch 'master' of github.com:openscad/openscad into issue452part2 2015-10-23 21:53:13 -05:00
Giles Bathgate
001712e6cf Use QOpenGLWidget when Qt Version >= 5.4 2015-10-24 00:07:45 +01:00
Giles Bathgate
aeabf0a5d3 Remove un-used constructor. 2015-10-24 00:07:43 +01:00
Giles Bathgate
5a3d81d553 QGLView requires glew regardless of whether opencsg is used. 2015-10-23 23:02:02 +01:00
Giles Bathgate
280ae53f8e Enable compilation without OpenCSG. 2015-10-23 21:46:23 +01:00
Marius Kintel
9a83b0bacf Updated dependencies 2015-10-16 16:33:48 -04:00
Marius Kintel
7310cd7aab CGAL-4.6.3 2015-10-16 14:00:13 -04:00
Marius Kintel
5b92c90f9b Sync with recent changes to the codebase 2015-10-16 13:59:56 -04:00
Marius Kintel
24408ef220 minor wording fixes 2015-10-16 13:44:35 -04:00
Marius Kintel
6c8bff81d3 #1425 For backwards compatibility, revert calculation so that never reaches 1.0 2015-10-16 12:44:35 -04:00
Marius Kintel
2b5c3ef70d Simplified example 2015-10-15 21:28:12 -04:00
Marius Kintel
ab8278416a Test for #1455 2015-10-15 21:16:42 -04:00
Marius Kintel
2ff35fed0c Nef polyhedron for testing #1455 against a pure CGAL app 2015-10-15 21:14:14 -04:00
Marius Kintel
b40e492d87 Respect ENABLE_OPENCSG define 2015-10-15 21:03:40 -04:00
Marius Kintel
f1e8f2c1a5 Merge pull request #1447 from kant/patch-1
Minor fix
2015-10-03 23:37:57 -04:00
Darío Hereñú
e6e933d844 Minor fix 2015-10-03 09:47:37 -03:00
Marius Kintel
e225f2d341 #1425 Let the last animation frame correspond with =1.0, to allow people to design for a valid last frame. 2015-09-24 16:29:17 -04:00
Marius Kintel
29d472b691 #1425 Correctly reset picture dump if anim steps were changed 2015-09-24 16:09:47 -04:00
Don Bright
8baea085c6 friendly helping reminder for debian 7, which lacks harfbuzz 2015-09-24 01:44:46 +00:00
don bright
42dba75497 add convenience search for openscad binary under openscad/bin/openscad 2015-09-23 18:22:15 -07:00
don bright
c1e12e4782 Merge branch 'issue452part2' of github.com:openscad/openscad into issue452part2 2015-09-23 18:21:40 -07:00
Don Bright
3bab13d2ee update test results to match output verbiage 2015-09-23 20:20:52 -05:00
don bright
19b9f99ee8 convenience search of openscad gui binary, for test run 2015-09-23 18:09:07 -07:00
Don Bright
d2d273895e add a few more tests for floating point rands() seeds, and expected results. 2015-09-23 20:03:34 -05:00
Don Bright
3327231847 add test results for rands() dealing with floating point seeds & infinite inputs 2015-09-23 19:58:04 -05:00
Don Bright
b8ec2c2bc8 minor cleanup of unneeded code 2015-09-23 19:52:52 -05:00
Don Bright
ff4debec77 add new tests for infinite inputs to rands() 2015-09-23 19:40:46 -05:00
Don Bright
a675ef6e4e rm my old hash, use awesome floating point hash from Python, include license 2015-09-23 19:30:46 -05:00
Don Bright
600a96f3f4 create better hash function for 64 double->32 bit unsigned int 2015-09-20 22:46:16 -05:00
Don Bright
25c31d124e make rands() deal better with float input for seed, and inf input 2015-09-19 01:00:53 -05:00
Marius Kintel
6144d45457 Added IRC button 2015-09-17 22:29:54 -04:00
Marius Kintel
7f9e7f9c83 Merge pull request #1432 from openscad/issue1407
Fix #1407 by storing vector values as heap objects (ValuePtr) rather than stack objects(Value)
2015-09-14 00:53:16 -04:00
Marius Kintel
ed637eb6d5 Minor fix: No need to convert to char*. Fixes #1429 2015-09-06 11:17:52 -04:00
Don Bright
c8097fd604 add expected result of recursion-test-vector 2015-09-05 22:38:50 -05:00
Don Bright
5e1df90c55 add test for issue1407, recursion crash when vectors are parameters 2015-09-05 22:26:33 -05:00
Don Bright
3fa0046638 allow custom location of openscad GUI binary by setting OPENSCAD_BINARY
environment variable
2015-09-05 19:26:45 -05:00
Marius Kintel
78234a10ac #1407 Minor Value vs. ValuePtr value/reference cleanup 2015-09-05 15:32:58 -04:00
Marius Kintel
847cc76f20 Refactored to let VectorValues use ValuePtr instead of Value, to avoid having to copy large vectors. Attempt to fix #1407 2015-09-04 15:28:50 -04:00
Marius Kintel
e98a6de11f #1425 Implemented some improvements suggested by @DBramley 2015-09-04 12:40:13 -04:00
Marius Kintel
23b6faa17c Merge pull request #1431 from openscad/issue1425
Use integers for underlying frame counter. Fixes rounding issue #1425
2015-09-02 23:28:08 -04:00
Marius Kintel
32a2f3aeaf Use integers for underlying frame counter. Fixes rounding issue #1425 2015-09-01 17:23:00 -04:00
Marius Kintel
b6e55ad66c Merge pull request #1421 from openscad/issue1420-arm64-int-cast
Check for infinite double values when using values as index (fixes #1420).
2015-08-31 17:01:49 -04:00
Marius Kintel
b152acb9e4 Catch RangeTest exception from clipper. Fixes #1410 2015-08-31 16:56:00 -04:00
Marius Kintel
6441ac4da2 Merge pull request #1416 from chrysn-pull-requests/chrysn/issue1415
Fix path discovery for fonts
2015-08-18 23:11:16 +02:00
Marius Kintel
4cd1bf9541 Merge pull request #1406 from openscad/update-web-colors
Validate colors against CSS4 draft - add "RebeccaPurple".
2015-08-18 23:01:56 +02:00
Marius Kintel
a2a1f23d6d Merge pull request #1423 from openscad/mint-17-deps-fix
Use Debian7 dependencies for Linux Mint (fixes #1422).
2015-08-18 22:16:18 +02:00
Torsten Paul
dcbab229c6 Use Debian7 dependencies for Linux Mint (fixes #1422). 2015-08-18 22:13:05 +02:00
Torsten Paul
f7a5313917 Check for infinite double values when using values as index (fixes #1420).
On arm64 the integer constructor returns 0 for an input value of NaN. To
prevent this, index values are now checked against Inf/NaN and protected
against overflow using boost::numeric_cast.
2015-08-17 13:35:53 +02:00
Marius Kintel
2f4091b1b7 Merge pull request #1379 from openscad/issue1378-linear-extrude-crash
Ignore Inf/NaN parameters to linear_extrude() (fixes #1378).
2015-08-12 20:47:41 +02:00
chrysn
90a660d718 Fix path discovery for fonts
When the path to the openscad binary changed in [1], the relative path
was not changed and therefore led into the void, falling back to system
paths.

[1] https://github.com/openscad/openscad/issues/1362
2015-08-11 16:19:51 +02:00
Marius Kintel
d60691b995 Merge pull request #1411 from chrysn-pull-requests/chrysn/fixes-from-debian
Minor fixes from Debian's checks
2015-08-11 12:11:44 +02:00
chrysn
a17b894316 Change "Allow to open multiple documents" to "Allow opening"
This is for grammatical reasons. It is being discussed in
https://bugs.debian.org/795158, and "allowing" seems to be a correct
(not necessarily ideal, but not intrusive) solution.

Forwarded: no
2015-08-11 12:02:57 +02:00
chrysn
2aaafa44bc man page: Rephase colorscheme option to avoid problems with wrapping
The old version threw errors when formatted:

$ LC_ALL=en_US.UTF-8 MANROFFSEQ='' MANWIDTH=80 man --warnings -E UTF-8 -l -Tutf8 -Z ./doc/openscad.1 >/dev/null
<standard input>:85: warning [p 2, 4.7i, div `an-div', 0.0i]: cannot adjust line

This was discovered by lintian and reported as
'manpage-has-errors-from-man'.

Forwarded: no

Gbp-Pq: Name man-page-Rephase-colorscheme-option-to-avoid-problem.patch
2015-08-11 11:47:44 +02:00
chrysn
e4c25bc2f6 Add keywords to the desktop file
Forwarded: no

Gbp-Pq: Name Add-keywords-to-the-desktop-file.patch
2015-08-11 11:47:34 +02:00
Chow Loong Jin
211b795326 Add hashbang to test_cmdline_tool.py
Forwarded: no

Gbp-Pq: Name Add-hashbang-to-test_cmdline_tool.py.patch
2015-08-11 11:47:01 +02:00
Marius Kintel
1c5ac3b6fd Merge pull request #1377 from openscad/flattr-patch
Remove flattr icon and use styled link instead.
2015-08-10 19:40:35 +02:00
Torsten Paul
a06c44a333 Validate colors against CSS4 draft - add "RebeccaPurple". 2015-08-02 16:42:21 +02:00
Torsten Paul
1f5367bd46 Ignore Inf/NaN parameters to linear_extrude() (fixes #1378). 2015-07-04 16:50:59 +02:00
Torsten Paul
1ef90ace3d Remove flattr icon and use styled link instead.
This change is mainly driven by Debian declaring the button non-free so
it must be removed when distributing OpenSCAD in Debian.
2015-06-28 19:25:12 +02:00
Marius Kintel
68e41af144 Merge pull request #1372 from hroncok/patch-1
Add a line about itstool to translation doc
2015-06-21 14:42:14 -04:00
Miro Hrončok
68a296b408 Add a line about itstool to translation doc
After #1366 was merged, itstool is required to update the .po files.
2015-06-21 19:39:04 +02:00
Marius Kintel
1beeb4880e #1366 bugfix: use single = for string comparison for dash compatibility 2015-06-21 12:47:35 -04:00
Marius Kintel
012ef6624c Merge pull request #1366 from hroncok/itstool
Create multilingual appdata file using itstool
2015-06-21 12:40:18 -04:00
Miro Hrončok
1522dae4cf Create multilingual appdata file using itstool
- updated appdata file to a newer syntax
 - created an english appdata template
 - the strings are extracted during updatepot function in translation-update.sh
 - the multilingual file is created at the end of updatemo in the same script if possible
2015-06-21 15:59:56 +02:00
Marius Kintel
6bd23abdab Merge branch 'master' of github.com:openscad/openscad 2015-06-19 18:34:44 -04:00
Marius Kintel
f9e7c945ba Merge pull request #1367 from openscad/issue1350-save-file
Use QSaveFile (if available) to write designs to disk. (fixes #1350)
2015-06-19 18:31:46 -04:00
Marius Kintel
9a113b9407 Merge branch 'master' of github.com:openscad/openscad 2015-06-19 18:20:49 -04:00
Marius Kintel
310b8fa693 Reinstated openscad_nogui as an optional build target (cmake -DNOGUI=1). No need to run translation-make.sh as that's done by qmake 2015-06-19 18:20:26 -04:00
Marius Kintel
ae9ab8fd5e Merge pull request #1365 from openscad/issue1355
Issue1355
2015-06-19 18:06:52 -04:00
Marius Kintel
058330b0ad Merge branch 'chrysn/drop-openscadtesting' of https://github.com/chrysn-pull-requests/openscad 2015-06-19 16:52:55 -04:00
Marius Kintel
38dbd49613 Merge pull request #1369 from openscad/win-export-fix
Fix export call for non-ASCII file names.
2015-06-14 18:01:50 -04:00
Torsten Paul
02c1cf322f Fix export call for non-ASCII file names. 2015-06-14 15:33:21 +02:00
Torsten Paul
1514514a76 Use QSaveFile (if available) to write designs to disk.
Always check the status of the QTextStream to catch problems like disk
full.
In addition QSaveFile can ensure the old file is not destroyed as it's
using a temporary file which is committed at the end by just renaming it
to the output file name.
2015-06-14 01:23:54 +02:00
don bright
31de8e0f8e fix bug in fedora version detection 2015-06-09 18:25:44 -07:00
don bright
b1caaaa344 Merge branch 'master' of github.com:openscad/openscad into issue1355 2015-06-09 18:20:58 -07:00
don bright
3ca9b32849 Merge branch 'issue1355' of github.com:openscad/openscad into issue1355 2015-06-09 17:46:20 -07:00
don bright
d1d7bb21c4 improve OpenCSG build - qmake5 detection and GLU include finding 2015-06-09 17:45:39 -07:00
Don Bright
d2e05710e2 deal with qt4/qt5 situaton on ubuntu. see
http://perezmeyer.blogspot.com.ar/2013/08/qt-in-debian-using-qt4-andor-qt5-in.html
http://askubuntu.com/questions/508503/whats-the-development-package-for-qt5-in-14-04
2015-06-09 04:50:05 +00:00
Don Bright
3b9d1ca4d8 fixes for debian 7. add correct dependencies. add option to easily build harfbuzz 2015-06-09 04:08:38 +00:00
chrysn
f85ace9dd0 fix font directory discovery in export_import_pngtest
the old way of constructing the font path from the openscad binary
has failed since the binary built outside testing has been used.
building the path from the test script works with any openscad binary.
2015-06-08 11:05:52 +02:00
chrysn
1b30f641ad pack OPENSCAD_NOGUI in qmake nogui config
thus, scintilla can be kept from being built at all, slimming down the
build dependencies for the nogui build
2015-06-08 09:58:38 +02:00
chrysn
2227b5cbb8 use qmake in travis to build gui-free openscad binary
with OPENSCAD_TESTING gone, the openscad binary (even in a non-gui
version) is easiest made using qmake.
2015-06-08 08:34:36 +02:00
Marius Kintel
87e32efc18 Handle dimensional errors in matrix multiplication, including undef values. Fixes #1356 2015-06-07 13:11:27 -04:00
Marius Kintel
2745b8534c Updated harfbuzz to 0.9.40 2015-06-07 13:09:41 -04:00
Marius Kintel
662a57a7bd Merge pull request #1358 from openscad/installer-updates
Add more detailed installer information including version number.
2015-06-07 11:17:18 -04:00
chrysn
7b39f455b5 fix building of remaining binaries
the previous patch has removed the -DENABLE_EXPERIMENTAL flag, assuming
that it is not required any more without openscad_nogui being built.
while that is sufficient for the test suite, other binaries built in the
tests/ directory would still use those flags.

in order to make them buildable again, the -DOPENSCAD_NOGUI compile time
option is added (as the resulting binaries are command-line-only tools,
which was previously implicit by setting -DOPENSCAD_TESTING), and
-DENABLE_EXPERIMENTAL is restored.
2015-06-07 15:32:36 +02:00
Don
cbccc87677 update opensuse dependency fetcher 2015-06-07 13:12:00 +00:00
Don Bright
dad1566ffa add xvfb download for debian dependencies (for Tests) 2015-06-06 22:22:12 -04:00
Don Bright
db206e78de fix typo for previous commit 2015-06-06 14:51:56 -04:00
Don Bright
357e7db66b workaround FORTIFY_SOURCE bug where clang won't build under fedora 22 2015-06-06 14:50:44 -04:00
Don Bright
51c4622ca0 prevent err message when calling boost::canonical on a path that doesnt exist 2015-06-06 13:30:21 -04:00
Don Bright
1bf93e1c77 install mesa-dri-drivers on fedora/redhat to allow Xvfb to work with OpenGL 2015-06-06 13:07:26 -04:00
Don Bright
892510b47b move #ifdef-out code where it was. document #if 0 #endif. move func up in file 2015-06-06 12:32:30 -04:00
chrysn
47f93e3f44 don't build openscad_nogui any more 2015-06-04 21:28:17 +02:00
chrysn
574f6e7d33 drop OPENSCAD_TESTING definition
for cases when a binary without gui / qt should be built, OPENSCAD_NOGUI
can now be defined. all the other uses for OPENSCAD_TESTING are now
covered by the unit test framework.
2015-06-04 21:24:07 +02:00
chrysn
d3494d66b1 add float normalization to test_cmdline_tool
this helps removing the need for OPENSCAD_TESTING
2015-06-04 21:17:27 +02:00
Don Bright
f993361f8b get scintilla for qt5 for fedora 2015-06-02 00:28:06 -04:00
Don Bright
75f10648c9 fix missing namespace bracket i previously deleted 2015-06-02 00:03:39 -04:00
Don Bright
5b917adff9 remove redundant vector_convert (its in cgalutils.h now) 2015-06-01 23:20:06 -04:00
Don Bright
4db4aa5563 prevent gcc crash on systems w 2GB RAM, by splitting cgalutils 2015-06-01 23:18:22 -04:00
Don Bright
0a2556304f split cgalutils to reduce gcc RAM usage. fix fedora deps. fix warnings 2015-06-01 21:43:27 -04:00
Torsten Paul
e1e3dae220 Add more detailed installer information including version number. 2015-06-01 21:37:51 +02:00
Don Bright
515c77b949 update fedora 22+ to use 'dnf' instead of 'yum', fix ImageMagick pkgname 2015-06-01 00:07:58 -04:00
Don Bright
7279c1c019 issue 1355 on Un*X find X11 for Offscreen, due to cmake change in OpenGL finding 2015-05-31 23:13:58 -04:00
Marius Kintel
42d6629156 Merge pull request #1339 from openscad/export-to-clipboard
Add "Export to Clipboard" to copy the current 3d view to the system clipboard.
2015-05-18 22:20:28 -04:00
Torsten Paul
ff2427cc1e Move to Edit->Copy Viewport and add shortcut SHIFT-CTRL-C. 2015-05-16 17:41:52 +02:00
Marius Kintel
5451fabcc1 Merge pull request #1346 from ArchimedesPi/fixup-some-coverity-defects
Fix some defects from Coverity (WIP)
2015-05-15 15:45:11 -04:00
Liam Marshall
9641e9bd7f oops can't delete a pointer address 2015-05-15 14:25:08 -05:00
Liam Marshall
365c562a17 Fix #1 of 2 in 25081 (OffscreenContextGLX.cc) 2015-05-15 14:20:46 -05:00
Liam Marshall
a1a238a9cd Fix memory leak 25072 (ModuleCache::evaluate) 2015-05-15 14:07:42 -05:00
Liam Marshall
7223f2ac05 Preserve output state so that everything afterwards doesn't get turned into hex 2015-05-15 13:43:23 -05:00
Liam Marshall
1752fcee8c Easier fix for 93925 (control.cc) 2015-05-15 13:31:20 -05:00
Liam Marshall
4f1132e5a6 Fix memory leak 25008 2015-05-15 13:15:31 -05:00
Liam Marshall
306cece150 Fix memory leak 25035 2015-05-15 13:11:55 -05:00
Liam Marshall
289d84aac0 Fix memory leak 93925 2015-05-15 12:52:12 -05:00
Liam Marshall
38b93fe7a7 Fix memory leak 25100 2015-05-15 12:46:30 -05:00
Marius Kintel
031e016df7 Fix resource path search; the 'libraries' folder isn't always installed. Fixes #1342 2015-05-14 22:32:00 -04:00
Marius Kintel
52f5fe2e92 Merge pull request #1343 from ArchimedesPi/quiet-mode
Implement quiet mode
2015-05-14 22:14:21 -04:00
Marius Kintel
f71e0acbbb Merge pull request #1338 from ArchimedesPi/axes-colorscheme
Add a axes-color option for color schemes
2015-05-14 22:12:37 -04:00
Marius Kintel
59f63b5e17 Merge pull request #1337 from openscad/script-detect
Simple detection of script and direction based on given text.
2015-05-14 22:10:44 -04:00
Marius Kintel
cd4ced5456 Merge pull request #1327 from openscad/issue1254-qscintilla-fedora
Workaround for Fedora 21 builds (fixes #1254).
2015-05-14 22:08:47 -04:00
Liam Marshall
2c6d783eb7 Change bacl to black axes for Cornfield 2015-05-14 14:48:12 -05:00
Liam Marshall
1ab390d115 Don't suppress error messages 2015-05-13 17:38:47 -05:00
Liam Marshall
c31a96454c Need to add quiet to OpenSCAD namespace 2015-05-13 11:23:15 -05:00
Liam Marshall
5239121706 Make PRINT_NOCACHE respect OpenSCAD::quiet 2015-05-13 11:21:55 -05:00
Liam Marshall
061537e773 Add OpenSCAD::quiet definition 2015-05-13 11:21:36 -05:00
Liam Marshall
02db2e15a4 Make -q toggle a global variable for quiet mode 2015-05-13 11:18:32 -05:00
Liam Marshall
4f4ddb938a Add --quiet,-q option 2015-05-13 11:16:24 -05:00
Liam Marshall
17f9941a08 Make default blue color a bit darker 2015-05-12 17:37:00 -05:00
Torsten Paul
591c98e979 Add "Export to Clipboard" to copy the current 3d view to the system clipboard. 2015-05-12 23:48:17 +02:00
Liam Marshall
ca9f9d9d9c axes-color for Tomorrow Night 2015-05-12 15:53:26 -05:00
Liam Marshall
0c2af2defa axes-color for Tomorrow 2015-05-12 15:53:19 -05:00
Liam Marshall
8e53c29612 axes-color for Sunset 2015-05-12 15:53:11 -05:00
Liam Marshall
e6cd3fdda1 axes-color for StarNight 2015-05-12 15:50:22 -05:00
Liam Marshall
f9b074c473 axes-color for Nature 2015-05-12 15:50:14 -05:00
Liam Marshall
3511e7079f axes-color for Monotone 2015-05-12 15:47:49 -05:00
Liam Marshall
7fb626fb08 axes-color for Metallic 2015-05-12 15:45:53 -05:00
Liam Marshall
55affd0273 axes-color for DeepOcean 2015-05-12 15:44:56 -05:00
Liam Marshall
c2f2ba5293 axes-color for beforedawn 2015-05-12 15:43:31 -05:00
Liam Marshall
69e6707c62 axes-color for solarized 2015-05-12 15:41:54 -05:00
Liam Marshall
9fb5893540 Map axes-color in JSON files to AXES_COLOR 2015-05-12 15:26:08 -05:00
Liam Marshall
cdbd08a4d3 Default for axis color (for testing) 2015-05-12 15:25:53 -05:00
Liam Marshall
98b6cf3d19 Add AXES_COLOR to enum RenderColor 2015-05-12 15:22:26 -05:00
Liam Marshall
5e3cd59eeb Switch from getContrastColor to getColor in GLView
* Removed bgcontrast
* Added new `Color4f axescolor` obtained by `ColorMap::getColor(...,
AXES_COLOR)`
* Switched showAxes and showScalemarkers to `axescolor`
2015-05-12 15:09:20 -05:00
Torsten Paul
9f372cff41 Simple detection of script and direction based on given text.
This adds a simple detection logic based on the hb_unicode_script()
function provided by harfbuzz. Automatic script selection will only
happen if no valid parameter was given (basically only in case of
a missing script parameter in text()).
If different scripts are found in a single text, the resulting value
is HB_SCRIPT_UNKNOWN.
2015-05-09 18:05:07 +02:00
Marius Kintel
89371f60cf Merge pull request #1335 from hroncok/patch-1
Czech translation: Add missing space
2015-05-04 15:02:58 -04:00
Miro Hrončok
c94e62878a Czech translation: Add missing space 2015-05-04 20:12:53 +02:00
Marius Kintel
2dbf9755c3 Version splitting used wrong variable, causing version() to return [0,0,0]. Fixes #1329 2015-04-28 10:21:02 -04:00
Marius Kintel
0e1b0daf36 #1254 Backport some code to boost filesystem V2, for old RedHat version 2015-04-26 16:11:51 -04:00
Marius Kintel
e21b321323 Allow compiling against libstdc++ and c++03 2015-04-26 16:11:10 -04:00
Torsten Paul
cc4b633e43 Workaround for Fedora 21 builds (fixes #1254).
Fedora installs qscintilla2.prf in the wrong location and has a different
naming scheme than the one used in Ubuntu so the existing workaround fails.
This adds yet another workaround to detect the different naming for the
Qt5 version of the QScintilla2 library.
2015-04-26 16:45:04 +02:00
Marius Kintel
c45f2b5f36 Merge branch 'master' of github.com:openscad/openscad 2015-04-25 21:31:17 -04:00
Marius Kintel
2b3392266f Merge pull request #1326 from openscad/issue1325
Fixes Issue #1325
2015-04-25 16:57:05 -04:00
Marius Kintel
12a43fd942 bugfix: bash substitution of SHORTVERSION was wrong 2015-04-21 11:10:24 -04:00
Marius Kintel
b3ae7fa1ff Merge pull request #1319 from openscad/issue1317
Fixed bug reversing result of is_nan(), causing normals vectors to somet...
2015-04-21 01:56:00 -04:00
Marius Kintel
a1bece5c51 Merge pull request #1316 from openscad/issue1288
Grab framebuffer before opening file dialog. Should fix #1288
2015-04-17 10:14:02 -04:00
Marius Kintel
4d3800cc89 Merge pull request #1313 from clothbot/patch-3
Removed deprecated assign statement
2015-04-16 00:32:12 -04:00
Andrew Plumb
c32e271a0c Sync up output with example023 cleanup. 2015-04-15 23:58:06 -04:00
Marius Kintel
6e5315b430 Merge pull request #1312 from clothbot/patch-2
Comment out search term not found WARNING
2015-04-15 22:08:24 -04:00
Andrew Plumb
9897174a03 Found more search PRINTB warnings to remove 2015-04-15 18:29:05 -04:00
Marius Kintel
e87dab0bc6 Merge branch 'master' of https://github.com/openscad/openscad 2015-04-15 14:35:15 -07:00
Marius Kintel
e5e9f20f95 Prefer http over ftp 2015-04-15 14:35:12 -07:00
Marius Kintel
b9c8985377 Fix gmp issue; ptrdiff_t not found. Fixes #1314 2015-04-15 14:33:51 -07:00
Andrew Plumb
e8c8bda674 Manually removing WARNING echos. 2015-04-15 14:50:44 -04:00
Andrew Plumb
dee5885d9f Manually removing WARNING echos. 2015-04-15 14:49:02 -04:00
Andrew Plumb
bb183558ae Removing instead of just commenting out line. 2015-04-15 14:47:30 -04:00
Marius Kintel
ed2f4c2e22 Merge pull request #1315 from ankush1995/compile-gl
separate-compile
2015-04-15 13:22:38 -04:00
ankush1995
7e5394c6fa separate-compile 2015-04-15 14:56:19 +05:30
Andrew Plumb
330b41656b Removed deprecated assign statement 2015-04-13 19:24:51 -04:00
Andrew Plumb
3adfdad66d Comment out search term not found WARNING
Returning empty result should be sufficient for detecting a no-match condition.

See forum discussion http://forum.openscad.org/Suppressing-quot-search-term-not-found-quot-warning-in-search-td12359.html
2015-04-13 18:46:43 -04:00
Marius Kintel
82f85cd328 Merge pull request #1311 from openscad/issue1276
Issue1276
2015-04-13 13:21:09 -04:00
Marius Kintel
f53b3a3ac1 Merge pull request #1310 from openscad/issue1284
Issue1284
2015-04-13 13:10:00 -04:00
Marius Kintel
90094fff25 Merge pull request #1295 from openscad/issue1294
Don't include build date. Fixes #1294
2015-04-01 17:10:36 -04:00
Marius Kintel
38ef9fddde Don't include build date. Fixes #1294 2015-04-01 17:09:57 -04:00
Marius Kintel
6c3c2de264 Merge pull request #1283 from Lenbok/scad-mode-updates
Updates to Emacs scad-mode
2015-03-30 23:29:24 -04:00
Lenbok
7632b065c6 Fix incorrect indentation for lines affected by # modifier 2015-03-28 15:38:13 +13:00
Lenbok
b43734c3e5 * Convert to being derived from cc-mode, as per a 2013 post from Lukasz
Stelmach. This yields better indentation (particularly for
  continuations) as well as being simpler.

* Update keywords for the 2015.03 release (plus a couple missed from
  earlier)

* Use separate highlighting style for deprecated keywords.
2015-03-28 13:59:45 +13:00
Torsten Paul
a5ec4587b6 Switch to MXE hosted in openscad github / branch openscad-snapshot-build. 2015-03-24 01:29:33 +01:00
Marius Kintel
1b840be127 Merge pull request #1280 from openscad/issue1264b
#1264 Backported to QScintilla 2.7, left a small bug when using 2.7 but ...
2015-03-23 16:30:57 -04:00
Marius Kintel
85290e4d51 Merge pull request #1279 from openscad/issue1277
Update temporal variables for each evaluation, not for each compilation....
2015-03-23 15:28:54 -04:00
Marius Kintel
3ac213d649 Merge pull request #1278 from openscad/issue1264
Reimplemented Replace All to work properly. Fixes #1264
2015-03-23 14:26:11 -04:00
Marius Kintel
2001f1302e Merge pull request #1275 from openscad/mxe-c++11
Build fixes to compile on MXE with C++11 enabled.
2015-03-23 11:32:34 -04:00
Torsten Paul
c71e70c0f9 Build fixes to compile on MXE with C++11 enabled. 2015-03-22 14:17:36 +01:00
Marius Kintel
d37f4fbbab install in normal location, set c++11 as default for dependencies 2015-03-20 20:16:55 -04:00
Marius Kintel
c5e1e2b9af Merge remote-tracking branch 'origin/master' into c++11 2015-03-20 17:00:41 -04:00
Marius Kintel
c037625b65 Disable c++11 as default for now 2015-03-20 17:00:05 -04:00
Marius Kintel
9660ba84a0 Merge remote-tracking branch 'origin/master' into c++11 2015-03-14 15:46:49 -04:00
Marius Kintel
067eec8743 Merge remote-tracking branch 'origin/master' into c++11 2015-03-12 01:38:29 -04:00
Marius Kintel
e78206d2aa Separate out std/stdlib flags since ragel doesn't currently build with C++11 2015-03-12 01:38:12 -04:00
Marius Kintel
394cc15fba Merge remote-tracking branch 'origin/master' into c++11 2015-03-10 22:08:06 -04:00
Marius Kintel
54239a2534 Merge remote-tracking branch 'origin/master' into c++11 2015-02-17 15:28:58 -05:00
Marius Kintel
6ac8d017b7 #669 Added DXX11 and LIBCXX11 options 2015-02-10 19:10:08 -05:00
Marius Kintel
8216e98afd Merge remote-tracking branch 'origin/master' into c++11 2015-02-10 19:09:12 -05:00
Marius Kintel
b567f844ad #669 Support libc++ in macosx-sanity-check 2015-02-10 17:50:42 -05:00
Marius Kintel
137928fced #669 C++11 build fix 2015-02-10 17:46:55 -05:00
Marius Kintel
7c2db84fe6 #669 Added C++11 support 2015-02-10 17:32:24 -05:00
Marius Kintel
65935b4466 Merge remote-tracking branch 'origin/master' into c++11 2015-02-10 17:31:12 -05:00
Marius Kintel
6576ee7d05 Merge remote-tracking branch 'origin/master' into c++11 2015-02-10 16:42:48 -05:00
Marius Kintel
a41c8716ec Merge remote-tracking branch 'origin/master' into c++11
Conflicts:
	openscad.pro
2015-01-06 01:10:04 -05:00
Marius Kintel
e1da26bd8b Merge remote-tracking branch 'origin/master' into c++11 2014-11-25 17:42:59 -05:00
Marius Kintel
437aa69292 Merge remote-tracking branch 'origin/master' into c++11 2014-11-25 17:13:01 -05:00
Marius Kintel
2bdf02d352 Cleaned up c++11 config a bit 2014-11-06 12:53:53 +01:00
Marius Kintel
637244d59e Merge remote-tracking branch 'origin/master' into c++11 2014-11-06 12:41:54 +01:00
Marius Kintel
3a3ffc0118 Merge remote-tracking branch 'origin/master' into c++11 2014-09-02 00:16:38 -04:00
Marius Kintel
67c68634b6 Be more verbose when using c++11 2014-09-02 00:16:36 -04:00
Marius Kintel
b394da33c7 Mac: Disallow c++11 if dependencies are linked against libstdc++ 2014-06-21 16:52:35 -04:00
Marius Kintel
a0875c845c Merge remote-tracking branch 'origin/master' into c++11 2014-06-21 16:15:56 -04:00
Marius Kintel
c4f369fbf8 Merge branch 'master' into c++11
Conflicts:
	openscad.pro
2014-06-10 00:16:05 -04:00
Marius Kintel
da56dff89d minor c++11 config fixes 2014-06-10 00:15:14 -04:00
Marius Kintel
1d6b7923bd Merge branch 'master' into c++11 2014-06-09 23:38:32 -04:00
Marius Kintel
7b4411bbcc We're actually checking for libc++, not c++11 2014-06-09 23:35:33 -04:00
Marius Kintel
2de378bef5 Merge branch 'master' into c++11 2014-06-09 23:23:44 -04:00
Marius Kintel
35222064c1 Adapt to using CONFIG+=c++11 2014-06-08 00:03:06 -04:00
Marius Kintel
7f782832d7 Merge remote-tracking branch 'origin/mac_libc++_build' into c++11 2014-06-07 23:45:31 -04:00
Oskar Linde
c5bc92d97c Mac: Automate build with libc++ when not using OPENSCAD_LIBRARIES
Conflicts:
	openscad.pro
2014-06-08 01:27:44 +02:00
Marius Kintel
19cea6f3a8 Merge branch 'master' into c++11 2014-06-07 17:49:29 -04:00
Marius Kintel
2eb96a2a88 Build as c++11. On Mac, build as c++11 if as libc++-linked boost exists 2014-06-07 17:48:42 -04:00
Marius Kintel
2cf6dcacf2 Merge branch 'master' into c++11 2014-06-05 19:18:33 -04:00
Marius Kintel
b2b3306205 Merge branch 'master' into c++11 2014-04-25 02:29:40 -04:00
Marius Kintel
d6340b18db Merge branch 'master' into c++11 2014-03-03 21:04:27 -05:00
Marius Kintel
fd1ae57c16 Merge branch 'f_enable_cpp11' of git://github.com/8p0/openscad into 8p0-f_enable_cpp11 2014-02-22 11:30:02 -05:00
Jan Huwald
086f231d5a fix typo 2014-02-21 12:21:38 +01:00
Jan Huwald
c259e5275c compile with -std=c++0x to support older C++11 compilers 2014-02-21 09:22:39 +01:00
Jan Huwald
ec3743dc9a compile as C++11 2014-02-13 12:00:12 +01:00
670 changed files with 31987 additions and 18858 deletions

10
.gitignore vendored
View file

@ -1,3 +1,5 @@
/*.scad
**/out*.*
*.dmg
*~
*.tar*
@ -9,13 +11,13 @@ objects
.qmake.stash
parser_yacc.h
**/#*#
testdata/scad/features/import_dxf-tests.scad
testdata/scad/features/import_stl-tests.scad
/.dir-locals.el
testdata/scad/2D/features/import_dxf-tests.scad
testdata/scad/3D/features/import_stl-tests.scad
testdata/scad/misc/include-tests.scad
testdata/scad/misc/use-tests.scad
**/project.xcworkspace
**/xcuserdata
/*.scad
/*.stl
/*.dxf
/*.off
@ -37,6 +39,7 @@ testdata/scad/misc/use-tests.scad
/lexer_lex.cpp
/parser_yacc.cpp
/OpenSCAD.app
/openscad.appdata.xml
/openscad.pro.user
/openscad
/locale/*/*/*.mo
@ -49,3 +52,4 @@ testdata/scad/misc/use-tests.scad
src/*.org
src/*.old
src/*.debug
/Testing

View file

@ -1,6 +1,22 @@
language: cpp
cache: apt
compiler: gcc
matrix:
include:
- os: linux
compiler: gcc
dist: trusty
env: DIST="trusty"
sudo: required
cache: apt
- os: linux
compiler: gcc
dist: precise
env: DIST="precise"
sudo: required
cache: apt
- os: osx
compiler: clang
env: DIST="osx"
notifications:
irc:
@ -11,16 +27,10 @@ notifications:
skip_join: true
before_install:
- echo 'yes' | sudo add-apt-repository ppa:chrysn/openscad
- sudo apt-get update -qq
- sudo apt-get install -qq build-essential libqt4-dev libqt4-opengl-dev libxmu-dev cmake bison flex git-core libboost-all-dev libXi-dev libmpfr-dev libboost-dev libglew-dev libeigen3-dev libcgal-dev libgmp3-dev libgmp-dev curl imagemagick libfontconfig-dev
- sudo apt-get install -qq libopencsg-dev
- echo 'yes' | sudo add-apt-repository ppa:mapnik/nightly-trunk
- sudo apt-get update -qq
- sudo apt-get install -qq libharfbuzz-dev
- echo 'yes' | sudo add-apt-repository ppa:oibaf/graphics-drivers
- sudo apt-get update -qq
- sudo apt-get install --install-recommends libgl1-mesa-dev-lts-quantal
- sudo id
- if [[ "$DIST" == "trusty" ]]; then sudo ./scripts/travis-before-install.sh "$DIST" ; fi
- if [[ "$DIST" == "precise" ]]; then sudo ./scripts/travis-before-install.sh "$DIST" ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; ./scripts/macosx-build-homebrew.sh ; fi
branches:
only:
@ -28,8 +38,8 @@ branches:
before_script:
- echo -e "Host files.openscad.org\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- echo -n $openscad_rsa_{00..40} >> ~/.ssh/openscad_rsa_base64
- base64 --decode --ignore-garbage ~/.ssh/openscad_rsa_base64 > ~/.ssh/id_rsa
- for i in {0..40}; do eval $(printf "echo \$openscad_rsa_%02d\n" $i) >> ~/.ssh/openscad_rsa_base64; done
- base64 --decode ~/.ssh/openscad_rsa_base64 > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
script: if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then ./scripts/travis-ci.sh ; fi
@ -84,6 +94,6 @@ addons:
name: "openscad/openscad"
description: "The Programmers Solid 3D CAD Modeller"
notification_email: dev@openscad.org
build_command_prepend: qmake
build_command_prepend: qmake CONFIG+=experimental CONFIG+=nogui
build_command: make
branch_pattern: coverity_scan

View file

@ -73,6 +73,16 @@
<key>CFBundleTypeRole</key>
<string>Viewer</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>svg</string>
</array>
<key>CFBundleTypeName</key>
<string>SVG file</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
</dict>
</array>
<key>NSAppleScriptEnabled</key>
<true/>
@ -82,5 +92,15 @@
<string>OpenSCAD.sdef</string>
<key>SUPublicDSAKeyFile</key>
<string>dsa_pub.pem</string>
<key>SUFeedURL</key>
<string>http://files.openscad.org/appcast.xml</string>
<key>NSExceptionDomains</key>
<dict>
<key>files.openscad.org</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key><true/>
<key>NSExceptionRequiresForwardSecrecy</key><false/>
</dict>
</dict>
</dict>
</plist>

View file

@ -1,6 +1,7 @@
[![Travis CI](https://api.travis-ci.org/openscad/openscad.png)](https://travis-ci.org/openscad/openscad)
[![Coverity Status](https://scan.coverity.com/projects/2510/badge.svg)](https://scan.coverity.com/projects/2510)
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/openscad/openscad/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
[![Visit our IRC channel](https://kiwiirc.com/buttons/irc.freenode.net/openscad.png)](https://kiwiirc.com/client/irc.freenode.net/#openscad)
# What is OpenSCAD?
[![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=openscad&url=http://openscad.org&title=OpenSCAD&language=&tags=github&category=software)
@ -88,13 +89,14 @@ libraries from aptitude. If you're using Mac, or an older Linux/BSD, there
are build scripts that download and compile the libraries from source.
Follow the instructions for the platform you're compiling on below.
* [Qt4 (4.4 - 5.4)](http://www.qt.nokia.com/)
* [QScintilla2 (2.7 - 2.8)](http://www.riverbankcomputing.co.uk/software/qscintilla/)
* [CGAL (3.6 - 4.5)](http://www.cgal.org/)
* A C++ compiler supporting C++11
* [Qt (4.4 -> 5.x)](http://qt.io/)
* [QScintilla2 (2.7 ->)](http://www.riverbankcomputing.co.uk/software/qscintilla/)
* [CGAL (3.6 ->)](http://www.cgal.org/)
* [GMP (5.x)](http://www.gmplib.org/)
* [MPFR (3.x)](http://www.mpfr.org/)
* [cmake (2.8 - 3.0, required by CGAL and the test framework)](http://www.cmake.org/)
* [boost (1.35 - 1.57)](http://www.boost.org/)
* [cmake (2.8 ->, required by CGAL and the test framework)](http://www.cmake.org/)
* [boost (1.35 ->)](http://www.boost.org/)
* [OpenCSG (1.3.2 ->)](http://www.opencsg.org/)
* [GLEW (1.5.4 ->)](http://glew.sourceforge.net/)
* [Eigen (3.x)](http://eigen.tuxfamily.org/)
@ -123,39 +125,39 @@ To pull the MCAD library (http://reprap.org/wiki/MCAD), do the following:
Prerequisites:
* XCode, including XCode command-line tools.
* Xcode
* cmake
* pkg-config
Install Dependencies:
Run the script that sets up the environment variables:
```source setenv_mac-qt5.sh```
Then run the script to compile all the dependencies:
```./scripts/macosx-build-dependencies.sh```
After building dependencies, follow the instructions in the *Compilation* section.
For the adventurous, it might be possible to build OpenSCAD using _MacPorts_ or _Homebrew_. The main challenge is that both these systems have partially broken libraries, but that tends to change from time to time.
1. **From source**
Run the script that sets up the environment variables:
source setenv_mac.sh
Then run the script to compile all the dependencies:
./scripts/macosx-build-dependencies.sh
1. **Homebrew** (assumes [Homebrew](http://brew.sh) is already installed)
./scripts/macosx-build-homebrew.sh
1. **MacPorts** (assumes [MacPorts](http://macports.org) is already installed)
For the adventurous, it might be possible to build OpenSCAD using _MacPorts_. The main challenge is that MacPorts have partially broken libraries, but that tends to change from time to time.
NB! MacPorts currently doesn't support Qt5 very well, so using Qt4
is the only working option at the moment. However, MacPorts' Qt4
has a broken ```moc``` command, causing OpenSCAD compilation to
has a broken `moc` command, causing OpenSCAD compilation to
break. This may be fixed in MacPorts by the time you read this.
```sudo port install opencsg qscintilla boost cgal pkgconfig eigen3 harfbuzz fontconfig```
sudo port install opencsg qscintilla boost cgal pkgconfig eigen3 harfbuzz fontconfig
1. **Homebrew** (assumes [Homebrew](http://brew.sh)) is already installed)
NB! Homebrew's ```qscintilla2``` component doesn't support Qt5, so using Qt4 is currently necessary.
However, Homebrew's Qt4 has a broken ```moc``` command, causing OpenSCAD compilation to
break. This may be fixed in Homebrew by the time you read this.
NB! Homebrew's ```harfbuzz``` package requires X11, so you may have to install an X11 server.
NB! Homebrew doesnt have an OpenCSG package
```brew install cgal qscintilla2 eigen harfbuzz```
### Building for Linux/BSD
@ -204,36 +206,40 @@ OpenSCAD for Windows is usually cross-compiled from Linux. If you wish to
attempt an MSVC build on Windows, please see this site:
http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Building_on_Windows
To cross-build, first make sure that you have development tools
installed to get GCC. Then after you've cloned this git repository,
start a new clean bash shell and run the script that sets up the environment
variables.
To cross-build, first make sure that you have all necessary dependencies
of the MXE project ( listed at http://mxe.cc/#requirements ). Don't install
MXE itself, the scripts below will do that for you under $HOME/openscad_deps/mxe
source ./scripts/setenv-mingw-xbuild.sh 32
Then get your development tools installed to get GCC. Then after you've
cloned this git repository, start a new clean bash shell and run the
script that sets up the environment variables.
source ./scripts/setenv-mingw-xbuild.sh 64
Then run the script to download & compile all the prerequisite libraries above:
./scripts/mingw-x-build-dependencies.sh 32
./scripts/mingw-x-build-dependencies.sh 64
Note that this process can take several hours, as it uses the
http://mxe.cc system to cross-build many libraries. After it is
complete, build OpenSCAD and package it to an installer:
Note that this process can take several hours, and tens of gigabytes of
disk space, as it uses the http://mxe.cc system to cross-build many
libraries. After it is complete, build OpenSCAD and package it to an
installer:
./scripts/release-common.sh mingw32
./scripts/release-common.sh mingw64
If you wish you can only build the openscad.exe binary:
cd mingw32
cd mingw64
qmake ../openscad.pro CONFIG+=mingw-cross-env
make
For a 64-bit Windows cross-build, replace 32 with 64 in the above instructions.
For a 32-bit Windows cross-build, replace 64 with 32 in the above instructions.
### Compilation
First, run 'qmake openscad.pro' from Qt4 to generate a Makefile.
First, run 'qmake openscad.pro' from Qt to generate a Makefile.
On some systems, depending on which version(s) of Qt you have installed, you may need to specify which version you want to use, e.g. by running 'qmake4', 'qmake-qt4' or something alike.
On some systems, depending on which version(s) of Qt you have installed, you may need to specify which version you want to use, e.g. by running 'qmake4', 'qmake-qt4', 'qmake -qt=qt5', or something alike.
Then run make. Finally you might run 'make install' as root or simply copy the
'openscad' binary (OpenSCAD.app on Mac OS X) to the bin directory of your choice.

View file

@ -1,6 +1,42 @@
# OpenSCAD 2015.03
## 2015.03-2
**Bugfixes**
* \#1483 - Fix Z-fighting in Ortho view
* \#1479 - No check for infinite $fn
* \#1472 - "nan" in list comprehension causes crash
* \#452 - rands() fails when the seed is a floating point number
* \#1407 - Recursive module crash
* \#1425 - Animate Filename Generation - Duplicate/Missing Filenames
* \#1420 - expression-evaluation-tests fails on arm64
* \#1410 - Crash when a polygon contains NaN
* \#1378 - Linear extrude plus infinite twist causes crash instead of just an error
* \#1358 - Add more detailed installer information including version number
* \#1356 - Crash when multiplying matrices with undefined elements
* \#1350 - Saving file when HD is full ends up in data loss
* \#1342 - Syntax Highlighting Does Not Work on Linux Mint 17.1
* \#1337 - Simple detection of script and direction based on given text
* \#1325 - Crash when polygons with > 3 indices turn out to be degenerate
* \#1329 - version() returned ```[0,0,0]```
## 2015.03-1
**Bugfixes**
* \#1203 - Linux: Missing icons on Xfce
* \#1258 - Occasional crash when exporting STL
* \#1260 - Minimal window width too large
* \#1264 - Replace All sometimes caused a hang
* \#1274 - Fixed some preview bugs on Intel GPUs (OpenCSG 1.4.0)
* \#1276 - Module recursion sometimes caused a crash
* \#1277 - Automatic reload sometimes messed up camera position
* \#1284 - Animation flicker eliminated
* \#1294 - Support reproducible builds
* \#1317 - Normals vectors in STL were sometimes 0 0 0
## 2015.03
**Language Features:**
* Added text() module for 2D text
* Added offset() module for 2D offsets

View file

@ -13,10 +13,12 @@ boost {
macx: DEFINES += __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0
# MXE cross build
CONFIG(mingw-cross-env) {
DEFINES += BOOST_STATIC
CONFIG(mingw-cross-env)|CONFIG(mingw-cross-env-shared) {
DEFINES += BOOST_THREAD_USE_LIB
DEFINES += Boost_USE_STATIC_LIBS
!CONFIG(mingw-cross-env-shared) {
DEFINES += BOOST_STATIC
DEFINES += Boost_USE_STATIC_LIBS
}
BOOST_LINK_FLAGS = -lboost_thread_win32-mt -lboost_program_options-mt -lboost_filesystem-mt -lboost_system-mt -lboost_regex-mt -lboost_chrono-mt
}

50
c++11.pri Normal file
View file

@ -0,0 +1,50 @@
macx {
# Mac needs special care to link against the correct C++ library
# We attempt to auto-detect it by inspecting Boost
dirs = $${BOOSTDIR} $${QMAKE_LIBDIR}
for(dir, dirs) {
system(grep -q __112basic_string $${dir}/libboost_thread* >& /dev/null) {
message("Using libc++11")
CONFIG += libc++
}
else {
message("Using libstdc++")
CONFIG += libstdc++
c++11 {
# libc++ is a requirement for using C++11
warning("Disabling C++11 since libstdc++ dependencies were found")
CONFIG -= c++11
}
}
}
libc++ {
QMAKE_CXXFLAGS += -stdlib=libc++
QMAKE_LFLAGS += -stdlib=libc++
QMAKE_OBJECTIVE_CFLAGS += -stdlib=libc++
}
}
c++11 {
# -std=c++11 is only available in gcc>=4.7
*g++*: QMAKE_CXXFLAGS += -std=c++0x
else: QMAKE_CXXFLAGS += -std=c++11
message("Using C++11")
*clang*: {
# 3rd party libraries will probably violate this for a long time
CXX11_SUPPRESS_WARNINGS += -Wno-inconsistent-missing-override
# boost/algorithm/string.hpp does this
CXX11_SUPPRESS_WARNINGS += -Wno-unused-local-typedef
# CGAL
CXX11_SUPPRESS_WARNINGS += -Wno-deprecated-register
QMAKE_CXXFLAGS_WARN_ON += $$CXX11_SUPPRESS_WARNINGS
QMAKE_OBJECTIVE_CFLAGS_WARN_ON += $$CXX11_SUPPRESS_WARNINGS
}
}
else {
*clang* {
QMAKE_CXXFLAGS_WARN_ON += -Wno-c++11-extensions
}
}

View file

@ -10,7 +10,7 @@ cgal {
message("CGAL location: $$CGAL_DIR")
}
CONFIG(mingw-cross-env) {
CONFIG(mingw-cross-env)|CONFIG(mingw-cross-env-shared) {
LIBS += -lgmp -lmpfr -lCGAL
QMAKE_CXXFLAGS += -frounding-math
} else {

203
cgal/data/issue1455.nef3 Normal file
View file

@ -0,0 +1,203 @@
Selective Nef Complex
standard
vertices 15
halfedges 42
facets 18
volumes 2
shalfedges 84
shalfloops 2
sfaces 30
0 { 0 2, 0 5, 0 1, -2 | 0 0 5 1 } 1
1 { 3 5, 6 11, 2 3, -2 | 5 0 5 1 } 1
2 { 6 8, 12 17, 4 5, -2 | 5 5 5 1 } 1
3 { 9 11, 18 23, 6 7, -2 | 0 5 0 1 } 1
4 { 12 14, 24 29, 8 9, -2 | 5 0 0 1 } 1
5 { 15 17, 30 35, 10 11, -2 | 5 5 0 1 } 1
6 { 18 20, 36 41, 12 13, -2 | 0 5 5 1 } 1
7 { 21 23, 42 47, 14 15, -2 | 0 0 3 1 } 0
8 { 24 26, 48 53, 16 17, -2 | 3 0 3 1 } 0
9 { 27 29, 54 59, 18 19, -2 | 3 3 3 1 } 0
10 { 30 32, 60 65, 20 21, -2 | 0 3 0 1 } 0
11 { 33 35, 66 71, 22 23, -2 | 3 0 0 1 } 0
12 { 36 38, 72 77, 24 25, -2 | 3 3 0 1 } 0
13 { 39 41, 78 83, 26 27, -2 | 0 3 3 1 } 0
14 { -2 -2, -2 -2, 28 29, 0 | 2 2 3 1 } 1
0 { 3, 0, 0 0 | 1 0 0 1 } 1
1 { 18, 0, 0 5 | 0 1 0 1 } 1
2 { 21, 0, 0 4 | 0 0 -1 1 } 1
3 { 0, 1, 0 6 | -1 0 0 1 } 1
4 { 6, 1, 0 7 | 0 1 0 1 } 1
5 { 13, 1, 0 10 | 0 0 -1 1 } 1
6 { 4, 2, 0 14 | 0 -1 0 1 } 1
7 { 19, 2, 0 13 | -1 0 0 1 } 1
8 { 17, 2, 0 16 | 0 0 -1 1 } 1
9 { 32, 3, 0 20 | 0 -1 0 1 } 1
10 { 20, 3, 0 22 | 0 0 1 1 } 1
11 { 16, 3, 0 21 | 1 0 0 1 } 1
12 { 34, 4, 0 26 | -1 0 0 1 } 1
13 { 5, 4, 0 28 | 0 0 1 1 } 1
14 { 15, 4, 0 25 | 0 1 0 1 } 1
15 { 14, 5, 0 30 | 0 -1 0 1 } 1
16 { 11, 5, 0 34 | -1 0 0 1 } 1
17 { 8, 5, 0 35 | 0 0 1 1 } 1
18 { 1, 6, 0 36 | 0 -1 0 1 } 1
19 { 7, 6, 0 40 | 1 0 0 1 } 1
20 { 10, 6, 0 41 | 0 0 -1 1 } 1
21 { 2, 7, 0 44 | 0 0 1 1 } 1
22 { 24, 7, 0 46 | 1 0 0 1 } 0
23 { 39, 7, 0 47 | 0 1 0 1 } 0
24 { 22, 8, 0 50 | -1 0 0 1 } 0
25 { 27, 8, 0 49 | 0 1 0 1 } 0
26 { 33, 8, 0 52 | 0 0 -1 1 } 0
27 { 25, 9, 0 56 | 0 -1 0 1 } 0
28 { 40, 9, 0 55 | -1 0 0 1 } 0
29 { 38, 9, 0 58 | 0 0 -1 1 } 0
30 { 41, 10, 0 62 | 0 0 1 1 } 0
31 { 37, 10, 0 64 | 1 0 0 1 } 0
32 { 9, 10, 0 65 | 0 1 0 1 } 1
33 { 26, 11, 0 68 | 0 0 1 1 } 0
34 { 12, 11, 0 70 | 1 0 0 1 } 1
35 { 36, 11, 0 71 | 0 1 0 1 } 0
36 { 35, 12, 0 74 | 0 -1 0 1 } 0
37 { 31, 12, 0 76 | -1 0 0 1 } 0
38 { 29, 12, 0 77 | 0 0 1 1 } 0
39 { 23, 13, 0 80 | 0 -1 0 1 } 0
40 { 28, 13, 0 82 | 1 0 0 1 } 0
41 { 30, 13, 0 79 | 0 0 -1 1 } 0
0 { 1, 79 , , 0 | -1 0 0 0 } 1
1 { 0, 78 , , 1 | 1 0 0 0 } 1
2 { 3, 37 , , 0 | 0 0 1 -5 } 1
3 { 2, 36 , , 1 | 0 0 -1 5 } 1
4 { 5, 9 , , 0 | 1 0 0 -5 } 1
5 { 4, 8 , , 1 | -1 0 0 5 } 1
6 { 7, 35 , , 0 | 0 1 0 -5 } 1
7 { 6, 34 , , 1 | 0 -1 0 5 } 1
8 { 9, 74 , , 0 | 0 0 -1 0 } 1
9 { 8, 75 , , 1 | 0 0 1 0 } 1
10 { 11, 2 , , 0 | 0 -1 0 0 } 1
11 { 10, 3 , , 1 | 0 1 0 0 } 1
12 { 13, 81 , 1 , 1 | 0 0 1 -3 } 0
13 { 12, 80 , 0 , 0 | 0 0 -1 3 } 0
14 { 15, 53 , , 1 | 1 0 0 -3 } 0
15 { 14, 52 , , 0 | -1 0 0 3 } 0
16 { 17, 77 , , 1 | 0 1 0 -3 } 0
17 { 16, 76 , , 0 | 0 -1 0 3 } 0
0 { 0 } 0
1 { 15 } 1
0 { 1, 3, 5, 0, 0, 7, 36, 3 | 0 0 1 0 } 1
1 { 0, 4, 2, 1, 1, 37, 6, 2 | 0 0 -1 0 } 1
2 { 3, 1, 4, 0, 1, 10, 44, 10 | 0 1 0 0 } 1
3 { 2, 5, 0, 2, 0, 45, 11, 11 | 0 -1 0 0 } 1
4 { 5, 2, 1, 2, 1, 43, 38, 0 | 1 0 0 0 } 1
5 { 4, 0, 3, 1, 0, 39, 42, 1 | -1 0 0 0 } 1
6 { 7, 10, 9, 3, 3, 1, 12, 2 | 0 0 -1 0 } 1
7 { 6, 8, 11, 4, 2, 13, 0, 3 | 0 0 1 0 } 1
8 { 9, 11, 7, 5, 2, 29, 14, 5 | 1 0 0 0 } 1
9 { 8, 6, 10, 4, 3, 15, 28, 4 | -1 0 0 0 } 1
10 { 11, 9, 6, 5, 3, 26, 2, 10 | 0 1 0 0 } 1
11 { 10, 7, 8, 3, 2, 3, 27, 11 | 0 -1 0 0 } 1
12 { 13, 15, 17, 6, 5, 6, 37, 2 | 0 0 -1 0 } 1
13 { 12, 16, 14, 7, 4, 36, 7, 3 | 0 0 1 0 } 1
14 { 15, 13, 16, 6, 4, 8, 33, 5 | 1 0 0 0 } 1
15 { 14, 17, 12, 8, 5, 32, 9, 4 | -1 0 0 0 } 1
16 { 17, 14, 13, 8, 4, 34, 40, 7 | 0 1 0 0 } 1
17 { 16, 12, 15, 7, 5, 41, 35, 6 | 0 -1 0 0 } 1
18 { 19, 21, 22, 9, 6, 60, 39, 1 | -1 0 0 0 } 1
19 { 18, 23, 20, 10, 7, 38, 61, 0 | 1 0 0 0 } 1
20 { 21, 19, 23, 9, 7, 64, 31, 8 | 0 0 1 0 } 1
21 { 20, 22, 18, 11, 6, 30, 65, 9 | 0 0 -1 0 } 1
22 { 23, 18, 21, 10, 6, 40, 34, 7 | 0 1 0 0 } 1
23 { 22, 20, 19, 11, 7, 35, 41, 6 | 0 -1 0 0 } 1
24 { 25, 27, 29, 12, 8, 71, 30, 9 | 0 0 -1 0 } 1
25 { 24, 28, 26, 14, 9, 31, 70, 8 | 0 0 1 0 } 1
26 { 27, 25, 28, 12, 9, 68, 10, 10 | 0 1 0 0 } 1
27 { 26, 29, 24, 13, 8, 11, 69, 11 | 0 -1 0 0 } 1
28 { 29, 26, 25, 13, 9, 9, 32, 4 | -1 0 0 0 } 1
29 { 28, 24, 27, 14, 8, 33, 8, 5 | 1 0 0 0 } 1
30 { 31, 33, 34, 15, 11, 24, 21, 9 | 0 0 -1 0 } 1
31 { 30, 35, 32, 16, 10, 20, 25, 8 | 0 0 1 0 } 1
32 { 33, 31, 35, 15, 10, 28, 15, 4 | -1 0 0 0 } 1
33 { 32, 34, 30, 17, 11, 14, 29, 5 | 1 0 0 0 } 1
34 { 35, 30, 33, 16, 11, 22, 16, 7 | 0 1 0 0 } 1
35 { 34, 32, 31, 17, 10, 17, 23, 6 | 0 -1 0 0 } 1
36 { 37, 39, 40, 18, 12, 0, 13, 3 | 0 0 1 0 } 1
37 { 36, 41, 38, 19, 13, 12, 1, 2 | 0 0 -1 0 } 1
38 { 39, 37, 41, 18, 13, 4, 19, 0 | 1 0 0 0 } 1
39 { 38, 40, 36, 20, 12, 18, 5, 1 | -1 0 0 0 } 1
40 { 41, 36, 39, 19, 12, 16, 22, 7 | 0 1 0 0 } 1
41 { 40, 38, 37, 20, 13, 23, 17, 6 | 0 -1 0 0 } 1
42 { 43, 45, 47, 21, 14, 5, 78, 1 | -1 0 0 0 } 1
43 { 42, 46, 44, 23, 15, 79, 4, 0 | 1 0 0 0 } 1
44 { 45, 43, 46, 21, 15, 2, 50, 10 | 0 1 0 0 } 1
45 { 44, 47, 42, 22, 14, 51, 3, 11 | 0 -1 0 0 } 1
46 { 47, 44, 43, 22, 15, 49, 80, 13 | 0 0 1 0 } 0
47 { 46, 42, 45, 23, 14, 81, 48, 12 | 0 0 -1 0 } 0
48 { 49, 51, 53, 24, 16, 47, 54, 12 | 0 0 -1 0 } 0
49 { 48, 52, 50, 25, 17, 55, 46, 13 | 0 0 1 0 } 0
50 { 51, 49, 52, 24, 17, 44, 68, 10 | 0 1 0 0 } 1
51 { 50, 53, 48, 26, 16, 69, 45, 11 | 0 -1 0 0 } 1
52 { 53, 50, 49, 26, 17, 67, 56, 15 | 1 0 0 0 } 0
53 { 52, 48, 51, 25, 16, 57, 66, 14 | -1 0 0 0 } 0
54 { 55, 57, 59, 27, 19, 48, 81, 12 | 0 0 -1 0 } 0
55 { 54, 58, 56, 28, 18, 80, 49, 13 | 0 0 1 0 } 0
56 { 57, 55, 58, 27, 18, 52, 73, 15 | 1 0 0 0 } 0
57 { 56, 59, 54, 29, 19, 72, 53, 14 | -1 0 0 0 } 0
58 { 59, 56, 55, 29, 18, 76, 82, 17 | 0 1 0 0 } 0
59 { 58, 54, 57, 28, 19, 83, 77, 16 | 0 -1 0 0 } 0
60 { 61, 63, 65, 30, 20, 78, 18, 1 | -1 0 0 0 } 1
61 { 60, 64, 62, 32, 21, 19, 79, 0 | 1 0 0 0 } 1
62 { 63, 61, 64, 30, 21, 82, 76, 17 | 0 1 0 0 } 0
63 { 62, 65, 60, 31, 20, 77, 83, 16 | 0 -1 0 0 } 0
64 { 65, 62, 61, 31, 21, 74, 20, 8 | 0 0 1 0 } 1
65 { 64, 60, 63, 32, 20, 21, 75, 9 | 0 0 -1 0 } 1
66 { 67, 69, 71, 33, 22, 53, 72, 14 | -1 0 0 0 } 0
67 { 66, 70, 68, 35, 23, 73, 52, 15 | 1 0 0 0 } 0
68 { 69, 67, 70, 33, 23, 50, 26, 10 | 0 1 0 0 } 1
69 { 68, 71, 66, 34, 22, 27, 51, 11 | 0 -1 0 0 } 1
70 { 71, 68, 67, 34, 23, 25, 74, 8 | 0 0 1 0 } 1
71 { 70, 66, 69, 35, 22, 75, 24, 9 | 0 0 -1 0 } 1
72 { 73, 75, 77, 36, 24, 66, 57, 14 | -1 0 0 0 } 0
73 { 72, 76, 74, 38, 25, 56, 67, 15 | 1 0 0 0 } 0
74 { 75, 73, 76, 36, 25, 70, 64, 8 | 0 0 1 0 } 1
75 { 74, 77, 72, 37, 24, 65, 71, 9 | 0 0 -1 0 } 1
76 { 77, 74, 73, 37, 25, 62, 58, 17 | 0 1 0 0 } 0
77 { 76, 72, 75, 38, 24, 59, 63, 16 | 0 -1 0 0 } 0
78 { 79, 81, 83, 39, 26, 42, 60, 1 | -1 0 0 0 } 1
79 { 78, 82, 80, 41, 27, 61, 43, 0 | 1 0 0 0 } 1
80 { 81, 79, 82, 39, 27, 46, 55, 13 | 0 0 1 0 } 0
81 { 80, 83, 78, 40, 26, 54, 47, 12 | 0 0 -1 0 } 0
82 { 83, 80, 79, 40, 27, 58, 62, 17 | 0 1 0 0 } 0
83 { 82, 78, 81, 41, 26, 63, 59, 16 | 0 -1 0 0 } 0
0 { 1, 28, 13 | 0 0 1 0 } 0
1 { 0, 29, 12 | 0 0 -1 0 } 0
0 { 0, 0 , , , 0 } 0
1 { 0, 1 , , , 1 } 1
2 { 1, 7 , , , 0 } 0
3 { 1, 6 , , , 1 } 1
4 { 2, 13 , , , 0 } 0
5 { 2, 12 , , , 1 } 1
6 { 3, 18 , , , 0 } 0
7 { 3, 19 , , , 1 } 1
8 { 4, 24 , , , 0 } 0
9 { 4, 25 , , , 1 } 1
10 { 5, 31 , , , 1 } 1
11 { 5, 30 , , , 0 } 0
12 { 6, 36 , , , 0 } 0
13 { 6, 37 , , , 1 } 1
14 { 7, 42 , , , 0 } 0
15 { 7, 43 , , , 1 } 1
16 { 8, 48 , , , 0 } 0
17 { 8, 49 , , , 1 } 1
18 { 9, 55 , , , 1 } 1
19 { 9, 54 , , , 0 } 0
20 { 10, 60 , , , 0 } 0
21 { 10, 61 , , , 1 } 1
22 { 11, 66 , , , 0 } 0
23 { 11, 67 , , , 1 } 1
24 { 12, 72 , , , 0 } 0
25 { 12, 73 , , , 1 } 1
26 { 13, 78 , , , 0 } 0
27 { 13, 79 , , , 1 } 1
28 { 14, , , 0, 1 } 1
29 { 14, , , 1, 0 } 0
/* end Selective Nef complex */

View file

@ -1,4 +1,5 @@
#include <boost/foreach.hpp>
#include <boost/filesystem.hpp>
#include <boost/regex.hpp>
#include <sstream>
#include <iostream>
@ -8,14 +9,17 @@
#include "export.h"
#include "polyset.h"
#include "CGAL_Nef_polyhedron.h"
#include <CGAL/IO/Nef_polyhedron_iostream_3.h>
using namespace CGALUtils;
namespace fs = boost::filesystem;
// Nef polyhedron are using CGAL_Kernel3 (Cartesian<Gmpq>)
// Triangulation will use Epick
typedef CGAL::Epick K;
typedef CGAL::Polyhedron_3<K> PolyhedronK;
#include <boost/algorithm/string.hpp>
#include <boost/assign/std/vector.hpp>
#include <boost/assign/list_of.hpp>
using namespace boost::assign; // bring 'operator+=()' into scope
@ -629,21 +633,30 @@ int main(int argc, char *argv[])
OpenSCAD::debug = "decompose";
PolySet *ps = NULL;
CGAL_Nef_polyhedron *N = NULL;
if (argc == 2) {
if (!(ps = import_stl(argv[1]))) {
std::cerr << "Error importing STL " << argv[1] << std::endl;
exit(1);
std::string filename(argv[1]);
std::string suffix = filename.extension().generic_string();
if (suffix == ".stl") {
if (!(ps = import_stl(filename))) {
std::cerr << "Error importing STL " << filename << std::endl;
exit(1);
}
std::cerr << "Imported " << ps->numPolygons() << " polygons" << std::endl;
}
else if (suffix == ".nef3") {
N = new CGAL_Nef_polyhedron(new CGAL_Nef_polyhedron3);
std::ifstream stream(filename.c_str());
stream >> *N->p3;
std::cerr << "Imported Nef polyhedron" << std::endl;
}
std::cerr << "Imported " << ps->numPolygons() << " polygons" << std::endl;
}
else {
std::cerr << "Usage: " << argv[0] << " <file.stl> <file.stl>" << std::endl;
exit(1);
}
Geometry::ChildList children;
CGAL_Nef_polyhedron *N = createNefPolyhedronFromGeometry(*ps);
if (ps && !N) N = createNefPolyhedronFromGeometry(*ps);
std::vector<PolyhedronK> result;
decompose(N->p3.get(), std::back_inserter(result));

View file

@ -4,7 +4,7 @@ debug: DEFINES += DEBUG
TEMPLATE = app
INCLUDEPATH += ../src
INCLUDEPATH += ../src ../src/libtess2/Include
DEPENDPATH += ../src
# Handle custom library location.
@ -54,10 +54,12 @@ macx {
}
}
# See Dec 2011 OpenSCAD mailing list, re: CGAL/GCC bugs.
*g++* {
# See Dec 2011 OpenSCAD mailing list, re: CGAL/GCC bugs.
QMAKE_CXXFLAGS *= -fno-strict-aliasing
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-local-typedefs # ignored before 4.8
# use of 'auto'
QMAKE_CXXFLAGS += -std=c++11
}
*clang* {
@ -80,29 +82,52 @@ CONFIG += gettext
mac: {
LIBS += -framework OpenGL
} else {
LIBS += -lGL
}
include(../common.pri)
HEADERS += ../src/cgal.h \
../src/cgalutils.h \
../src/linalg.h \
../src/grid.h \
../src/polyset.h \
../src/polyset-utils.h \
../src/printutils.h
../src/printutils.h \
../src/GeometryUtils.h \
../src/libtess2/Include/tesselator.h \
../src/libtess2/Source/bucketalloc.h \
../src/libtess2/Source/dict.h \
../src/libtess2/Source/geom.h \
../src/libtess2/Source/mesh.h \
../src/libtess2/Source/priorityq.h \
../src/libtess2/Source/sweep.h \
../src/libtess2/Source/tess.h
SOURCES += decompose.cpp \
../src/polygon2d.cc \
../src/polygon2d-CGAL.cc \
../src/CGAL_Nef_polyhedron.cc \
../src/CGAL_Nef_polyhedron_DxfData.cc \
../src/cgalutils.cc \
../src/cgalutils-applyops.cc \
../src/cgalutils-tess.cc \
../src/cgalutils-polyhedron.cc \
../src/polyset.cc \
../src/polyset-gl.cc \
../src/GeometryUtils.cc \
../src/svg.cc \
../src/grid.cc \
../src/node.cc \
../src/export.cc \
../src/polyset-utils.cc \
../src/progress.cc \
../src/printutils.cc
../src/printutils.cc \
../src/libtess2/Source/bucketalloc.c \
../src/libtess2/Source/dict.c \
../src/libtess2/Source/geom.c \
../src/libtess2/Source/mesh.c \
../src/libtess2/Source/priorityq.c \
../src/libtess2/Source/sweep.c \
../src/libtess2/Source/tess.c

View file

@ -1,5 +1,6 @@
#include <boost/foreach.hpp>
#include <boost/regex.hpp>
#include <boost/filesystem.hpp>
#include <sstream>
#include <iostream>
#include <fstream>
@ -9,11 +10,11 @@
#include "export.h"
#include "polyset.h"
#include "CGAL_Nef_polyhedron.h"
#include "boosty.h"
#include <CGAL/IO/Nef_polyhedron_iostream_3.h>
using namespace CGALUtils;
namespace fs=boost::fileystem;
#define STL_FACET_NUMBYTES 4*3*4+2
// as there is no 'float32_t' standard, we assume the systems 'float'
@ -152,7 +153,7 @@ int main(int argc, char *argv[])
PolySet *ps = NULL;
if (argc == 2) {
std::string filename(argv[1]);
std::string suffix = boosty::extension_str(filename);
std::string suffix = filename.extension().generic_string();
boost::algorithm::to_lower(suffix);
if (suffix == ".stl") {
if (!(ps = import_stl(filename))) {

View file

@ -4,7 +4,7 @@ debug: DEFINES += DEBUG
TEMPLATE = app
INCLUDEPATH += ../src
INCLUDEPATH += ../src ../src/libtess2/Include
DEPENDPATH += ../src
# Handle custom library location.
@ -87,23 +87,42 @@ include(../common.pri)
HEADERS += ../src/cgal.h \
../src/cgalutils.h \
../src/linalg.h \
../src/grid.h \
../src/polyset.h \
../src/polyset-utils.h \
../src/printutils.h
../src/printutils.h \
../src/GeometryUtils.h \
../src/libtess2/Include/tesselator.h \
../src/libtess2/Source/bucketalloc.h \
../src/libtess2/Source/dict.h \
../src/libtess2/Source/geom.h \
../src/libtess2/Source/mesh.h \
../src/libtess2/Source/priorityq.h \
../src/libtess2/Source/sweep.h \
../src/libtess2/Source/tess.h
SOURCES += export_nef.cpp \
../src/polygon2d.cc \
../src/polygon2d-CGAL.cc \
../src/CGAL_Nef_polyhedron.cc \
../src/CGAL_Nef_polyhedron_DxfData.cc \
../src/cgalutils.cc \
../src/cgalutils-applyops.cc \
../src/cgalutils-tess.cc \
../src/cgalutils-polyhedron.cc \
../src/polyset.cc \
../src/polyset-gl.cc \
../src/GeometryUtils.cc \
../src/svg.cc \
../src/grid.cc \
../src/node.cc \
../src/export.cc \
../src/polyset-utils.cc \
../src/progress.cc \
../src/printutils.cc \
../src/grid.cc
../src/libtess2/Source/bucketalloc.c \
../src/libtess2/Source/dict.c \
../src/libtess2/Source/geom.c \
../src/libtess2/Source/mesh.c \
../src/libtess2/Source/priorityq.c \
../src/libtess2/Source/sweep.c \
../src/libtess2/Source/tess.c

View file

@ -5,6 +5,7 @@
"colors" : {
"background" : "#333333",
"axes-color" : "#c1c1c1",
"opencsg-face-front" : "#cccccc",
"opencsg-face-back" : "#5563dd",
"cgal-face-front" : "#cccccc",

View file

@ -5,6 +5,7 @@
"colors" : {
"background" : "#333333",
"axes-color" : "#c1c1c1",
"opencsg-face-front" : "#eeeeee",
"opencsg-face-back" : "#0babc8",
"cgal-face-front" : "#eeeeee",

View file

@ -5,6 +5,7 @@
"colors" : {
"background" : "#aaaaff",
"axes-color" : "#222233",
"opencsg-face-front" : "#ddddff",
"opencsg-face-back" : "#dd22dd",
"cgal-face-front" : "#ddddff",

View file

@ -6,6 +6,7 @@
"colors" : {
"background" : "#ffffe5",
"axes-color" : "#191916",
"opencsg-face-front" : "#f9d72c",
"opencsg-face-back" : "#f9d72c",
"cgal-face-front" : "#f9d72c",

View file

@ -5,6 +5,7 @@
"colors" : {
"background" : "#fafafa",
"axes-color" : "#323232",
"opencsg-face-front" : "#16a085",
"opencsg-face-back" : "#dbf4da",
"cgal-face-front" : "#16a085",

View file

@ -5,6 +5,7 @@
"colors" : {
"background" : "#fdf6e3",
"axes-color" : "#191816",
"opencsg-face-front" : "#b58800",
"opencsg-face-back" : "#882233",
"cgal-face-front" : "#b58800",

View file

@ -5,6 +5,7 @@
"colors" : {
"background" : "#000000",
"axes-color" : "#e5e5e5",
"opencsg-face-front" : "#ffffe0",
"opencsg-face-back" : "#00ffff",
"cgal-face-front" : "#ffffe0",

View file

@ -5,6 +5,7 @@
"colors" : {
"background" : "#aa4444",
"axes-color" : "#220d0d",
"opencsg-face-front" : "#ffaaaa",
"opencsg-face-back" : "#882233",
"cgal-face-front" : "#ffaaaa",

View file

@ -5,6 +5,7 @@
"colors" : {
"background" : "#1d1f21",
"axes-color" : "#e8e8e8",
"opencsg-face-front" : "#81a2be",
"opencsg-face-back" : "#de935f",
"cgal-face-front" : "#8abeb7",

View file

@ -5,6 +5,7 @@
"colors" : {
"background" : "#f8f8f8",
"axes-color" : "#181818",
"opencsg-face-front" : "#4271ae",
"opencsg-face-back" : "#f5871f",
"cgal-face-front" : "#3e999f",

View file

@ -8,13 +8,17 @@ include(flex.pri)
include(bison.pri)
include(cgal.pri)
include(opencsg.pri)
include(opengl.pri)
include(glew.pri)
include(eigen.pri)
include(boost.pri)
include(glib-2.0.pri)
include(gettext.pri)
include(libxml2.pri)
include(sparkle.pri)
include(harfbuzz.pri)
include(freetype.pri)
include(fontconfig.pri)
include(lib3mf.pri)
include(scintilla.pri)
include(c++11.pri)

9
contrib/appdata.its Normal file
View file

@ -0,0 +1,9 @@
<!-- Copyright 2013 Richard Hughes <richard@hughsie.com> -->
<its:rules
xmlns:its="http://www.w3.org/2005/11/its"
version="1.0">
<its:translateRule translate="no" selector="/component"/>
<its:translateRule translate="yes"
selector="/component/summary |
/component/description"/>
</its:rules>

View file

@ -1,9 +1,9 @@
;;; scad-mode.el --- Major mode for editing SCAD files
;;; scad-mode.el --- A major mode for editing OpenSCAD code
;; Author: Len Trigg
;; Author: Len Trigg, Łukasz Stelmach
;; Maintainer: Len Trigg <lenbok@gmail.com>
;; Created: March 2010
;; Modified: 24 May 2014
;; Modified: 28 Mar 2015
;; Keywords: languages
;; URL: https://raw.github.com/openscad/openscad/master/contrib/scad-mode.el
;; Version: 91.0
@ -26,11 +26,11 @@
;;; Commentary:
;;
;; This is a major-mode to implement the SCAD constructs and
;; font-locking for openscad
;; font-locking for OpenSCAD
;;
;; If installing manually, insert the following into your emacs startup:
;;
;; (autoload 'scad-mode "scad-mode" "Major mode for editing SCAD code." t)
;; (autoload 'scad-mode "scad-mode" "A major mode for editing OpenSCAD code." t)
;; (add-to-list 'auto-mode-alist '("\\.scad$" . scad-mode))
;;
;; or
@ -48,6 +48,8 @@
;;;###autoload
(add-to-list 'auto-mode-alist '("\\.scad$" . scad-mode))
(require 'cc-mode)
(defcustom scad-command
'"openscad"
"Path to openscad executable"
@ -68,30 +70,41 @@
"str"
"lookup" "version" "version_num" "len" "search"
"dxf_dim" "dxf_cross" ;;dxfdim.cc
"norm" "cross" ;;2014.03
"concat" "chr" ;;2015.03
)
"SCAD functions."
:type 'list
:group 'scad-font-lock)
(defcustom scad-modules
'("child" "children" "echo" "assign" "for" "intersection_for" "if" "else" ;;control.cc
'("children" "echo" "for" "intersection_for" "if" "else" ;;control.cc
"cube" "sphere" "cylinder" "polyhedron" "square" "circle" "polygon" ;;primitives.cc
"scale" "rotate" "translate" "mirror" "multmatrix" ;;transform.cc
"union" "difference" "intersection" ;;csgops.cc
"render" ;;render.cc
"color" ;;color.cc
"surface" ;;surface.cc
"dxf_linear_extrude" "linear_extrude" ;;linearextrude.cc
"dxf_rotate_extrude" "rotate_extrude" ;;rotateextrude.cc
"import_stl" "import_off" "import_dxf" "import" ;;import.cc
"linear_extrude" ;;linearextrude.cc
"rotate_extrude" ;;rotateextrude.cc
"import" ;;import.cc
"group" ;;builtin.cc
"projection" ;;projection.cc
"minkowski" "glide" "subdiv" "hull" "resize" ;;cgaladv.cc
"parent_module" ;;2014.03
"let" "offset" "text" ;;2015.03
)
"SCAD modules."
:type 'list
:group 'scad-font-lock)
(defcustom scad-deprecated
'("child" "assign" "dxf_linear_extrude" "dxf_rotate_extrude"
"import_stl" "import_off" "import_dxf")
"SCAD deprecated modules and functions."
:type 'list
:group 'scad-font-lock)
(defcustom scad-operators
'("+" "-" "*" "/" "%"
"&&" "||" "!"
@ -103,9 +116,9 @@
(defvar scad-mode-map
(let ((map (make-sparse-keymap)))
(define-key map "\t" 'scad-indent-line)
(define-key map [(control c) (control o)] 'scad-open-current-buffer)
(define-key map [return] 'newline-and-indent)
(define-key map [return] 'newline-and-indent)
;;(define-key map [(control c) (control s)] 'c-show-syntactic-information) ;; Debugging info
map)
"Keymap for `scad-mode'.")
@ -138,6 +151,7 @@
(defvar scad-keywords-regexp (regexp-opt scad-keywords 'words))
(defvar scad-modules-regexp (regexp-opt scad-modules 'words))
(defvar scad-functions-regexp (regexp-opt scad-functions 'words))
(defvar scad-deprecated-regexp (regexp-opt scad-deprecated 'words))
(defvar scad-operators-regexp (regexp-opt scad-operators))
(defvar scad-font-lock-keywords
@ -149,30 +163,41 @@
(,scad-keywords-regexp . font-lock-keyword-face)
(,scad-modules-regexp . font-lock-builtin-face)
(,scad-functions-regexp . font-lock-function-name-face)
(,scad-deprecated-regexp . font-lock-warning-face)
;(,scad-operators-regexp . font-lock-operator-face) ;; This actually looks pretty ugly
;("\\(\\<\\S +\\>\\)\\s *(" 1 font-lock-function-name-face t) ;; Seems to override other stuff (e.g. in comments and builtins)
)
"Keyword highlighting specification for `scad-mode'.")
(defconst scad-font-lock-keywords-1 scad-font-lock-keywords)
(defconst scad-font-lock-keywords-2 scad-font-lock-keywords)
(defconst scad-font-lock-keywords-3 scad-font-lock-keywords)
;(defvar scad-imenu-generic-expression ...)
;(defvar scad-outline-regexp ...)
(defvar scad-indent-style nil
"The style of indentation for scad-mode. Defaults to \"k&r\" if
nil. If you want to set the style with file local variables use
the `c-file-style' variable")
(put 'scad-mode 'c-mode-prefix "scad-")
;;;###autoload
(define-derived-mode scad-mode fundamental-mode "SCAD"
"A major mode for editing SCAD files."
:syntax-table scad-mode-syntax-table
(set (make-local-variable 'font-lock-defaults) '(scad-font-lock-keywords))
(set (make-local-variable 'indent-line-function) 'scad-indent-line)
;(set (make-local-variable 'imenu-generic-expression) scad-imenu-generic-expression)
;(set (make-local-variable 'outline-regexp) scad-outline-regexp)
;; set comment styles for scad mode
(set (make-local-variable 'comment-start) "//")
(set (make-local-variable 'comment-end) "")
(set (make-local-variable 'block-comment-start) "/*")
(set (make-local-variable 'block-comment-end) "*/")
)
(define-derived-mode scad-mode prog-mode "SCAD"
"Major mode for editing OpenSCAD code.
To see what version of CC Mode you are running, enter `\\[c-version]'.
The hook `c-mode-common-hook' is run with no args at mode
initialization, then `scad-mode-hook'.
Key bindings:
\\{scad-mode-map}"
(c-initialize-cc-mode)
;; (setq local-abbrev-table scad-mode-abbrev-table
;; abbrev-mode t)
(use-local-map scad-mode-map)
(c-set-offset (quote cpp-macro) 0 nil)
(c-basic-common-init 'scad-mode (or scad-indent-style "k&r"))
(c-font-lock-init)
(c-run-mode-hooks 'c-mode-common-hook 'scad-mode-hook)
(c-update-modeline))
;; From: http://stackoverflow.com/questions/14520073/add-words-for-dynamic-expansion-to-emacs-mode
(defun scad-prime-dabbrev ()
@ -181,69 +206,12 @@
(with-current-buffer (get-buffer-create " *scad words*")
(scad-mode)
(insert "module function use include") ; Explicitly add these -- they're not in the below vars
(insert (mapconcat 'identity (append scad-keywords scad-functions scad-modules) " ")))))
(insert (mapconcat 'identity (append scad-keywords scad-functions scad-modules scad-deprecated) " ")))))
(add-hook 'scad-mode-hook 'scad-prime-dabbrev)
;;; Indentation, based on http://www.emacswiki.org/emacs/download/actionscript-mode-haas-7.0.el
(defun scad-indent-line ()
"Indent current line of SCAD code."
(interactive)
(let ((savep (> (current-column) (current-indentation)))
(indent (max (scad-calculate-indentation) 0)))
(if savep
(save-excursion (indent-line-to indent))
(indent-line-to indent))))
(defun scad-calculate-indentation ()
"Return the column to which the current line should be indented."
(save-excursion
(scad-maybe-skip-leading-close-delim)
(let ((pos (point)))
(beginning-of-line)
(if (not (search-backward-regexp "[^\n\t\r ]" 1 0))
0
(progn
(scad-maybe-skip-leading-close-delim)
(+ (current-indentation) (* standard-indent (scad-count-scope-depth (point) pos))))))))
(defun scad-maybe-skip-leading-close-delim ()
(beginning-of-line)
(forward-to-indentation 0)
(if (looking-at "\\s)")
(forward-char)
(beginning-of-line)))
(defun scad-face-at-point (pos)
"Return face descriptor for char at point."
(plist-get (text-properties-at pos) 'face))
(defun scad-count-scope-depth (rstart rend)
"Return difference between open and close scope delimeters."
(save-excursion
(goto-char rstart)
(let ((open-count 0)
(close-count 0)
opoint)
(while (and (< (point) rend)
(progn (setq opoint (point))
(re-search-forward "\\s)\\|\\s(" rend t)))
(if (= opoint (point))
(forward-char 1)
(cond
;; Don't count if in string or comment.
((scad-face-at-point (- (point) 1)))
((looking-back "\\s)")
(setq close-count (+ close-count 1)))
((looking-back "\\s(")
(setq open-count (+ open-count 1)))
)))
(- open-count close-count))))
(defun scad-open-current-buffer ()
(interactive)
(call-process scad-command nil 0 nil (buffer-file-name)))
(provide 'scad)
(provide 'scad-mode)
;;; scad-mode.el ends here

17
csgopnode.h Normal file
View file

@ -0,0 +1,17 @@
#pragma once
#include "node.h"
#include "visitor.h"
#include "enums.h"
class CsgNode : public AbstractNode
{
public:
OpenSCADOperator type;
CsgNode(const ModuleInstantiation *mi, OpenSCADOperator type) : AbstractNode(mi), type(type) { }
virtual Response accept(class State &state, Visitor &visitor) const {
return visitor.visit(state, *this);
}
virtual std::string toString() const;
virtual std::string name() const;
};

Binary file not shown.

Binary file not shown.

259
doc/Python-LICENSE.txt Normal file
View file

@ -0,0 +1,259 @@
Part of OpenSCAD is copied from Python (linalg.cc/hash_floating_point()),
so the python license is included below.
----
A. HISTORY OF THE SOFTWARE
==========================
Python was created in the early 1990s by Guido van Rossum at Stichting
Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands
as a successor of a language called ABC. Guido remains Python's
principal author, although it includes many contributions from others.
In 1995, Guido continued his work on Python at the Corporation for
National Research Initiatives (CNRI, see http://www.cnri.reston.va.us)
in Reston, Virginia where he released several versions of the
software.
In May 2000, Guido and the Python core development team moved to
BeOpen.com to form the BeOpen PythonLabs team. In October of the same
year, the PythonLabs team moved to Digital Creations (now Zope
Corporation, see http://www.zope.com). In 2001, the Python Software
Foundation (PSF, see http://www.python.org/psf/) was formed, a
non-profit organization created specifically to own Python-related
Intellectual Property. Zope Corporation is a sponsoring member of
the PSF.
All Python releases are Open Source (see http://www.opensource.org for
the Open Source Definition). Historically, most, but not all, Python
releases have also been GPL-compatible; the table below summarizes
the various releases.
Release Derived Year Owner GPL-
from compatible? (1)
0.9.0 thru 1.2 1991-1995 CWI yes
1.3 thru 1.5.2 1.2 1995-1999 CNRI yes
1.6 1.5.2 2000 CNRI no
2.0 1.6 2000 BeOpen.com no
1.6.1 1.6 2001 CNRI yes (2)
2.1 2.0+1.6.1 2001 PSF no
2.0.1 2.0+1.6.1 2001 PSF yes
2.1.1 2.1+2.0.1 2001 PSF yes
2.1.2 2.1.1 2002 PSF yes
2.1.3 2.1.2 2002 PSF yes
2.2 and above 2.1.1 2001-now PSF yes
Footnotes:
(1) GPL-compatible doesn't mean that we're distributing Python under
the GPL. All Python licenses, unlike the GPL, let you distribute
a modified version without making your changes open source. The
GPL-compatible licenses make it possible to combine Python with
other software that is released under the GPL; the others don't.
(2) According to Richard Stallman, 1.6.1 is not GPL-compatible,
because its license has a choice of law clause. According to
CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1
is "not incompatible" with the GPL.
Thanks to the many outside volunteers who have worked under Guido's
direction to make these releases possible.
B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON
===============================================================
PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
--------------------------------------------
1. This LICENSE AGREEMENT is between the Python Software Foundation
("PSF"), and the Individual or Organization ("Licensee") accessing and
otherwise using this software ("Python") in source or binary form and
its associated documentation.
2. Subject to the terms and conditions of this License Agreement, PSF hereby
grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
analyze, test, perform and/or display publicly, prepare derivative works,
distribute, and otherwise use Python alone or in any derivative version,
provided, however, that PSF's License Agreement and PSF's notice of copyright,
i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
2011, 2012, 2013, 2014, 2015 Python Software Foundation; All Rights Reserved"
are retained in Python alone or in any derivative version prepared by Licensee.
3. In the event Licensee prepares a derivative work that is based on
or incorporates Python or any part thereof, and wants to make
the derivative work available to others as provided herein, then
Licensee hereby agrees to include in any such work a brief summary of
the changes made to Python.
4. PSF is making Python available to Licensee on an "AS IS"
basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
INFRINGE ANY THIRD PARTY RIGHTS.
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
6. This License Agreement will automatically terminate upon a material
breach of its terms and conditions.
7. Nothing in this License Agreement shall be deemed to create any
relationship of agency, partnership, or joint venture between PSF and
Licensee. This License Agreement does not grant permission to use PSF
trademarks or trade name in a trademark sense to endorse or promote
products or services of Licensee, or any third party.
8. By copying, installing or otherwise using Python, Licensee
agrees to be bound by the terms and conditions of this License
Agreement.
BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0
-------------------------------------------
BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1
1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an
office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the
Individual or Organization ("Licensee") accessing and otherwise using
this software in source or binary form and its associated
documentation ("the Software").
2. Subject to the terms and conditions of this BeOpen Python License
Agreement, BeOpen hereby grants Licensee a non-exclusive,
royalty-free, world-wide license to reproduce, analyze, test, perform
and/or display publicly, prepare derivative works, distribute, and
otherwise use the Software alone or in any derivative version,
provided, however, that the BeOpen Python License is retained in the
Software, alone or in any derivative version prepared by Licensee.
3. BeOpen is making the Software available to Licensee on an "AS IS"
basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT
INFRINGE ANY THIRD PARTY RIGHTS.
4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE
SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS
AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY
DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
5. This License Agreement will automatically terminate upon a material
breach of its terms and conditions.
6. This License Agreement shall be governed by and interpreted in all
respects by the law of the State of California, excluding conflict of
law provisions. Nothing in this License Agreement shall be deemed to
create any relationship of agency, partnership, or joint venture
between BeOpen and Licensee. This License Agreement does not grant
permission to use BeOpen trademarks or trade names in a trademark
sense to endorse or promote products or services of Licensee, or any
third party. As an exception, the "BeOpen Python" logos available at
http://www.pythonlabs.com/logos.html may be used according to the
permissions granted on that web page.
7. By copying, installing or otherwise using the software, Licensee
agrees to be bound by the terms and conditions of this License
Agreement.
CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1
---------------------------------------
1. This LICENSE AGREEMENT is between the Corporation for National
Research Initiatives, having an office at 1895 Preston White Drive,
Reston, VA 20191 ("CNRI"), and the Individual or Organization
("Licensee") accessing and otherwise using Python 1.6.1 software in
source or binary form and its associated documentation.
2. Subject to the terms and conditions of this License Agreement, CNRI
hereby grants Licensee a nonexclusive, royalty-free, world-wide
license to reproduce, analyze, test, perform and/or display publicly,
prepare derivative works, distribute, and otherwise use Python 1.6.1
alone or in any derivative version, provided, however, that CNRI's
License Agreement and CNRI's notice of copyright, i.e., "Copyright (c)
1995-2001 Corporation for National Research Initiatives; All Rights
Reserved" are retained in Python 1.6.1 alone or in any derivative
version prepared by Licensee. Alternately, in lieu of CNRI's License
Agreement, Licensee may substitute the following text (omitting the
quotes): "Python 1.6.1 is made available subject to the terms and
conditions in CNRI's License Agreement. This Agreement together with
Python 1.6.1 may be located on the Internet using the following
unique, persistent identifier (known as a handle): 1895.22/1013. This
Agreement may also be obtained from a proxy server on the Internet
using the following URL: http://hdl.handle.net/1895.22/1013".
3. In the event Licensee prepares a derivative work that is based on
or incorporates Python 1.6.1 or any part thereof, and wants to make
the derivative work available to others as provided herein, then
Licensee hereby agrees to include in any such work a brief summary of
the changes made to Python 1.6.1.
4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS"
basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT
INFRINGE ANY THIRD PARTY RIGHTS.
5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1,
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
6. This License Agreement will automatically terminate upon a material
breach of its terms and conditions.
7. This License Agreement shall be governed by the federal
intellectual property law of the United States, including without
limitation the federal copyright law, and, to the extent such
U.S. federal law does not apply, by the law of the Commonwealth of
Virginia, excluding Virginia's conflict of law provisions.
Notwithstanding the foregoing, with regard to derivative works based
on Python 1.6.1 that incorporate non-separable material that was
previously distributed under the GNU General Public License (GPL), the
law of the Commonwealth of Virginia shall govern this License
Agreement only as to issues arising under or with respect to
Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this
License Agreement shall be deemed to create any relationship of
agency, partnership, or joint venture between CNRI and Licensee. This
License Agreement does not grant permission to use CNRI trademarks or
trade name in a trademark sense to endorse or promote products or
services of Licensee, or any third party.
8. By clicking on the "ACCEPT" button where indicated, or by copying,
installing or otherwise using Python 1.6.1, Licensee agrees to be
bound by the terms and conditions of this License Agreement.
ACCEPT
CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2
--------------------------------------------------
Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam,
The Netherlands. All rights reserved.
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Stichting Mathematisch
Centrum or CWI not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior
permission.
STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

View file

@ -82,8 +82,10 @@ If exporting an image, specify the pixel width and height
If exporting an image, specify whether to use orthographic or perspective
projection
.TP
.B \-\-colorscheme=[Cornfield|Sunset|Metallic|Starnight|BeforeDawn|Nature|DeepOcean]
.B \-\-colorscheme=\fIscheme
If exporting an image, use the specified color scheme for the rendering.
\fIscheme\fP can be any of \fBCornfield\fP, \fBSunset\fP, \fBMetallic\fP,
\fBStarnight\fP, \fBBeforeDawn\fP, \fBNature\fP or \fBDeepOcean\fP.
.TP
.B \-v, \-\-version
Show version of program.
@ -106,7 +108,7 @@ distance 500, with orthographic projection:
Set the 'mode' variable in example017 so that it will render only the
parts of the shape. Export to a .dxf file.
.PP
.B openscad -x example017.dxf -D'mode="parts"' examples/example017.scad
.B openscad -o example017.dxf -D'mode="parts"' examples/example017.scad
.SH AUTHOR
OpenSCAD was written by Clifford Wolf, Marius Kintel, and others.

View file

@ -3,6 +3,9 @@ Given:
o Make sure we have a $VERSION branch. If not, create one
o Update releases/$VERSION.md
o scripts/makereleasenotes.sh
o Update VERSION and VERSIONDATE in
openscad.pro
scripts/publish-macosx.sh
@ -12,16 +15,20 @@ o Update VERSION and VERSIONDATE in
o git tag "openscad-$VERSION"
o ./scripts/git-archive-all.py --prefix=openscad-$VERSION/ openscad-$VERSION.src.tar.gz
o git push --tags $VERSION
o git push --tags
o Upload Source package
$ scp openscad-$VERSION.src.tar.gz openscad@files.openscad.org:www
o Write short release email to mailing list
o Tweet as OpenSCAD
o Notify package managers
- Debian/Ubuntu: https://launchpad.net/~chrysn
- Ubuntu PPA: https://github.com/hyperair
- Fedora: Miro Hrončok <miro@hroncok.cz> or <mhroncok@redhat.com>
- OpenSUSE: Pavol Rusnak <prusnak@opensuse.org>
- Arch Linux: Kyle Keen <keenerd@gmail.com>
- MacPorts: https://svn.macports.org/repository/macports/trunk/dports/science/openscad/Portfile
- Homebrew: https://github.com/caskroom/homebrew-cask/blob/master/Casks/openscad.rb
o Revert VERSION and VERSIONDATE in openscad.pro scripts/publish-macosx.sh scripts/release-common.sh scripts/publish-mingw-x.sh tests/CMakeLists.txt
o Announce:
- Write short release email to mailing list
- Tweet as OpenSCAD
- Notify package managers
- Debian/Ubuntu: https://launchpad.net/~chrysn
- Ubuntu PPA: https://github.com/hyperair
- Fedora: Miro Hrončok <miro@hroncok.cz> or <mhroncok@redhat.com>
- OpenSUSE: Pavol Rusnak <prusnak@opensuse.org>
- Arch Linux: Kyle Keen <keenerd@gmail.com>
- MacPorts: https://svn.macports.org/repository/macports/trunk/dports/science/openscad/Portfile
- Homebrew: https://github.com/caskroom/homebrew-cask/blob/master/Casks/openscad.rb

View file

@ -26,14 +26,13 @@ o scripts/makereleasenotes.sh
o Update version number in doc/openscad.1
o Update copyright year in AboutDialog.html and mainwin.cc
o Add VERSION and VERSIONDATE in openscad.pro, scripts/publish-macosx.sh, scripts/release-common.sh
o Add VERSION and VERSIONDATE in openscad.pro, scripts/publish-macosx.sh, scripts/release-common.sh tests/CMakeLists.txt
o Add VERSION in tests/CMakeLists.txt, scripts/publish-mingw-x.sh
o Tag release
git tag "openscad-$VERSION"
o Revert VERSION and VERSIONDATE in
openscad.pro, scripts/publish-macosx.sh, scripts/release-common.sh, scripts/publish-mingw-x.sh
o Revert VERSION and VERSIONDATE in openscad.pro scripts/publish-macosx.sh scripts/release-common.sh scripts/publish-mingw-x.sh tests/CMakeLists.txt
o build source package
scripts/git-archive-all.py --prefix=openscad-$VERSION/ openscad-$VERSION.src.tar.gz

View file

@ -50,6 +50,7 @@ files.
$ make clean && qmake && make
Then run the script to scan the source files, and regenerate .pot & .po files.
You'll need itstool (http://itstool.org/) installed.
$ ./scripts/translation-update.sh

View file

@ -1,8 +1,8 @@
echo(version=version());
// rotate_extrude() always rotates the 2D shape 360 degrees
// around the Z axis. Note that the 2D shape must be either
// completely on the positive or negative side of the X axis.
// rotate_extrude() rotates a 2D shape around the Z axis.
// Note that the 2D shape must be either completely on the
// positive or negative side of the X axis.
color("red")
rotate_extrude()
translate([10, 0])
@ -23,6 +23,26 @@ color("green")
polygon( points=[[0,0],[8,4],[4,8],[4,12],[12,16],[0,20]] );
// By default rotate_extrude forms a full 360 degree circle,
// but a partial rotation can be performed by using the angle parameter.
// Positive angles create an arc starting from the X axis, going counter-clockwise.
// Negative angles generate an arc in the clockwise direction.
color("magenta")
translate([40,40]){
rotate_extrude(angle=180)
translate([12.5,0])
square(5);
translate([7.5,0])
rotate_extrude(angle=180)
translate([5,0])
square(5);
translate([-7.5,0])
rotate_extrude(angle=-180)
translate([5,0])
square(5);
}
// Written in 2015 by Torsten Paul <Torsten.Paul@gmx.de>
//
// To the extent possible under law, the author(s) have dedicated all

View file

@ -11,11 +11,13 @@ y_shift=thisFont[0][1];
hours=["one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve"];
module clock_hour_words(word_offset=20.0,word_height=2.0) {
for(i=[0:(len(hours)-1)]) assign( hourHandAngle=(i+1)*360/len(hours), theseIndicies=search(hours[i],thisFont[2],1,1) ) {
for(i=[0:(len(hours)-1)]) {
hourHandAngle=(i+1)*360/len(hours);
theseIndicies=search(hours[i],thisFont[2],1,1);
rotate(90-hourHandAngle) translate([word_offset,0])
for( j=[0:(len(theseIndicies)-1)] ) translate([j*x_shift,-y_shift/2]) {
linear_extrude(height=word_height) polygon(points=thisFont[2][theseIndicies[j]][6][0],paths=thisFont[2][theseIndicies[j]][6][1]);
}
for( j=[0:(len(theseIndicies)-1)] ) translate([j*x_shift,-y_shift/2]) {
linear_extrude(height=word_height) polygon(points=thisFont[2][theseIndicies[j]][6][0],paths=thisFont[2][theseIndicies[j]][6][1]);
}
}
}

View file

@ -14,8 +14,10 @@ FONTCONFIG_DIR = $$(FONTCONFIGDIR)
!isEmpty(OPENSCAD_LIBRARIES_DIR) {
isEmpty(FONTCONFIG_INCLUDEPATH) {
FONTCONFIG_INCLUDEPATH = $$OPENSCAD_LIBRARIES_DIR/include/fontconfig
FONTCONFIG_LIBPATH = $$OPENSCAD_LIBRARIES_DIR/lib
exists($$OPENSCAD_LIBRARIES_DIR/include/fontconfig) {
FONTCONFIG_INCLUDEPATH = $$OPENSCAD_LIBRARIES_DIR/include/fontconfig
FONTCONFIG_LIBPATH = $$OPENSCAD_LIBRARIES_DIR/lib
}
}
}

View file

@ -10,7 +10,9 @@ glew {
unix:LIBS += -lGLEW
CONFIG(mingw-cross-env): {
DEFINES += GLEW_STATIC
!CONFIG(mingw-cross-env-shared) {
DEFINES += GLEW_STATIC
}
} else {
win32:LIBS += -lglew32
}

View file

@ -40,7 +40,7 @@ isEmpty(GLIB2_LIBPATH) {
GLIB2_LIBS = -L$$GLIB2_LIBPATH -lglib-2.0
}
CONFIG(mingw-cross-env) {
CONFIG(mingw-cross-env)|CONFIG(mingw-cross-env-shared) {
#message("mingw")
isEmpty(GLIB2_INCLUDEPATH) {
MXE_TARGET_DIR=$$(MXETARGETDIR)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

View file

@ -6,3 +6,4 @@ Icon=openscad
Exec=openscad %f
MimeType=application/x-openscad;
Categories=Graphics;3DGraphics;Engineering;
Keywords=3d;solid;geometry;csg;model;stl;

BIN
images/3MF-white.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 738 B

BIN
images/3MF.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 676 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 570 B

After

Width:  |  Height:  |  Size: 979 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 518 B

After

Width:  |  Height:  |  Size: 991 B

50
lib3mf.pri Normal file
View file

@ -0,0 +1,50 @@
# Detect lib3mf, then use this priority list to determine
# which library to use:
#
# Priority
# 1. LIB3MF_INCLUDEPATH / LIB3MF_LIBPATH (qmake parameter, not checked if given on commandline)
# 2. OPENSCAD_LIBRARIES (environment variable)
# 3. system's standard include paths
lib3mf {
OPENSCAD_LIBRARIES_DIR = $$(OPENSCAD_LIBRARIES)
!isEmpty(LIB3MF_INCLUDEPATH) {
LIB3MF_CFLAGS = -I$$LIB3MF_INCLUDEPATH -I$$LIB3MF_INCLUDEPATH/Model/COM
} else {
!isEmpty(OPENSCAD_LIBRARIES_DIR) {
exists($$OPENSCAD_LIBRARIES_DIR/include/lib3mf/Model/COM/NMR_DLLInterfaces.h) {
LIB3MF_CFLAGS = -I$$OPENSCAD_LIBRARIES_DIR/include/lib3mf -I$$OPENSCAD_LIBRARIES_DIR/include/lib3mf/Model/COM
LIB3MF_LIBS = -L$$OPENSCAD_LIBRARIES_DIR/lib
}
}
isEmpty(LIB3MF_CFLAGS) {
exists(/opt/include/lib3mf/Model/COM/NMR_DLLInterfaces.h) {
LIB3MF_CFLAGS = -I/opt/include/lib3mf -I/opt/include/lib3mf/Model/COM
LIB3MF_LIBS = -L/opt/lib
}
exists(/usr/local/include/lib3mf/Model/COM/NMR_DLLInterfaces.h) {
LIB3MF_CFLAGS = -I/usr/local/include/lib3mf -I/usr/local/include/lib3mf/Model/COM
LIB3MF_LIBS = -L/usr/local/lib
}
exists(/usr/include/lib3mf/Model/COM/NMR_DLLInterfaces.h) {
LIB3MF_CFLAGS = -I/usr/include/lib3mf -I/usr/include/lib3mf/Model/COM
LIB3MF_LIBS = -L/usr/lib
}
}
}
!isEmpty(LIB3MF_LIBPATH) {
LIB3MF_LIBS = -L$$LIB3MF_LIBPATH
}
LIB3MF_LIBS += -l3MF
!isEmpty(LIB3MF_CFLAGS):!isEmpty(LIB3MF_LIBS) {
DEFINES += __GCC ENABLE_LIB3MF
QMAKE_CXXFLAGS += $$LIB3MF_CFLAGS
LIBS += $$LIB3MF_LIBS
}
}

44
libxml2.pri Normal file
View file

@ -0,0 +1,44 @@
# Detect libxml2, then use this priority list to determine
# which library to use:
#
# Priority
# 1. LIBXML2_INCLUDEPATH / LIBXML2_LIBPATH (qmake parameter, not checked it given on commandline)
# 2. OPENSCAD_LIBRARIES (environment variable)
# 3. system's standard include paths from pkg-config
libxml2 {
# read environment variables
OPENSCAD_LIBRARIES_DIR = $$(OPENSCAD_LIBRARIES)
LIBXML2_DIR = $$(LIBXML2DIR)
!isEmpty(OPENSCAD_LIBRARIES_DIR) {
isEmpty(LIBXML2_INCLUDEPATH) {
exists($$OPENSCAD_LIBRARIES_DIR/include/libxml2) {
LIBXML2_INCLUDEPATH = $$OPENSCAD_LIBRARIES_DIR/include/libxml2
LIBXML2_LIBPATH = $$OPENSCAD_LIBRARIES_DIR/lib
}
}
}
isEmpty(LIBXML2_INCLUDEPATH) {
LIBXML2_CFLAGS = $$system("pkg-config --cflags libxml-2.0")
} else {
LIBXML2_CFLAGS = -I$$LIBXML2_INCLUDEPATH
}
isEmpty(LIBXML2_LIBPATH) {
LIBXML2_LIBS = $$system("pkg-config --libs libxml-2.0")
} else {
LIBXML2_LIBS = -L$$LIBXML2_LIBPATH -lxml2
}
CONFIG(mingw-cross-env): {
LIBXML2_LIBS += -llzma
!CONFIG(mingw-cross-env-shared) {
DEFINES += LIBXML_STATIC
}
}
QMAKE_CXXFLAGS += $$LIBXML2_CFLAGS
LIBS += $$LIBXML2_LIBS
}

View file

@ -1,2 +1,2 @@
# available languages
fr ru de cs es
fr ru de cs es pl

View file

@ -21,7 +21,7 @@ msgstr ""
#: objects/ui_AboutDialog.h:103 src/AboutDialog.h:13
msgid "About OpenSCAD"
msgstr "O OpenSCADu"
msgstr "O aplikaci OpenSCAD"
#: objects/ui_AboutDialog.h:105 objects/ui_launchingscreen.h:305
msgid ""
@ -936,7 +936,7 @@ msgid "PolySet Cache size"
msgstr "Velikost PolySet cache"
#: objects/ui_Preferences.h:1158
msgid "Allow to open multiple documents"
msgid "Allow opening multiple documents"
msgstr "Povolit současné otevření více dokumentů"
#: objects/ui_Preferences.h:1159
@ -1086,7 +1086,7 @@ msgstr[2] "Kompilace vyvolala %1 varování."
#: src/mainwin.cc:990
msgid " For details see <a href=\"#console\">console window</a>."
msgstr "Pro podrobnosti nahlédněte do <a href=\"#console\">konzole</a>."
msgstr " Pro podrobnosti nahlédněte do <a href=\"#console\">konzole</a>."
#: src/mainwin.cc:1355
msgid "Save File"

View file

@ -956,7 +956,7 @@ msgid "PolySet Cache size"
msgstr "PolySet Cache Größe"
#: objects/ui_Preferences.h:1158
msgid "Allow to open multiple documents"
msgid "Allow opening multiple documents"
msgstr "Öffnen von mehreren Dokumenten erlauben"
#: objects/ui_Preferences.h:1159

View file

@ -1,20 +1,20 @@
# Spanish translations for OpenSCAD package.
# This file is distributed under the same license as the OpenSCAD package.
# bazza <bazza@riseup.net>, 2015.
# <javialamo+github@gmail.com>, 2016.
#
msgid ""
msgstr ""
"Project-Id-Version: OpenSCAD 2015.03\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-03-10 10:38-0400\n"
"PO-Revision-Date: 2015-03-10 05:21-0300\n"
"Last-Translator: Ernesto Bazzano <bazza@riseup.net>\n"
"PO-Revision-Date: 2016-04-13 01:56-0300\n"
"Last-Translator: Javier del Álamo <javialamo+github@gmail.com>\n"
"Language-Team: Español\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.5.4\n"
#: objects/ui_AboutDialog.h:103 src/AboutDialog.h:13
msgid "About OpenSCAD"
@ -39,7 +39,7 @@ msgstr ""
"style=\"color: green;\">Open</span>SCAD</p>\n"
"<p style=\"font-family: 'Open Sans', 'Droid Sans', 'sans-serif'; font-"
"weight: normal; font-size: 14pt; padding-top: 0; margin-top: 0; margin-left: "
"2em;\">Los programadores de modelado 3D CAD</p>\n"
"2em;\">El programa de modelado 3D CAD de los programadores</p>\n"
"</body></html>\n"
"\n"
"\n"
@ -88,11 +88,11 @@ msgstr ""
#: objects/ui_LibraryInfoDialog.h:75
msgid "Lib & Build Info"
msgstr "Informacion de las librerias y compilación"
msgstr "Información de las librerias y compilación"
#: objects/ui_LibraryInfoDialog.h:76
msgid "OpenSCAD Detailed Library and Build Information"
msgstr "Informations detalles de las librerias y compilación"
msgstr "Información detallada de las librerias y compilación"
#: objects/ui_MainWindow.h:837
msgid "&New"
@ -112,7 +112,7 @@ msgstr "Ctrl+O"
#: objects/ui_MainWindow.h:841
msgid "&Save"
msgstr "&Salvar"
msgstr "&Guardar"
#: objects/ui_MainWindow.h:842
msgid "Ctrl+S"
@ -120,7 +120,7 @@ msgstr "Ctrl+S"
#: objects/ui_MainWindow.h:843
msgid "Save &As..."
msgstr "S&alvar como..."
msgstr "Guardar &como..."
#: objects/ui_MainWindow.h:844
msgid "Ctrl+Shift+S"
@ -136,7 +136,7 @@ msgstr "Ctrl+R"
#: objects/ui_MainWindow.h:847
msgid "&Quit"
msgstr "Salir"
msgstr "&Salir"
#: objects/ui_MainWindow.h:848
msgid "Ctrl+Q"
@ -144,7 +144,7 @@ msgstr "Ctrl+Q"
#: objects/ui_MainWindow.h:849
msgid "&Undo"
msgstr "An&ular"
msgstr "&Deshacer"
#: objects/ui_MainWindow.h:850
msgid "Ctrl+Z"
@ -184,7 +184,7 @@ msgstr "Ctrl+V"
#: objects/ui_MainWindow.h:859
msgid "&Indent"
msgstr "&Indenter"
msgstr "&Indentar"
#: objects/ui_MainWindow.h:860
msgid "Ctrl+I"
@ -209,7 +209,7 @@ msgstr "Ctrl+Shift+D"
#: objects/ui_MainWindow.h:865
#, fuzzy
msgid "P&aste viewport translation"
msgstr "Pegar posición de la marco"
msgstr "Pegar traslación de la ventana"
#: objects/ui_MainWindow.h:866
msgid "Ctrl+T"
@ -222,7 +222,7 @@ msgstr "Pegar rotación de la ventana"
#: objects/ui_MainWindow.h:868
msgid "Increase Font &Size"
msgstr ""
msgstr "Aumentar el tamaño de la &fuente"
#: objects/ui_MainWindow.h:869
msgid "Ctrl++"
@ -230,7 +230,7 @@ msgstr "Ctrl++"
#: objects/ui_MainWindow.h:870
msgid "Decrease Font Si&ze"
msgstr ""
msgstr "Disminuir el tamaño de la &fuente"
#: objects/ui_MainWindow.h:871
msgid "Ctrl+-"
@ -269,7 +269,7 @@ msgstr "F6"
#: objects/ui_MainWindow.h:879
#, fuzzy
msgid "&Check Validity"
msgstr "Chequear validez"
msgstr "&Comprobar validez"
#: objects/ui_MainWindow.h:880
#, fuzzy
@ -278,12 +278,12 @@ msgstr "Mostrar &AST..."
#: objects/ui_MainWindow.h:881
msgid "Display CSG &Tree..."
msgstr "Mostrar CSG &Arbre"
msgstr "Mostrar &Arbol CSG"
#: objects/ui_MainWindow.h:882
#, fuzzy
msgid "Display CSG Pr&oducts..."
msgstr "Mostar CSG &Produits"
msgstr "Mostar Pr&oductos CSG"
#: objects/ui_MainWindow.h:883
msgid "Export as &STL..."
@ -303,7 +303,7 @@ msgstr "F9"
#: objects/ui_MainWindow.h:887
msgid "Surfaces"
msgstr "Superficie"
msgstr "Superficies"
#: objects/ui_MainWindow.h:888
msgid "F10"
@ -327,7 +327,7 @@ msgstr "F12"
#: objects/ui_MainWindow.h:893
msgid "Show Edges"
msgstr "Mostrar puntos"
msgstr "Mostrar bordes"
#: objects/ui_MainWindow.h:894
msgid "Ctrl+1"
@ -351,7 +351,7 @@ msgstr "Ctrl+3"
#: objects/ui_MainWindow.h:899
msgid "Show Scale Markers"
msgstr "Mostar escala"
msgstr "Mostar indicadores de escala"
#: objects/ui_MainWindow.h:900
msgid "Animate"
@ -359,7 +359,7 @@ msgstr "Animar"
#: objects/ui_MainWindow.h:901
msgid "&Top"
msgstr ""
msgstr "&Arriba"
#: objects/ui_MainWindow.h:902
msgid "Ctrl+4"
@ -368,7 +368,7 @@ msgstr "Ctrl+4"
#: objects/ui_MainWindow.h:903
#, fuzzy
msgid "&Bottom"
msgstr "Abajo"
msgstr "&Abajo"
#: objects/ui_MainWindow.h:904
msgid "Ctrl+5"
@ -377,7 +377,7 @@ msgstr "Ctrl+5"
#: objects/ui_MainWindow.h:905
#, fuzzy
msgid "&Left"
msgstr "Izquierda"
msgstr "&Izquierda"
#: objects/ui_MainWindow.h:906
msgid "Ctrl+6"
@ -386,7 +386,7 @@ msgstr "Ctrl+6"
#: objects/ui_MainWindow.h:907
#, fuzzy
msgid "&Right"
msgstr "Derecha"
msgstr "&Derecha"
#: objects/ui_MainWindow.h:908
msgid "Ctrl+7"
@ -395,7 +395,7 @@ msgstr "Ctrl+7"
#: objects/ui_MainWindow.h:909
#, fuzzy
msgid "&Front"
msgstr "Frente"
msgstr "&Delante"
#: objects/ui_MainWindow.h:910
msgid "Ctrl+8"
@ -403,7 +403,7 @@ msgstr "Ctrl+8"
#: objects/ui_MainWindow.h:911
msgid "Bac&k"
msgstr ""
msgstr "&Detrás"
#: objects/ui_MainWindow.h:912
msgid "Ctrl+9"
@ -412,7 +412,7 @@ msgstr "Ctrl+9"
#: objects/ui_MainWindow.h:913
#, fuzzy
msgid "&Diagonal"
msgstr "Diagonal"
msgstr "&Diagonal"
#: objects/ui_MainWindow.h:914
msgid "Ctrl+0"
@ -426,12 +426,12 @@ msgstr "Centro"
#: objects/ui_MainWindow.h:916
#, fuzzy
msgid "&Perspective"
msgstr "Perspectiva"
msgstr "&Perspectiva"
#: objects/ui_MainWindow.h:917
#, fuzzy
msgid "&Orthogonal"
msgstr "Orthogonal"
msgstr "Ortogonal"
#: objects/ui_MainWindow.h:918
#, fuzzy
@ -492,7 +492,7 @@ msgstr "Ctrl+Alt+F"
#: objects/ui_MainWindow.h:930
#, fuzzy
msgid "Find Ne&xt"
msgstr "Buscar próximo"
msgstr "Buscar siguiente"
#: objects/ui_MainWindow.h:931
msgid "Ctrl+G"
@ -501,7 +501,7 @@ msgstr "Ctrl+G"
#: objects/ui_MainWindow.h:932
#, fuzzy
msgid "Find Pre&vious"
msgstr "Buscar previo"
msgstr "Buscar anterior"
#: objects/ui_MainWindow.h:933
msgid "Ctrl+Shift+G"
@ -534,7 +534,7 @@ msgstr "Recargar y previsualizar automáticamente"
#: objects/ui_MainWindow.h:939
#, fuzzy
msgid "Export as &Image..."
msgstr "Exportar imagen..."
msgstr "Exportar como imagen..."
#: objects/ui_MainWindow.h:940
#, fuzzy
@ -601,7 +601,7 @@ msgstr "Ocultar barra de herramientas"
#: objects/ui_MainWindow.h:954
msgid "U&nindent"
msgstr "Dési&ndenter"
msgstr "Desindentar"
#: objects/ui_MainWindow.h:955
msgid "Ctrl+Shift+I"
@ -609,7 +609,7 @@ msgstr "Ctrl+Shift+I"
#: objects/ui_MainWindow.h:956
msgid "&Cheat Sheet"
msgstr ""
msgstr "Hoja de referencia"
#: objects/ui_MainWindow.h:957
msgid "Message"
@ -748,7 +748,7 @@ msgstr "Vista 3D"
#: objects/ui_Preferences.h:1064 examples/examples.json:19
msgid "Advanced"
msgstr "Advertencia"
msgstr "Avanzado"
#: objects/ui_Preferences.h:1065 src/mainwin.cc:2422
msgid "Editor"
@ -760,11 +760,11 @@ msgstr "Actualizar"
#: objects/ui_Preferences.h:1067 objects/ui_Preferences.h:1148
msgid "Features"
msgstr "Mejoras"
msgstr "Características"
#: objects/ui_Preferences.h:1069
msgid "Enable/Disable experimental features"
msgstr "Activar/Desactivar mejoras experimentales"
msgstr "Activar/Desactivar características experimentales"
#: objects/ui_Preferences.h:1071
msgid "Color scheme:"
@ -772,7 +772,7 @@ msgstr "Paleta de colores:"
#: objects/ui_Preferences.h:1072
msgid "Show Warnings and Errors in 3D View"
msgstr ""
msgstr "Mostrar errores y advertencias en la vista 3D"
#: objects/ui_Preferences.h:1073
msgid "Editor Type"
@ -800,19 +800,19 @@ msgstr "Colorear sintaxis"
#: objects/ui_Preferences.h:1082
msgid "Ctrl/Cmd-Mouse-wheel zooms text"
msgstr "ctrl/cmd + la rueda del mouse para hacer zoom al texto"
msgstr "Ctrl/Cmd + la rueda del mouse para hacer zoom al texto"
#: objects/ui_Preferences.h:1083
msgid "Indentation"
msgstr "Identificación"
msgstr "Indentación"
#: objects/ui_Preferences.h:1084
msgid "Auto Indent"
msgstr "sangría automática"
msgstr "Sangría automática"
#: objects/ui_Preferences.h:1085
msgid "Indent using"
msgstr "usar sangría"
msgstr "Indentar usando"
#: objects/ui_Preferences.h:1088 src/settings.cc:135
msgid "Spaces"
@ -824,7 +824,7 @@ msgstr "Pestañas"
#: objects/ui_Preferences.h:1091
msgid "Indentation width"
msgstr "Ancho de sangría"
msgstr "Ancho de indentado"
#: objects/ui_Preferences.h:1092
msgid "Tab width"
@ -837,7 +837,7 @@ msgstr "Atajo de pestaña"
#: objects/ui_Preferences.h:1096 objects/ui_Preferences.h:1126
#: src/settings.cc:136
msgid "Indent"
msgstr "Sangría"
msgstr "Indentar"
#: objects/ui_Preferences.h:1097 src/settings.cc:136
msgid "Insert Tab"
@ -857,7 +857,7 @@ msgstr "Siempre"
#: objects/ui_Preferences.h:1104
msgid "Only after indentation"
msgstr "Sólo después de la sandría"
msgstr "Sólo después de la indentación"
#: objects/ui_Preferences.h:1106
msgid "Size"
@ -877,7 +877,7 @@ msgstr "Marcar linea actual"
#: objects/ui_Preferences.h:1110 objects/ui_Preferences.h:1143
msgid "Line wrap"
msgstr "Quiebre de linea"
msgstr "Ajuste de linea"
#: objects/ui_Preferences.h:1113 objects/ui_Preferences.h:1130
#: objects/ui_Preferences.h:1138 src/settings.cc:127 src/settings.cc:130
@ -895,11 +895,11 @@ msgstr "Salta en límites de las palabras"
#: objects/ui_Preferences.h:1117
msgid "Line wrap indentation"
msgstr "Salto de línea en el sangrado"
msgstr "Ajuste de línea en el sangrado"
#: objects/ui_Preferences.h:1118
msgid "Line wrap visualization"
msgstr "Salto de línea visible"
msgstr "Visualización del ajuste de línea"
#: objects/ui_Preferences.h:1119
msgid "Style"
@ -942,7 +942,7 @@ msgstr "Final"
#: objects/ui_Preferences.h:1144
msgid "Automatically check for updates"
msgstr "Comprobar actualización automáticamente"
msgstr "Comprobar actualizaciones automáticamente"
#: objects/ui_Preferences.h:1145
msgid "Include development snapshots"
@ -950,11 +950,11 @@ msgstr "Incluir las versiones en desarrollo"
#: objects/ui_Preferences.h:1146
msgid "Check Now"
msgstr "Chequear ahora"
msgstr "Comprobar ahora"
#: objects/ui_Preferences.h:1147
msgid "Last checked: "
msgstr "Último chequeo:"
msgstr "Último Comprobado:"
#: objects/ui_Preferences.h:1149
msgid "OpenCSG"
@ -962,7 +962,7 @@ msgstr "OpenCSG"
#: objects/ui_Preferences.h:1150
msgid "Show capability warning"
msgstr "Advertir incapacidad"
msgstr "Mostrar advertencias de capacidad"
#: objects/ui_Preferences.h:1151
msgid "Enable for OpenGL 1.x"
@ -993,8 +993,8 @@ msgid "PolySet Cache size"
msgstr "Tamaño de cache de PolySet"
#: objects/ui_Preferences.h:1159
msgid "Allow to open multiple documents"
msgstr "Permitir a abrir varios documentos"
msgid "Allow opening multiple documents"
msgstr "Permitir abrir varios documentos"
#: objects/ui_Preferences.h:1160
msgid "Enable docking of Editor and Console in different places"
@ -1002,17 +1002,15 @@ msgstr "Habilitar soporte de editor y consola en diferentes lugares"
#: objects/ui_Preferences.h:1161
msgid "Enable undocking of Editor and Console to separate windows"
msgstr ""
"Habilitar el desacoplamiento de editor y consola para separar las ventanas"
msgstr "Habilitar el desacoplamiento de editor y consola para separar las ventanas"
#: objects/ui_Preferences.h:1162
msgid "Show Welcome Screen"
msgstr "Pantalla de bienvenida"
msgstr "Mostrar pantalla de bienvenida"
#: objects/ui_Preferences.h:1163
msgid "Enable user interface localization (requires restart of OpenSCAD)"
msgstr ""
"Habilitar interfaz de usuario localización (requiere reiniciar OpenSCAD)"
msgstr "Habilitar localización de la interfaz de usuario (requiere reiniciar OpenSCAD)"
#: objects/ui_ProgressWidget.h:72
msgid "%v / %m"
@ -1064,7 +1062,7 @@ msgid ""
"Viewport: translate = [ %.2f %.2f %.2f ], rotate = [ %.2f %.2f %.2f ], "
"distance = %.2f"
msgstr ""
"Marco: translado = [ %.2f %.2f %.2f ], rotación = [ %.2f %.2f %.2f ], "
"Ventana: traslación = [ %.2f %.2f %.2f ], rotación = [ %.2f %.2f %.2f ], "
"distancia = %.2f"
#: src/QGLView.cc:129
@ -1072,7 +1070,7 @@ msgid ""
"Warning: You may experience OpenCSG rendering errors.\n"
"\n"
msgstr ""
"Advertencia: Usted puede experimentar OpenCSG errores de renderizado.\n"
"Advertencia: Usted puede experimentar errores de renderizado de OpenCSG.\n"
"\n"
#: src/QGLView.cc:132
@ -1081,8 +1079,8 @@ msgid ""
"disabled.\n"
"\n"
msgstr ""
"Advertencia: Manquantes capacités OpenGL vierten OpenCSG - OpenCSG ha sido "
"desactivada. .\n"
"Advertencia:Perdidas las capacidades OpenGL para OpenCSG - OpenCSG ha sido "
"desactivado. .\n"
"\n"
#: src/QGLView.cc:135
@ -1093,7 +1091,7 @@ msgid ""
msgstr ""
"Es muy recomendable utilizar OpenSCAD en un sistema con OpenGL 2.0 o "
"posterior.\n"
"Su información renderer es como sigue:\n"
"La información de su renderizador es la siguiente:\n"
#: src/QGLView.cc:139
#, c-format
@ -1116,14 +1114,14 @@ msgstr "Error de compilación"
#: src/mainwin.cc:976
msgid "Error while compiling '%1'."
msgstr "Error de compilación '%1'."
msgstr "Error durante la compilación '%1'."
#: src/mainwin.cc:980
#, fuzzy
msgid "Compilation generated %1 warning."
msgid_plural "Compilation generated %1 warnings."
msgstr[0] "Advertencias %1"
msgstr[1] "Advertencias %1"
msgstr[0] "La compilación generó %1 advertencia"
msgstr[1] "La compilación generó %1 advertencias"
#: src/mainwin.cc:990
msgid " For details see <a href=\"#console\">console window</a>."
@ -1131,18 +1129,18 @@ msgstr " Para más detalles <a href=\"#console\">ventana de consola</a>."
#: src/mainwin.cc:1355
msgid "Save File"
msgstr "Salvar archivo"
msgstr "Guardar archivo"
#: src/mainwin.cc:1357
msgid "OpenSCAD Designs (*.scad)"
msgstr "Diseño OpenSCAD (*.scad)"
msgstr "Diseños OpenSCAD (*.scad)"
#: src/mainwin.cc:1367
msgid ""
"%1 already exists.\n"
"Do you want to replace it?"
msgstr ""
"%1 existe.\n"
"%1 ya existe.\n"
"Deseas reemplazarlo?"
#: src/mainwin.cc:1686
@ -1163,7 +1161,7 @@ msgstr "Exportar %1 Archivo"
#: src/mainwin.cc:2041 src/mainwin.cc:2100
msgid "%1 Files (*%2)"
msgstr "%1 Archivo (*%2)"
msgstr "%1 Archivos (*%2)"
#: src/mainwin.cc:2042
msgid "Untitled"
@ -1183,7 +1181,7 @@ msgstr "Sintitulo.csg"
#: src/mainwin.cc:2151
msgid "CSG Files (*.csg)"
msgstr "Archivo CSG (*.csg)"
msgstr "Archivos CSG (*.csg)"
#: src/mainwin.cc:2177
msgid "Export Image"
@ -1191,7 +1189,7 @@ msgstr "Exportar una imagen"
#: src/mainwin.cc:2177
msgid "PNG Files (*.png)"
msgstr "Archivo PNG (*.png)"
msgstr "Archivos PNG (*.png)"
#: src/mainwin.cc:2427
msgid "Console"
@ -1210,26 +1208,24 @@ msgid ""
"Fontconfig needs to update its font cache.\n"
"This can take up to a couple of minutes."
msgstr ""
"Fontconfig necesita actualizar su caché de la fuente.\n"
"Fontconfig necesita actualizar su caché de fuentes.\n"
"Esto puede tardar hasta un par de minutos."
#: src/settings.cc:132
msgid "After indentation"
msgstr ""
"Marco: posición = [ %.2f %.2f %.2f ], rotación = [ %.2f %.2f %.2f ], "
"distancia = %.2f"
msgstr "Antes del indentado"
#: examples/examples.json:2
msgid "Basics"
msgstr "Básico"
msgstr "Básicos"
#: examples/examples.json:13
msgid "Functions"
msgstr ""
msgstr "Funciones"
#: examples/examples.json:28
msgid "Old"
msgstr ""
msgstr "Viejo"
#~ msgid "Top"
#~ msgstr "Arriba"
@ -1258,7 +1254,7 @@ msgstr ""
#~ "\n"
#~ msgstr ""
#~ "\n"
#~ "Utilizar QGLWidget\n"
#~ "Usando QGLWidget\n"
#~ "\n"
#~ msgid "Shapes"

View file

@ -956,7 +956,7 @@ msgid "PolySet Cache size"
msgstr "Taille du Cache PolySet"
#: objects/ui_Preferences.h:1158
msgid "Allow to open multiple documents"
msgid "Allow opening multiple documents"
msgstr "Autoriser l'ouverture de plusieurs documents"
#: objects/ui_Preferences.h:1159

File diff suppressed because it is too large Load diff

1318
locale/pl.po Normal file

File diff suppressed because it is too large Load diff

View file

@ -954,7 +954,7 @@ msgid "PolySet Cache size"
msgstr "Размер кэша PolySet"
#: objects/ui_Preferences.h:1158
msgid "Allow to open multiple documents"
msgid "Allow opening multiple documents"
msgstr "Разрешить открытие нескольких документов"
#: objects/ui_Preferences.h:1159
@ -967,7 +967,7 @@ msgstr "Включить перетаскивание Редактора и Ко
#: objects/ui_Preferences.h:1161
msgid "Show Welcome Screen"
msgstr "Показать экран преветствия"
msgstr "Показать экран приветствия"
#: objects/ui_Preferences.h:1162
msgid "Enable user interface localization (requires restart of OpenSCAD)"
@ -1031,7 +1031,7 @@ msgid ""
"Warning: You may experience OpenCSG rendering errors.\n"
"\n"
msgstr ""
"Предупреждение: Возможны ошибки рендринга OpenCSG.\n"
"Предупреждение: Возможны ошибки рендеринга OpenCSG.\n"
"\n"
#: src/QGLView.cc:132

View file

@ -1,4 +1,6 @@
# cross compilation unix->win32
# To use static linking, pass CONFIG+=mingw-cross-env to qmake
# To use shared linking, pass CONFIG+=mingw-cross-env-shared to qmake
CONFIG(mingw-cross-env) {
LIBS += mingw-cross-env/lib/libglew32s.a
LIBS += mingw-cross-env/lib/libglut.a
@ -19,6 +21,17 @@ CONFIG(mingw-cross-env) {
LIBS += mingw-cross-env/lib/libexpat.a
LIBS += mingw-cross-env/lib/libintl.a
LIBS += mingw-cross-env/lib/libiconv.a
}
CONFIG(mingw-cross-env-shared) {
# on MXE, the shared library .dll files are under 'bin' not 'lib'.
QMAKE_LFLAGS += -L./mingw-cross-env/bin
LIBS += -lglew32 -lglut -lopengl32 -lGLEW -lglu32
LIBS += -lopencsg -lmpfr -lgmp -lCGAL
LIBS += -lfontconfig -lfreetype -lharfbuzz -lbz2 -lexpat -lintl -liconv
}
CONFIG(mingw-cross-env)|CONFIG(mingw-cross-env-shared) {
QMAKE_CXXFLAGS += -fpermissive
WINSTACKSIZE = 8388608 # 8MB # github issue 116
QMAKE_CXXFLAGS += -Wl,--stack,$$WINSTACKSIZE

View file

@ -1,6 +1,5 @@
opencsg {
DEFINES += ENABLE_OPENCSG
CONFIG += glew
# Optionally specify location of OpenCSG using the
# OPENCSGDIR env. variable

22
opengl.pri Normal file
View file

@ -0,0 +1,22 @@
# Prefer QOpenGLWidget for non-Windows platforms
# To explicitly enable QOpenGLWidget: qmake CONFIG += qopenglwidget
# To explicitly enable QGLWidget: qmake CONFIG += qglwidget
!win*: CONFIG += qopenglwidget
qopenglwidget:!qglwidget:!lessThan(QT_VERSION, 5.4): CONFIG += using_qopenglwidget
using_qopenglwidget {
message("Using QOpenGLWidget")
DEFINES += USE_QOPENGLWIDGET
}
else {
message("Using QGLWidget")
QT += opengl
}
# see http://fedoraproject.org/wiki/UnderstandingDSOLinkChange
# and https://github.com/openscad/openscad/pull/119
# ( QT += opengl does not automatically link glu on some DSO systems. )
unix:!macx {
QMAKE_LIBS_OPENGL *= -lGLU
QMAKE_LIBS_OPENGL *= -lX11
}

View file

@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<application>
<id type="desktop">openscad.desktop</id>
<licence>CC0</licence>
<component type="desktop">
<id>openscad.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0+ and CC0-1.0</project_license>
<name>OpenSCAD</name>
<summary>The Programmers Solid 3D CAD Modeller</summary>
<description>
<p>OpenSCAD is a software for creating solid 3D CAD models. Unlike most free software for creating 3D models (such as Blender) it does not focus on the artistic aspects of 3D modelling but instead on the CAD aspects. Thus it might be the application you are looking for when you are planning to create 3D models of machine parts but pretty sure is not what you are looking for when you are more interested in creating computer-animated movies.</p>
@ -9,8 +11,12 @@
<p>OpenSCAD provides two main modelling techniques: First there is constructive solid geometry (aka CSG) and second there is extrusion of 2D outlines. As data exchange format format for this 2D outlines Autocad DXF files are used. In addition to 2D paths for extrusion it is also possible to read design parameters from DXF files. Besides DXF files OpenSCAD can read and create 3D models in the STL and OFF file formats.</p>
</description>
<screenshots>
<screenshot type="default" width="800" height="437">http://www.openscad.org/images/appdata-screenshot-1.png</screenshot>
<screenshot width="800" height="465">http://www.openscad.org/images/appdata-screenshot-2.png</screenshot>
<screenshot type="default">
<image>http://www.openscad.org/images/appdata-screenshot-1.png</image>
</screenshot>
<screenshot>
<image>http://www.openscad.org/images/appdata-screenshot-2.png</image>
</screenshot>
</screenshots>
<url type="homepage">http://www.openscad.org/</url>
</application>
</component>

View file

@ -75,7 +75,10 @@ macx:isEmpty(OPENSCAD_LIBDIR) {
deploy {
message("Building deployment version")
DEFINES += OPENSCAD_DEPLOY
macx: CONFIG += sparkle
macx: {
CONFIG += sparkle
QMAKE_RPATHDIR = @executable_path/../Frameworks
}
}
snapshot: DEFINES += OPENSCAD_SNAPSHOT
@ -100,26 +103,10 @@ macx {
APP_RESOURCES.files = OpenSCAD.sdef dsa_pub.pem icons/SCAD.icns
QMAKE_BUNDLE_DATA += APP_RESOURCES
LIBS += -framework Cocoa -framework ApplicationServices
# Mac needs special care to link against the correct C++ library
# We attempt to auto-detect it by inspecting Boost
dirs = $${BOOSTDIR} $${QMAKE_LIBDIR}
for(dir, dirs) {
system(grep -q __112basic_string $${dir}/libboost_thread* >& /dev/null) {
message("Detected libc++-linked boost in $${dir}")
CONFIG += libc++
}
}
libc++ {
QMAKE_CXXFLAGS += -stdlib=libc++
QMAKE_LFLAGS += -stdlib=libc++
QMAKE_OBJECTIVE_CFLAGS += -stdlib=libc++
# libc++ on requires Mac OS X 10.7+
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
}
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.8
}
win* {
RC_FILE = openscad_win32.rc
QMAKE_CXXFLAGS += -DNOGDI
@ -133,21 +120,12 @@ mingw* {
}
CONFIG += qt
QT += opengl concurrent
# see http://fedoraproject.org/wiki/UnderstandingDSOLinkChange
# and https://github.com/openscad/openscad/pull/119
# ( QT += opengl does not automatically link glu on some DSO systems. )
unix:!macx {
QMAKE_LIBS_OPENGL *= -lGLU
QMAKE_LIBS_OPENGL *= -lX11
}
QT += widgets concurrent
netbsd* {
QMAKE_LFLAGS += -L/usr/X11R7/lib
QMAKE_LFLAGS += -Wl,-R/usr/X11R7/lib
QMAKE_LFLAGS += -Wl,-R/usr/pkg/lib
!clang: { QMAKE_CXXFLAGS += -std=c++0x }
# FIXME: Can the lines below be removed in favour of the OPENSCAD_LIBDIR handling above?
!isEmpty(OPENSCAD_LIBDIR) {
QMAKE_CFLAGS = -I$$OPENSCAD_LIBDIR/include $$QMAKE_CFLAGS
@ -181,7 +159,6 @@ netbsd* {
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-parameter
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-variable
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-function
QMAKE_CXXFLAGS_WARN_ON += -Wno-c++11-extensions
# gettext
QMAKE_CXXFLAGS_WARN_ON += -Wno-format-security
# might want to actually turn this on once in a while
@ -195,24 +172,34 @@ CONFIG(skip-version-check) {
# Application configuration
macx:CONFIG += mdi
CONFIG += c++11
CONFIG += cgal
CONFIG += opencsg
CONFIG += glew
CONFIG += boost
CONFIG += eigen
CONFIG += glib-2.0
CONFIG += harfbuzz
CONFIG += freetype
CONFIG += fontconfig
CONFIG += lib3mf
CONFIG += gettext
CONFIG += libxml2
#Uncomment the following line to enable the QScintilla editor
CONFIG += scintilla
!nogui {
CONFIG += scintilla
}
# Make experimental features available
experimental {
DEFINES += ENABLE_EXPERIMENTAL
}
nogui {
DEFINES += OPENSCAD_NOGUI
}
mdi {
DEFINES += ENABLE_MDI
}
@ -220,18 +207,10 @@ mdi {
include(common.pri)
# mingw has to come after other items so OBJECT_DIRS will work properly
CONFIG(mingw-cross-env) {
CONFIG(mingw-cross-env)|CONFIG(mingw-cross-env-shared) {
include(mingw-cross-env.pri)
}
win* {
FLEXSOURCES = src/lexer.l
BISONSOURCES = src/parser.y
} else {
LEXSOURCES += src/lexer.l
YACCSOURCES += src/parser.y
}
RESOURCES = openscad.qrc
# Qt5 removed access to the QMAKE_UIC variable, the following
@ -248,8 +227,32 @@ FORMS += src/MainWindow.ui \
src/launchingscreen.ui \
src/LibraryInfoDialog.ui
HEADERS += src/typedefs.h \
src/version_check.h \
# AST nodes
win* {
FLEXSOURCES = src/lexer.l
BISONSOURCES = src/parser.y
} else {
LEXSOURCES += src/lexer.l
YACCSOURCES += src/parser.y
}
HEADERS += src/AST.h \
src/ModuleInstantiation.h \
src/Package.h \
src/Assignment.h \
src/expression.h \
src/function.h \
src/module.h \
src/UserModule.h
SOURCES += src/AST.cc \
src/ModuleInstantiation.cc \
src/expr.cc \
src/function.cc \
src/module.cc \
src/UserModule.cc
HEADERS += src/version_check.h \
src/ProgressWidget.h \
src/parsersettings.h \
src/renderer.h \
@ -262,29 +265,32 @@ HEADERS += src/typedefs.h \
src/QGLView.h \
src/GLView.h \
src/MainWindow.h \
src/OpenSCADApp.h \
src/WindowManager.h \
src/Preferences.h \
src/OpenCSGWarningDialog.h \
src/AboutDialog.h \
src/FontListDialog.h \
src/FontListTableView.h \
src/GroupModule.h \
src/FileModule.h \
src/builtin.h \
src/calc.h \
src/context.h \
src/modcontext.h \
src/evalcontext.h \
src/csgterm.h \
src/csgtermnormalizer.h \
src/csgops.h \
src/CSGTreeNormalizer.h \
src/CSGTreeEvaluator.h \
src/dxfdata.h \
src/dxfdim.h \
src/export.h \
src/expression.h \
src/stackcheck.h \
src/function.h \
src/exceptions.h \
src/grid.h \
src/hash.h \
src/highlighter.h \
src/localscope.h \
src/module.h \
src/feature.h \
src/node.h \
src/csgnode.h \
@ -294,6 +300,7 @@ HEADERS += src/typedefs.h \
src/projectionnode.h \
src/cgaladvnode.h \
src/importnode.h \
src/import.h \
src/transformnode.h \
src/colornode.h \
src/rendernode.h \
@ -311,20 +318,17 @@ HEADERS += src/typedefs.h \
src/value.h \
src/progress.h \
src/editor.h \
src/visitor.h \
src/NodeVisitor.h \
src/state.h \
src/traverser.h \
src/nodecache.h \
src/nodedumper.h \
src/ModuleCache.h \
src/GeometryCache.h \
src/GeometryEvaluator.h \
src/CSGTermEvaluator.h \
src/Tree.h \
src/DrawingCallback.h \
src/FreetypeRenderer.h \
src/FontCache.h \
src/mathc99.h \
src/DrawingCallback.h \
src/FreetypeRenderer.h \
src/FontCache.h \
src/memory.h \
src/linalg.h \
src/Camera.h \
@ -349,31 +353,45 @@ src/FontCache.h \
src/legacyeditor.h \
src/LibraryInfoDialog.h
SOURCES += src/version_check.cc \
SOURCES += \
src/libsvg/libsvg.cc \
src/libsvg/circle.cc \
src/libsvg/ellipse.cc \
src/libsvg/line.cc \
src/libsvg/polygon.cc \
src/libsvg/polyline.cc \
src/libsvg/rect.cc \
src/libsvg/group.cc \
src/libsvg/svgpage.cc \
src/libsvg/path.cc \
src/libsvg/shape.cc \
src/libsvg/transformation.cc \
src/libsvg/util.cc \
\
src/version_check.cc \
src/ProgressWidget.cc \
src/mathc99.cc \
src/linalg.cc \
src/Camera.cc \
src/handle_dep.cc \
src/value.cc \
src/expr.cc \
src/stackcheck.cc \
src/func.cc \
src/localscope.cc \
src/module.cc \
src/feature.cc \
src/node.cc \
src/context.cc \
src/modcontext.cc \
src/evalcontext.cc \
src/csgterm.cc \
src/csgtermnormalizer.cc \
src/csgnode.cc \
src/CSGTreeNormalizer.cc \
src/CSGTreeEvaluator.cc \
src/Geometry.cc \
src/Polygon2d.cc \
src/clipper-utils.cc \
src/polyset-utils.cc \
src/GeometryUtils.cc \
src/polyset.cc \
src/polyset-gl.cc \
src/csgops.cc \
src/transform.cc \
src/color.cc \
@ -399,7 +417,7 @@ SOURCES += src/version_check.cc \
src/LibraryInfo.cc \
\
src/nodedumper.cc \
src/traverser.cc \
src/NodeVisitor.cc \
src/GeometryEvaluator.cc \
src/ModuleCache.cc \
src/GeometryCache.cc \
@ -419,15 +437,28 @@ SOURCES += src/version_check.cc \
src/AutoUpdater.cc \
\
src/grid.cc \
src/hash.cc \
src/GroupModule.cc \
src/FileModule.cc \
src/builtin.cc \
src/calc.cc \
src/export.cc \
src/export_stl.cc \
src/export_amf.cc \
src/export_3mf.cc \
src/export_off.cc \
src/export_dxf.cc \
src/export_svg.cc \
src/export_nef.cc \
src/export_png.cc \
src/import.cc \
src/import_stl.cc \
src/import_off.cc \
src/import_svg.cc \
src/import_3mf.cc \
src/renderer.cc \
src/colormap.cc \
src/ThrownTogetherRenderer.cc \
src/CSGTermEvaluator.cc \
src/svg.cc \
src/OffscreenView.cc \
src/fbo.cc \
@ -437,6 +468,8 @@ SOURCES += src/version_check.cc \
\
src/openscad.cc \
src/mainwin.cc \
src/OpenSCADApp.cc \
src/WindowManager.cc \
src/UIUtils.cc \
src/Dock.cc \
src/FontListDialog.cc \
@ -499,6 +532,8 @@ HEADERS += src/cgal.h \
src/Polygon2d-CGAL.h
SOURCES += src/cgalutils.cc \
src/cgalutils-applyops.cc \
src/cgalutils-project.cc \
src/cgalutils-tess.cc \
src/cgalutils-polyhedron.cc \
src/CGALCache.cc \

View file

@ -29,7 +29,6 @@
<file>icons/prefs3DView.png</file>
<file>icons/prefsEditor.png</file>
<file>icons/prefsUpdate.png</file>
<file>icons/flattr.png</file>
<file>src/AboutDialog.html</file>
<file>images/export.png</file>
<file>images/axes.png</file>
@ -83,6 +82,8 @@
<file>images/scalemarkers-white.png</file>
<file>images/AMF.png</file>
<file>images/AMF-white.png</file>
<file>images/3MF.png</file>
<file>images/3MF-white.png</file>
<file>images/CSG.png</file>
<file>images/CSG-white.png</file>
<file>images/DXF.png</file>

View file

@ -4,6 +4,9 @@
# include <winver.h>
# endif
#include "winuser.h"
1 RT_MANIFEST "scripts/winmanifest.xml"
VS_VERSION_INFO VERSIONINFO
FILEVERSION 0,0,0,0
PRODUCTVERSION 0,0,0,0

View file

@ -32,3 +32,11 @@
gluTessCallback(tess_, GLenum(GLU_TESS_BEGIN),
(GLvoid (CGAL_GLU_TESS_CALLBACK *)(CGAL_GLU_TESS_DOTS)) &beginCallback);
gluTessCallback(tess_, GLenum(GLU_TESS_END),
@@ -410,6 +429,7 @@
gluTessEndPolygon(tess_);
// CGAL_NEF_TRACEN("End Polygon");
gluDeleteTess(tess_);
+ combineCallback(NULL, NULL, NULL, NULL);
}
void construct_axes() const

View file

@ -0,0 +1,21 @@
diff --git a/opencsg.pro b/opencsg.pro
index b56e622..5cf2d6d 100644
--- a/opencsg.pro
+++ b/opencsg.pro
@@ -1,2 +1,2 @@
TEMPLATE = subdirs
-SUBDIRS = src example
+SUBDIRS = src
diff --git a/src/src.pro b/src/src.pro
index 9091251..598112a 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -7,6 +7,8 @@ TARGET = opencsg
}
CONFIG += opengl warn_on release
+CONFIG += absolute_library_soname
+QMAKE_STRIP = echo
INCLUDEPATH += ../include ../ $$INSTALLDIR/include
CONFIG -= qt
LIBS += -L$$INSTALLDIR/lib -lGLEW

View file

@ -0,0 +1,21 @@
diff --git a/opencsg.pro b/opencsg.pro
index b56e622..5cf2d6d 100644
--- a/opencsg.pro
+++ b/opencsg.pro
@@ -1,2 +1,2 @@
TEMPLATE = subdirs
-SUBDIRS = src example
+SUBDIRS = src
diff --git a/src/src.pro b/src/src.pro
index 9091251..598112a 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -7,6 +7,8 @@ TARGET = opencsg
}
CONFIG += opengl warn_on release
+CONFIG += absolute_library_soname
+QMAKE_STRIP = echo
INCLUDEPATH += ../include ../ $$INSTALLDIR/include
CONFIG -= qt
LIBS += -L$$INSTALLDIR/lib -lGLEW

View file

@ -0,0 +1,23 @@
diff --git a/src/widgets/widgets/qlabel.cpp b/src/widgets/widgets/qlabel.cpp
index 83e94c4..80957e6 100644
--- a/src/widgets/widgets/qlabel.cpp
+++ b/src/widgets/widgets/qlabel.cpp
@@ -1076,14 +1076,16 @@ void QLabel::paintEvent(QPaintEvent *)
if (d->pixmap && !d->pixmap->isNull()) {
QPixmap pix;
if (d->scaledcontents) {
- if (!d->scaledpixmap || d->scaledpixmap->size() != cr.size()) {
+ QSize scaledSize = cr.size() * devicePixelRatio();
+ if (!d->scaledpixmap || d->scaledpixmap->size() != scaledSize) {
if (!d->cachedimage)
d->cachedimage = new QImage(d->pixmap->toImage());
delete d->scaledpixmap;
QImage scaledImage =
- d->cachedimage->scaled(cr.size() * devicePixelRatio(),
+ d->cachedimage->scaled(scaledSize,
Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
d->scaledpixmap = new QPixmap(QPixmap::fromImage(scaledImage));
+ d->scaledpixmap->setDevicePixelRatio(devicePixelRatio());
}
pix = *d->scaledpixmap;
} else

View file

@ -10,6 +10,16 @@ INCLUDEPATH += $$[QT_INSTALL_HEADERS]
LIBS += -L$$[QT_INSTALL_LIBS]
QT5LIB=qt5scintilla2
unix:linux* {
FEDORA32LIBS=/usr/lib/libqscintilla2-qt5.so
FEDORA64LIBS=/usr/lib64/libqscintilla2-qt5.so
exists($$FEDORA32LIBS) | exists($$FEDORA64LIBS) {
QT5LIB=qscintilla2-qt5
}
}
CONFIG(debug, debug|release) {
mac: {
#LIBS += -lqscintilla2_debug
@ -19,7 +29,8 @@ CONFIG(debug, debug|release) {
LIBS += -lqscintilla2d
} else {
greaterThan(QT_MAJOR_VERSION, 4) {
LIBS += -lqt5scintilla2
message("Using $$QT5LIB as library name")
LIBS += -l$$QT5LIB
} else {
LIBS += -lqscintilla2
}
@ -33,7 +44,8 @@ CONFIG(debug, debug|release) {
LIBS += -lqscintilla2
} else {
greaterThan(QT_MAJOR_VERSION, 4) {
LIBS += -lqt5scintilla2
message("Using $$QT5LIB as library name")
LIBS += -l$$QT5LIB
} else {
LIBS += -lqscintilla2
}

View file

@ -1,3 +1,43 @@
## 2015.03-3
**OS X only: Auto-update vulnerability fix**
## 2015.03-2
**Bugfixes**
* \#1483 - Fix Z-fighting in Ortho view
* \#1479 - No check for infinite $fn
* \#1472 - "nan" in list comprehension causes crash
* \#452 - rands() fails when the seed is a floating point number
* \#1407 - Recursive module crash
* \#1425 - Animate Filename Generation - Duplicate/Missing Filenames
* \#1420 - expression-evaluation-tests fails on arm64
* \#1410 - Crash when a polygon contains NaN
* \#1378 - Linear extrude plus infinite twist causes crash instead of just an error
* \#1358 - Add more detailed installer information including version number
* \#1356 - Crash when multiplying matrices with undefined elements
* \#1350 - Saving file when HD is full ends up in data loss
* \#1342 - Syntax Highlighting Does Not Work on Linux Mint 17.1
* \#1337 - Simple detection of script and direction based on given text
* \#1325 - Crash when polygons with > 3 indices turn out to be degenerate
* \#1329 - version() returned ```[0,0,0]```
## 2015.03-1
**Bugfixes**
* \#1203 - Linux: Missing icons on Xfce
* \#1258 - Occasional crash when exporting STL
* \#1260 - Minimal window width too large
* \#1264 - Replace All sometimes caused a hang
* \#1274 - Fixed some preview bugs on Intel GPUs (OpenCSG 1.4.0)
* \#1276 - Module recursion sometimes caused a crash
* \#1277 - Automatic reload sometimes messed up camera position
* \#1284 - Animation flicker eliminated
* \#1294 - Support reproducible builds
* \#1317 - Normals vectors in STL were sometimes 0 0 0
## 2015.03
**Language Features:**
* Added text() module for 2D text
* Added offset() module for 2D offsets

8
releases/2016.XX.md Normal file
View file

@ -0,0 +1,8 @@
**Language Features:**
* Added angle parameter to rotate_extrude()
**Program Features:**
**Bugfixes/improvements:**
**Deprecations:**

View file

@ -4,23 +4,46 @@ scintilla {
DEFINES += USE_SCINTILLA_EDITOR
# The qscintilla2.prf which ships with QScintilla is broken for Mac/Windows
# debug builds, so we supply our own
win32|macx: {
include(qscintilla2.prf)
}
else: {
load(qscintilla2) {
# All good, found installed *.prf file.
} else {
# Older scintilla libs (e.g. 2.7.2 on fedora20) do not provide the
# prf file.
#
# In addition Ubuntu (and maybe other distributions) have the Qt5
# prf file in the wrong location so it's not picked up by qmake
#
message("Using local copy of qscintilla2.prf instead.")
include(qscintilla2.prf)
QSCILOADED =
OPENSCAD_LIBDIR = $$(OPENSCAD_LIBRARIES)
!isEmpty(OPENSCAD_LIBDIR) {
exists($$OPENSCAD_LIBDIR) {
exists($$OPENSCAD_LIBDIR/lib/x86_64-linux-gnu/qt5/mkspecs/features/qscintilla2.prf) {
include($$OPENSCAD_LIBDIR/lib/x86_64-linux-gnu/qt5/mkspecs/features/qscintilla2.prf)
INCLUDEPATH = $$OPENSCAD_LIBDIR/include/qt5 $$INCLUDEPATH
LIBS = -L$$OPENSCAD_LIBDIR/lib/x86_64-linux-gnu $$LIBS
QSCILOADED=yes
}
}
}
# The qscintilla2.prf which ships with QScintilla is broken for Mac/Windows
# debug builds, so we supply our own
isEmpty(QSCILOADED) {
win32|macx: {
include(qscintilla2.prf)
QSCILOADED=yes
}
}
isEmpty(QSCILOADED) {
load(qscintilla2) {
QSCILOADED=yes
# All good, found installed *.prf file.
}
}
isEmpty(QSCILOADED) {
# Older scintilla libs (e.g. 2.7.2 on fedora20) do not provide the
# prf file.
#
# In addition Ubuntu (and maybe other distributions) have the Qt5
# prf file in the wrong location so it's not picked up by qmake
#
message("Using local copy of qscintilla2.prf instead.")
include(qscintilla2.prf)
QSCILOADED=yes
}
}

View file

@ -120,6 +120,17 @@ check_nsis()
fi
}
check_zip()
if [ ! "`command -v zip`" ]; then
echo the zip command was not found. please install zip
echo on debian, sudo apt-get install zip
exit 1
else
echo zip found.
fi
}
get_openscad_source_code()
{
if [ -d openscad ]; then
@ -251,7 +262,7 @@ upload_win32()
SUMMARY1="Windows x86-32 Snapshot Installer"
SUMMARY2="Windows x86-32 Snapshot Zipfile"
SUMMARY3="Windows x86-32 Snapshot Tests"
BASEDIR=./mingw32/
BASEDIR=./mingw32.static/
WIN32_PACKAGEFILE1=OpenSCAD-$DATECODE-x86-32-Installer.exe
WIN32_PACKAGEFILE2=OpenSCAD-$DATECODE-x86-32.zip
WIN32_PACKAGEFILE3=OpenSCAD-Tests-$DATECODE-x86-32.zip
@ -277,7 +288,7 @@ upload_win64()
SUMMARY1="Windows x86-64 Snapshot Zipfile"
SUMMARY2="Windows x86-64 Snapshot Installer"
SUMMARY3="Windows x86-64 Snapshot Tests"
BASEDIR=./mingw64/
BASEDIR=./mingw64.static/
WIN64_PACKAGEFILE1=OpenSCAD-$DATECODE-x86-64-Installer.exe
WIN64_PACKAGEFILE2=OpenSCAD-$DATECODE-x86-64.zip
WIN64_PACKAGEFILE3=OpenSCAD-Tests-$DATECODE-x86-64.zip
@ -409,6 +420,7 @@ main()
fi
check_starting_path
check_nsis
check_zip
read_username_from_user
read_password_from_user
get_openscad_source_code

View file

@ -165,41 +165,46 @@ qt_sysver()
if [ "`command -v qtchooser`" ]; then
if qtchooser -run-tool=qmake -qt=5 -v >/dev/null 2>&1 ; then
export QT_SELECT=5
qtpath="`qtchooser -run-tool=qmake -qt=5 -query QT_INSTALL_HEADERS`"/QtCore/qglobal.h
qtpath="`qtchooser -run-tool=qmake -qt=5 -query QT_INSTALL_HEADERS`"/QtCore
fi
if [ ! -e "$qtpath" ]; then
if qtchooser -run-tool=qmake -qt=4 -v >/dev/null 2>&1 ; then
export QT_SELECT=4
qtpath="`qtchooser -run-tool=qmake -qt=4 -query QT_INSTALL_HEADERS`"/QtCore/qglobal.h
qtpath="`qtchooser -run-tool=qmake -qt=4 -query QT_INSTALL_HEADERS`"/QtCore
fi
fi
else
export QT_SELECT=5
qtpath=$1/include/qt5/QtCore/qglobal.h
qtpath=$1/include/qt5/QtCore
if [ ! -e $qtpath ]; then
qtpath=$1/include/i686-linux-gnu/qt5/QtCore/qglobal.h
qtpath=$1/include/i686-linux-gnu/qt5/QtCore
fi
if [ ! -e $qtpath ]; then
qtpath=$1/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h
qtpath=$1/include/x86_64-linux-gnu/qt5/QtCore
fi
if [ ! -e $qtpath ]; then
export QT_SELECT=4
qtpath=$1/include/qt4/QtCore/qglobal.h
qtpath=$1/include/qt4/QtCore/
fi
if [ ! -e $qtpath ]; then
qtpath=$1/include/QtCore/qglobal.h
qtpath=$1/include/QtCore
fi
if [ ! -e $qtpath ]; then
# netbsd
qtpath=$1/qt4/include/QtCore/qglobal.h
qtpath=$1/qt4/include/QtCore
fi
fi
if [ ! -e "$qtpath" ]; then
unset QT_SELECT
return
fi
qtver=`grep 'define *QT_VERSION_STR *' $qtpath | awk '{print $3}'`
qtver=`echo $qtver | sed s/'"'//g`
qtver=`grep 'define *QT_VERSION_STR *' "$qtpath"/qglobal.h`
# fix for Qt 5.7
if [ -z "$qtver" ]; then
qtver=`grep 'define *QT_VERSION_STR *' "$qtpath"/qconfig.h`
fi
qtver=`echo $qtver | awk '{print $3}' | sed s/'"'//g`
qt_sysver_result=$qtver
}

View file

@ -189,10 +189,12 @@ build_harfbuzz()
fi
tar xzf "harfbuzz-$version.tar.gz"
cd "harfbuzz-$version"
# we do not need gtkdocize
sed -e "s/gtkdocize/echo/g" autogen.sh > autogen.sh.bak && mv autogen.sh.bak autogen.sh
# disable doc directories as they make problems on Mac OS Build
sed -e "s/SUBDIRS = src util test docs/SUBDIRS = src util test/g" Makefile.am > Makefile.am.bak && mv Makefile.am.bak Makefile.am
sed -e "s/^docs.*$//" configure.ac > configure.ac.bak && mv configure.ac.bak configure.ac
./autogen.sh --prefix="$DEPLOYDIR" --with-freetype=yes --with-gobject=no --with-cairo=no --with-icu=no $extra_config_flags
sh ./autogen.sh --prefix="$DEPLOYDIR" --with-freetype=yes --with-gobject=no --with-cairo=no --with-icu=no $extra_config_flags
make -j$NUMCPU
make install
}

View file

@ -1,17 +1,21 @@
EXAMPLES := ../../examples
LOG := out.log
SRC=$(wildcard $(EXAMPLES)/*/*.scad)
PNG=$(patsubst $(EXAMPLES)/%.scad,html/%.png,$(SRC))
HTML=$(patsubst $(EXAMPLES)/%.scad,html/%.html,$(SRC))
OPENSCAD := ../../OpenSCAD.app/Contents/MacOS/OpenSCAD
#OPENSCAD := openscad
OPENSCAD := $(shell ls ../../openscad ../../OpenSCAD.app/Contents/MacOS/OpenSCAD 2>/dev/null | head -n 1)
ARGS := --imgsize=1200,900 --camera=0,0,0,55,0,25,180 --viewall --autocenter
all : $(PNG) $(HTML) example-data.js assets
all : info $(PNG) $(HTML) example-data.js assets
.PHONY: info
info:
@echo Using $(OPENSCAD)
.PHONY: clean
clean :
rm -rf html
rm -rf html $(LOG)
.PHONY: assets
assets :
@ -21,7 +25,7 @@ assets :
example-data.js :
( \
echo "openscad_examples = ["; \
for a in Basics Functions Shapes Extrusion Advanced; \
for a in `grep '\[' ../../examples/examples.json | tr -d ' \t":[]'`; \
do \
echo " {"; \
echo " name : \"$$a\","; \
@ -38,7 +42,7 @@ example-data.js :
html/%.png : $(EXAMPLES)/%.scad
mkdir -p `dirname $@`
$(OPENSCAD) $(ARGS) -o $@ $< > out.log 2>&1
$(OPENSCAD) $(ARGS) -o $@ $< > $(LOG) 2>&1
html/%.html : $(EXAMPLES)/%.scad template-pre.html template-post.html
#echo $(notdir $(patsubst %.scad,%.png,$<))

View file

@ -0,0 +1,20 @@
.rainbow {
border-spacing: 0;
border-collapse: collapse;
}
.rainbow .line:hover {
background-color: #eee8d5;
}
.rainbow .line .line-number {
text-align: right;
background-color: #eee8d5;
padding-left: 0.8em;
padding-right: 0.8em;
}
.rainbow .line .line-number:before {
content: attr(data-line-number);
}
.rainbow .line .line-code {
padding-left: 1em;
width: 100%;
}

View file

@ -0,0 +1,14 @@
JavaScript Libraries:
Rainbow by Craig Campbell
* https://github.com/ccampbell/rainbow
* Apache License, Version 2.0
Rainbow.linenumbers.js by Blender3D
* https://github.com/Blender3D/rainbow.linenumbers.js
* Apache License, Version 2.0
Dropdown Menu by Oliver Gast
* http://www.olivergast.de/blog/2012/04/18/css3-dropdown-menu/
* (update in http://www.olivergast.de/blog/2015/05/12/css-ein-horizontales-dropdown-menue-reloaded/)
* No specific license, download states "download for free usage"

View file

@ -2,7 +2,7 @@
* Generic language patterns
*
* @author Craig Campbell
* @version 1.0.11
* @version 1.0.13
*/
Rainbow.extend([
{
@ -25,7 +25,7 @@ Rainbow.extend([
}
}
},
'pattern': /(\(|\s|\[|\=|:|\+|\.)(('|")([^\\\1]|\\.)*?(\3))/gm
'pattern': /(\(|\s|\[|\=|:|\+|\.|\{)(('|")([^\\\1]|\\.)*?(\3))/gm
},
{
'name': 'comment',

View file

@ -0,0 +1,798 @@
/**
* Copyright 2013 Craig Campbell
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Rainbow is a simple code syntax highlighter
*
* @preserve @version 1.2
* @url rainbowco.de
*/
window['Rainbow'] = (function() {
/**
* array of replacements to process at the end
*
* @type {Object}
*/
var replacements = {},
/**
* an array of start and end positions of blocks to be replaced
*
* @type {Object}
*/
replacement_positions = {},
/**
* an array of the language patterns specified for each language
*
* @type {Object}
*/
language_patterns = {},
/**
* an array of languages and whether they should bypass the default patterns
*
* @type {Object}
*/
bypass_defaults = {},
/**
* processing level
*
* replacements are stored at this level so if there is a sub block of code
* (for example php inside of html) it runs at a different level
*
* @type {number}
*/
CURRENT_LEVEL = 0,
/**
* constant used to refer to the default language
*
* @type {number}
*/
DEFAULT_LANGUAGE = 0,
/**
* used as counters so we can selectively call setTimeout
* after processing a certain number of matches/replacements
*
* @type {number}
*/
match_counter = 0,
/**
* @type {number}
*/
replacement_counter = 0,
/**
* @type {null|string}
*/
global_class,
/**
* @type {null|Function}
*/
onHighlight;
/**
* cross browser get attribute for an element
*
* @see http://stackoverflow.com/questions/3755227/cross-browser-javascript-getattribute-method
*
* @param {Node} el
* @param {string} attr attribute you are trying to get
* @returns {string|number}
*/
function _attr(el, attr, attrs, i) {
var result = (el.getAttribute && el.getAttribute(attr)) || 0;
if (!result) {
attrs = el.attributes;
for (i = 0; i < attrs.length; ++i) {
if (attrs[i].nodeName === attr) {
return attrs[i].nodeValue;
}
}
}
return result;
}
/**
* adds a class to a given code block
*
* @param {Element} el
* @param {string} class_name class name to add
* @returns void
*/
function _addClass(el, class_name) {
el.className += el.className ? ' ' + class_name : class_name;
}
/**
* checks if a block has a given class
*
* @param {Element} el
* @param {string} class_name class name to check for
* @returns {boolean}
*/
function _hasClass(el, class_name) {
return (' ' + el.className + ' ').indexOf(' ' + class_name + ' ') > -1;
}
/**
* gets the language for this block of code
*
* @param {Element} block
* @returns {string|null}
*/
function _getLanguageForBlock(block) {
// if this doesn't have a language but the parent does then use that
// this means if for example you have: <pre data-language="php">
// with a bunch of <code> blocks inside then you do not have
// to specify the language for each block
var language = _attr(block, 'data-language') || _attr(block.parentNode, 'data-language');
// this adds support for specifying language via a css class
// you can use the Google Code Prettify style: <pre class="lang-php">
// or the HTML5 style: <pre><code class="language-php">
if (!language) {
var pattern = /\blang(?:uage)?-(\w+)/,
match = block.className.match(pattern) || block.parentNode.className.match(pattern);
if (match) {
language = match[1];
}
}
return language;
}
/**
* makes sure html entities are always used for tags
*
* @param {string} code
* @returns {string}
*/
function _htmlEntities(code) {
return code.replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/&(?![\w\#]+;)/g, '&amp;');
}
/**
* determines if a new match intersects with an existing one
*
* @param {number} start1 start position of existing match
* @param {number} end1 end position of existing match
* @param {number} start2 start position of new match
* @param {number} end2 end position of new match
* @returns {boolean}
*/
function _intersects(start1, end1, start2, end2) {
if (start2 >= start1 && start2 < end1) {
return true;
}
return end2 > start1 && end2 < end1;
}
/**
* determines if two different matches have complete overlap with each other
*
* @param {number} start1 start position of existing match
* @param {number} end1 end position of existing match
* @param {number} start2 start position of new match
* @param {number} end2 end position of new match
* @returns {boolean}
*/
function _hasCompleteOverlap(start1, end1, start2, end2) {
// if the starting and end positions are exactly the same
// then the first one should stay and this one should be ignored
if (start2 == start1 && end2 == end1) {
return false;
}
return start2 <= start1 && end2 >= end1;
}
/**
* determines if the match passed in falls inside of an existing match
* this prevents a regex pattern from matching inside of a bigger pattern
*
* @param {number} start - start position of new match
* @param {number} end - end position of new match
* @returns {boolean}
*/
function _matchIsInsideOtherMatch(start, end) {
for (var key in replacement_positions[CURRENT_LEVEL]) {
key = parseInt(key, 10);
// if this block completely overlaps with another block
// then we should remove the other block and return false
if (_hasCompleteOverlap(key, replacement_positions[CURRENT_LEVEL][key], start, end)) {
delete replacement_positions[CURRENT_LEVEL][key];
delete replacements[CURRENT_LEVEL][key];
}
if (_intersects(key, replacement_positions[CURRENT_LEVEL][key], start, end)) {
return true;
}
}
return false;
}
/**
* takes a string of code and wraps it in a span tag based on the name
*
* @param {string} name name of the pattern (ie keyword.regex)
* @param {string} code block of code to wrap
* @returns {string}
*/
function _wrapCodeInSpan(name, code) {
return '<span class="' + name.replace(/\./g, ' ') + (global_class ? ' ' + global_class : '') + '">' + code + '</span>';
}
/**
* finds out the position of group match for a regular expression
*
* @see http://stackoverflow.com/questions/1985594/how-to-find-index-of-groups-in-match
*
* @param {Object} match
* @param {number} group_number
* @returns {number}
*/
function _indexOfGroup(match, group_number) {
var index = 0,
i;
for (i = 1; i < group_number; ++i) {
if (match[i]) {
index += match[i].length;
}
}
return index;
}
/**
* matches a regex pattern against a block of code
* finds all matches that should be processed and stores the positions
* of where they should be replaced within the string
*
* this is where pretty much all the work is done but it should not
* be called directly
*
* @param {RegExp} pattern
* @param {string} code
* @returns void
*/
function _processPattern(regex, pattern, code, callback)
{
if (typeof regex === "undefined" || regex === null) {
//console.warn("undefined regular expression")
return callback();
}
var match = regex.exec(code);
if (!match) {
return callback();
}
++match_counter;
// treat match 0 the same way as name
if (!pattern['name'] && typeof pattern['matches'][0] == 'string') {
pattern['name'] = pattern['matches'][0];
delete pattern['matches'][0];
}
var replacement = match[0],
start_pos = match.index,
end_pos = match[0].length + start_pos,
/**
* callback to process the next match of this pattern
*/
processNext = function() {
var nextCall = function() {
_processPattern(regex, pattern, code, callback);
};
// every 100 items we process let's call set timeout
// to let the ui breathe a little
return match_counter % 100 > 0 ? nextCall() : setTimeout(nextCall, 0);
};
// if this is not a child match and it falls inside of another
// match that already happened we should skip it and continue processing
if (_matchIsInsideOtherMatch(start_pos, end_pos)) {
return processNext();
}
/**
* callback for when a match was successfully processed
*
* @param {string} replacement
* @returns void
*/
var onMatchSuccess = function(replacement) {
// if this match has a name then wrap it in a span tag
if (pattern['name']) {
replacement = _wrapCodeInSpan(pattern['name'], replacement);
}
// console.log('LEVEL', CURRENT_LEVEL, 'replace', match[0], 'with', replacement, 'at position', start_pos, 'to', end_pos);
// store what needs to be replaced with what at this position
if (!replacements[CURRENT_LEVEL]) {
replacements[CURRENT_LEVEL] = {};
replacement_positions[CURRENT_LEVEL] = {};
}
replacements[CURRENT_LEVEL][start_pos] = {
'replace': match[0],
'with': replacement
};
// store the range of this match so we can use it for comparisons
// with other matches later
replacement_positions[CURRENT_LEVEL][start_pos] = end_pos;
// process the next match
processNext();
},
// if this pattern has sub matches for different groups in the regex
// then we should process them one at a time by rerunning them through
// this function to generate the new replacement
//
// we run through them backwards because the match position of earlier
// matches will not change depending on what gets replaced in later
// matches
group_keys = keys(pattern['matches']),
/**
* callback for processing a sub group
*
* @param {number} i
* @param {Array} group_keys
* @param {Function} callback
*/
processGroup = function(i, group_keys, callback) {
if (i >= group_keys.length) {
return callback(replacement);
}
var processNextGroup = function() {
processGroup(++i, group_keys, callback);
},
block = match[group_keys[i]];
// if there is no match here then move on
if (!block) {
return processNextGroup();
}
var group = pattern['matches'][group_keys[i]],
language = group['language'],
/**
* process group is what group we should use to actually process
* this match group
*
* for example if the subgroup pattern looks like this
* 2: {
* 'name': 'keyword',
* 'pattern': /true/g
* }
*
* then we use that as is, but if it looks like this
*
* 2: {
* 'name': 'keyword',
* 'matches': {
* 'name': 'special',
* 'pattern': /whatever/g
* }
* }
*
* we treat the 'matches' part as the pattern and keep
* the name around to wrap it with later
*/
process_group = group['name'] && group['matches'] ? group['matches'] : group,
/**
* takes the code block matched at this group, replaces it
* with the highlighted block, and optionally wraps it with
* a span with a name
*
* @param {string} block
* @param {string} replace_block
* @param {string|null} match_name
*/
_replaceAndContinue = function(block, replace_block, match_name) {
replacement = _replaceAtPosition(_indexOfGroup(match, group_keys[i]), block, match_name ? _wrapCodeInSpan(match_name, replace_block) : replace_block, replacement);
processNextGroup();
};
// if this is a sublanguage go and process the block using that language
if (language) {
return _highlightBlockForLanguage(block, language, function(code) {
_replaceAndContinue(block, code);
});
}
// if this is a string then this match is directly mapped to selector
// so all we have to do is wrap it in a span and continue
if (typeof group === 'string') {
return _replaceAndContinue(block, block, group);
}
// the process group can be a single pattern or an array of patterns
// _processCodeWithPatterns always expects an array so we convert it here
_processCodeWithPatterns(block, process_group.length ? process_group : [process_group], function(code) {
_replaceAndContinue(block, code, group['matches'] ? group['name'] : 0);
});
};
processGroup(0, group_keys, onMatchSuccess);
}
/**
* should a language bypass the default patterns?
*
* if you call Rainbow.extend() and pass true as the third argument
* it will bypass the defaults
*/
function _bypassDefaultPatterns(language)
{
return bypass_defaults[language];
}
/**
* returns a list of regex patterns for this language
*
* @param {string} language
* @returns {Array}
*/
function _getPatternsForLanguage(language) {
var patterns = language_patterns[language] || [],
default_patterns = language_patterns[DEFAULT_LANGUAGE] || [];
return _bypassDefaultPatterns(language) ? patterns : patterns.concat(default_patterns);
}
/**
* substring replace call to replace part of a string at a certain position
*
* @param {number} position the position where the replacement should happen
* @param {string} replace the text we want to replace
* @param {string} replace_with the text we want to replace it with
* @param {string} code the code we are doing the replacing in
* @returns {string}
*/
function _replaceAtPosition(position, replace, replace_with, code) {
var sub_string = code.substr(position);
return code.substr(0, position) + sub_string.replace(replace, replace_with);
}
/**
* sorts an object by index descending
*
* @param {Object} object
* @return {Array}
*/
function keys(object) {
var locations = [],
replacement,
pos;
for(var location in object) {
if (object.hasOwnProperty(location)) {
locations.push(location);
}
}
// numeric descending
return locations.sort(function(a, b) {
return b - a;
});
}
/**
* processes a block of code using specified patterns
*
* @param {string} code
* @param {Array} patterns
* @returns void
*/
function _processCodeWithPatterns(code, patterns, callback)
{
// we have to increase the level here so that the
// replacements will not conflict with each other when
// processing sub blocks of code
++CURRENT_LEVEL;
// patterns are processed one at a time through this function
function _workOnPatterns(patterns, i)
{
// still have patterns to process, keep going
if (i < patterns.length) {
return _processPattern(patterns[i]['pattern'], patterns[i], code, function() {
_workOnPatterns(patterns, ++i);
});
}
// we are done processing the patterns
// process the replacements and update the DOM
_processReplacements(code, function(code) {
// when we are done processing replacements
// we are done at this level so we can go back down
delete replacements[CURRENT_LEVEL];
delete replacement_positions[CURRENT_LEVEL];
--CURRENT_LEVEL;
callback(code);
});
}
_workOnPatterns(patterns, 0);
}
/**
* process replacements in the string of code to actually update the markup
*
* @param {string} code the code to process replacements in
* @param {Function} onComplete what to do when we are done processing
* @returns void
*/
function _processReplacements(code, onComplete) {
/**
* processes a single replacement
*
* @param {string} code
* @param {Array} positions
* @param {number} i
* @param {Function} onComplete
* @returns void
*/
function _processReplacement(code, positions, i, onComplete) {
if (i < positions.length) {
++replacement_counter;
var pos = positions[i],
replacement = replacements[CURRENT_LEVEL][pos];
code = _replaceAtPosition(pos, replacement['replace'], replacement['with'], code);
// process next function
var next = function() {
_processReplacement(code, positions, ++i, onComplete);
};
// use a timeout every 250 to not freeze up the UI
return replacement_counter % 250 > 0 ? next() : setTimeout(next, 0);
}
onComplete(code);
}
var string_positions = keys(replacements[CURRENT_LEVEL]);
_processReplacement(code, string_positions, 0, onComplete);
}
/**
* takes a string of code and highlights it according to the language specified
*
* @param {string} code
* @param {string} language
* @param {Function} onComplete
* @returns void
*/
function _highlightBlockForLanguage(code, language, onComplete) {
var patterns = _getPatternsForLanguage(language);
_processCodeWithPatterns(_htmlEntities(code), patterns, onComplete);
}
/**
* highlight an individual code block
*
* @param {Array} code_blocks
* @param {number} i
* @returns void
*/
function _highlightCodeBlock(code_blocks, i, onComplete) {
if (i < code_blocks.length) {
var block = code_blocks[i],
language = _getLanguageForBlock(block);
if (!_hasClass(block, 'rainbow') && language) {
language = language.toLowerCase();
_addClass(block, 'rainbow');
return _highlightBlockForLanguage(block.innerHTML, language, function(code) {
block.innerHTML = code;
// reset the replacement arrays
replacements = {};
replacement_positions = {};
// if you have a listener attached tell it that this block is now highlighted
if (onHighlight) {
onHighlight(block, language);
}
// process the next block
setTimeout(function() {
_highlightCodeBlock(code_blocks, ++i, onComplete);
}, 0);
});
}
return _highlightCodeBlock(code_blocks, ++i, onComplete);
}
if (onComplete) {
onComplete();
}
}
/**
* start highlighting all the code blocks
*
* @returns void
*/
function _highlight(node, onComplete) {
// the first argument can be an Event or a DOM Element
// I was originally checking instanceof Event but that makes it break
// when using mootools
//
// @see https://github.com/ccampbell/rainbow/issues/32
//
node = node && typeof node.getElementsByTagName == 'function' ? node : document;
var pre_blocks = node.getElementsByTagName('pre'),
code_blocks = node.getElementsByTagName('code'),
i,
final_pre_blocks = [],
final_code_blocks = [];
// first loop through all pre blocks to find which ones to highlight
// also strip whitespace
for (i = 0; i < pre_blocks.length; ++i) {
// strip whitespace around code tags when they are inside of a pre tag
// this makes the themes look better because you can't accidentally
// add extra linebreaks at the start and end
//
// when the pre tag contains a code tag then strip any extra whitespace
// for example
// <pre>
// <code>var foo = true;</code>
// </pre>
//
// will become
// <pre><code>var foo = true;</code></pre>
//
// if you want to preserve whitespace you can use a pre tag on its own
// without a code tag inside of it
if (pre_blocks[i].getElementsByTagName('code').length) {
pre_blocks[i].innerHTML = pre_blocks[i].innerHTML.replace(/^\s+/, '').replace(/\s+$/, '');
continue;
}
// if the pre block has no code blocks then we are going to want to
// process it directly
final_pre_blocks.push(pre_blocks[i]);
}
// @see http://stackoverflow.com/questions/2735067/how-to-convert-a-dom-node-list-to-an-array-in-javascript
// we are going to process all <code> blocks
for (i = 0; i < code_blocks.length; ++i) {
final_code_blocks.push(code_blocks[i]);
}
_highlightCodeBlock(final_code_blocks.concat(final_pre_blocks), 0, onComplete);
}
/**
* public methods
*/
return {
/**
* extends the language pattern matches
*
* @param {*} language name of language
* @param {*} patterns array of patterns to add on
* @param {boolean|null} bypass if true this will bypass the default language patterns
*/
extend: function(language, patterns, bypass) {
// if there is only one argument then we assume that we want to
// extend the default language rules
if (arguments.length == 1) {
patterns = language;
language = DEFAULT_LANGUAGE;
}
bypass_defaults[language] = bypass;
language_patterns[language] = patterns.concat(language_patterns[language] || []);
},
/**
* call back to let you do stuff in your app after a piece of code has been highlighted
*
* @param {Function} callback
*/
onHighlight: function(callback) {
onHighlight = callback;
},
/**
* method to set a global class that will be applied to all spans
*
* @param {string} class_name
*/
addClass: function(class_name) {
global_class = class_name;
},
/**
* starts the magic rainbow
*
* @returns void
*/
color: function() {
// if you want to straight up highlight a string you can pass the string of code,
// the language, and a callback function
if (typeof arguments[0] == 'string') {
return _highlightBlockForLanguage(arguments[0], arguments[1], arguments[2]);
}
// if you pass a callback function then we rerun the color function
// on all the code and call the callback function on complete
if (typeof arguments[0] == 'function') {
return _highlight(0, arguments[0]);
}
// otherwise we use whatever node you passed in with an optional
// callback function as the second parameter
_highlight(arguments[0], arguments[1]);
}
};
}) ();
/**
* adds event listener to start highlighting
*/
(function() {
if (document.addEventListener) {
return document.addEventListener('DOMContentLoaded', Rainbow.color, false);
}
window.attachEvent('onload', Rainbow.color);
}) ();
// When using Google closure compiler in advanced mode some methods
// get renamed. This keeps a public reference to these methods so they can
// still be referenced from outside this library.
Rainbow["onHighlight"] = Rainbow.onHighlight;
Rainbow["addClass"] = Rainbow.addClass;

View file

@ -0,0 +1,118 @@
// Only install the plugin if Rainbow is present and has been loaded
if (window.Rainbow) window.Rainbow.linenumbers = (function(Rainbow) {
/**
* Splits up a single element into individual lines
*
* @param {HTMLElement} elem
* @returns {Array}
*/
function splitElement(elem) {
if (elem.nodeType === 3) {
// Just split up the text node
return elem.nodeValue.split('\n');
}
// Otherwise, we need to split up the HTML
var sourceLines = elem.innerHTML.split('\n');
var lines = [];
// Wraps each chunk in the parent element. For example:
// <b>foo\nbar</b> -> [<b>foo</b>, <b>bar</b>]
for (var i = 0; i < sourceLines.length; i++) {
// Handles <b>\nbar</b> -> [, <b>bar</b>]
if (sourceLines[i] === '') {
lines.push('');
} else {
var wrapper = elem.cloneNode(true);
wrapper.innerHTML = sourceLines[i];
var div = document.createElement('div');
div.appendChild(wrapper.cloneNode(true));
lines.push(div.innerHTML);
}
}
return lines;
};
/**
* Splits up the element containing highlighted source code
* into an array of lines
*
* @param {HTMLElement} block
* @returns {Array}
*/
function splitLines(block) {
var lines = [''];
for (var i = 0; i < block.childNodes.length; i++) {
var elemLines = splitElement(block.childNodes[i]);
// The first element in elemLines is
// a continuation of the previous line
lines[lines.length - 1] += elemLines[0];
// The remaining elements get their own lines
for (var j = 1; j < elemLines.length; j++) {
lines.push(elemLines[j]);
}
}
// Returns the array of lines
return lines;
};
// Callback is called when Rainbow has highlighted a block
Rainbow.onHighlight(function(block) {
// This addresses an issue when Rainbow.color() is called multiple times.
// Since code element is replaced with table element below,
// second pass of Rainbow.color() will result in block.parentNode being null.
if (!block || !block.parentNode) {
return;
}
// Create a table wrapper
var table = document.createElement('table');
table.className = 'rainbow';
table.setAttribute('data-language', block.getAttribute('data-language'));
// Split up the lines of the block
var lines = splitLines(block);
// For each line
for (var i = 0; i < lines.length; i++) {
var line = lines[i];
var index = i + 1;
// Create a row
var row = table.insertRow(-1);
row.className = 'line line-' + index;
// Create a cell which displays the line number with CSS
var lineNumber = row.insertCell(-1);
lineNumber.className = 'line-number';
lineNumber.setAttribute('data-line-number', index);
// Add in the actual line of source code
var code = row.insertCell(-1);
code.className = 'line-code';
// If the line is blank, add a newline to make it copyable.
if (line === '') {
line = '\n';
}
code.innerHTML = line;
}
// If the block is a <pre> element, its parent is not an element
// generated by Rainbow (i.e. it could be <body>). We don't want
// to clear this.
var parent = (block.nodeName.toLowerCase() === 'pre') ? block : block.parentNode;
// Clear the parent element and use the table in place of the <code> block
parent.innerHTML = '';
parent.appendChild(table);
});
})(window.Rainbow);

View file

@ -0,0 +1,2 @@
window.Rainbow&&(window.Rainbow.linenumbers=function(m){m.onHighlight(function(c){if(c&&c.parentNode){var h=document.createElement("table");h.className="rainbow";h.setAttribute("data-language",c.getAttribute("data-language"));for(var e=[""],d=0;d<c.childNodes.length;d++){var a;a=c.childNodes[d];if(3===a.nodeType)a=a.nodeValue.split("\n");else{for(var b=a.innerHTML.split("\n"),f=[],g=0;g<b.length;g++)if(""===b[g])f.push("");else{var k=a.cloneNode(!0);k.innerHTML=b[g];var l=document.createElement("div");
l.appendChild(k.cloneNode(!0));f.push(l.innerHTML)}a=f}e[e.length-1]+=a[0];for(b=1;b<a.length;b++)e.push(a[b])}for(d=0;d<e.length;d++)a=e[d],b=d+1,f=h.insertRow(-1),f.className="line line-"+b,g=f.insertCell(-1),g.className="line-number",g.setAttribute("data-line-number",b),b=f.insertCell(-1),b.className="line-code",""===a&&(a="\n"),b.innerHTML=a;c="pre"===c.nodeName.toLowerCase()?c:c.parentNode;c.innerHTML="";c.appendChild(h)}})}(window.Rainbow));

View file

@ -6,10 +6,12 @@
<link rel="stylesheet" href="../assets/css/main.css" type="text/css"/>
<link rel="stylesheet" href="../assets/css/menu.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../assets/css/solarized-light.css" type="text/css"/>
<link rel="stylesheet" href="../assets/css/solarized-light-linenumbers.css" type="text/css" />
<script src="../example-data.js" type="text/javascript"></script>
<script src="../assets/js/menu.js" type="text/javascript"></script>
<script src="../assets/js/rainbow.min.js" type="text/javascript"></script>
<script src="../assets/js/rainbow.linenumbers.min.js" type="text/javascript"></script>
<script src="../assets/js/language/generic.js" type="text/javascript"></script>
<script src="../assets/js/language/javascript.js" type="text/javascript"></script>
</head>

View file

@ -4,4 +4,4 @@
#
# Requires release.token and releases/<version>.md
curl https://api.github.com/repos/openscad/openscad/releases -H "Authorization: token $(<release.token)" -d "$(./scripts/makereleasejson.py $1)"
curl https://api.github.com/repos/openscad/openscad/releases -H "Authorization: token $(<release.token>)" -d "$(./scripts/makereleasejson.py $1)"

View file

@ -18,7 +18,13 @@ File /r /x mingw-cross-env color-schemes
${registerExtension} "$INSTDIR\openscad.exe" ".scad" "OpenSCAD_File"
CreateShortCut $SMPROGRAMS\OpenSCAD.lnk $INSTDIR\openscad.exe
WriteUninstaller $INSTDIR\Uninstall.exe
# see https://msdn.microsoft.com/en-us/library/aa372105(v=vs.85).aspx
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenSCAD" "DisplayName" "OpenSCAD (remove only)"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenSCAD" "DisplayVersion" "${VERSION}"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenSCAD" "Publisher" "The OpenSCAD Developers"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenSCAD" "URLInfoAbout" "http://www.openscad.org/"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenSCAD" "URLUpdateInfo" "http://www.openscad.org/downloads.html"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenSCAD" "HelpLink" "http://forum.openscad.org/"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenSCAD" "UninstallString" "$INSTDIR\Uninstall.exe"
WriteRegStr HKCR ".scad" "PerceivedType" "text"
SectionEnd

View file

@ -1,13 +1,12 @@
#!/bin/bash
#
# This script builds all library dependencies of OpenSCAD for Mac OS X.
# The libraries will be build in 64-bit (and optionally 32-bit mode) mode
# and backwards compatible with 10.5 "Leopard".
# The libraries will be build in 64-bit mode and backwards compatible with 10.8 "Mountain Lion".
#
# This script must be run from the OpenSCAD source root directory
#
# Usage: macosx-build-dependencies.sh [-6lcd] [<package>]
# -6 Build only 64-bit binaries
# Usage: macosx-build-dependencies.sh [-16lcdf] [<package>]
# -3 Build using C++03 and libstdc++ (default is C++11 and libc++)
# -l Force use of LLVM compiler
# -c Force use of clang compiler
# -d Build for deployment (if not specified, e.g. Sparkle won't be built)
@ -24,44 +23,44 @@ BASEDIR=$PWD/../libraries
OPENSCADDIR=$PWD
SRCDIR=$BASEDIR/src
DEPLOYDIR=$BASEDIR/install
MAC_OSX_VERSION_MIN=10.7
OPTION_32BIT=false
MAC_OSX_VERSION_MIN=10.8
OPTION_LLVM=false
OPTION_CLANG=false
OPTION_GCC=false
OPTION_DEPLOY=false
OPTION_FORCE=0
OPTION_CXX11=true
PACKAGES=(
"eigen 3.2.4"
"gmp 5.1.3"
"mpfr 3.1.2"
"boost 1.57.0"
"qt5 5.4.1"
"qscintilla 2.8.4"
# NB! For eigen, also update the path in the function
"eigen 3.2.8"
"gmp 6.1.1"
"mpfr 3.1.4"
"boost 1.61.0"
"qt5 5.7.0"
"qscintilla 2.9.3"
# NB! For CGAL, also update the actual download URL in the function
"cgal 4.5.2"
"glew 1.12.0"
"gettext 0.19.4"
"cgal 4.8.1"
"glew 1.13.0"
"gettext 0.19.8"
"libffi 3.2.1"
"glib2 2.42.1"
"opencsg 1.4.0"
"freetype 2.5.5"
"glib2 2.46.1"
"opencsg 1.4.2"
"freetype 2.6.3"
"ragel 6.9"
"harfbuzz 0.9.37"
"libxml2 2.9.2"
"fontconfig 2.11.1"
"harfbuzz 1.2.7"
"libxml2 2.9.4"
"fontconfig 2.12.0"
"lib3mf a466df47231c02298dde295adb6075b0fc649eba"
)
DEPLOY_PACKAGES=(
"sparkle Cocoanetics:1e7dcb1a48b96d1a8c62100b5864bd50211cbae1"
"sparkle 1.13.1"
)
printUsage()
{
echo "Usage: $0 [-6lcd] [<package>]"
echo "Usage: $0 [-3lcdf] [<package>]"
echo
echo " -6 Build only 64-bit binaries"
echo " -3 Build using C++03 and libstdc++"
echo " -l Force use of LLVM compiler"
echo " -c Force use of clang compiler"
echo " -d Build for deployment"
@ -109,7 +108,6 @@ build()
build_$package $version
set +e
fi
}
# Usage: is_installed <package> [<version>]
@ -185,9 +183,6 @@ build_qt()
sed -i "" -e "s/::TabletProximityRec/TabletProximityRec/g" src/gui/kernel/qt_cocoa_helpers_mac_p.h
PLATFORM="-platform unsupported/macx-clang"
fi
if $OPTION_32BIT; then
QT_32BIT="-arch x86"
fi
case "$OSX_VERSION" in
9)
# libtiff fails in the linker step with Mavericks / XCode 5.0.1
@ -199,7 +194,7 @@ build_qt()
MACOSX_RELEASE_OPTIONS=
;;
esac
./configure -prefix $DEPLOYDIR -release $QT_32BIT -arch x86_64 -opensource -confirm-license $PLATFORM -fast -no-qt3support -no-svg -no-phonon -no-audio-backend -no-multimedia -no-javascript-jit -no-script -no-scripttools -no-declarative -no-xmlpatterns -nomake demos -nomake examples -nomake docs -nomake translations -no-webkit $MACOSX_RELEASE_OPTIONS
./configure -prefix $DEPLOYDIR -release -arch x86_64 -opensource -confirm-license $PLATFORM -fast -no-qt3support -no-svg -no-phonon -no-audio-backend -no-multimedia -no-javascript-jit -no-script -no-scripttools -no-declarative -no-xmlpatterns -nomake demos -nomake examples -nomake docs -nomake translations -no-webkit $MACOSX_RELEASE_OPTIONS
make -j"$NUMCPU" install
}
@ -221,15 +216,23 @@ build_qt5()
fi
tar xzf qt-everywhere-opensource-src-$version.tar.gz
cd qt-everywhere-opensource-src-$version
./configure -prefix $DEPLOYDIR -release -opensource -confirm-license \
if ! $USING_CXX11; then
QT_EXTRA_FLAGS="-no-c++11"
fi
CXXFLAGS="$CXXSTDFLAGS" ./configure -prefix $DEPLOYDIR $QT_EXTRA_FLAGS -release -opensource -confirm-license \
-nomake examples -nomake tests \
-no-xcb -no-c++11 -no-glib -no-harfbuzz -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc \
-no-xcb -no-glib -no-harfbuzz -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc \
-no-sql-psql -no-sql-sqlite2 -no-sql-tds -no-cups -no-qml-debug \
-skip activeqt -skip connectivity -skip declarative -skip doc \
-skip enginio -skip graphicaleffects -skip location -skip multimedia \
-skip quick1 -skip quickcontrols -skip script -skip sensors -skip serialport \
-skip svg -skip webkit -skip webkit-examples -skip websockets -skip xmlpatterns
make -j"$NUMCPU" install
-skip qtx11extras -skip qtandroidextras -skip qtserialport -skip qtserialbus \
-skip qtactiveqt -skip qtxmlpatterns -skip qtdeclarative -skip qtscxml \
-skip qtpurchasing -skip qtcanvas3d -skip qtgamepad -skip qtwayland \
-skip qtconnectivity -skip qtwebsockets -skip qtwebchannel -skip qtsensors \
-skip qtmultimedia -skip qtdatavis3d -skip qtcharts -skip qtwinextras \
-skip qtgraphicaleffects -skip qtquickcontrols2 -skip qtquickcontrols \
-skip qtvirtualkeyboard -skip qtlocation -skip qtwebengine -skip qtwebview \
-skip qtscript -skip qttranslations -skip qtdoc
make -j"$NUMCPU"
make install
}
check_qscintilla()
@ -242,15 +245,15 @@ build_qscintilla()
version=$1
echo "Building QScintilla" $version "..."
cd $BASEDIR/src
rm -rf QScintilla-gpl-$version
if [ ! -f QScintilla-gpl-$version.tar.gz ]; then
curl -LO http://downloads.sourceforge.net/project/pyqt/QScintilla2/QScintilla-$version/QScintilla-gpl-$version.tar.gz
rm -rf QScintilla_gpl-$version
if [ ! -f QScintilla_gpl-$version.tar.gz ]; then
curl -LO http://downloads.sourceforge.net/project/pyqt/QScintilla2/QScintilla-$version/QScintilla_gpl-$version.tar.gz
fi
tar xzf QScintilla-gpl-$version.tar.gz
cd QScintilla-gpl-$version/Qt4Qt5
qmake qscintilla.pro
make -j6 install
install_name_tool -id $DEPLOYDIR/lib/libqscintilla2.dylib $DEPLOYDIR/lib/libqscintilla2.dylib
tar xzf QScintilla_gpl-$version.tar.gz
cd QScintilla_gpl-$version/Qt4Qt5
qmake QMAKE_CXXFLAGS+="$CXXSTDFLAGS" QMAKE_LFLAGS+="$CXXSTDFLAGS" qscintilla.pro
make -j"$NUMCPU" install
install_name_tool -id @rpath/libqscintilla2.dylib $DEPLOYDIR/lib/libqscintilla2.dylib
}
check_gmp()
@ -258,9 +261,6 @@ check_gmp()
check_file lib/libgmp.dylib
}
# Hack warning: gmplib is built separately in 32-bit and 64-bit mode
# and then merged afterwards. gmplib's header files are dependent on
# the CPU architecture on which configure was run and will be patched accordingly.
build_gmp()
{
version=$1
@ -273,87 +273,12 @@ build_gmp()
fi
tar xjf gmp-$version.tar.bz2
cd gmp-$version
patch -p0 gmp-h.in << EOF
--- gmp-5.1.3/gmp-h.in.old 2013-12-02 20:16:26.000000000 -0800
+++ gmp-5.1.3/gmp-h.in 2013-12-02 20:21:22.000000000 -0800
@@ -27,13 +27,38 @@
#endif
-/* Instantiated by configure. */
#if ! defined (__GMP_WITHIN_CONFIGURE)
+/* For benefit of fat builds on MacOSX, generate a .h file that can
+ * be used with a universal fat library
+ */
+#if defined(__x86_64__)
+#define __GMP_HAVE_HOST_CPU_FAMILY_power 0
+#define __GMP_HAVE_HOST_CPU_FAMILY_powerpc 0
+#define GMP_LIMB_BITS 64
+#define GMP_NAIL_BITS 0
+#elif defined(__i386__)
+#define __GMP_HAVE_HOST_CPU_FAMILY_power 0
+#define __GMP_HAVE_HOST_CPU_FAMILY_powerpc 0
+#define GMP_LIMB_BITS 32
+#define GMP_NAIL_BITS 0
+#elif defined(__powerpc64__)
+#define __GMP_HAVE_HOST_CPU_FAMILY_power 0
+#define __GMP_HAVE_HOST_CPU_FAMILY_powerpc 1
+#define GMP_LIMB_BITS 64
+#define GMP_NAIL_BITS 0
+#elif defined(__ppc__)
+#define __GMP_HAVE_HOST_CPU_FAMILY_power 0
+#define __GMP_HAVE_HOST_CPU_FAMILY_powerpc 1
+#define GMP_LIMB_BITS 32
+#define GMP_NAIL_BITS 0
+#else
+/* For other architectures, fall back on values computed by configure */
#define __GMP_HAVE_HOST_CPU_FAMILY_power @HAVE_HOST_CPU_FAMILY_power@
#define __GMP_HAVE_HOST_CPU_FAMILY_powerpc @HAVE_HOST_CPU_FAMILY_powerpc@
#define GMP_LIMB_BITS @GMP_LIMB_BITS@
#define GMP_NAIL_BITS @GMP_NAIL_BITS@
#endif
+#endif
#define GMP_NUMB_BITS (GMP_LIMB_BITS - GMP_NAIL_BITS)
#define GMP_NUMB_MASK ((~ __GMP_CAST (mp_limb_t, 0)) >> GMP_NAIL_BITS)
#define GMP_NUMB_MAX GMP_NUMB_MASK
EOF
./configure --prefix=$DEPLOYDIR CXXFLAGS="$CXXSTDFLAGS" CFLAGS="-mmacosx-version-min=$MAC_OSX_VERSION_MIN -arch x86_64" LDFLAGS="$LDSTDFLAGS -mmacosx-version-min=$MAC_OSX_VERSION_MIN -arch x86_64" ABI=64 --enable-cxx
make -j"$NUMCPU" install
if $OPTION_32BIT; then
mkdir build-i386
cd build-i386
../configure --prefix=$DEPLOYDIR/i386 "CFLAGS=-mmacosx-version-min=$MAC_OSX_VERSION_MIN -arch i386" LDFLAGS="-mmacosx-version-min=$MAC_OSX_VERSION_MIN -arch i386" ABI=32 --enable-cxx
make install
cd ..
fi
# 64-bit version
mkdir build-x86_64
cd build-x86_64
../configure --prefix=$DEPLOYDIR/x86_64 "CFLAGS=-mmacosx-version-min=$MAC_OSX_VERSION_MIN -arch x86_64" LDFLAGS="-mmacosx-version-min=$MAC_OSX_VERSION_MIN -arch x86_64" ABI=64 --enable-cxx
make install
# merge
cd $DEPLOYDIR
mkdir -p lib
if $OPTION_32BIT; then
lipo -create i386/lib/libgmp.dylib x86_64/lib/libgmp.dylib -output lib/libgmp.dylib
lipo -create i386/lib/libgmpxx.dylib x86_64/lib/libgmpxx.dylib -output lib/libgmpxx.dylib
else
cp x86_64/lib/libgmp.dylib lib/libgmp.dylib
cp x86_64/lib/libgmpxx.dylib lib/libgmpxx.dylib
fi
install_name_tool -id $DEPLOYDIR/lib/libgmp.dylib lib/libgmp.dylib
install_name_tool -id $DEPLOYDIR/lib/libgmpxx.dylib lib/libgmpxx.dylib
install_name_tool -change $DEPLOYDIR/x86_64/lib/libgmp.10.dylib $DEPLOYDIR/lib/libgmp.dylib lib/libgmpxx.dylib
if $OPTION_32BIT; then
cp lib/libgmp.dylib i386/lib/
cp lib/libgmp.dylib x86_64/lib/
cp lib/libgmpxx.dylib i386/lib/
cp lib/libgmpxx.dylib x86_64/lib/
fi
mkdir -p include
cp x86_64/include/gmp.h include/
cp x86_64/include/gmpxx.h include/
install_name_tool -id @rpath/libgmp.dylib $DEPLOYDIR/lib/libgmp.dylib
install_name_tool -id @rpath/libgmpxx.dylib $DEPLOYDIR/lib/libgmpxx.dylib
install_name_tool -change $DEPLOYDIR/lib/libgmp.10.dylib @rpath/libgmp.dylib $DEPLOYDIR/lib/libgmpxx.dylib
}
check_mpfr()
@ -363,6 +288,11 @@ check_mpfr()
# As with gmplib, mpfr is built separately in 32-bit and 64-bit mode and then merged
# afterwards.
check_mpfr()
{
check_file include/mpfr.h
}
build_mpfr()
{
version=$1
@ -375,33 +305,11 @@ build_mpfr()
fi
tar xjf mpfr-$version.tar.bz2
cd mpfr-$version
# curl -O http://www.mpfr.org/mpfr-$version/allpatches
# patch -N -Z -p1 < allpatches
if $OPTION_32BIT; then
mkdir build-i386
cd build-i386
../configure --prefix=$DEPLOYDIR/i386 --with-gmp=$DEPLOYDIR/i386 CFLAGS="-mmacosx-version-min=$MAC_OSX_VERSION_MIN -arch i386" LDFLAGS="-mmacosx-version-min=$MAC_OSX_VERSION_MIN -arch i386"
make install
cd ..
fi
# 64-bit version
mkdir build-x86_64
cd build-x86_64
../configure --prefix=$DEPLOYDIR/x86_64 --with-gmp=$DEPLOYDIR/x86_64 CFLAGS="-mmacosx-version-min=$MAC_OSX_VERSION_MIN -arch x86_64" LDFLAGS="-mmacosx-version-min=$MAC_OSX_VERSION_MIN -arch x86_64"
make install
./configure --prefix=$DEPLOYDIR --with-gmp=$DEPLOYDIR CFLAGS="-mmacosx-version-min=$MAC_OSX_VERSION_MIN -arch x86_64" LDFLAGS="-mmacosx-version-min=$MAC_OSX_VERSION_MIN -arch x86_64"
make -j"$NUMCPU" install
# merge
cd $DEPLOYDIR
if $OPTION_32BIT; then
lipo -create i386/lib/libmpfr.dylib x86_64/lib/libmpfr.dylib -output lib/libmpfr.dylib
else
cp x86_64/lib/libmpfr.dylib lib/libmpfr.dylib
fi
install_name_tool -id $DEPLOYDIR/lib/libmpfr.dylib lib/libmpfr.dylib
mkdir -p include
cp x86_64/include/mpfr.h include/
cp x86_64/include/mpf2mpfr.h include/
install_name_tool -id @rpath/libmpfr.dylib $DEPLOYDIR/lib/libmpfr.dylib
}
check_boost()
@ -424,9 +332,6 @@ build_boost()
cd boost_$bversion
# We only need the thread and program_options libraries
./bootstrap.sh --prefix=$DEPLOYDIR --with-libraries=thread,program_options,filesystem,chrono,system,regex
if $OPTION_32BIT; then
BOOST_EXTRA_FLAGS="-arch i386"
fi
if $USING_LLVM; then
BOOST_TOOLSET="toolset=darwin-llvm"
echo "using darwin : llvm : llvm-g++ ;" >> tools/build/user-config.jam
@ -434,17 +339,7 @@ build_boost()
BOOST_TOOLSET="toolset=clang"
echo "using clang ;" >> tools/build/user-config.jam
fi
./b2 -j"$NUMCPU" -d+2 $BOOST_TOOLSET cflags="-mmacosx-version-min=$MAC_OSX_VERSION_MIN -arch x86_64 $BOOST_EXTRA_FLAGS" linkflags="-mmacosx-version-min=$MAC_OSX_VERSION_MIN -arch x86_64 $BOOST_EXTRA_FLAGS -headerpad_max_install_names" install
install_name_tool -id $DEPLOYDIR/lib/libboost_thread.dylib $DEPLOYDIR/lib/libboost_thread.dylib
install_name_tool -change libboost_system.dylib $DEPLOYDIR/lib/libboost_system.dylib $DEPLOYDIR/lib/libboost_thread.dylib
install_name_tool -change libboost_chrono.dylib $DEPLOYDIR/lib/libboost_chrono.dylib $DEPLOYDIR/lib/libboost_thread.dylib
install_name_tool -id $DEPLOYDIR/lib/libboost_program_options.dylib $DEPLOYDIR/lib/libboost_program_options.dylib
install_name_tool -id $DEPLOYDIR/lib/libboost_filesystem.dylib $DEPLOYDIR/lib/libboost_filesystem.dylib
install_name_tool -change libboost_system.dylib $DEPLOYDIR/lib/libboost_system.dylib $DEPLOYDIR/lib/libboost_filesystem.dylib
install_name_tool -id $DEPLOYDIR/lib/libboost_system.dylib $DEPLOYDIR/lib/libboost_system.dylib
install_name_tool -id $DEPLOYDIR/lib/libboost_regex.dylib $DEPLOYDIR/lib/libboost_regex.dylib
./b2 -j"$NUMCPU" -d+2 $BOOST_TOOLSET cflags="-mmacosx-version-min=$MAC_OSX_VERSION_MIN -arch x86_64 $CXXSTDFLAGS" linkflags="-mmacosx-version-min=$MAC_OSX_VERSION_MIN -arch x86_64 $LDSTDFLAGS -headerpad_max_install_names" install
}
check_cgal()
@ -459,9 +354,11 @@ build_cgal()
echo "Building CGAL" $version "..."
cd $BASEDIR/src
rm -rf CGAL-$version
if [ ! -f CGAL-$version.tar.gz ]; then
# 4.5.2
curl -O https://gforge.inria.fr/frs/download.php/file/34512/CGAL-$version.tar.gz
if [ ! -f CGAL-$version.tar.xz ]; then
# 4.8
curl -LO https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-$version/CGAL-$version.tar.xz
# 4.6.3 curl -O https://gforge.inria.fr/frs/download.php/file/35138/CGAL-$version.tar.gz
# 4.5.2 curl -O https://gforge.inria.fr/frs/download.php/file/34512/CGAL-$version.tar.gz
# 4.5.1 curl -O https://gforge.inria.fr/frs/download.php/file/34400/CGAL-$version.tar.gz
# 4.5 curl -O https://gforge.inria.fr/frs/download.php/file/34149/CGAL-$version.tar.gz
# 4.4 curl -O https://gforge.inria.fr/frs/download.php/file/33525/CGAL-$version.tar.gz
@ -475,17 +372,14 @@ build_cgal()
# 3.8 curl -O https://gforge.inria.fr/frs/download.php/28500/CGAL-$version.tar.gz
# 3.7 curl -O https://gforge.inria.fr/frs/download.php/27641/CGAL-$version.tar.gz
fi
tar xzf CGAL-$version.tar.gz
tar xzf CGAL-$version.tar.xz
cd CGAL-$version
if $OPTION_32BIT; then
CGAL_EXTRA_FLAGS=";i386"
fi
cmake -DCMAKE_INSTALL_PREFIX=$DEPLOYDIR -DGMP_INCLUDE_DIR=$DEPLOYDIR/include -DGMP_LIBRARIES=$DEPLOYDIR/lib/libgmp.dylib -DGMPXX_LIBRARIES=$DEPLOYDIR/lib/libgmpxx.dylib -DGMPXX_INCLUDE_DIR=$DEPLOYDIR/include -DMPFR_INCLUDE_DIR=$DEPLOYDIR/include -DMPFR_LIBRARIES=$DEPLOYDIR/lib/libmpfr.dylib -DWITH_CGAL_Qt3=OFF -DWITH_CGAL_Qt4=OFF -DWITH_CGAL_ImageIO=OFF -DBUILD_SHARED_LIBS=TRUE -DCMAKE_OSX_DEPLOYMENT_TARGET="$MAC_OSX_VERSION_MIN" -DCMAKE_OSX_ARCHITECTURES="x86_64$CGAL_EXTRA_FLAGS" -DBOOST_ROOT=$DEPLOYDIR -DBoost_USE_MULTITHREADED=false
CXXFLAGS="$CXXSTDFLAGS" cmake -DCMAKE_INSTALL_PREFIX=$DEPLOYDIR -DGMP_INCLUDE_DIR=$DEPLOYDIR/include -DGMP_LIBRARIES=$DEPLOYDIR/lib/libgmp.dylib -DGMPXX_LIBRARIES=$DEPLOYDIR/lib/libgmpxx.dylib -DGMPXX_INCLUDE_DIR=$DEPLOYDIR/include -DMPFR_INCLUDE_DIR=$DEPLOYDIR/include -DMPFR_LIBRARIES=$DEPLOYDIR/lib/libmpfr.dylib -DWITH_CGAL_Qt3=OFF -DWITH_CGAL_Qt4=OFF -DWITH_CGAL_ImageIO=OFF -DBUILD_SHARED_LIBS=TRUE -DCMAKE_OSX_DEPLOYMENT_TARGET="$MAC_OSX_VERSION_MIN" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DBOOST_ROOT=$DEPLOYDIR -DBoost_USE_MULTITHREADED=false
make -j"$NUMCPU" install
make install
install_name_tool -id $DEPLOYDIR/lib/libCGAL.dylib $DEPLOYDIR/lib/libCGAL.dylib
install_name_tool -id $DEPLOYDIR/lib/libCGAL_Core.dylib $DEPLOYDIR/lib/libCGAL_Core.dylib
install_name_tool -change $PWD/lib/libCGAL.9.dylib $DEPLOYDIR/lib/libCGAL.dylib $DEPLOYDIR/lib/libCGAL_Core.dylib
install_name_tool -id @rpath/libCGAL.dylib $DEPLOYDIR/lib/libCGAL.dylib
install_name_tool -id @rpath/libCGAL_Core.dylib $DEPLOYDIR/lib/libCGAL_Core.dylib
install_name_tool -change libCGAL.11.dylib @rpath/libCGAL.dylib $DEPLOYDIR/lib/libCGAL_Core.dylib
}
check_glew()
@ -506,10 +400,7 @@ build_glew()
tar xzf glew-$version.tgz
cd glew-$version
mkdir -p $DEPLOYDIR/lib/pkgconfig
if $OPTION_32BIT; then
GLEW_EXTRA_FLAGS="-arch i386"
fi
make GLEW_DEST=$DEPLOYDIR CC=$CC CFLAGS.EXTRA="-no-cpp-precomp -dynamic -fno-common -mmacosx-version-min=$MAC_OSX_VERSION_MIN $GLEW_EXTRA_FLAGS -arch x86_64" LDFLAGS.EXTRA="-mmacosx-version-min=$MAC_OSX_VERSION_MIN $GLEW_EXTRA_FLAGS -arch x86_64" STRIP= install
make GLEW_DEST=$DEPLOYDIR CC=$CC CFLAGS.EXTRA="-no-cpp-precomp -dynamic -fno-common -mmacosx-version-min=$MAC_OSX_VERSION_MIN -arch x86_64" LDFLAGS.EXTRA="-install_name @rpath/libGLEW.dylib -mmacosx-version-min=$MAC_OSX_VERSION_MIN -arch x86_64" POPT="-Os" STRIP= install
}
check_opencsg()
@ -530,11 +421,9 @@ build_opencsg()
tar xzf OpenCSG-$version.tar.gz
cd OpenCSG-$version
patch -p1 < $OPENSCADDIR/patches/OpenCSG-$version-MacOSX-port.patch
if $OPTION_32BIT; then
OPENCSG_EXTRA_FLAGS="x86"
fi
qmake -r QMAKE_CXXFLAGS+="-I$DEPLOYDIR/include" QMAKE_LFLAGS+="-L$DEPLOYDIR/lib" CONFIG+="x86_64 $OPENCSG_EXTRA_FLAGS" DESTDIR=$DEPLOYDIR
qmake -r INSTALLDIR=$DEPLOYDIR
make install
install_name_tool -id @rpath/libopencsg.dylib $DEPLOYDIR/lib/libopencsg.dylib
}
# Usage: func [<version>]
@ -567,8 +456,10 @@ build_eigen()
elif [ $version = "3.2.2" ]; then EIGENDIR=eigen-eigen-1306d75b4a21;
elif [ $version = "3.2.3" ]; then EIGENDIR=eigen-eigen-36fd1ba04c12;
elif [ $version = "3.2.4" ]; then EIGENDIR=eigen-eigen-10219c95fe65;
fi
elif [ $version = "3.2.6" ]; then EIGENDIR=eigen-eigen-c58038c56923;
elif [ $version = "3.2.8" ]; then EIGENDIR=eigen-eigen-07105f7124f9;
fi
if [ $EIGENDIR = "none" ]; then
echo Unknown eigen version. Please edit script.
exit 1
@ -584,10 +475,7 @@ build_eigen()
cd eigen-$version
mkdir build
cd build
if $OPTION_32BIT; then
EIGEN_EXTRA_FLAGS=";i386"
fi
cmake -DCMAKE_INSTALL_PREFIX=$DEPLOYDIR -DEIGEN_TEST_NOQT=TRUE -DCMAKE_OSX_DEPLOYMENT_TARGET="$MAC_OSX_VERSION_MIN" -DCMAKE_OSX_ARCHITECTURES="x86_64$EIGEN_EXTRA_FLAGS" ..
CXXFLAGS="$CXXSTDFLAGS" cmake -DCMAKE_INSTALL_PREFIX=$DEPLOYDIR -DEIGEN_TEST_NOQT=TRUE -DCMAKE_OSX_DEPLOYMENT_TARGET="$MAC_OSX_VERSION_MIN" -DCMAKE_OSX_ARCHITECTURES="x86_64" ..
make -j"$NUMCPU" install
}
@ -596,35 +484,48 @@ check_sparkle()
check_file lib/Sparkle.framework/Sparkle
}
# Usage: build_sparkle <githubuser>:<commitID>
# Usage:
# build_sparkle <githubuser>:<commitID>
# build_sparkle <version>
build_sparkle()
{
v=$1
github=${1%%:*} # Cut at first colon
version=${1#*:} # cut until first colon
echo "Building Sparkle" $version "..."
# Let Sparkle use the default compiler
unset CC
unset CXX
# Binary install:
version=$1
cd $BASEDIR/src
rm -rf Sparkle-$version
if [ ! -f Sparkle-$version.zip ]; then
curl -o Sparkle-$version.zip https://nodeload.github.com/$github/Sparkle/zip/$version
if [ ! -f Sparkle-$version.tar.bz2 ]; then
curl -LO https://github.com/sparkle-project/Sparkle/releases/download/$version/Sparkle-$version.tar.bz2
fi
unzip -q Sparkle-$version.zip
mkdir Sparkle-$version
cd Sparkle-$version
patch -p1 < $OPENSCADDIR/patches/sparkle.patch
if $OPTION_32BIT; then
SPARKLE_EXTRA_FLAGS="-arch i386"
fi
xcodebuild clean
xcodebuild -arch x86_64 $SPARKLE_EXTRA_FLAGS
rm -rf $DEPLOYDIR/lib/Sparkle.framework
cp -Rf build/Release/Sparkle.framework $DEPLOYDIR/lib/
install_name_tool -id $DEPLOYDIR/lib/Sparkle.framework/Versions/A/Sparkle $DEPLOYDIR/lib/Sparkle.framework/Sparkle
tar xjf ../Sparkle-$version.tar.bz2
cp -Rf Sparkle.framework $DEPLOYDIR/lib/
# Build from source:
# v=$1
# github=${1%%:*} # Cut at first colon
# version=${1#*:} # cut until first colon
#
# echo "Building Sparkle" $version "..."
#
# # Let Sparkle use the default compiler
# unset CC
# unset CXX
#
# cd $BASEDIR/src
# rm -rf Sparkle-$version
# if [ ! -f Sparkle-$version.zip ]; then
# curl -o Sparkle-$version.zip https://nodeload.github.com/$github/Sparkle/zip/$version
# fi
# unzip -q Sparkle-$version.zip
# cd Sparkle-$version
# patch -p1 < $OPENSCADDIR/patches/sparkle.patch
# xcodebuild clean
# xcodebuild -arch x86_64
# rm -rf $DEPLOYDIR/lib/Sparkle.framework
# cp -Rf build/Release/Sparkle.framework $DEPLOYDIR/lib/
# Install_name_tool -id $DEPLOYDIR/lib/Sparkle.framework/Versions/A/Sparkle $DEPLOYDIR/lib/Sparkle.framework/Sparkle
}
check_freetype()
@ -651,6 +552,7 @@ build_freetype()
PKG_CONFIG_LIBDIR="$DEPLOYDOR/lib/pkgconfig" ./configure --prefix="$DEPLOYDIR" CFLAGS=-mmacosx-version-min=$MAC_OSX_VERSION_MIN LDFLAGS=-mmacosx-version-min=$MAC_OSX_VERSION_MIN $extra_config_flags
make -j"$NUMCPU"
make install
install_name_tool -id @rpath/libfreetype.dylib $DEPLOYDIR/lib/libfreetype.dylib
}
check_libxml2()
@ -673,6 +575,7 @@ build_libxml2()
./configure --prefix="$DEPLOYDIR" --with-zlib=/usr -without-lzma --without-ftp --without-http --without-python CFLAGS=-mmacosx-version-min=$MAC_OSX_VERSION_MIN LDFLAGS=-mmacosx-version-min=$MAC_OSX_VERSION_MIN
make -j$NUMCPU
make install
install_name_tool -id @rpath/libxml2.dylib $DEPLOYDIR/lib/libxml2.dylib
}
check_fontconfig()
@ -697,6 +600,7 @@ build_fontconfig()
unset PKG_CONFIG_PATH
make -j$NUMCPU
make install
install_name_tool -id @rpath/libfontconfig.dylib $DEPLOYDIR/lib/libfontconfig.dylib
}
check_libffi()
@ -719,6 +623,7 @@ build_libffi()
./configure --prefix="$DEPLOYDIR"
make -j$NUMCPU
make install
install_name_tool -id @rpath/libffi.dylib $DEPLOYDIR/lib/libffi.dylib
}
check_gettext()
@ -742,6 +647,7 @@ build_gettext()
./configure --prefix="$DEPLOYDIR" CFLAGS=-mmacosx-version-min=$MAC_OSX_VERSION_MIN LDFLAGS=-mmacosx-version-min=$MAC_OSX_VERSION_MIN
make -j$NUMCPU
make install
install_name_tool -id @rpath/libintl.dylib $DEPLOYDIR/lib/libintl.dylib
}
check_glib2()
@ -769,6 +675,7 @@ build_glib2()
unset PKG_CONFIG_PATH
make -j$NUMCPU
make install
install_name_tool -id @rpath/libglib-2.0.dylib $DEPLOYDIR/lib/libglib-2.0.dylib
}
check_ragel()
@ -815,9 +722,34 @@ build_harfbuzz()
# disable doc directories as they make problems on Mac OS Build
sed -e "s/SUBDIRS = src util test docs/SUBDIRS = src util test/g" Makefile.am > Makefile.am.bak && mv Makefile.am.bak Makefile.am
sed -e "s/^docs.*$//" configure.ac > configure.ac.bak && mv configure.ac.bak configure.ac
PKG_CONFIG_LIBDIR="$DEPLOYDIR/lib/pkgconfig" ./autogen.sh --prefix="$DEPLOYDIR" --with-freetype=yes --with-gobject=no --with-cairo=no --with-icu=no CFLAGS=-mmacosx-version-min=$MAC_OSX_VERSION_MIN CXXFLAGS=-mmacosx-version-min=$MAC_OSX_VERSION_MIN LDFLAGS=-mmacosx-version-min=$MAC_OSX_VERSION_MIN $extra_config_flags
PKG_CONFIG_LIBDIR="$DEPLOYDIR/lib/pkgconfig" ./autogen.sh --prefix="$DEPLOYDIR" --with-freetype=yes --with-gobject=no --with-cairo=no --with-icu=no CFLAGS=-mmacosx-version-min=$MAC_OSX_VERSION_MIN CXXFLAGS="$CXXFLAGS -mmacosx-version-min=$MAC_OSX_VERSION_MIN" LDFLAGS="$CXXFLAGS -mmacosx-version-min=$MAC_OSX_VERSION_MIN" $extra_config_flags
make -j$NUMCPU
make install
install_name_tool -id @rpath/libharfbuzz.dylib $DEPLOYDIR/lib/libharfbuzz.dylib
}
check_lib3mf()
{
check_dir include/lib3mf
}
build_lib3mf()
{
version=$1
echo "Building lib3mf" $version "..."
cd $BASEDIR/src
rm -rf lib3mf-$version
if [ ! -f $version.tar.gz ]; then
curl -LO https://github.com/3MFConsortium/lib3mf/archive/$version.tar.gz
fi
tar xzf $version.tar.gz
cd lib3mf-$version
CXXFLAGS="$CXXSTDFLAGS" make CC=cc CXX=c++ LD=c++ LDFLAGS="$LDSTDFLAGS" -j"$NUMCPU" -C Project/Lib3MFGCC
make -j"$NUMCPU" -C Project/Lib3MFGCC install INSTALL_ROOT=$DEPLOYDIR
# install_name_tool -id @rpath/libCGAL.dylib $DEPLOYDIR/lib/libCGAL.dylib
# install_name_tool -id @rpath/libCGAL_Core.dylib $DEPLOYDIR/lib/libCGAL_Core.dylib
# install_name_tool -change libCGAL.11.dylib @rpath/libCGAL.dylib $DEPLOYDIR/lib/libCGAL_Core.dylib
}
if [ ! -f $OPENSCADDIR/openscad.pro ]; then
@ -826,10 +758,10 @@ if [ ! -f $OPENSCADDIR/openscad.pro ]; then
fi
OPENSCAD_SCRIPTDIR=$PWD/scripts
while getopts '6lcdf' c
while getopts '3lcdf' c
do
case $c in
6) OPTION_32BIT=false;;
3) USING_CXX11=false;;
l) OPTION_LLVM=true;;
c) OPTION_CLANG=true;;
d) OPTION_DEPLOY=true;;
@ -841,25 +773,22 @@ done
OPTION_PACKAGES="${@:$OPTIND}"
OSX_VERSION=`sw_vers -productVersion | cut -d. -f2`
if (( $OSX_VERSION >= 10 )); then
if (( $OSX_VERSION >= 11 )); then
echo "Detected El Capitan (10.11) or later"
elif (( $OSX_VERSION >= 10 )); then
echo "Detected Yosemite (10.10) or later"
elif (( $OSX_VERSION >= 9 )); then
echo "Detected Mavericks (10.9)"
elif (( $OSX_VERSION >= 8 )); then
echo "Detected Mountain Lion (10.8)"
elif (( $OSX_VERSION >= 7 )); then
echo "Detected Lion (10.7)"
else
echo "Detected Snow Leopard (10.6) or earlier"
echo "Detected Lion (10.7) or earlier"
fi
USING_LLVM=false
USING_GCC=false
USING_CLANG=false
if $OPTION_LLVM; then
USING_LLVM=true
elif $OPTION_GCC; then
USING_GCC=true
elif $OPTION_CLANG; then
USING_CLANG=true
elif (( $OSX_VERSION >= 7 )); then
@ -871,20 +800,20 @@ if $USING_LLVM; then
export CC=llvm-gcc
export CXX=llvm-g++
export QMAKESPEC=macx-llvm
elif $USING_GCC; then
echo "Using gcc compiler"
export CC=gcc
export CXX=g++
export CPP=cpp
# Somehow, qmake in Qt-4.8.2 doesn't detect Lion's gcc and falls back into
# project file mode unless manually given a QMAKESPEC
export QMAKESPEC=macx-llvm
elif $USING_CLANG; then
echo "Using clang compiler"
export CC=clang
export CXX=clang++
fi
if $USING_CXX11; then
export CXXSTDFLAGS="-std=c++11 -stdlib=libc++"
export LDSTDFLAGS="-stdlib=libc++"
else
export CXXSTDFLAGS="-std=c++03 -stdlib=libstdc++"
export LDSTDFLAGS="-stdlib=libstdc++"
fi
echo "Building for $MAC_OSX_VERSION_MIN or later"
if [ ! $NUMCPU ]; then
@ -896,12 +825,6 @@ if $OPTION_DEPLOY; then
echo "Building deployment version of libraries"
fi
if $OPTION_32BIT; then
echo "Building combined 32/64-bit binaries"
else
echo "Building 64-bit binaries"
fi
if (( $OPTION_FORCE )); then
echo "Forcing rebuild"
fi
@ -917,6 +840,7 @@ fi
# Build specified (or all) packages
ALL_PACKAGES=$(all_packages)
echo $ALL_PACKAGES
if [ -z "$OPTION_PACKAGES" ]; then
OPTION_PACKAGES=$ALL_PACKAGES
fi

View file

@ -1,33 +1,23 @@
#!/bin/sh -e
#!/bin/bash
#
# This script builds all library dependencies of OpenSCAD for Mac OS X.
# The libraries will be built in 64-bit mode and backwards compatible with 10.7 "Lion".
# This script builds library dependencies of OpenSCAD for Mac OS X using Homebrew.
#
# This script must be run from the OpenSCAD source root directory
#
# Usage: macosx-build-dependencies.sh [-d]
# -d Build for deployment (if not specified, e.g. Sparkle won't be built)
#
# Prerequisites:
# - Xcode
#
# FIXME:
# o Verbose option
# o Force rebuild vs. only rebuild changes
# - Homebrew (http://brew.sh)
#
OPENSCADDIR=$PWD
BASEDIR=$OPENSCADDIR/../libraries
DEPLOYDIR=$BASEDIR/homebrew
MAC_OSX_VERSION_MIN=10.7
OPTION_DEPLOY=false
printUsage()
{
echo "Usage: $0 [-d]"
echo
echo " -d Build for deployment"
echo "Usage: $0"
}
log()
{
echo "$(date):" "$@"
}
if [ ! -f $OPENSCADDIR/openscad.pro ]; then
@ -35,38 +25,37 @@ if [ ! -f $OPENSCADDIR/openscad.pro ]; then
exit 0
fi
while getopts 'd' c
do
case $c in
d) OPTION_DEPLOY=true;;
esac
log "Listing homebrew configuration"
brew config
log "Updating homebrew"
brew update
# Install special packages not yet in upstream homebrew repo.
# Check if there's already an active openscad tap and skip
# tap/untap in that case.
TAP=:
if ! brew tap | grep ^openscad/ >/dev/null 2>/dev/null
then
log "Tapping openscad homebrew repo"
TAP=brew
fi
$TAP tap openscad/homebrew-tap
# FIXME: We used to require unlinking boost, but doing so also causes us to lose boost.
# Disabling until we can figure out why we unlinked in the first place
# brew unlink boost
for formula in eigen boost cgal glew glib opencsg freetype libxml2 fontconfig harfbuzz qt5 qscintilla2 imagemagick lib3mf; do
log "Installing formula $formula"
brew ls --versions $formula
brew install $formula
brew outdated $formula || brew upgrade $formula
done
OSX_VERSION=`sw_vers -productVersion | cut -d. -f2`
if (( $OSX_VERSION >= 9 )); then
echo "Detected Mavericks (10.9) or later"
elif (( $OSX_VERSION >= 8 )); then
echo "Detected Mountain Lion (10.8)"
elif (( $OSX_VERSION >= 7 )); then
echo "Detected Lion (10.7)"
else
echo "Detected Snow Leopard (10.6) or earlier"
fi
echo "Building for $MAC_OSX_VERSION_MIN or later"
echo "Using basedir:" $BASEDIR
# Homebrew doesn't support building for other OS X versions than the current,
# but we can do this with environment variables
export MACOSX_DEPLOYMENT_TARGET=$MAC_OSX_VERSION_MIN
# Don't use bottles, as they might be built with the wrong deployment target
export HOMEBREW_BUILD_FROM_SOURCE=1
for formula in qt5 eigen boost cgal glew glib opencsg freetype libxml2 fontconfig harfbuzz; do
brew install openscad/tap/$formula
for formula in gettext qt5 qscintilla2; do
log "Linking formula $formula"
brew link --force $formula
done
if $OPTION_DEPLOY; then
brew install --HEAD openscad/tap/sparkle
fi
$TAP untap openscad/homebrew-tap

View file

@ -20,6 +20,8 @@ import re
DEBUG = False
cxxlib = None
def usage():
print >> sys.stderr, "Usage: " + sys.argv[0] + " <executable>"
sys.exit(1)
@ -29,21 +31,26 @@ def usage():
def lookup_library(file):
found = None
if not re.match("/", file):
if re.search("@executable_path", file):
abs = re.sub("^@executable_path", executable_path, file)
if os.path.exists(abs): found = abs
if DEBUG: print "Lib in @executable_path found: " + str(found)
elif re.search("\.app/", file):
found = file
if DEBUG: print "App found: " + str(found)
elif re.search("\.framework/", file):
found = os.path.join("/Library/Frameworks", file)
if DEBUG: print "Framework found: " + str(found)
else:
for path in os.getenv("DYLD_LIBRARY_PATH").split(':'):
abs = os.path.join(path, file)
if re.search("@rpath", file):
file = re.sub("^@rpath", lc_rpath, file)
if os.path.exists(file): found = file
if DEBUG: print "Lib in @rpath found: " + str(file)
if (not found):
if re.search("@executable_path", file):
abs = re.sub("^@executable_path", executable_path, file)
if os.path.exists(abs): found = abs
if DEBUG: print "Library found: " + str(found)
if DEBUG: print "Lib in @executable_path found: " + str(found)
elif re.search("\.app/", file):
found = file
if DEBUG: print "App found: " + str(found)
elif re.search("\.framework/", file):
found = os.path.join("/Library/Frameworks", file)
if DEBUG: print "Framework found: " + str(found)
else:
for path in os.getenv("DYLD_LIBRARY_PATH").split(':'):
abs = os.path.join(path, file)
if os.path.exists(abs): found = abs
if DEBUG: print "Library found: " + str(found)
else:
found = file
return found
@ -62,12 +69,17 @@ def find_dependencies(file):
return None
deps = output.split('\n')
for dep in deps:
#print dep
# Fail if anything is linked with libc++, as that's not backwards compatible
# with Mac OS X 10.6
if re.search("libc\+\+", dep):
print "Error: clang's libc++ is used by " + file
return None
# print dep
# Fail if libstc++ and libc++ was mixed
global cxxlib
match = re.search("lib(std)?c\+\+", dep)
if match:
if not cxxlib:
cxxlib = match.group(0)
else:
if cxxlib != match.group(0):
print "Error: Mixing libc++ and libstdc++"
return None
dep = re.sub(".*:$", "", dep) # Take away header line
dep = re.sub("^\t", "", dep) # Remove initial tabs
dep = re.sub(" \(.*\)$", "", dep) # Remove trailing parentheses
@ -82,7 +94,7 @@ def validate_lib(lib):
# Check deployment target
m = re.search("LC_VERSION_MIN_MACOSX.*\n(.*)\n\s+version (.*)", output, re.MULTILINE)
deploymenttarget = float(m.group(2))
if deploymenttarget > 10.7:
if deploymenttarget > 10.8:
print "Error: Unsupported deployment target " + m.group(2) + " found: " + lib
return False
# We don't support Snow Leopard anymore
@ -110,6 +122,18 @@ if __name__ == '__main__':
executable = sys.argv[1]
if DEBUG: print "Processing " + executable
executable_path = os.path.dirname(executable)
# Find the Runpath search path (LC_RPATH)
p = subprocess.Popen(["otool", "-l", executable], stdout=subprocess.PIPE)
output = p.communicate()[0]
if p.returncode != 0:
print 'Error otool -l failed on main executable'
sys.exit(1)
# Check deployment target
m = re.search("LC_RPATH\n(.*)\n\s+path ([^ ]+)", output, re.MULTILINE)
lc_rpath = m.group(2)
if DEBUG: print 'Runpath search path: ' + lc_rpath
# processed is a dict {libname : [parents]} - each parent is dependant on libname
processed = {}
pending = [executable]
@ -118,17 +142,18 @@ if __name__ == '__main__':
dep = pending.pop()
if DEBUG: print "Evaluating " + dep
deps = find_dependencies(dep)
# if DEBUG: print "Deps: " + ' '.join(deps)
assert(deps)
for d in deps:
absfile = lookup_library(d)
if not re.match(executable_path, absfile):
print "Error: External dependency " + d
sys.exit(1)
if absfile == None:
print "Not found: " + d
print " ..required by " + str(processed[dep])
error = True
continue
if not re.match(executable_path, absfile):
print "Error: External dependency " + d
sys.exit(1)
if absfile in processed:
processed[absfile].append(dep)
else:

View file

@ -20,8 +20,21 @@
#
# Also see http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Cross-compiling_for_Windows_on_Linux_or_Mac_OS_X
#
# Also note the 64 bit is built on the branch of mxe by Tony Theodore
# which hasnt been merged to official mxe as of writing
# Notes:
#
# Originally this was based on Tony Theodore's branch of MXE, which is now
# integrated into official MXE.
#
# Targets:
#
# MXE allows 4 separate targets with the MXE_TARGETS environment variable.
# As of 2015 shared are not guaranteed to work.
#
# 64 bit static linked libraries MXE_TARGETS=x86_64-w64-mingw32.static
# 32 bit static linked libraries MXE_TARGETS=i686-w64-mingw32.static
# 64 bit shared libraries MXE_TARGETS=x86_64-w64-mingw32.shared
# 32 bit shared libraries MXE_TARGETS=i686-w64-mingw32.shared
#
OPENSCADDIR=$PWD
if [ ! -f $OPENSCADDIR/openscad.pro ]; then
@ -63,16 +76,16 @@ git checkout openscad-snapshot-build
if [ "`echo $* | grep 64`" ]; then
MXE_TARGETS='x86_64-w64-mingw32.static'
if [ "`echo $* | grep download`" ]; then
PACKAGES='download-mpfr download-eigen download-opencsg download-cgal download-qtbase download-glib download-freetype download-fontconfig download-harfbuzz'
PACKAGES='download-mpfr download-eigen download-opencsg download-cgal download-qtbase download-glib download-libxml2 download-freetype download-fontconfig download-harfbuzz download-lib3mf'
else
PACKAGES='qtbase qscintilla2 mpfr eigen opencsg cgal glib freetype fontconfig harfbuzz'
PACKAGES='qtbase qscintilla2 mpfr eigen opencsg cgal glib libxml2 freetype fontconfig harfbuzz lib3mf'
fi
else
MXE_TARGETS='i686-w64-mingw32.static'
if [ "`echo $* | grep download`" ]; then
PACKAGES='download-mpfr download-eigen download-opencsg download-cgal download-qtbase download-nsis download-glib download-freetype download-fontconfig download-harfbuzz'
PACKAGES='download-mpfr download-eigen download-opencsg download-cgal download-qtbase download-nsis download-glib download-libxml2 download-freetype download-fontconfig download-harfbuzz download-lib3mf'
else
PACKAGES='qtbase qscintilla2 mpfr eigen opencsg cgal nsis glib freetype fontconfig harfbuzz'
PACKAGES='qtbase qscintilla2 mpfr eigen opencsg cgal nsis glib libxml2 freetype fontconfig harfbuzz lib3mf'
fi
fi
echo make $PACKAGES MXE_TARGETS=$MXE_TARGETS -j $NUMCPU JOBS=$NUMJOBS

View file

@ -72,16 +72,17 @@ elif [[ $OSTYPE == "linux-gnu" ]]; then
echo "Detected build-machine ARCH: $ARCH"
fi
if [ "`echo $* | grep mingw32`" ]; then
if [ "`echo $* | grep mingw`" ]; then
OS=UNIX_CROSS_WIN
ARCH=32
echo Mingw-cross build using ARCH=32
fi
if [ "`echo $* | grep mingw64`" ]; then
OS=UNIX_CROSS_WIN
ARCH=64
echo Mingw-cross build using ARCH=64
MXELIBTYPE=static
if [ "`echo $* | grep mingw64`" ]; then
ARCH=64
fi
if [ "`echo $* | grep shared`" ]; then
MXELIBTYPE=shared
fi
echo Mingw-cross build using ARCH=$ARCH MXELIBTYPE=$MXELIBTYPE
fi
if [ "`echo $* | grep snapshot`" ]; then
@ -179,7 +180,7 @@ case $OS in
QT_SELECT=5
export QT_SELECT
;;
WIN)
WIN)
export QTDIR=/c/devmingw/qt2009.03
export QTMAKESPEC=win32-g++
export PATH=$PATH:/c/devmingw/qt2009.03/bin:/c/devmingw/qt2009.03/qt/bin
@ -187,8 +188,8 @@ case $OS in
ZIPARGS="a -tzip"
TARGET=release
;;
UNIX_CROSS_WIN)
. ./scripts/setenv-mingw-xbuild.sh $ARCH
UNIX_CROSS_WIN)
. ./scripts/setenv-mingw-xbuild.sh $ARCH $MXELIBTYPE
TARGET=release
ZIP="zip"
ZIPARGS="-r -q"
@ -198,7 +199,12 @@ esac
case $OS in
UNIX_CROSS_WIN)
cd $DEPLOYDIR && qmake VERSION=$VERSION OPENSCAD_COMMIT=$OPENSCAD_COMMIT CONFIG+="$CONFIG" CONFIG+=mingw-cross-env CONFIG-=debug ../openscad.pro
cd $DEPLOYDIR
MINGWCONFIG=mingw-cross-env
if [ $MXELIBTYPE = "shared" ]; then
MINGWCONFIG=mingw-cross-env-shared
fi
qmake VERSION=$VERSION OPENSCAD_COMMIT=$OPENSCAD_COMMIT CONFIG+="$CONFIG" CONFIG+=$MINGWCONFIG CONFIG-=debug ../openscad.pro
cd $OPENSCADDIR
;;
*)
@ -425,9 +431,78 @@ case $OS in
INSTFILE=$DEPLOYDIR/OpenSCAD-$VERSION-x86-$ARCH-Installer.exe
#package
if [ $MXELIBTYPE = "shared" ]; then
flprefix=$DEPLOYDIR/mingw-cross-env/bin
echo Copying dlls for shared library build
echo from $flprefix
echo to $DEPLOYDIR/$TARGET
flist=
# fl="$fl opengl.dll" # use Windows version?
# fl="$fl libmpfr.dll" # does not exist
fl="$fl libgmp-10.dll"
fl="$fl libgmpxx-4.dll"
fl="$fl libboost_filesystem-mt.dll"
fl="$fl libboost_program_options-mt.dll"
fl="$fl libboost_regex-mt.dll"
fl="$fl libboost_chrono-mt.dll"
fl="$fl libboost_system-mt.dll"
fl="$fl libboost_thread_win32-mt.dll"
fl="$fl libCGAL.dll"
fl="$fl libCGAL_Core.dll"
fl="$fl GLEW.dll"
fl="$fl libglib-2.0-0.dll"
fl="$fl libopencsg-1.dll"
fl="$fl libharfbuzz-0.dll"
# fl="$fl libharfbuzz-gobject-0.dll" # ????
fl="$fl libfontconfig-1.dll"
fl="$fl libexpat-1.dll"
fl="$fl libbz2.dll"
fl="$fl libintl-8.dll"
fl="$fl libiconv-2.dll"
fl="$fl libfreetype-6.dll"
fl="$fl libpcre16-0.dll"
fl="$fl zlib1.dll"
fl="$fl libpng16-16.dll"
fl="$fl icudt54.dll"
fl="$fl icudt.dll"
fl="$fl icuin.dll"
fl="$fl libstdc++-6.dll"
fl="$fl ../qt5/lib/qscintilla2.dll"
fl="$fl ../qt5/bin/Qt5PrintSupport.dll"
fl="$fl ../qt5/bin/Qt5Core.dll"
fl="$fl ../qt5/bin/Qt5Gui.dll"
fl="$fl ../qt5/bin/Qt5OpenGL.dll"
# fl="$fl ../qt5/bin/QtSvg4.dll" # why is this here?
fl="$fl ../qt5/bin/Qt5Widgets.dll"
fl="$fl ../qt5/bin/Qt5PrintSupport.dll"
fl="$fl ../qt5/bin/Qt5PrintSupport.dll"
for dllfile in $fl; do
if [ -e $flprefix/$dllfile ]; then
echo $flprefix/$dllfile
cp $flprefix/$dllfile $DEPLOYDIR/$TARGET/
else
echo cannot find $flprefix/$dllfile
echo stopping build.
exit 1
fi
done
fi
echo "Copying main binary .exe, .com, and dlls"
echo "from $DEPLOYDIR/$TARGET"
echo "to $DEPLOYDIR/openscad-$VERSION"
TMPTAR=$DEPLOYDIR/tmpmingw.$ARCH.$MXELIBTYPE.tar
cd $DEPLOYDIR
cd $TARGET
tar cvf $TMPTAR --exclude=winconsole.o .
cd $DEPLOYDIR
cd ./openscad-$VERSION
tar xvf $TMPTAR
cd $DEPLOYDIR
rm -f $TMPTAR
echo "Creating binary zip package"
cp $TARGET/openscad.exe openscad-$VERSION
cp $TARGET/openscad.com openscad-$VERSION
rm -f OpenSCAD-$VERSION.x86-$ARCH.zip
"$ZIP" $ZIPARGS $BINFILE openscad-$VERSION
cd $OPENSCADDIR
@ -443,8 +518,8 @@ case $OS in
cd $DEPLOYDIR/openscad-$VERSION
NSISDEBUG=-V2
# NSISDEBUG= # leave blank for full log
echo $MAKENSIS $NSISDEBUG installer.nsi
$MAKENSIS $NSISDEBUG installer.nsi
echo $MAKENSIS $NSISDEBUG "-DVERSION=$VERSION" installer.nsi
$MAKENSIS $NSISDEBUG "-DVERSION=$VERSION" installer.nsi
cp $DEPLOYDIR/openscad-$VERSION/openscad_setup.exe $INSTFILE
cd $OPENSCADDIR
@ -528,7 +603,7 @@ if [ $BUILD_TESTS ]; then
# while copying.
rm -f ./ostests.tar
for subdir in tests testdata libraries examples doc; do
tar prvf ./ostests.tar --exclude=.git* --exclude=*/mingw64/* --exclude=*/mingw32/* --exclude=*.cc.obj --exclude=*.a $subdir
tar prvf ./ostests.tar --exclude=.git* --exclude=*/mingw* --exclude=*.cc.obj --exclude=*.a $subdir
done
cd $DEPLOYDIR
tar prvf $OPENSCADDIR/ostests.tar --exclude=.git* --exclude=*/mingw* --exclude=*.cc.obj --exclude=*.a $TESTBINDIR

View file

@ -4,10 +4,12 @@
#
# Usage:
#
# source ./scripts/setenv-mingw-xbuild.sh # 32 bit build
# source ./scripts/setenv-mingw-xbuild.sh 64 # 64 bit build
# source ./scripts/setenv-mingw-xbuild.sh clean # Clean up exported variables
# source ./scripts/setenv-mingw-xbuild.sh qt5 # use qt5 (experimental)
# source ./scripts/setenv-mingw-xbuild.sh # 32 bit build
# source ./scripts/setenv-mingw-xbuild.sh shared # 32 bit build, shared libs
# source ./scripts/setenv-mingw-xbuild.sh 64 # 64 bit build
# source ./scripts/setenv-mingw-xbuild.sh 64 shared # 64 bit build, shared libs
# source ./scripts/setenv-mingw-xbuild.sh clean # Clean up exported variables
# source ./scripts/setenv-mingw-xbuild.sh qt5 # use qt5 (experimental)
#
# Prerequisites:
#
@ -22,8 +24,14 @@ if [ ! $BASEDIR ]; then
BASEDIR=$HOME/openscad_deps
fi
DEPLOYDIR64=$OPENSCADDIR/mingw64
DEPLOYDIR32=$OPENSCADDIR/mingw32
MXELIBTYPE=static
if [ "`echo $* | grep shared `" ]; then
MXELIBTYPE=shared
fi
DEPLOYDIR64=$OPENSCADDIR/mingw64.$MXELIBTYPE
DEPLOYDIR32=$OPENSCADDIR/mingw32.$MXELIBTYPE
if [ ! $DEPLOYDIR ]; then
if [ "`echo $* | grep 64 `" ]; then
@ -35,10 +43,15 @@ fi
if [ ! $MXEDIR ]; then
if [ "`echo $* | grep 64 `" ]; then
MXEDIR=$BASEDIR/mxe-w64
MXEDIR=$BASEDIR/mxe
else
MXEDIR=$BASEDIR/mxe
fi
if [ ! -e $MXEDIR ]; then
if [ -e /opt/mxe ]; then
MXEDIR=/opt/mxe
fi
fi
fi
if [ ! $MXEQTSUBDIR ]; then
@ -56,9 +69,9 @@ if [ ! -e $DEPLOYDIR ]; then
fi
if [ "`echo $* | grep 64 `" ]; then
MXETARGETDIR=$MXEDIR/usr/x86_64-w64-mingw32.static
MXETARGETDIR=$MXEDIR/usr/x86_64-w64-mingw32.$MXELIBTYPE
else
MXETARGETDIR=$MXEDIR/usr/i686-w64-mingw32.static
MXETARGETDIR=$MXEDIR/usr/i686-w64-mingw32.$MXELIBTYPE
fi
if [ ! $MINGWX_SAVED_ORIGINAL_PATH ]; then
@ -91,6 +104,7 @@ export OPENSCAD_LIBRARIES
export BASEDIR
export MXEDIR
export MXETARGETDIR
export MXELIBTYPE
export DEPLOYDIR
export PATH
export MINGWX_SAVED_ORIGINAL_PATH
@ -100,6 +114,7 @@ echo OPENSCAD_LIBRARIES: $OPENSCAD_LIBRARIES
echo BASEDIR: $BASEDIR
echo MXEDIR: $MXEDIR
echo MXETARGETDIR: $MXETARGETDIR
echo MXELIBTYPE: $MXELIBTYPE
echo DEPLOYDIR: $DEPLOYDIR
echo MXEQTSUBDIR: $MXEQTSUBDIR
if [ "`echo $* | grep clean`" ]; then

View file

@ -25,6 +25,9 @@ updatepot()
| awk '{ printf "#: examples/examples.json:%d\nmsgid %s\nmsgstr \"\"\n\n", $1, $2 }' \
> ./locale/json-strings.pot
# extract strings from appdata file
itstool -o ./locale/appdata-strings.pot ./openscad.appdata.xml.in --its=./contrib/appdata.its
VER=`date +"%Y.%m.%d"`
OPTS=
OPTS=$OPTS' --package-name=OpenSCAD'
@ -41,7 +44,7 @@ updatepot()
exit 1
fi
cmd="${GETTEXT_PATH}msgcat -o ./locale/openscad.pot ./locale/openscad-tmp.pot ./locale/json-strings.pot"
cmd="${GETTEXT_PATH}msgcat -o ./locale/openscad.pot ./locale/openscad-tmp.pot ./locale/json-strings.pot ./locale/appdata-strings.pot"
echo $cmd
$cmd
if [ ! $? = 0 ]; then
@ -50,7 +53,7 @@ updatepot()
fi
sed -e s/"CHARSET"/"UTF-8"/g ./locale/openscad.pot > ./locale/openscad.pot.new && mv ./locale/openscad.pot.new ./locale/openscad.pot
rm -f ./locale/json-strings.pot ./locale/openscad-tmp.pot
rm -f ./locale/json-strings.pot ./locale/openscad-tmp.pot ./locale/appdata-strings.pot
}
updatepo()
@ -80,6 +83,26 @@ updatemo()
exit 1
fi
done
if which itstool > /dev/null 2>&1; then
# ugly workaround for bug https://bugs.freedesktop.org/show_bug.cgi?id=90937
for LANGCODE in `cat locale/LINGUAS | grep -v "#"`; do
ln -s openscad.mo ./locale/$LANGCODE/LC_MESSAGES/$LANGCODE.mo
done
# generate translated appdata file
itstool -j ./openscad.appdata.xml.in -o ./openscad.appdata.xml ./locale/*/LC_MESSAGES/[a-z][a-z].mo
# clean the mess
for LANGCODE in `cat locale/LINGUAS | grep -v "#"`; do
unlink ./locale/$LANGCODE/LC_MESSAGES/$LANGCODE.mo
done
else
if [ x"$(uname -s)" = x"Linux" ]; then
echo "itstool missing, won't apply translations to openscad.appdata.xml"
fi
cp -f ./openscad.appdata.xml.in ./openscad.appdata.xml
fi
}
GETTEXT_PATH=""

View file

@ -0,0 +1,83 @@
#!/bin/bash
DIST="$1"
#
# This script must be run as root to install packages.
#
# Simple way for testing, e.g. replace command calls
# with echo.
#
# WGET=echo ./scripts/travis-before-install.sh trusty
#
WGET=${WGET:-wget}
QUIET="-qq"
echo "DIST = $DIST / id = $(id) / Running on:"
echo
cat /etc/os-release
echo
"$WGET" -qO - http://files.openscad.org/OBS-Repository-Key.pub | apt-key add -
PACKAGES='
build-essential
libqt4-dev
libqt4-opengl-dev
libxmu-dev
cmake
bison
flex
git-core
libboost-all-dev
libXi-dev
libmpfr-dev
libboost-dev
libglew-dev
libeigen3-dev
libcgal-dev
libgmp3-dev
libgmp-dev
curl
imagemagick
libfontconfig-dev
libopencsg-dev
'
# Purge fglrx driver if that is installed by default
# as this contains a libGL that breaks the GLX extension
# in Xvfb causing all graphical tests to fail.
apt-get update "$QUIET"
apt-get purge "$QUIET" fglrx
if [[ "$DIST" == "trusty" ]]
then
echo "Adding external repositories for $DIST"
echo 'yes' | add-apt-repository 'deb http://download.opensuse.org/repositories/home:/t-paul:/lib3mf/xUbuntu_14.04/ ./'
apt-get update "$QUIET"
apt-get install "$QUIET" $PACKAGES libharfbuzz-dev lib3mf-dev
elif [[ "$DIST" == "precise" ]]
then
echo 'yes' | add-apt-repository ppa:chrysn/openscad
echo 'yes' | add-apt-repository 'deb http://download.opensuse.org/repositories/home:/t-paul:/lib3mf/xUbuntu_12.04/ ./'
apt-get update "$QUIET"
apt-get install "$QUIET" $PACKAGES lib3mf-dev
echo 'yes' | add-apt-repository ppa:mapnik/nightly-trunk
apt-get update "$QUIET"
apt-get install "$QUIET" libharfbuzz-dev
echo 'yes' | add-apt-repository ppa:oibaf/graphics-drivers
apt-get update "$QUIET"
apt-get install "$QUIET" --install-recommends libgl1-mesa-dev-lts-quantal
else
echo "WARNING: No install recipe for distribution '$DIST'"
fi

View file

@ -1,5 +1,10 @@
#!/bin/bash
set -x
qmake CONFIG+=experimental CONFIG+=nogui
make
cd tests
cmake .
if [[ $? != 0 ]]; then
@ -11,12 +16,24 @@ if [[ $? != 0 ]]; then
echo "Error building test suite"
exit 1
fi
if [[ "$DIST" == "trusty" ]]; then
PARALLEL=-j1
else
PARALLEL=-j8
fi
# Exclude tests known the cause issues on Travis
# opencsgtest_rotate_extrude-tests - Fails on Ubuntu 12.04 using Gallium 0.4 drivers
# opencsgtest_text-font-direction-tests - Fails due to old freetype (issue #899)
# *_text-font-direction-tests - Fails due to old freetype (issue #899)
# throwntogethertest_issue964 - Fails due to non-planar quad being tessellated slightly different
# opencsgtest_issue1165 - z buffer tearing
ctest -j8 -E "\
# Fails on Apple's software renderer:
# opencsgtest_issue1258
# throwntogethertest_issue1089
# throwntogethertest_issue1215
ctest $PARALLEL -E "\
opencsgtest_rotate_extrude-tests|\
opencsgtest_render-tests|\
opencsgtest_rotate_extrude-hole|\
@ -32,9 +49,13 @@ dxfpngtest_text-font-direction-tests|\
cgalpngtest_text-font-direction-tests|\
opencsgtest_text-font-direction-tests|\
csgpngtest_text-font-direction-tests|\
svgpngtest_text-font-direction-tests|\
throwntogethertest_text-font-direction-tests|\
throwntogethertest_issue964|\
opencsgtest_issue1165\
opencsgtest_issue1165|\
opencsgtest_issue1258|\
throwntogethertest_issue1089|\
throwntogethertest_issue1215\
"
if [[ $? != 0 ]]; then
echo "Test failure"

View file

@ -79,10 +79,22 @@ check_env()
detect_glu()
{
detect_glu_result=
if [ -e $DEPLOYDIR/include/GL/glu.h ]; then detect_glu_result=1; fi
if [ -e /usr/include/GL/glu.h ]; then detect_glu_result=1; fi
if [ -e /usr/local/include/GL/glu.h ]; then detect_glu_result=1; fi
if [ -e /usr/pkg/X11R7/include/GL/glu.h ]; then detect_glu_result=1; fi
if [ -e $DEPLOYDIR/include/GL/glu.h ]; then
detect_glu_include=$DEPLOYDIR/include
detect_glu_result=1;
fi
if [ -e /usr/include/GL/glu.h ]; then
detect_glu_include=/usr/include
detect_glu_result=1;
fi
if [ -e /usr/local/include/GL/glu.h ]; then
detect_glu_include=/usr/local/include
detect_glu_result=1;
fi
if [ -e /usr/pkg/X11R7/include/GL/glu.h ]; then
detect_glu_include=/usr/pkg/X11R7/include
detect_glu_result=1;
fi
return
}
@ -171,14 +183,37 @@ build_qt5scintilla2()
echo "Building Qt5Scintilla2" $version "..."
cd $BASEDIR/src
#rm -rf QScintilla-gpl-$version.tar.gz
rm -rf ./QScintilla-gpl-$version.tar.gz
if [ ! -f QScintilla-gpl-$version.tar.gz ]; then
curl -L -o "QScintilla-gpl-$version.tar.gz" "http://downloads.sourceforge.net/project/pyqt/QScintilla2/QScintilla-$version/QScintilla-gpl-$version.tar.gz?use_mirror=switch"
fi
tar xzf QScintilla-gpl-$version.tar.gz
cd QScintilla-gpl-$version/Qt4Qt5/
qmake CONFIG+=staticlib
make -j"$NUMCPU" install
tmpinstalldir=$DEPLOYDIR/tmp/qsci$version
INSTALL_ROOT=$tmpinstalldir make -j"$NUMCPU" install
if [ -d $tmpinstalldir/usr/share ]; then
cp -av $tmpinstalldir/usr/share $DEPLOYDIR/
cp -av $tmpinstalldir/usr/include $DEPLOYDIR/
cp -av $tmpinstalldir/usr/lib $DEPLOYDIR/
fi
if [ ! -e $DEPLOYDIR/include/Qsci ]; then
# workaround numerous bugs in qscintilla build system, see
# ../qscintilla2.prf and ../scintilla.pri for more info
qsci_staticlib=`find $tmpinstalldir -name libqscintilla2.a`
qsci_include=`find $tmpinstalldir -name Qsci`
if [ -e $qsci_staticlib ]; then
cp -av $qsci_include $DEPLOYDIR/include/
cp -av $qsci_staticlib $DEPLOYDIR/lib/
else
echo problems finding built qscintilla libraries and include headers
fi
if [ -e $DEPLOYDIR/lib/libqscintilla2.a ]; then
cp $DEPLOYDIR/lib/libqscintilla2.a $DEPLOYDIR/lib/libqt5scintilla2.a
fi
fi
}
build_bison()
@ -365,6 +400,8 @@ build_cgal()
echo "Building CGAL" $version "..."
cd $BASEDIR/src
rm -rf CGAL-$version
ver4_8="curl -L --insecure -O https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-4.8/CGAL-4.8.tar.xz"
ver4_7="curl -L --insecure -O https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-4.7/CGAL-4.7.tar.gz"
ver4_4="curl --insecure -O https://gforge.inria.fr/frs/download.php/file/33524/CGAL-4.4.tar.bz2"
ver4_2="curl --insecure -O https://gforge.inria.fr/frs/download.php/32360/CGAL-4.2.tar.bz2"
ver4_1="curl --insecure -O https://gforge.inria.fr/frs/download.php/31640/CGAL-4.1.tar.bz2"
@ -382,6 +419,9 @@ build_cgal()
if [ -e CGAL-$version.tar.bz2 ]; then
download_cmd=vernull;
fi
if [ -e CGAL-$version.tar.xz ]; then
download_cmd=vernull;
fi
eval echo "$"$download_cmd
`eval echo "$"$download_cmd`
@ -392,6 +432,10 @@ build_cgal()
zipper=bzip2
suffix=bz2
fi
if [ -e CGAL-$version.tar.xz ]; then
zipper=xz
suffix=xz
fi
$zipper -f -d CGAL-$version.tar.$suffix;
tar xf CGAL-$version.tar
@ -400,8 +444,10 @@ build_cgal()
# older cmakes have buggy FindBoost that can result in
# finding the system libraries but OPENSCAD_LIBRARIES include paths
FINDBOOST_CMAKE=$OPENSCAD_SCRIPTDIR/../tests/FindBoost.cmake
cp $FINDBOOST_CMAKE ./cmake/modules/
# NB! This was removed 2015-12-02 - if this problem resurfaces, fix it only for the relevant platforms as this
# messes up more recent installations of cmake and CGAL.
# FINDBOOST_CMAKE=$OPENSCAD_SCRIPTDIR/../tests/FindBoost.cmake
# cp $FINDBOOST_CMAKE ./cmake/modules/
mkdir bin
cd bin
@ -505,10 +551,20 @@ build_opencsg()
cp opencsg.pro opencsg.pro.bak
cat opencsg.pro.bak | sed s/example// > opencsg.pro
detect_glu
GLU_INCLUDE=$detect_glu_include
if [ ! $detect_glu_result ]; then
build_glu 9.0.0
fi
if [ "`command -v qmake-qt4`" ]; then
OPENCSG_QMAKE=qmake-qt4
elif [ "`command -v qmake4`" ]; then
OPENCSG_QMAKE=qmake4
elif [ "`command -v qmake-qt5`" ]; then
OPENCSG_QMAKE=qmake-qt5
elif [ "`command -v qmake5`" ]; then
OPENCSG_QMAKE=qmake5
elif [ "`command -v qmake`" ]; then
OPENCSG_QMAKE=qmake
else
@ -518,15 +574,18 @@ build_opencsg()
cp src/Makefile src/Makefile.bak
cat Makefile.bak | sed s/example// |sed s/glew// > Makefile
cat src/Makefile.bak | sed s@^INCPATH.*@INCPATH\ =\ -I$BASEDIR/include\ -I../include\ -I..\ -I.@ > src/Makefile
cat src/Makefile.bak | sed s@^INCPATH.*@INCPATH\ =\ -I$BASEDIR/include\ -I../include\ -I..\ -I$GLU_INCLUDE -I.@ > src/Makefile
cp src/Makefile src/Makefile.bak2
cat src/Makefile.bak2 | sed s@^LIBS.*@LIBS\ =\ -L$BASEDIR/lib\ -L/usr/X11R6/lib\ -lGLU\ -lGL@ > src/Makefile
tmp=$version
detect_glu
if [ ! $detect_glu_result ]; then build_glu 9.0.0 ; fi
version=$tmp
fi
if [ ! $OPENCSG_QMAKE = "make" ]; then
OPENCSG_QMAKE=$OPENCSG_QMAKE' "QMAKE_CXXFLAGS+=-I'$GLU_INCLUDE'"'
fi
echo OPENCSG_QMAKE: $OPENCSG_QMAKE
cd $BASEDIR/src/OpenCSG-$version/src
$OPENCSG_QMAKE
@ -726,7 +785,8 @@ mkdir -p $SRCDIR $DEPLOYDIR
# they are installed under $BASEDIR/bin which we have added to our PATH
if [ ! "`command -v curl`" ]; then
build_curl 7.26.0
# to prevent "end of file" NSS error -5938 (ssl) use a newer version of curl
build_curl 7.49.0
fi
if [ ! "`command -v bison`" ]; then
@ -761,6 +821,10 @@ if [ $1 ]; then
build_qt4 4.8.4
exit $?
fi
if [ $1 = "qt5scintilla2" ]; then
build_qt5scintilla2 2.8.3
exit $?
fi
if [ $1 = "qt5" ]; then
build_qt5 5.3.1
build_qt5scintilla2 2.8.3
@ -776,6 +840,11 @@ if [ $1 ]; then
build_gettext 0.18.3.1
exit $?
fi
if [ $1 = "harfbuzz" ]; then
# debian 7 lacks only harfbuzz
build_harfbuzz 0.9.35 --with-glib=yes
exit $?
fi
if [ $1 = "glib2" ]; then
# such a huge build, put here by itself
build_pkgconfig 0.28
@ -799,21 +868,21 @@ fi
# Some of these are defined in scripts/common-build-dependencies.sh
build_eigen 3.2.2
build_gmp 5.0.5
build_gmp 6.0.0
build_mpfr 3.1.1
build_boost 1.56.0
# NB! For CGAL, also update the actual download URL in the function
build_cgal 4.4
build_cgal 4.7
build_glew 1.9.0
build_opencsg 1.3.2
build_gettext 0.18.3.1
build_glib2 2.38.2
# the following are only needed for text()
build_freetype 2.5.0.1 --without-png
build_freetype 2.6.1 --without-png
build_libxml2 2.9.1
build_fontconfig 2.11.0 --with-add-fonts=/usr/X11R6/lib/X11/fonts,/usr/local/share/fonts
build_ragel 6.9
build_harfbuzz 0.9.23 --with-glib=yes
build_harfbuzz 0.9.35 --with-glib=yes
echo "OpenSCAD dependencies built and installed to " $BASEDIR

View file

@ -4,13 +4,27 @@
# this assumes you have sudo installed and running, or are running as root.
#
get_fedora_deps()
get_fedora_deps_yum()
{
yum -y install qt5-qtbase-devel bison flex eigen3-devel harfbuzz-devel \
fontconfig-devel freetype-devel \
boost-devel mpfr-devel gmp-devel glew-devel CGAL-devel gcc gcc-c++ pkgconfig \
opencsg-devel git libXmu-devel curl imagemagick ImageMagick glib2-devel make \
xorg-x11-server-Xvfb gettext
xorg-x11-server-Xvfb gettext qscintilla-devel qscintilla-qt5-devel \
mesa-dri-drivers
}
get_fedora_deps_dnf()
{
dnf -y install qt5-qtbase-devel bison flex eigen3-devel harfbuzz-devel \
fontconfig-devel freetype-devel \
boost-devel mpfr-devel gmp-devel glew-devel CGAL-devel gcc gcc-c++ pkgconfig \
opencsg-devel git libXmu-devel curl ImageMagick glib2-devel make \
xorg-x11-server-Xvfb gettext qscintilla-devel qscintilla-qt5-devel \
mesa-dri-drivers
dnf -y install libxml2-devel
dnf -y install libffi-devel
dnf -y install redhat-rpm-config
}
get_qomo_deps()
@ -43,8 +57,13 @@ get_netbsd_deps()
get_opensuse_deps()
{
zypper install libeigen3-devel mpfr-devel gmp-devel boost-devel \
libqt4-devel glew-devel cmake git bison flex cgal-devel opencsg-devel curl \
glib2-devel gettext
libqt4-devel glew-devel cmake git bison flex cgal-devel curl \
glib2-devel gettext freetype-devel harfbuzz-devel libqscintilla-devel \
xvfb-run imagemagick opencsg-devel
echo if you are missing opencsg, please add the -graphics- repository
echo find your version from cat /etc/issue, then replace it below, then run
echo " zypper ar -f http://download.opensuse.org/repositories/graphics/openSUSE_13.2 graphics"
echo " zypper install opencsg-devel"
}
get_mageia_deps()
@ -58,12 +77,98 @@ get_mageia_deps()
get_debian_deps()
{
apt-get -y install \
build-essential curl libffi-dev qtbase5-dev libqt5scintilla2-dev \
build-essential curl libffi-dev \
libxmu-dev cmake bison flex git-core libboost-all-dev \
libXi-dev libmpfr-dev libboost-dev libglew-dev \
libmpfr-dev libboost-dev libglew-dev \
libeigen3-dev libcgal-dev libopencsg-dev libgmp3-dev libgmp-dev \
imagemagick libfontconfig-dev libfreetype6-dev \
libharfbuzz-dev gtk-doc-tools libglib2.0-dev gettext
imagemagick libfreetype6-dev \
gtk-doc-tools libglib2.0-dev gettext xvfb pkg-config ragel
apt-get -y install libXi-dev libfontconfig-dev
}
get_debian_7_deps()
{
get_debian_deps
apt-get -y install libqt4-dev libqscintilla2-dev
echo "debian 7 detected"
echo "please build harfbuzz & see the README on building dependencies"
echo ". ./scripts/setenv-unibuild.sh"
echo "./scripts/uni-build-dependencies.sh harfbuzz"
}
get_qt4or5_deps_debian()
{
# debian 8 can have both qt4 and qt5 installed... or neither. figure out which
# and cater to it.
useqt=5
if [ "`dpkg --list | grep qt5-default`" ]; then
useqt=5
elif [ "`dpkg --list | grep qt4-default`" ]; then
useqt=4
elif [ "`echo QT_SELECT | grep ^4`" ]; then
useqt=4
elif [ "`echo QT_SELECT | grep qt4`" ]; then
useqt=4
elif [ "`echo QT_SELECT | grep ^5`" ]; then
useqt=5
elif [ "`echo QT_SELECT | grep qt5`" ]; then
useqt=5
elif [ ! "`command -v qtchooser`" ]; then
useqt=5
elif [ "`qtchooser -l | grep qt5`" ]; then
useqt=5
elif [ ! "`qtchooser -l | grep qt4`" ]; then
useqt=5
elif [ ! "`command -v qmake`" ]; then
useqt=5
elif [ "`qmake --version | grep -i qt.version.4`" ]; then
useqt=4
fi
if [ $useqt = 5 ]; then
apt-get -y install qtbase5-dev libqt5scintilla2-dev libqt5opengl5-dev qt5-qmake
else
apt-get -y install libqt4-dev libqscintilla2-dev libqt4-opengl-dev
fi
if [ ! "`command -v qmake`" ]; then
apt-get -y install qt$useqt-default
echo "installed qt$useqt-default to enable qmake"
elif [ ! "`qmake --version | grep qmake.version`" ]; then
apt-get -y install qt$useqt-default
echo "installed qt$useqt-default to enable qmake"
fi
}
get_debian_8_deps()
{
apt-get -y install libharfbuzz-dev libxml2-dev
get_debian_deps
get_qt4or5_deps_debian
}
get_ubuntu_14_deps()
{
get_debian_8_deps
}
get_ubuntu_16_deps()
{
apt-get -y install libxi-dev libxml2-dev libfontconfig1-dev
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=804539
apt-get -y install libcgal-qt5-dev
get_debian_8_deps
}
get_neon_deps()
{
get_debian_deps
apt-get -y install libxi-dev libxml2-dev libfontconfig1-dev
apt-get -y install libharfbuzz-dev libxml2-dev
# qt5 scintilla is broken on kde neon. use qt4 # issue 1790
apt-get -y install libcgal-dev
apt-get -y install libqt4-dev libqscintilla2-dev libqt4-opengl-dev
echo on KDE Neon please use qmake-qt4 to build
}
unknown()
@ -73,24 +178,48 @@ unknown()
}
if [ -e /etc/issue ]; then
if [ "`grep -i ubuntu /etc/issue`" ]; then
if [ "`grep -i ubuntu.1[4-5] /etc/issue`" ]; then
get_ubuntu_14_deps
elif [ "`grep -i ubuntu.1[6-9] /etc/issue`" ]; then
get_ubuntu_16_deps
elif [ "`grep -i KDE.neon /etc/issue`" ]; then
get_neon_deps
elif [ "`grep -i ubuntu /etc/issue`" ]; then
get_debian_deps
elif [ "`grep -i elementary.*freya /etc/issue`" ]; then
get_ubuntu_14_deps
elif [ "`grep -i debian.GNU.Linux.7 /etc/issue`" ]; then
get_debian_7_deps
elif [ "`grep -i debian /etc/issue`" ]; then
get_debian_deps
get_debian_8_deps
elif [ "`grep -i raspbian /etc/issue`" ]; then
get_debian_deps
elif [ "`grep -i linux.mint.2 /etc/issue`" ]; then
get_ubuntu_14_deps
elif [ "`grep -i linux.mint.1[789] /etc/issue`" ]; then
get_ubuntu_14_deps
elif [ "`grep -i mint /etc/issue`" ]; then
get_debian_deps
get_debian_7_deps
elif [ "`grep -i suse /etc/issue`" ]; then
get_opensuse_deps
elif [ "`grep -i fedora.release.2[2-9] /etc/issue`" ]; then
get_fedora_deps_dnf
elif [ "`grep -i fedora.release.[3-9][0-9] /etc/issue`" ]; then
get_fedora_deps_dnf
elif [ "`grep -i fedora.release.2[0-1] /etc/issue`" ]; then
get_fedora_deps_yum
elif [ "`grep -i fedora /etc/issue`" ]; then
get_fedora_deps
get_fedora_deps_yum
elif [ "`grep -i red.hat /etc/issue`" ]; then
get_fedora_deps
elif [ "`grep -i mageia /etc/issue`" ]; then
get_mageia_deps
elif [ "`grep -i qomo /etc/issue`" ]; then
get_qomo_deps
elif [ -e /etc/fedora-release ]; then
if [ "`grep -i fedora.release /etc/fedora-release`" ]; then
get_fedora_deps_dnf
fi
elif [ "`command -v rpm`" ]; then
if [ "`rpm -qa | grep altlinux`" ]; then
get_altlinux_deps

28
scripts/winmanifest.xml Normal file
View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<description>OpenSCAD</description>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel
level="asInvoker"
uiAccess="false"
/>
</requestedPrivileges>
</security>
</trustInfo>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- Windows 10 -->
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
<!-- Windows 8.1 -->
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
<!-- Windows Vista -->
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
<!-- Windows 7 -->
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
<!-- Windows 8 -->
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
</application>
</compatibility>
</assembly>

View file

@ -1,11 +0,0 @@
export OPENSCAD_LIBRARIES=$PWD/../libraries/install
export DYLD_LIBRARY_PATH=$OPENSCAD_LIBRARIES/lib
export DYLD_FRAMEWORK_PATH=$OPENSCAD_LIBRARIES/lib
export QMAKESPEC=macx-g++
# Our own Qt
export PATH=$OPENSCAD_LIBRARIES/bin:$PATH
# ccache:
export PATH=/opt/local/libexec/ccache:$PATH
export CCACHE_BASEDIR=$PWD/..

View file

@ -1,11 +0,0 @@
export OPENSCAD_LIBRARIES=$PWD/../libraries/homebrew
export DYLD_LIBRARY_PATH=$OPENSCAD_LIBRARIES/lib
export DYLD_FRAMEWORK_PATH=$OPENSCAD_LIBRARIES/lib
export QMAKESPEC=unsupported/macx-clang
# Our own Qt
export PATH=$OPENSCAD_LIBRARIES/bin:$PATH
# ccache:
export PATH=/opt/local/libexec/ccache:$PATH
export CCACHE_BASEDIR=$PWD/..

View file

@ -1,11 +0,0 @@
export OPENSCAD_LIBRARIES=$PWD/../libraries/install-qt4
export DYLD_LIBRARY_PATH=$OPENSCAD_LIBRARIES/lib
export DYLD_FRAMEWORK_PATH=$OPENSCAD_LIBRARIES/lib
export QMAKESPEC=unsupported/macx-clang
# Our own Qt
export PATH=$OPENSCAD_LIBRARIES/bin:$PATH
# ccache:
export PATH=/opt/local/libexec/ccache:$PATH
export CCACHE_BASEDIR=$PWD/..

3
src/AST.cc Normal file
View file

@ -0,0 +1,3 @@
#include "AST.h"
Location Location::NONE(0, 0, 0, 0);

Some files were not shown because too many files have changed in this diff Show more