From 44ffc2342ae93d881d6eaa56ecb679de291ba73a Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 30 Jun 2013 21:33:47 -0700 Subject: [PATCH] Remove simulat{or,e}.sh, as they are no longer used. --- simulate.sh | 26 ---------------- simulator.sh | 87 ---------------------------------------------------- 2 files changed, 113 deletions(-) delete mode 100755 simulate.sh delete mode 100755 simulator.sh diff --git a/simulate.sh b/simulate.sh deleted file mode 100755 index 801bd9c..0000000 --- a/simulate.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/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 . -# }}} - -export DYLD_ROOT_PATH=$(xcode-select --print-path)/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -export DYLD_FALLBACK_LIBRARY_PATH=/usr/lib -export DYLD_FALLBACK_FRAMEWORK_PATH=/System/Library/Frameworks - -exec arch -i386 cycript "$@" diff --git a/simulator.sh b/simulator.sh deleted file mode 100755 index 0956b82..0000000 --- a/simulator.sh +++ /dev/null @@ -1,87 +0,0 @@ -#!/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 . -# }}} - -set -e - -rm -rf sysroot.sim -mkdir -p sysroot.sim - -xsp=$(xcode-select --print-path) -plt=iPhoneSimulator -dev=${xsp}/Platforms/${plt}.platform/Developer -sdk=${dev}/SDKs/${plt}6.1.sdk -mac=${xsp}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk - -mkdir -p sysroot.sim/usr/include -cp -a "${mac}"/usr/include/ffi sysroot.sim/usr/include - -mkdir -p sysroot.sim/usr/lib -cp -a /usr/lib/libffi.dylib sysroot.sim/usr/lib -cp -a /usr/lib/libapr-1.* sysroot.sim/usr/lib - -ln -s /System/Library/Frameworks/WebKit.framework/Versions/A/Headers sysroot.sim/usr/include/WebKit - -mkdir -p sysroot.sim/Library/Frameworks/JavaScriptCore.framework -ln -s "${sdk}"/System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore sysroot.sim/Library/Frameworks/JavaScriptCore.framework -ln -s /System/Library/Frameworks/JavaScriptCore.framework/Headers sysroot.sim/Library/Frameworks/JavaScriptCore.framework - -export CC=/usr/bin/clang -export CXX=/usr/bin/clang++ -export OBJCXX=/usr/bin/clang++ - -flags=(-arch i386) -flags+=(-isysroot "${sdk}") -flags+=(-Fsysroot.sim/Library/Frameworks) - -cflags=("${flags[@]}") -cflags+=(-Isysroot.sim/usr/include) -cflags+=(-fobjc-abi-version=2) -cflags+=(-Wno-overloaded-virtual) -cflags+=(-Wno-unneeded-internal-declaration) - -lflags=("${flags[@]}") -lflags+=(-Lsysroot.sim/usr/lib) -lflags+=(-F"${sdk}"/System/Library/PrivateFrameworks) -lflags+=(-framework WebCore) - -cflags=${cflags[*]} -export CFLAGS=${cflags} -export CXXFLAGS=${cflags} -export OBJCXXFLAGS=${cflags} - -export OBJCXXFLAGS="${OBJCXXFLAGS} -fobjc-legacy-dispatch" - -lflags=${lflags[*]} -export LDFLAGS=${lflags} - -tflags=() -for flag in "${flags[@]}"; do - tflags+=("-Xcompiler ${flag}") -done - -tflags=${tflags[*]} -export LTFLAGS=${tflags} - -export DYLD_ROOT_PATH=${sdk} -export DYLD_FALLBACK_LIBRARY_PATH=/usr/lib -export DYLD_FALLBACK_FRAMEWORK_PATH=/System/Library/Frameworks - -./configure "$@" -- 2.47.2