ObjFW  Check-in [d02c5ae007]

Overview
Comment:Sign binaries before uploading to iOS device.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d02c5ae007b6afb37db43e7df3114f9e40081c672bd20c26a18860f5acaa9327
User & Date: js on 2012-07-20 17:15:22
Other Links: manifest | tags
Context
2012-07-20
17:17
Add iOS to PLATFORMS.md. check-in: ab92512d10 user: js tags: trunk
17:15
Sign binaries before uploading to iOS device. check-in: d02c5ae007 user: js tags: trunk
14:53
Fix tests/objc_sync. check-in: a417f307de user: js tags: trunk
Changes

Modified src/runtime/exception.m from [cd4964c00b] to [757d54b209].

418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
		if (filter > 0 && !(actions & _UA_FORCE_UNWIND) && !foreign) {
			Class class;
			uintptr_t c;
			const uint8_t *tmp;

#if defined(__arm__) || defined(__ARM__)
			tmp = lsda->typestable - (filter * 4);
			c = *(uintptr_t*)tmp;

			if (c != 0) {
				c += (uintptr_t)tmp;
				c = *(uintptr_t*)c;
			}
#else
			uintptr_t i;







|







418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
		if (filter > 0 && !(actions & _UA_FORCE_UNWIND) && !foreign) {
			Class class;
			uintptr_t c;
			const uint8_t *tmp;

#if defined(__arm__) || defined(__ARM__)
			tmp = lsda->typestable - (filter * 4);
			c = *(uintptr_t*)(void*)tmp;

			if (c != 0) {
				c += (uintptr_t)tmp;
				c = *(uintptr_t*)c;
			}
#else
			uintptr_t i;

Modified tests/Makefile from [e4f2bfe9b1] to [2bea34c765].

59
60
61
62
63
64
65




66
67
68
69
70
71
72
73
	LIBRARY_PATH=.$${LIBRARY_PATH+:}$$LIBRARY_PATH \
	${TEST_LAUNCHER} ./${PROG_NOINST}; EXIT=$$?; \
	rm -f libobjfw.so.${OBJFW_LIB_MAJOR}; \
	rm -f libobjfw.so.${OBJFW_LIB_MAJOR_MINOR} libobjfw.dll \
	rm -f libobjfw.dylib; \
	exit $$EXIT





run-on-ios: all
	if [ -z "${IOS_HOST}" ]; then \
		echo "Please set IOS_HOST to the hostname of your iOS host!"; \
		exit 1; \
	fi
	echo "Uploading files to iOS device ${IOS_HOST} at ${IOS_TMP}..."
	ssh ${IOS_USER}@${IOS_HOST} \
		'rm -fr ${IOS_TMP} && mkdir -p ${IOS_TMP}/plugin'







>
>
>
>
|







59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
	LIBRARY_PATH=.$${LIBRARY_PATH+:}$$LIBRARY_PATH \
	${TEST_LAUNCHER} ./${PROG_NOINST}; EXIT=$$?; \
	rm -f libobjfw.so.${OBJFW_LIB_MAJOR}; \
	rm -f libobjfw.so.${OBJFW_LIB_MAJOR_MINOR} libobjfw.dll \
	rm -f libobjfw.dylib; \
	exit $$EXIT

sign-for-ios: all
	codesign -s "iPhone Developer" -f \
		../src/libobjfw.dylib tests plugin/TestPlugin.bundle

run-on-ios: all sign-for-ios
	if [ -z "${IOS_HOST}" ]; then \
		echo "Please set IOS_HOST to the hostname of your iOS host!"; \
		exit 1; \
	fi
	echo "Uploading files to iOS device ${IOS_HOST} at ${IOS_TMP}..."
	ssh ${IOS_USER}@${IOS_HOST} \
		'rm -fr ${IOS_TMP} && mkdir -p ${IOS_TMP}/plugin'