*.deb
.theos
_
+libvncserver.arm*
--- /dev/null
+[submodule "libvncserver"]
+ path = libvncserver
+ url = https://github.com/SaurikIT/libvncserver.git
typedef void *CoreSurfaceAcceleratorRef;
-extern "C" int CoreSurfaceAcceleratorCreate(CFAllocatorRef allocator, int type, CoreSurfaceAcceleratorRef *accel);
+extern "C" int CoreSurfaceAcceleratorCreate(CFAllocatorRef allocator, void *type, CoreSurfaceAcceleratorRef *accel);
extern "C" unsigned int CoreSurfaceAcceleratorTransferSurface(CoreSurfaceAcceleratorRef accelerator, CoreSurfaceBufferRef dest, CoreSurfaceBufferRef src, CFDictionaryRef options/*, void *, void *, void **/);
typedef void *IOMobileFramebufferRef;
Architecture: iphoneos-arm
Description: a VNC /server/ for the iPhone
Name: Veency
-Depends: mobilesubstrate (>= 0.9.2966-1), libvncserver, com.saurik.iphone.ske, preferenceloader, jp.ashikase.mousesupport | firmware (<< 3.0), libstatusbar | firmware (<< 4.0), firmware (<< 6.0) | ch.ringwald.springboardaccess
+Depends: mobilesubstrate (>= 0.9.2966-1), com.saurik.iphone.ske, preferenceloader, jp.ashikase.mousesupport | firmware (<< 3.0), libstatusbar | firmware (<< 4.0), firmware (<< 6.0) | ch.ringwald.springboardaccess
Author: Jay Freeman (saurik) <saurik@saurik.com>
Depiction: http://cydia.saurik.com/info/veency/
Tag: purpose::daemon, role::enduser
--- /dev/null
+Subproject commit 30e11cfcd39a8bf7ec3038bff6803d031a4d4dfe
--- /dev/null
+#!/usr/bin/env bash
+
+# Cycript - Optimizing JavaScript Compiler/Runtime
+# Copyright (C) 2009-2013 Jay Freeman (saurik)
+
+# GNU General Public License, Version 3 {{{
+#
+# Cycript is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published
+# by the Free Software Foundation, either version 3 of the License,
+# or (at your option) any later version.
+#
+# Cycript is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Cycript. If not, see <http://www.gnu.org/licenses/>.
+# }}}
+
+set -e
+
+archs=()
+function arch() {
+ local arch=$1
+ local host=$2
+ local sdk=$3
+ local os=$4
+ local min=$5
+ shift 5
+
+ rm -rf "libvncserver.${arch}"
+ if ! isysroot=$(xcodebuild -sdk "${sdk}" -version Path); then
+ return
+ fi
+
+ archs+=("${arch}")
+ mkdir "libvncserver.${arch}"
+
+ flags=()
+ flags+=(-isysroot "${isysroot}")
+ flags+=(-m${os}-version-min="${min}")
+ flags+=(-O3 -g3)
+ flags+=(-fvisibility=hidden)
+
+ if [[ ${arch} == arm* && ${arch} != arm64 ]]; then
+ flags+=(-mthumb)
+ fi
+
+ cd "libvncserver.${arch}"
+ CC="clang -arch ${arch}" CXX="clang++ -arch ${arch}" CFLAGS="${flags[*]}" CPPFLAGS="${flags[*]} $*" ../libvncserver/configure --host="${host}" --disable-shared
+ make
+ cd ..
+}
+
+arch armv6 arm-apple-darwin10 iphoneos iphoneos 2.0 -mllvm -arm-reserve-r9
+arch arm64 aarch64-apple-darwin11 iphoneos iphoneos 2.0
+
+libvncserver=()
+for arch in "${archs[@]}"; do
+ libvncserver+=(libvncserver."${arch}"/.libs/libvncserver.a)
+done
+
+lipo -create -output libvncserver.a "${libvncserver[@]}"
TARGET := iphone:7.0:2.0
-ARCHS := armv6 #arm64
+ARCHS := armv6 arm64
PACKAGE_VERSION := $(shell ./version.sh)
include theos/makefiles/common.mk
ADDITIONAL_OBJCFLAGS += -Wno-gnu
ADDITIONAL_OBJCFLAGS += -Wno-dangling-else
-ADDITIONAL_OBJCFLAGS += -Isysroot/usr/include
ADDITIONAL_OBJCFLAGS += -idirafter .
+ADDITIONAL_OBJCFLAGS += -Ilibvncserver
+ADDITIONAL_OBJCFLAGS += -Xarch_armv6 -Ilibvncserver.armv6
+ADDITIONAL_OBJCFLAGS += -Xarch_arm64 -Ilibvncserver.arm64
+
ADDITIONAL_CFLAGS += -fvisibility=hidden
-ADDITIONAL_LDFLAGS += -Lsysroot/usr/lib -lvncserver
+ADDITIONAL_LDFLAGS += -Xarch_armv6 -Llibvncserver.armv6/libvncserver/.libs
+ADDITIONAL_LDFLAGS += -Xarch_arm64 -Llibvncserver.arm64/libvncserver/.libs
+ADDITIONAL_LDFLAGS += -lvncserver -lz
+
ADDITIONAL_LDFLAGS += -F/System/Library/PrivateFrameworks
ADDITIONAL_LDFLAGS += -weak_reference_mismatches weak