129 Commits

Author SHA1 Message Date
Lawrence Lee
2924128311 Set -ffp-contract=off compiler flag for GCC >= 11
Replace the previous workaround of setting -fno-tree-loop-vectorize for
a GCC optimization bug.

(#6384)
2022-09-18 12:05:39 -07:00
Benitoite
8a09af2c48
macOS: optionally make a generically-named copy of the zip (#6518)
Adds `-DOSX_NIGHTLY`. With -DOSX_NIGHTLY=ON will produce copies of the zip with generic names: `RawTherapee_macOS_arm64_latest.zip` for the purpose of hyperlinking. This is activated for GitHub Actions automated builds.

* mac: specify catalina on github action
* mac: use clang instead of /path/to/clang
* mac: Exec Architectures --> Architecture Priority
* mac: add an option to generate a universal app
* mac: generate a universal app
* mac: use "Universal" for arch in naming
* mac: remove some braces
* mac: fix gtk3 environment paths
* mac: fix universal url logic
* mac: merge about txts for universal build
* Mac: fix osx version minimums in universal 1
* Mac: update info plist for osx version minima
* Mac: update universal versioning
* Mac: add processor tunings for sandy-ivy bridge
* mac: fix minimum versioning statements
* Mac: fix a paste error
* mac: remove any x/X libs from bundle
* mac: don't get rid of libxcb for cairo
* mac: fix a typo
* mac: revert library removals for cairo
2022-08-19 06:38:05 +02:00
Thanatomanic
c58f582505
Minor license path fixes (#6551)
* Fix CMakeLists
* Fix splash.cc
2022-08-18 20:58:50 +02:00
Benitoite
bab5516871
Mac: set fftw3f_omp linker flags (#6406)
Sets linker flags for macOS for fftw3f_omp when OPTION_OMP==ON
2022-02-05 11:10:45 +01:00
Thanatomanic
4b8481f1c9
(Temporarily) disable ftree-loop-vectorize for GCC 11 because of #6384 2021-12-16 07:50:31 +01:00
Flössie
42fecdada9 Support Debian's libtcmalloc-minimal4 2021-08-27 08:42:42 +02:00
Benitoite
b1e7860a23
mac: update of macosx_bundle.sh (#5786)
Various changes to improve compilation of RT on macOS thanks to @Benitoite and @Pandagrapher 
* mac: use sed -i.bak, add X's to mktemp template in macosx_bundle.sh
* mac: test lensfun version in macosx_bundle.sh to select correct lensfun database version (version_1 for 3.2 and version_2 for 3.95)
* mac: remove DYLD_FALLBACK_LIBRARY_PATH from main Info.plist
* mac: removes some -cli codesigning commands
* mac: remove erroneous newlines in macosx_bundle.sh and suppress superfluous codesigning of Contents/Frameworks/*dylib
* mac: Apple arm64/homebrew compatibility update
* mac: CMakeLists.txt arm64 homebrew compatibility
* mac: add Apple arm64 CPU native flag
* mac: fix pixbuf query syntax
* mac: adapt. of Pandagrapher's patch
* mac: additional instructions for the -cli exec.
* mac: revert target 10
* mac: remove legacy environment variable Per https://github.com/Beep6581/RawTherapee/pull/5786#issuecomment-792276656
* mac: fix destination of credits/license
* mac: copy {LOCAL_PREFIX}/share/locale to bundle
* mac: fixes a path for the License
* mac: fix of UpdateInfo command structure
* mac: remove redundant copying
* mac: use cmake to configure Info.plist values
* mac: configurator for Info.plist version values
* mac: fix locale detection / language
* mac: remove an outdated key from Info.plist
* mac: fix path usage for gtk.immodules / locale dir
* mac: revert a change merged elsewhere
* mac: follow more symlinks for 'brew builds
* mac: link to CoreFoundation for locale detection
* mac: link CoreFoundation for locale / C
* mac: detect locale with CoreFoundation per https://github.com/Beep6581/RawTherapee/pull/5786#issuecomment-798926898
* mac: remove outdated lines
* Update multilangmgr.cc
* mac: Info.plist language fixes (Pandagrapher) https://github.com/Beep6581/RawTherapee/pull/5786#issuecomment-813004475
* Mac: also package libpng12 for homebrew compatibility.
* macOS packaging and language updates
2021-08-09 07:11:09 +02:00
Stefan Wunsch
4cb6fa2dcb [cmake] Use absolute path to cmake in UpdateInfo
- Recommended for usage of cmake from custom commands
- Enables building with Xcode using the project generated with 'cmake -GXcode ..'
2021-03-06 11:46:23 +01:00
Stefan Wunsch
68a6e02369
Fix some cmake build system issues (#6147)
* [cmake] Switch to find_package for TIFF
- Included in cmake 3.5 and later
- Provides better configuration messages
* Add missing TIFF library to rtgui and rtexif
* Removed unnecessary quotes so that cmake sees the list as a list
* Add OpenMP to rtengine if OpenMP is enabled
2021-03-01 16:40:54 +01:00
Ingo Weyrich
0cc6ae979f silence warnings, #6105 2021-02-16 12:12:25 +01:00
Flössie
ae5d268d6e Raise glib requirements to 2.48 (fixes #5943) 2020-11-12 08:16:20 +01:00
Floessie
d5af712497
Merge pull request #5840 from ya-isakov/dev
Make libcanberra optional
2020-08-16 15:05:45 +02:00
Ingo Weyrich
a4813ac256 RT build on non-Apple systems using clang shows wrong compiler info in AboutThisBuild.txt, fixes #5864 2020-08-14 12:22:08 +02:00
Ingo Weyrich
0fcca62905 enable -ftree-loop-vectorize for gcc >= 10.2, #5749 2020-07-21 15:41:47 +02:00
Yaroslav Isakov
70c052cc76 Make libcanberra optional
It is the only X11 dep in RawTherapee, so here is an option to
compile without libcanberra. This will completely disables sounds
for long operations on Linux, but canberra is enabled by default.
2020-07-09 16:39:26 +02:00
Thanatomanic
49c4d0a27c
Temporarily prevents #5749 from causing issues for the unknown user when compiling dev
Code taken from d65d285968
2020-06-05 08:41:26 +02:00
Pandagrapher
320408306d
Build improvements + fix for window size/position (macOS) (#5771)
* Allow using relative path in MacOS for development builds
* [macOS] Fixes RT "cache"/"config" folder not located in the right place
In actual "dev" branch, RT "cache"/"config" folder is located in
"~/Application Support/RawTherapee" folder instead of
"~/Library/Application Support/RawTherapee" folder (as in v5.8 release
and discribed in RawPedia). Moreover, "CACHE_NAME_SUFFIX" cMake option
was not anymore considered.
* [macOS] Remember RT window position correctly, fixes #3209

As described in GTK documentation, some OS Windows Manager do not
consider setting window size and position before it is completely
created (which seems to be the case for macOS). In this commit,
restoring window size/position is now done after its creation.
Morevover, macOS menu bar height is now considered.
2020-05-28 12:26:14 +02:00
Benitoite
65f1b4c3d9
Update macOS packaging for 10.15.4
Several smaller fixes to provide an improved handling of installing/using RT on macOS.
* mac: update entitlements for 10.15.4
* mac: fix the CLI. Provides an un-codesigned rawtherapee-cli outside the app bundle for use on the terminal command line, using the app bundle's 3rd-party libraries.
* How to install RawTherapee.app and rawtherapee-cli for macOS
2020-05-12 14:17:53 +02:00
Ingo Weyrich
8c851a1b3f Also tweak CMAKE_C_FLAGS, fixes #5742 2020-05-08 14:02:40 +02:00
Ingo Weyrich
988d3a1a0d Do not set math errno 2020-05-07 15:26:10 +02:00
Benitoite
fbe718b64f
fixes macOS autobuild (#5674)
* update macOS autobuild yaml

* updates */CMakeLists* for macOS autobuild compatibility

* "" a dir for cmake

* Un empty an empty EXTRA_INCDIR

* use a cmake operator

* Use the . dir to un-empty a string

* fix minutes timer in macos yaml

* test & skip instead of load & include

* disregard fractional part of minutes in mac yaml

* add another cmake test

* fix typo in mac yaml

* fix other part of same typo

* correct a filename in mac yaml

* test all include dirs

* fix of mac yaml

* mac:fix a path in yaml

* mac:and its antecedent

* options.h include a dir

* test __has_include (gcc 5.* & up & clang)

* remove a printf() in mac yaml

* mac:change a "" and an elseif() to else()

* fix a whitespace error

* fix 2 whitespace errors

* ZULU>UTC

* add a "UTC

* on the other side of the "

* mac:properly set default LOCAL_PREFIX in CACHE

* use of zsh subshells in macos yaml

* mac:remove some &&

* mac:remove some "

* mac:floating point divisors

* mac:use double paren (())

* mac:add a dir

* mac:floatize with decimal point

* mac:zsh -c certain lines

* remove a marker
2020-02-28 19:20:40 +01:00
Richard Barber
4bd6383c07 re-indent some scripts w/cmake_format and beautify_bash 2020-02-23 20:35:45 -08:00
Richard Barber
4dbbc40539 mac:config.h.in use macos extention 2020-02-20 11:43:11 -08:00
Richard Barber
4e4faafb08 mac:fix destination of comconst.json 2020-02-20 03:14:46 -08:00
Richard Barber
d21f051f43 mac:sync build directories locations 2020-02-20 01:56:00 -08:00
Richard Barber
9bc078c5bb mac:export non-relative paths to config.h 2020-02-20 01:17:49 -08:00
Richard Barber
a78c4b99df mac:send an absolute path to config.h.in via CMakeLists.txt 2020-02-19 15:51:50 -08:00
Richard Barber
3bbdd89c8f mac: fix -cli and add a linker flag 2020-02-19 14:40:42 -08:00
Benitoite
7b215e83a3
mac: bundle simplification 2020-02-15 18:07:30 -08:00
Benitoite
d796f70caf
Mac: fix os deployment target compilation flags
Uses `${CMAKE_OSX_DEPLOYMENT_TARGET}` instead of `10.9`
2020-02-08 02:52:31 -08:00
Ingo Weyrich
8f291c3ff2 Be -Wunused-macros clean 2020-02-07 20:18:35 +01:00
Benitoite
1150a4352f
Re-enable a private LENSFUNDBDIR on Win32 and UNIX
Restores a few lines in CMakeLists.txt 2cc8918 removed for non-APPLE systems.
2020-02-07 00:47:24 -08:00
rfranke
2cc89183df Prepend DATADIR only once to LENSFUNDBDIR, see #5622
DATADIR is also prepended to a relative LENSFUNDBDIR in rtengine::init.
This removal in CMakeLists.txt keeps the cmake argument LENSFUNDBDIR
unmodified in the ~/.config/RawTherapee*/options file.

This fixes a path like
   ../../Resources/../../Resources/./share/lensfun
for LENSFUNDBDIR=./share/lensfun under macOS.
2020-01-28 22:11:48 +01:00
Benitoite
aaab85fbed
macOS: LOCAL_PREFIX default/better negative logic 2020-01-04 16:06:13 -08:00
Benitoite
f23cf0808b
macOS: accept -DLOCAL_PREFIX and default to /usr 2020-01-04 08:53:43 -08:00
Ingo Weyrich
b3b1008270 Further reduction of include dependencies 2019-11-02 17:29:26 +01:00
Franz Trischberger
706c16510f Add option to link against libtcmalloc.so
Implementation done by Alberto Griggio (agriggio)
for his fork at https://bitbucket.org/agriggio/art

libtcmalloc.so comes with google's perftools:
https://github.com/gperftools/gperftools

This should fix issues where glibc won't give
memory back to the OS.
Related issue: #4416
2019-09-21 08:44:53 +03:00
Ingo Weyrich
17f343f682 add -Wcast-qual switch and fix all related warnings 2019-07-25 17:45:43 +02:00
Benitoite
8a8536702e
Mac: point to directories from a nested app 2019-06-15 23:11:29 -07:00
Benitoite
6095f86467
macOS: Import notarization credentials
Imports apple notarization credentials (Apple ID and App-specific password) given to cmake as `-DNOTARY:STRING="-u woz@apple.com -p abcd-efgh-ijkl-mnop"`
2019-06-13 02:03:00 -07:00
Benitoite
bd548ce060
Mac: define CMAKE_AR / RANLIB only if undefined. 2019-05-16 12:39:08 -07:00
Morgan Hardwood
3289835ca1 Bumped minimum CMake version to 3.5, closes #5302 2019-04-24 16:36:29 +02:00
Morgan Hardwood
458f47d12e Warn if using problematic GTK+ version
GTK+ 3.24.5 is known to not draw combobox menu scroll arrows.
Possibly affects >=3.24.2 - <=3.24.6.

Closes #5194
2019-04-02 08:45:57 +02:00
Hombre
bd175ec8d1 Merge branch 'dev' into hidpi-icons 2019-02-25 22:37:00 +01:00
Morgan Hardwood
788d62e5d1 Renamed appdata filename in CMakeLists 2019-02-14 13:50:57 +01:00
Hombre
8728142b64 Merge branch 'dev' into hidpi-icons 2018-12-13 00:52:07 +01:00
Hombre
81407cd663 Adding SVG support for icons with automatic cache handling
See issue #3547 and #4803
2018-12-13 00:04:30 +01:00
heckflosse
516be46550 Reintroduce silencing of unused-result warnings 2018-12-11 00:09:36 +01:00
heckflosse
feb718adb5 Some changes to CMakeLists.txt, closes #5066 2018-12-05 15:40:14 +01:00
Morgan Hardwood
4e79d68807 CMake file cleanup 2018-12-02 23:00:29 +01:00