annotate server.pro @ 2265:d33dff02b39b sandbox-notarize

Work on sandboxing (possibly) and using the hardened runtime for notarization. Supply appropriate bundle ID for helpers as well as main application, and request inherited sandbox entitlements. Currently works with sandboxing (apparently) but not yet with the hardened runtime, where we can't load plugins signed by third parties even with the com.apple.security.cs.disable-library-validation entitlement because their team IDs don't match the host. Possibly that exception is supposed to be requested some other way?
author Chris Cannam
date Thu, 25 Apr 2019 16:46:02 +0100
parents d25951da2422
children
rev   line source
Chris@2204 1
Chris@2204 2 TEMPLATE = app
Chris@2204 3
Chris@2204 4 CONFIG += stl exceptions console warn_on
Chris@2204 5 CONFIG -= qt
Chris@2204 6
Chris@2204 7 exists(config.pri) {
Chris@2204 8 include(config.pri)
Chris@2204 9 }
Chris@2204 10
Chris@2204 11 !exists(config.pri) {
Chris@2204 12 include(noconfig.pri)
Chris@2204 13
Chris@2204 14 macx*: LIBS -= -framework CoreAudio -framework CoreMidi -framework AudioUnit -framework AudioToolbox -framework CoreFoundation -framework CoreServices -framework Accelerate -lbz2 -lz
Chris@2204 15 }
Chris@2204 16
Chris@2204 17 # Can't support this flag with the JSON11 and basen modules as they stand
Chris@2204 18 QMAKE_CXXFLAGS -= -Werror
Chris@2204 19
Chris@2204 20 # Using the "console" CONFIG flag above should ensure this happens for
Chris@2204 21 # normal Windows builds, but this may be necessary when cross-compiling
Chris@2204 22 win32-x-g++: QMAKE_LFLAGS += -Wl,-subsystem,console
Chris@2204 23
Chris@2204 24 macx*: CONFIG -= app_bundle
Chris@2204 25
Chris@2204 26 linux*: LIBS += -ldl
Chris@2204 27
Chris@2204 28 TARGET = piper-vamp-simple-server
Chris@2204 29
Chris@2204 30 OBJECTS_DIR = o
Chris@2204 31 MOC_DIR = o
Chris@2204 32
Chris@2204 33 INCLUDEPATH += piper-vamp-cpp piper-vamp-cpp/ext vamp-plugin-sdk
Chris@2204 34
Chris@2204 35 include(vamp-plugin-sdk-files.pri)
Chris@2204 36
Chris@2204 37 for (file, VAMP_SOURCES) { SOURCES += $$file }
Chris@2204 38 for (file, VAMP_HEADERS) { HEADERS += $$file }
Chris@2204 39
Chris@2204 40 HEADERS += \
Chris@2204 41 piper-vamp-cpp/vamp-capnp/piper.capnp.h \
Chris@2204 42 piper-vamp-cpp/vamp-capnp/VampnProto.h
Chris@2204 43
Chris@2204 44 SOURCES += \
Chris@2204 45 piper-vamp-cpp/vamp-capnp/piper-capnp.cpp \
Chris@2204 46 piper-vamp-cpp/ext/json11/json11.cpp \
Chris@2204 47 piper-vamp-cpp/vamp-server/simple-server.cpp
Chris@2265 48
Chris@2265 49 include(platform-helpers.pri)