mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	QML UI: enable embed code for iOS
This should help us with better iOS apps as it allows Apple to run llvm against our code to improve performance. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									924370c0e4
								
							
						
					
					
						commit
						c443576181
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -74,9 +74,9 @@ echo next building for $ARCH
 | 
			
		|||
	declare -x CC=`xcrun -sdk $SDK_NAME -find clang`
 | 
			
		||||
	declare -x CXX=`xcrun -sdk $SDK_NAME -find clang++`
 | 
			
		||||
	declare -x LD=`xcrun -sdk $SDK_NAME -find ld`
 | 
			
		||||
	declare -x CFLAGS="-arch $ARCH_NAME -isysroot $SDK_DIR -miphoneos-version-min=6.0 -I$SDK_DIR/usr/include"
 | 
			
		||||
	declare -x CFLAGS="-arch $ARCH_NAME -isysroot $SDK_DIR -miphoneos-version-min=6.0 -I$SDK_DIR/usr/include -fembed-bitcode"
 | 
			
		||||
	declare -x CXXFLAGS="$CFLAGS"
 | 
			
		||||
	declare -x LDFLAGS="$CFLAGS  -lpthread -lc++ -L$SDK_DIR/usr/lib"
 | 
			
		||||
	declare -x LDFLAGS="$CFLAGS  -lpthread -lc++ -L$SDK_DIR/usr/lib -fembed-bitcode"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	# openssl build stuff.
 | 
			
		||||
| 
						 | 
				
			
			@ -186,10 +186,10 @@ echo next building for $ARCH
 | 
			
		|||
	    export CROSS_SDK="${OS}${SDK_VERSION}.sdk"
 | 
			
		||||
	    if [ "$ARCH_NAME" == "x86_64" ]; then
 | 
			
		||||
	      ./Configure darwin64-${ARCH}-cc --openssldir="${PREFIX}" --prefix="${PREFIX}"
 | 
			
		||||
	      sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} -arch $ARCH -mios-simulator-version-min=${DEPLOYMENT_VERSION} !" "Makefile"
 | 
			
		||||
	      sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} -arch $ARCH -mios-simulator-version-min=${DEPLOYMENT_VERSION} -fembed-bitcode !" "Makefile"
 | 
			
		||||
	    else
 | 
			
		||||
	      ./Configure iphoneos-cross -no-asm --openssldir="${PREFIX}"
 | 
			
		||||
	      sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} -arch $ARCH -miphoneos-version-min=${DEPLOYMENT_VERSION} !" "Makefile"
 | 
			
		||||
	      sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} -arch $ARCH -miphoneos-version-min=${DEPLOYMENT_VERSION} -fembed-bitcode !" "Makefile"
 | 
			
		||||
	      perl -i -pe 's|static volatile sig_atomic_t intr_signal|static volatile int intr_signal|' crypto/ui/ui_openssl.c
 | 
			
		||||
	    fi
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue