]> git.saurik.com Git - cycript.git/commitdiff
We need to codesign cycript with our entitlements.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 24 Sep 2013 22:48:59 +0000 (15:48 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 24 Sep 2013 22:49:37 +0000 (15:49 -0700)
.gitignore
xcode.mk

index c165f6e9f4931b5b0033dff4ee4aff9149557c7c..e7536fa3556da8851f8cdbd255647d62f5d44781 100644 (file)
@@ -7,6 +7,7 @@ libtool
 .dirstamp
 .libs
 autom4te.cache
+codesign.mk
 config.h
 control
 control.tmp
index 5155721abae19e9f6dc55defa123e75b80a6aa3b..edebc700ee588cb7256a723a15feb135d5983c78 100644 (file)
--- a/xcode.mk
+++ b/xcode.mk
@@ -20,6 +20,8 @@
 .DELETE_ON_ERROR:
 SHELL := /bin/bash
 
+include codesign.mk
+
 lipo := $(shell xcrun --sdk iphoneos -f lipo)
 
 cycript := 
@@ -97,6 +99,8 @@ $(foreach arch,armv6,$(eval $(call build_arm,$(arch))))
 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 $@)
@@ -105,6 +109,7 @@ Cycript_/libcycript-sys.dylib:
 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 $@)