|
| 1 | +// Xcode target configuration settings for the Max 6 SDK |
| 2 | +// Used as the basis for Xcode projects to build Max externals. |
| 3 | +// |
| 4 | +// Changes to the settings in this file will be applied to all SDK examples |
| 5 | +// To change settings for only one of the examples, override the settings using |
| 6 | +// Xcode's target inspector. |
| 7 | +// |
| 8 | +// by Timothy Place |
| 9 | +// Copyright © 2012, Cycling '74 |
| 10 | + |
| 11 | + |
| 12 | +// Name & Version |
| 13 | +PRODUCT_NAME = $(PROJECT_NAME) |
| 14 | +PRODUCT_VERSION = 8.0.2 |
| 15 | +ARCHS = x86_64 |
| 16 | + |
| 17 | + |
| 18 | +// Paths |
| 19 | +C74SUPPORT = $(SRCROOT)/../../c74support |
| 20 | +HEADER_SEARCH_PATHS = "$(C74SUPPORT)/max-includes" "$(C74SUPPORT)/msp-includes" "$(C74SUPPORT)/jit-includes" |
| 21 | +FRAMEWORK_SEARCH_PATHS = "$(C74SUPPORT)/max-includes" "$(C74SUPPORT)/msp-includes" "$(C74SUPPORT)/jit-includes" |
| 22 | +DSTROOT = $(SRCROOT)/../../../externals |
| 23 | +// (This next path is relative to DSTROOT) |
| 24 | +INSTALL_PATH = / |
| 25 | + |
| 26 | + |
| 27 | +// Special Files |
| 28 | +GCC_PREFIX_HEADER = $(C74SUPPORT)/max-includes/macho-prefix.pch |
| 29 | +INFOPLIST_FILE = $(SRCROOT)/../../Info.plist |
| 30 | + |
| 31 | + |
| 32 | +// Architecture and Deployment |
| 33 | +ARCHS = x86_64 |
| 34 | + |
| 35 | +// The following section sets the Mac SDK version to be used. |
| 36 | +// For most projects this has little to no impact because there are no direct dependencies on OS function calls. |
| 37 | +// In those projects with OS function calls, it should be okay to use the most recent SDK version because the |
| 38 | +// MACOSX_DEPLOYMENT_TARGET will disable functionality that is unavailable in the older target OS. |
| 39 | +// For this reason, the SDKROOT variable is commented out, telling Xcode to use the default (which is the most recent SDK). |
| 40 | +// |
| 41 | +// SDKROOT = macosx10.6 |
| 42 | + |
| 43 | +MACOSX_DEPLOYMENT_TARGET = 10.9 |
| 44 | + |
| 45 | + |
| 46 | +// Compiler Version -- leave them all commented out to get the default version provided by Xcode |
| 47 | +// GCC_VERSION = com.apple.compilers.llvmgcc42 |
| 48 | +// GCC_VERSION = com.apple.compilers.llvm.clang.1_0 |
| 49 | + |
| 50 | + |
| 51 | +// Preprocessor Defines |
| 52 | +GCC_PREPROCESSOR_DEFINITIONS = "DENORM_WANT_FIX = 1" "NO_TRANSLATION_SUPPORT = 1" |
| 53 | + |
| 54 | + |
| 55 | +// Static Configuration (don't change these) |
| 56 | +WRAPPER_EXTENSION = mxo; |
| 57 | +WARNING_CFLAGS = -Wmost -Wno-four-char-constants -Wno-unknown-pragmas |
| 58 | +DEPLOYMENT_LOCATION = YES |
| 59 | +GENERATE_PKGINFO_FILE = YES |
| 60 | + |
| 61 | + |
| 62 | +// Flags to enforce some build-time checks for the symbols used while not actually performing a hard link |
| 63 | +C74_SYM_LINKER_FLAGS = @$(C74SUPPORT)/max-includes/c74_linker_flags.txt |
| 64 | + |
| 65 | + |
| 66 | +// hide all symbols by default |
| 67 | +// mark a function to be exported with the C74_EXPORT macro |
| 68 | +// most likely this will only apply to the ext_main() function which we've already prototyped for you |
| 69 | +OTHER_CFLAGS = -fvisibility=hidden |
| 70 | + |
| 71 | +OTHER_LDFLAGS = -framework MaxAudioAPI -framework JitterAPI $(C74_SYM_LINKER_FLAGS) |
0 commit comments