Commit Graph

498 Commits

Author SHA1 Message Date
Matthieu Gallien
4ebf5ae806 fix(test/csync): make sure the test executable can be found to be run
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-10-06 16:46:18 +02:00
Claudio Cambra
87275ec495 feat: Use upstream extra cmake modules
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-10-06 16:46:18 +02:00
Jyrki Gadinger
38208e86d2 chore(build): revert now-obsolete local workaround for builds on macOS 26
This reverts commit 9d74744d08.

Qt 6.9.2 no longer tries to link to the AGL Carbon framework.

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-09-25 09:49:53 +02:00
Jyrki Gadinger
9d74744d08 fix(build): allow building on macOS Tahoe
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-09-19 09:20:23 +02:00
Heiko Becker
2a1e7a2304 fix(ECMAddAppIcon): Avoid warning with cmake >= 4.1
It started to warn about elseif() without a condition [1].

[1] 74c62a180d

Signed-off-by: Heiko Becker <mail@heiko-becker.de>
2025-09-18 09:05:30 +02:00
Claudio Cambra
4ccb81440d feat(macOS): Add NCFPKAppGroupIdentifier to bundle info plist
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-07-11 10:52:22 +02:00
Claudio Cambra
a2b12cff72 fix(cmake): Build CFBundleLocalizations
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-06-02 15:15:04 +02:00
Claudio Cambra
c6b268fe10 fix(cmake): Format MacOSXBundleInfo.plist template
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-06-02 15:15:04 +02:00
Jyrki Gadinger
83d6bbcb50 remove no longer required CMake modules
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-05-14 14:55:27 +02:00
Jyrki Gadinger
d458c2c620 chore: remove never used crashreporter
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-05-08 09:52:53 +02:00
Andy Scherzinger
7655efa230 docs(reuse): Migrate to SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-05-06 09:49:30 +02:00
Andy Scherzinger
49038ade94
docs(reuse): Migrate to SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-04-25 17:27:21 +02:00
Jyrki Gadinger
2bbbacb8dc fix(mac): bump deployment target to 12.0
Qt 6.8 now requires macOS 12.0 as per https://doc.qt.io/qt-6.8/macos.html

for comparison, Qt 6.7 supported 11.0 and newer: https://doc.qt.io/qt-6.7/macos.html

also update the Packages project to refuse to install on anything older
than Monterey (12.0)

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-04-04 12:28:04 +02:00
Jyrki Gadinger
da43f3dfb4 set CFBundleDevelopmentRegion to "en" and set CFBundleAllowMixedLocalizations
according to [1] the value should be a ISO 639-1 code, so let's correct
it

`CFBundleAllowMixedLocalizations` is the most interesting one: with this
being set the reported QLocale will no longer be English as well

(this also bumps the version info to 2025 :D)

[1]: https://developer.apple.com/documentation/bundleresources/information-property-list/cfbundledevelopmentregion

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-03-26 17:45:02 +01:00
Claudio Cambra
7142f55788
Update copyright year in macOS info.plist template
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-05 16:18:16 +09:00
Claudio Cambra
a57eb77131 Use xml-escaped application vendor in info plist, fixing code-signing issues for vendors with special chars
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-10-31 18:39:13 +08:00
Claudio Cambra
93c1485dd7 Bump up minimum system version to 11.0 on macOS (required by Qt 6)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-23 10:32:34 +02:00
Camila
dd2ca78884 Change minimun mac OS version to 10.13.
Signed-off-by: Camila <hello@camila.codes>
2024-03-11 15:20:51 +01:00
Camila
02e4f05358
Use a new FindSQLite3 cmake module.
Add find sqlite to the root CMakeLists.txt.

Signed-off-by: Camila <hello@camila.codes>
2023-12-11 11:50:33 +01:00
Camila
d7a72d679e Upgrade to Mac OS 12.0.0.
- Mac OS Monterey should be the minimun OS version since Apple stopped
  supporting anything bellow.

Signed-off-by: Camila <hello@camila.codes>
2023-10-25 09:49:39 +02:00
Camila
60d975d1dc
Ignore the USE_OUR_OWN_SQLITE3 flag.
Always look for sqlite in the system in the 3 platforms.

