forked from AudioKit/AudioKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AudioKit.xcconfig
20 lines (17 loc) · 1.02 KB
/
AudioKit.xcconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Generate Xcode project with:
// swift package generate-xcodeproj --xcconfig-overrides AudioKit.xcconfig
HEADER_SEARCH_PATHS = $(SRCROOT)/Sources/CAudioKit/**
// This should allow to build Catalyst
SDKROOT = iphoneos
MACH_O_TYPE = staticlib
DEFINES_MODULE = YES
CLANG_ENABLE_MODULES = YES
APPLY_RULES_IN_COPY_HEADERS = YES
BUILD_LIBRARY_FOR_DISTRIBUTION = YES
CLANG_ENABLE_MODULE_DEBUGGING[config=Release] = NO
OTHER_SWIFT_FLAGS[config=Release] = $(inherited) -Xfrontend -no-clang-module-breadcrumbs
// Why aren't these picked up automatically in the generated project?
COCOA_IS_CATALYST_YES = -framework UIKit
COCOA_IS_CATALYST_NO = -framework Cocoa
OTHER_LDFLAGS[sdk=iphone*] = -framework AudioToolbox -framework AVFoundation -framework Accelerate -framework CoreAudio -framework CoreGraphics -framework QuartzCore -framework UIKit
OTHER_LDFLAGS[sdk=macosx*] = -framework AudioToolbox -framework AVFoundation -framework Accelerate -framework CoreAudio -framework CoreGraphics -framework QuartzCore $(COCOA_IS_CATALYST_$(IS_MACCATALYST))