Commit graph

35 commits

Author SHA1 Message Date
Ocraftyone
026499c5b7
Better CMake Defaults (#10294)
* Auto generate CMAKE_PREFIX_PATH/DESTDIR

* Auto set CMAKE_INSTALL_PREFIX

* Always default SLIC3R_STATIC to on

* Only allow one value for CMAKE_OSX_ARCHITECTURES

* Set arch for OpenSSL from CMAKE_OSX_ARCHITECTURES

* Set CMAKE_INSTALL_RPATH from CMAKE_PREFIX_PATH

* Default CMAKE_MACOSX_RPATH and CMAKE_MACOSX_BUNDLE to on

* Auto set BBL_RELEASE_TO_PUBLIC based on build config

* Default to GTK 3

* Fix linux debug build

Update find modules to also look for the debug variant of the libraries

* Set DEP_DEBUG and ORCA_INCLUDE_DEBUG_INFO based on CMAKE_BUILD_TYPE

* Add a fallback value for Windows SDK if the env variables are not set

* Reflect CMake changes in the build scripts

* Add missing line

* Fix auto setting DEP_DEBUG and ORCA_INCLUDE_DEBUG_INFO

* Update dep folder name for linux in GH actions

* Invert dep-folder-name conditions

`''` is considered a falsy value, which was causing the value to always be set to 'OrcaSlicer_dep'

* Properly handle finding the debug version of libnoise

* Convert FindNLopt.cmake to a config mode wrapper

* Use separate build directory for debug builds on Linux

* Move find_package for libnoise

* Cleanup and improve linux build script

- Add dry run
- Add build in RelWithDebInfo
- Add function to print and run commands

* Remove linux destdir deprecation and cleanup

* Fix flatpak build

* Disable fail fast for flatpak builds

* Flatpak improvements

- Build wxWidgets using deps cmake
- Improve handling of space freeing commands while building deps
- Allow cmake to directly download deps
- Set needed flags within cmake instead of the build manifest

* Print clean build commands

* Implement shellcheck recommendations

* Cleanup

* Fix CMakeLists.txt syntax by replacing empty elseif with else statement

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2025-10-25 22:05:09 +08:00
SoftFever
f020480900
Revamp OrcaSlicer updater (#10884)
* Revamp OrcaSlicer updater
2025-09-28 10:33:33 +08:00
coryrc
7aa3ce8a4d
Shellcheck everything (#10730)
Some checks failed
Shellcheck / Shellcheck (push) Has been cancelled
* Shellcheck all shell scripts

* Implement Shellcheck's recommendations

* Shellcheck the distribution-specific files

* Include the distro scripts to trigger action

* Fix array usage (hopefully)

* Use single-quote string

TIL: single quote string in yaml treats everything as literal, but
double quote allows backslash escaping.

* Make all cmake commands use set+-x dance and fix macos getopts line

Make Claude happy

getopts has colon after a command which takes an argument

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2025-09-20 09:12:31 +08:00
SoftFever
883607e1d4
Refactor folder (#10475)
Move many third-party components' source codes from the src folder to a new folder called deps_src. The goal is to make the code structure clearer and easier to navigate.
2025-08-22 20:02:26 +08:00
SoftFever
9e0df24b9a
use Ninja for deps build on Mac (#10426) 2025-08-17 14:00:29 +08:00
SoftFever
05adf5f9c9
Update macOS build script to use Ninja Multi-Config generator (#10377)
* Update macOS build script to use Ninja Multi-Config generator

* fix
2025-08-11 22:35:17 +08:00
SoftFever
0cd3030c53
include OrcaSlicer_profile_validator in nightly build (#10233)
Some checks are pending
Build all / Build All (push) Waiting to run
Build all / Flatpak (push) Waiting to run
* include OrcaSlicer_profile_validator in nightly build

* build OrcaSlicer_profile_validator on Win

* create dmg
2025-07-27 00:13:30 +08:00
SoftFever
658669d103
Universal mac build (#9074)
build universal Mac app
2025-03-27 22:53:37 +08:00
SoftFever
7bd6863525 bump nightlybuild version to 2.3.0-beta2 2025-02-23 18:43:36 +08:00
SoftFever
7e85eb0d7d
Upgrade Mac CI/CD to macos-14 (#5856) 2024-06-25 23:24:39 +08:00
Dzmitry Neviadomski
e787cd5315
FIX: revert default CMake generator for deps on macOS (#4357)
* FIX: revert default CMake generator for deps on macOS

Before I wrongfully assumed that default CMake generator for both deps
and slicer is Xcode.
This is not true, as deps used implicitly-defaulted Unix Makefiles.
Fix by separating generator used for Slicer and deps, leaving the
choice to use Ninja for both.
Right now Xcode generator is not supported for deps and must be fixed
separately.

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>

* FIX: Use ALL_BUILD target when building slicer with Xcode generator

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>

* FIX: Adjust .app searching subdir for Xcode generator

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>

---------

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>
2024-03-07 22:39:18 +08:00
Dzmitry Neviadomski
7b31ee3a45
ENH: Improve macOS build script (#4310)
* ENH: Improve macOS build script

 - Update shebang to bash, as it is already expected to be present in
   run_gettext.sh
 - Added fail-fast shell options.
 - Changed default CMake generator to Ninja
 - Adopted configuration for non-multi-config generators (Ninja, Make)
 - Added new options:
   - Allow to set CMake generator back to Xcode, no option for make
     thou.
   - Allow to build without reconfiguring CMake, improves build times.
     Unnecessary Cmake reconfigurations require full rebuild.
   - Allow to set build configuration for CMake
 - Reorganized targets into separate function to break "cd" dependency.
 - Reformat shell code.
 - Fix all warnings reported by ShellCheck linter tool.
 - Update run_gettext.sh to respect build dir in full mode.

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>

* FIX: Install ninja with brew on CI.

Test if building works with Ninja by default.

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>

* ENH: Set Xcode back as default generator.

Use Ninja on CI with explicit option.

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>

* FIX: Partially revent changes in run_gettext.sh

Revert changes for option parsing.
Leave fixes for issues found by ShellCheck linter tool.

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>

---------

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>
2024-03-05 22:35:46 +08:00
kpishere
044e25d1cf
Feature/build target 10.15 (#3252)
* Set target to 10.15, make porter templates explicit

* CMAKE_OSX_DEPLOYMENT_TARGET refactor

* Update build_release_macos.sh

fix typo

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2023-12-30 09:12:06 +08:00
SoftFever
63351c01da upgrade to macos 13 (#3289)
brew uninstall --ignore-dependencies zstd
Use local curl
remove brew/macport dependency
2023-12-27 17:01:12 +08:00
SoftFever
6962cd6577
upgrade deps (#2349)
* upgrade deps
2023-10-09 00:19:26 +08:00
SoftFever
d6754e84ff fix Mac build script 2023-09-09 11:04:45 +08:00
SoftFever
76d59ac033 Life saver: update locale generation 2023-09-05 22:36:29 +08:00
SoftFever
b396f55ddc don't force build debug version of boost on Windows 2023-08-10 10:56:12 +08:00
SoftFever
fcc19342c5
DummyPR (#1698)
* upload deps binaries
2023-08-06 18:24:49 +08:00
SoftFever
a5a3262c32 clean up Mac 2023-03-16 20:50:23 +08:00
SoftFever
c2827e3161 CICD: was uploading wrong zip file 2023-03-16 01:29:29 +08:00
SoftFever
3570b93d65 sign mac app 2023-03-15 23:51:42 +08:00
SoftFever
5b0ba1207e Change Application name to OrcaSlicer 2023-03-12 10:05:22 +08:00
SoftFever
20f2b2cd0e OrcaSlicer 2023-03-10 18:58:43 +08:00
SoftFever
c5abc98f11 minor changes 2023-03-10 18:35:57 +08:00
Jordan Hubbard
3a670040c7
Make this work with either brew or macports and emit diagnostic when (#419)
neither is found rather than just blowing up.
2023-03-04 15:07:01 +08:00
SoftFever
dd1efb3969 delete .DS_Store 2023-01-14 11:57:59 +08:00
SoftFever
96c861f906
CICD (#167)
CICD
2023-01-12 22:55:50 +08:00
SoftFever
4803c35b76 streamline mac build script
Signed-off-by: SoftFever <103989404+SoftFever@users.noreply.github.com>
2023-01-01 12:27:48 +08:00
SoftFever
48032632a6 generate Xcode project instead
Signed-off-by: SoftFever <103989404+SoftFever@users.noreply.github.com>
2022-12-30 14:19:37 +08:00
GiaPag
cad4caaf5b
Fixed deps "directory not found" (#23) 2022-12-13 11:48:52 +08:00
SoftFever
644742133e fix crash when there are unicode string in the model path 2022-10-26 21:23:51 +08:00
SoftFever
3d2ee60acd update mac build script 2022-10-22 01:07:32 +08:00
SoftFever
457c7ec556 fix mac osx build script when ninja is installed 2022-10-09 21:55:54 +08:00
SoftFever
96be1ffdbf macos build script 2022-09-30 16:18:24 +08:00