init
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled

This commit is contained in:
allhaileris
2026-02-16 15:50:16 +03:00
commit afb81b8278
13816 changed files with 3689732 additions and 0 deletions

85
cmake/options_mac.cmake Normal file
View File

@@ -0,0 +1,85 @@
# This file is part of Desktop App Toolkit,
# a set of libraries for developing nice desktop applications.
#
# For license and copyright information please follow this link:
# https://github.com/desktop-app/legal/blob/master/LEGAL
if (build_macstore)
target_compile_definitions(common_options
INTERFACE
OS_MAC_STORE
MAC_USE_BREAKPAD
)
endif()
if (NOT DESKTOP_APP_USE_PACKAGED)
target_include_directories(common_options SYSTEM
INTERFACE
${libs_loc}/local/include
)
endif()
target_compile_options(common_options
INTERFACE
-pipe
-Wall
-Wextra
-fPIE
$<$<COMPILE_LANGUAGE:OBJC,OBJCXX>:-fobjc-weak>
-fvisibility-inlines-hidden
-fvisibility=hidden
-Wno-unused-variable
-Wno-unused-parameter
-Wno-unused-function
-Wno-deprecated-this-capture
-Wno-switch
-Wno-comment
-Wno-missing-field-initializers
-Wno-sign-compare
-Wno-unknown-attributes
-Wno-pragma-system-header-outside-header
-Wno-shorten-64-to-32
)
if (DESKTOP_APP_SPECIAL_TARGET)
target_compile_options(common_options
INTERFACE
-g
-Werror
)
endif()
target_link_frameworks(common_options
INTERFACE
Cocoa
CoreFoundation
CoreLocation
CoreServices
CoreText
CoreGraphics
CoreMedia
OpenGL
AudioUnit
ApplicationServices
Foundation
Security
SystemConfiguration
Carbon
AudioToolbox
VideoToolbox
VideoDecodeAcceleration
AVFoundation
CoreAudio
CoreVideo
CoreMediaIO
QuartzCore
AppKit
CoreWLAN
WebKit
IOKit
GSS
MediaPlayer
IOSurface
Metal
LocalAuthentication
Vision
)