Signed-off-by: Camila <hello@camila.codes>
2023-08-29 12:05:03 +02:00
Dimitri Papadopoulos
9d830e94f9 Fix typos found by codespell
Signed-off-by: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>
2023-06-21 08:47:13 +02:00
alex-z
7f6c2f946b Move Windows shell extension DLLs to a root installation directory.
Signed-off-by: alex-z <blackslayer4@gmail.com>
2022-12-29 17:59:21 +01:00
allexzander
289a641d74 VFS Windows: Display the sharing state and lock state in the 'Status' column of Windows Explorer
Signed-off-by: allexzander <blackslayer4@gmail.com>
2022-10-04 18:32:51 +02:00
Matthieu Gallien
4cb87f59f5 use -Wall -Wextra -Wpedantic when compiling with current gcc versions
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2022-08-10 12:02:02 +00:00
alex-z
d42d3c057f Implement URI handler for local file editing
Signed-off-by: alex-z <blackslayer4@gmail.com>
2022-08-03 11:38:33 +03:00
Claudio Cambra
032774e280 Update macOS Info.plist
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
2022-07-21 15:08:24 +02:00
Claudio Cambra
850d23c63a Only set _FORTIFY_SOURCE when a higher level of this flag has not been set
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
2022-07-12 20:23:35 +02:00
Claudio Cambra
3f19f53ca4 Add new and correct sparkle update signature
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
2022-05-05 15:08:03 +02:00
alex-z
77bf892809 Use different icon for a sync folder on Windows depending on zoom level.
Signed-off-by: alex-z <blackslayer4@gmail.com>
2021-12-07 15:48:16 +00:00
Felix Weilbach
88e7861239 Enable warnings as errors when compiling with Clang and GCC
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
2021-09-17 13:32:26 +00:00
Nicolas Fella
d247e4791a Remove copy of GNUInstallDirs
It is provided by CMake itself

Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
2021-09-01 11:43:03 +00:00
Matthieu Gallien
f9bfd8adec takes ECMCoverageOption from ECM to enable code coverage analysis
Signed-off-by: Matthieu Gallien <matthieu_gallien@yahoo.fr>
2021-07-28 09:26:40 +00:00
Felix Weilbach
7850551cad Start macOS app bundle name with uppercase letter
It's a convention on macOS that app bundle names start with an uppercase
letter. Also this aligns the app name with Windows and Linux.

Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
2021-06-15 12:19:55 +00:00
Felix Weilbach
74b2c5761d Check compiler against CMAKE_CXX_COMPILER_ID
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
2021-06-07 15:18:03 +02:00
Felix Weilbach
cf616abc46 Remove obsolete AddAppIconMacro
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
2021-05-26 08:54:12 +00:00
Dmytro Korchynskyi
8b6b3023ea use folders in CMake
Signed-off-by: Dmytro Korchynskyi <kdl.dima@gmail.com>
2021-05-18 09:59:17 +03:00
Felix Weilbach
e2d0481c64 Add CMake option to enable address sanitizers
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
2021-05-17 11:43:55 +00:00
Matthieu Gallien
20357ca7fa Revert "Add CMake option to enable address sanitizers"
This reverts commit 3000e26640.

This was not intended for a direct push

Signed-off-by: Matthieu Gallien <matthieu_gallien@yahoo.fr>
2021-04-19 17:54:09 +02:00
Felix Weilbach
3000e26640 Add CMake option to enable address sanitizers
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
2021-04-19 15:38:59 +02:00
Nicolas Fella
2548455f45 Copy FindSharedMimeInfo from ECM
Instead of relying on ECM being installed.

We copy other stuff from ECM so be consistent.

Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
2021-04-15 14:32:46 +00:00
Felix Weilbach
da1e5c448a CMake: Use own SQLite3 on macOS and Windows
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
2021-04-15 08:51:06 +02:00
Felix Weilbach
f3eed2ad1e Add feature summary to CMake
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
2021-04-14 09:51:31 +02:00
Nicolas Fella
3bc66bea66 Improve Inotify cmake code
Use the FindInotify from ECM. It handles the case of Linux vs BSD
correctly automatically.

Also only find Inotify on Linux and BSD

Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
2021-04-13 06:36:14 +00:00
Elsie Hupp
1183b3f7b9 Remove non-functional default CMAKE_BUILD_TYPE
Signed-off-by: Elsie Hupp <9206310+elsiehupp@users.noreply.github.com>
2021-04-12 11:26:08 +00:00
Nicolas Fella
b34a901838 Use FindPkgConfig to find libcloudproviders and related libs
Instead of using custom find modules.

This allows using imported targets which make the code much nicer.

Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
2021-04-12 10:00:08 +00:00
Hannah von Reth
dc42ebb793
Don't recurse the whole tree looking for a git dir, use PROJECT_SOURCE_DIR 2020-12-15 10:59:26 +01:00
Dominik Schmidt
ad033e40fd
Fix build with recent Clang (on Linux) 2020-12-15 10:58:56 +01:00
Dominik Schmidt
07f331717f
Rename ocsync library to ${APPLICATION_EXECUTABLE}_csync 2020-12-15 10:57:56 +01:00
Dominik Schmidt
aad928a6be
Install libocsync to lib/ without subfolder.
Installing to lib/${APPLICATION_EXECUTABLE} has caused a bunch of
irritations in the past and subtle annoying to fix bugs. To avoid name
clashes with branded clients ${APPLICATION_EXECUTABLE} becomes now
part of the filename instead of the subfolder.

The concrete motivation to change this now is that on Windows there
is no RPATH and it's not possible to run owncloud directly from the
Craft Root folder, which is nice when you're developing on Windows.

It would have been possible to change this just for Windows but as
written earlier this has caused lots of issues and thus I think it's
a good idea to just stay consistent accross platforms when touching it.
2020-12-15 10:57:56 +01:00