.DELETE_ON_ERROR:
SHELL := /bin/bash
+include codesign.mk
+
lipo := $(shell xcrun --sdk iphoneos -f lipo)
cycript :=
Cycript_/%: build.mac-i386/.libs/% build.mac-x86_64/.libs/% build.ios-armv6/.libs/%
@mkdir -p $(dir $@)
$(lipo) -create -output $@ $^
+ # XXX: this should probably not entitle the dylibs
+ codesign -s $(codesign) --entitlement cycript.xml $@
Cycript_/libcycript-sys.dylib:
@mkdir -p $(dir $@)
Cycript_/libcycript-sim.dylib: build.sim-i386/.libs/libcycript.dylib
@mkdir -p $(dir $@)
cp -af $< $@
+ codesign -s $(codesign) $@
libcycript-%.o: build.%/.libs/libcycript.a
@mkdir -p $(dir $@)