Skip to content
Snippets Groups Projects
Commit a1695208 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

new build scripts and config for xcode7

parent e0d4f592
No related branches found
No related tags found
No related merge requests found
Showing
with 79 additions and 119 deletions
...@@ -31,21 +31,14 @@ ...@@ -31,21 +31,14 @@
if ((self = [super initWithCoder:coder])) { if ((self = [super initWithCoder:coder])) {
// Get the layer // Get the layer
CAEAGLLayer *eaglLayer = (CAEAGLLayer *)self.layer; CAEAGLLayer *eaglLayer = (CAEAGLLayer *)self.layer;
int w = 320;
int h = 480; // detect retina display
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 3.2f) { if ([[UIScreen mainScreen] respondsToSelector:@selector(displayLinkWithTarget:selector:)] &&
// There is no retina display above 3.2 ([UIScreen mainScreen].scale == 2.0)) {
UIScreen* mainscr = [UIScreen mainScreen];
w = mainscr.currentMode.size.width;
h = mainscr.currentMode.size.height;
}
if ((w == 640 && h == 960) ||
(h == 1136 && w == 640) ||
(h == 1536 && w == 2048)) {
// Retina display (iPhone or iPhone 4-inch or iPad/iPad mini)
self.contentScaleFactor = 2.0; self.contentScaleFactor = 2.0;
eaglLayer.contentsScale = 2; eaglLayer.contentsScale = 2;
} }
eaglLayer.opaque = YES; eaglLayer.opaque = YES;
eaglLayer.drawableProperties = eaglLayer.drawableProperties =
[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:NO], [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:NO],
......
contrib/mobile/iOS/Onelab/Images_BBEMG.xcassets/AppIcon.appiconset/icon_app_ipad.png

11 KiB | W: | H:

contrib/mobile/iOS/Onelab/Images_BBEMG.xcassets/AppIcon.appiconset/icon_app_ipad.png

9.64 KiB | W: | H:

contrib/mobile/iOS/Onelab/Images_BBEMG.xcassets/AppIcon.appiconset/icon_app_ipad.png
contrib/mobile/iOS/Onelab/Images_BBEMG.xcassets/AppIcon.appiconset/icon_app_ipad.png
contrib/mobile/iOS/Onelab/Images_BBEMG.xcassets/AppIcon.appiconset/icon_app_ipad.png
contrib/mobile/iOS/Onelab/Images_BBEMG.xcassets/AppIcon.appiconset/icon_app_ipad.png
  • 2-up
  • Swipe
  • Onion skin
contrib/mobile/iOS/Onelab/Images_BBEMG.xcassets/AppIcon.appiconset/icon_app_ipad_retina.png

14.8 KiB | W: | H:

contrib/mobile/iOS/Onelab/Images_BBEMG.xcassets/AppIcon.appiconset/icon_app_ipad_retina.png

13.2 KiB | W: | H:

contrib/mobile/iOS/Onelab/Images_BBEMG.xcassets/AppIcon.appiconset/icon_app_ipad_retina.png
contrib/mobile/iOS/Onelab/Images_BBEMG.xcassets/AppIcon.appiconset/icon_app_ipad_retina.png
contrib/mobile/iOS/Onelab/Images_BBEMG.xcassets/AppIcon.appiconset/icon_app_ipad_retina.png
contrib/mobile/iOS/Onelab/Images_BBEMG.xcassets/AppIcon.appiconset/icon_app_ipad_retina.png
  • 2-up
  • Swipe
  • Onion skin
contrib/mobile/iOS/Onelab/Images_BBEMG.xcassets/AppIcon.appiconset/icon_app_iphone_retina.png

13.2 KiB | W: | H:

contrib/mobile/iOS/Onelab/Images_BBEMG.xcassets/AppIcon.appiconset/icon_app_iphone_retina.png

11.8 KiB | W: | H:

contrib/mobile/iOS/Onelab/Images_BBEMG.xcassets/AppIcon.appiconset/icon_app_iphone_retina.png
contrib/mobile/iOS/Onelab/Images_BBEMG.xcassets/AppIcon.appiconset/icon_app_iphone_retina.png
contrib/mobile/iOS/Onelab/Images_BBEMG.xcassets/AppIcon.appiconset/icon_app_iphone_retina.png
contrib/mobile/iOS/Onelab/Images_BBEMG.xcassets/AppIcon.appiconset/icon_app_iphone_retina.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -9,10 +9,9 @@ ALL: blas_lib lapack_lib ...@@ -9,10 +9,9 @@ ALL: blas_lib lapack_lib
######################################################################################## ########################################################################################
# Specify options to compile and create libraries # Specify options to compile and create libraries
######################################################################################## ########################################################################################
ARCH = "armv7"
CC = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang CC = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
COPTFLAGS = -O -arch $(ARCH) -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -miphoneos-version-min=7.0 COPTFLAGS = -O -arch armv7 -arch armv7s -arch arm64 -fembed-bitcode -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -miphoneos-version-min=7.0
CNOOPT = -O0 -arch $(ARCH) -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -miphoneos-version-min=7.0 CNOOPT = -O0 -arch armv7 -arch armv7s -arch arm64 -fembed-bitcode -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -miphoneos-version-min=7.0
RM = /bin/rm RM = /bin/rm
AR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar AR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar
AR_FLAGS = cr AR_FLAGS = cr
...@@ -32,12 +31,10 @@ MAKE_OPTIONS_LAPACK = $(MAKE_OPTIONS) LIBNAME="$(LAPACK_LIB_NAME)" ...@@ -32,12 +31,10 @@ MAKE_OPTIONS_LAPACK = $(MAKE_OPTIONS) LIBNAME="$(LAPACK_LIB_NAME)"
blas_lib: blas_lib:
-@cd blas; $(MAKE) lib $(MAKE_OPTIONS_BLAS) -@cd blas; $(MAKE) lib $(MAKE_OPTIONS_BLAS)
-@$(RANLIB) $(BLAS_LIB_NAME) -@$(RANLIB) $(BLAS_LIB_NAME)
-@mv $(BLAS_LIB_NAME) $(ARCH)-unknown-darwin/
lapack_lib: lapack_lib:
-@cd lapack; $(MAKE) lib $(MAKE_OPTIONS_LAPACK) -@cd lapack; $(MAKE) lib $(MAKE_OPTIONS_LAPACK)
-@$(RANLIB) $(LAPACK_LIB_NAME) -@$(RANLIB) $(LAPACK_LIB_NAME)
-@mv $(LAPACK_LIB_NAME) $(ARCH)-unknown-darwin/
clean: cleanblaslapck cleanlib clean: cleanblaslapck cleanlib
......
...@@ -48,15 +48,15 @@ set (CMAKE_CXX_OSX_COMPATIBILITY_VERSION_FLAG "${CMAKE_C_OSX_COMPATIBILITY_VERSI ...@@ -48,15 +48,15 @@ set (CMAKE_CXX_OSX_COMPATIBILITY_VERSION_FLAG "${CMAKE_C_OSX_COMPATIBILITY_VERSI
set (CMAKE_CXX_OSX_CURRENT_VERSION_FLAG "${CMAKE_C_OSX_CURRENT_VERSION_FLAG}") set (CMAKE_CXX_OSX_CURRENT_VERSION_FLAG "${CMAKE_C_OSX_CURRENT_VERSION_FLAG}")
# Hidden visibilty is required for cxx on iOS # Hidden visibilty is required for cxx on iOS
set (CMAKE_C_FLAGS "-O2") #set (CMAKE_C_FLAGS "-O2")
set (CMAKE_CXX_FLAGS "-O2 -headerpad_max_install_names -fvisibility=hidden -fvisibility-inlines-hidden") #set (CMAKE_CXX_FLAGS "-O2 -fvisibility=hidden -fvisibility-inlines-hidden")
set (CMAKE_C_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_C_LINK_FLAGS}") set (CMAKE_C_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_C_LINK_FLAGS}")
set (CMAKE_CXX_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_CXX_LINK_FLAGS}") set (CMAKE_CXX_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_CXX_LINK_FLAGS}")
set (CMAKE_PLATFORM_HAS_INSTALLNAME 1) set (CMAKE_PLATFORM_HAS_INSTALLNAME 1)
set (CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-dynamiclib -headerpad_max_install_names") set (CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-dynamiclib")
set (CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle -headerpad_max_install_names") set (CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle")
set (CMAKE_SHARED_MODULE_LOADER_C_FLAG "-Wl,-bundle_loader,") set (CMAKE_SHARED_MODULE_LOADER_C_FLAG "-Wl,-bundle_loader,")
set (CMAKE_SHARED_MODULE_LOADER_CXX_FLAG "-Wl,-bundle_loader,") set (CMAKE_SHARED_MODULE_LOADER_CXX_FLAG "-Wl,-bundle_loader,")
set (CMAKE_FIND_LIBRARY_SUFFIXES ".dylib" ".so" ".a") set (CMAKE_FIND_LIBRARY_SUFFIXES ".dylib" ".so" ".a")
...@@ -128,4 +128,3 @@ set (CMAKE_SYSTEM_FRAMEWORK_PATH ...@@ -128,4 +128,3 @@ set (CMAKE_SYSTEM_FRAMEWORK_PATH
set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY) set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
...@@ -12,8 +12,10 @@ frameworks_dir="${HOME}/src/gmsh/contrib/mobile/frameworks_ios/" ...@@ -12,8 +12,10 @@ frameworks_dir="${HOME}/src/gmsh/contrib/mobile/frameworks_ios/"
petsc_framework="$frameworks_dir/petsc.framework" petsc_framework="$frameworks_dir/petsc.framework"
slepc_framework="$frameworks_dir/slepc.framework" slepc_framework="$frameworks_dir/slepc.framework"
gmsh_framework="$frameworks_dir/Gmsh.framework"
getdp_framework="$frameworks_dir/GetDP.framework"
cmake_default="-DDEFAULT=0 -DCMAKE_TOOLCHAIN_FILE=$gmsh_svn/contrib/mobile/utils/iOS.cmake -DIOS_PLATFORM=OS -DENABLE_BUILD_IOS=1 -DCMAKE_BUILD_TYPE=Release -GXcode" cmake_default="-DDEFAULT=0 -DCMAKE_TOOLCHAIN_FILE=$gmsh_svn/contrib/mobile/utils/iOS.cmake -DIOS_PLATFORM=OS -DENABLE_BUILD_IOS=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=armv7;armv7s;arm64 -GXcode"
build_cmd="xcodebuild -verbose -target lib -configuration Release" build_cmd="xcodebuild -verbose -target lib -configuration Release"
headers_cmd="xcodebuild -verbose -target get_headers -configuration Release" headers_cmd="xcodebuild -verbose -target get_headers -configuration Release"
...@@ -26,59 +28,34 @@ function check { ...@@ -26,59 +28,34 @@ function check {
fi fi
} }
function build_gmsh { # build gmsh framework
if [ $# -ne 1 ]; then cd $gmsh_svn && svn up
echo "You must specify an architecture (e.g. armv7, armv7s, arm64, ...)" mkdir -p $gmsh_svn/build_ios
return cd $gmsh_svn/build_ios
fi cmake $cmake_default -DENABLE_BLAS_LAPACK=1 -DENABLE_BUILD_LIB=1 -DENABLE_MATHEX=1 -DENABLE_MESH=1 -DENABLE_ONELAB=1 -DENABLE_PARSER=1 -DENABLE_POST=1 -DENABLE_ANN=1 -DENABLE_TETGEN=1 -DENABLE_KBIPACK=1 -DENABLE_GMP=0 -DENABLE_ZIPPER=1 ..
if [ ! -d "$gmsh_svn/build_ios_$1" ]; then
mkdir $gmsh_svn/build_ios_$1
fi
cd $gmsh_svn/build_ios_$1
cmake $cmake_default -DENABLE_BLAS_LAPACK=1 -DENABLE_BUILD_LIB=1 -DENABLE_MATHEX=1 -DENABLE_MESH=1 -DENABLE_ONELAB=1 -DENABLE_PARSER=1 -DENABLE_POST=1 -DENABLE_ANN=1 -DENABLE_TETGEN=1 -DENABLE_KBIPACK=1 -DENABLE_GMP=0 -DENABLE_ZIPPER=1 -DCMAKE_OSX_ARCHITECTURES="$1" ..
check
$build_cmd
check
$headers_cmd
cd -
}
function build_getdp {
if [ $# -ne 1 ]; then
echo "You must specify an architecture (e.g. armv7, armv7s, arm64, ...)"
return
fi
if [ ! -d "$getdp_svn/build_ios_$1" ]; then
mkdir $getdp_svn/build_ios_$1
fi
cd $getdp_svn/build_ios_$1
PETSC_DIR= PETSC_ARCH= SLEPC_DIR= cmake $cmake_default -DENABLE_BLAS_LAPACK=1 -DENABLE_BUILD_LIB=1 -DENABLE_GMSH=1 -DENABLE_LEGACY=1 -DENABLE_PETSC=1 -DPETSC_INC="$petsc_framework/Headers/" -DPETSC_LIBS="$petsc_framework/petsc" -DENABLE_SLEPC=1 -DSLEPC_INC="$slepc_framework/Headers/" -DSLEPC_LIB="$slepc_framework/slepc" -DGMSH_INC="$gmsh_svn/build_ios_$1/Headers/" -DGMSH_LIB="$gmsh_svn/build_ios_$1/Release-iphoneos/libGmsh.a" -DCMAKE_OSX_ARCHITECTURES="$1" ..
check check
$build_cmd $build_cmd OTHER_CPLUSPLUSFLAGS="-miphoneos-version-min=7.0 -fembed-bitcode"
check check
$headers_cmd $headers_cmd
cd - mkdir -p $gmsh_framework/Headers
} cp $gmsh_svn/build_ios/Release-iphoneos/libGmsh.a $gmsh_framework/Gmsh
cd $gmsh_framework/Headers
# build gmsh framework cp $gmsh_svn/build_ios/Headers/gmsh/* .
cd $gmsh_svn && svn up
build_gmsh armv7
build_gmsh armv7s
build_gmsh arm64
mkdir -p $frameworks_dir/Gmsh.framework/Headers
lipo -create $gmsh_svn/build_ios_armv7/Release-iphoneos/libGmsh.a $gmsh_svn/build_ios_arm64/Release-iphoneos/libGmsh.a $gmsh_svn/build_ios_armv7s/Release-iphoneos/libGmsh.a -output $frameworks_dir/Gmsh.framework/Gmsh
cd $frameworks_dir/Gmsh.framework/Headers
cp $gmsh_svn/build_ios_armv7/Headers/gmsh/* .
ln -s . gmsh ln -s . gmsh
# build getdp framework # build getdp framework
cd $getdp_svn && svn up cd $getdp_svn && svn up
build_getdp armv7 mkdir -p $getdp_svn/build_ios
build_getdp armv7s cd $getdp_svn/build_ios
build_getdp arm64 PETSC_DIR= PETSC_ARCH= SLEPC_DIR= cmake $cmake_default -DENABLE_BLAS_LAPACK=1 -DENABLE_BUILD_LIB=1 -DENABLE_GMSH=1 -DENABLE_LEGACY=1 -DENABLE_PETSC=1 -DPETSC_INC="$petsc_framework/Headers/" -DPETSC_LIBS="$petsc_framework/petsc" -DENABLE_SLEPC=1 -DSLEPC_INC="$slepc_framework/Headers/" -DSLEPC_LIB="$slepc_framework/slepc" -DGMSH_INC="$gmsh_framework/Headers/" -DGMSH_LIB="$gmsh_framework/Gmsh" ..
mkdir -p $frameworks_dir/GetDP.framework/Headers check
lipo -create $getdp_svn/build_ios_armv7/Release-iphoneos/libGetDP.a $getdp_svn/build_ios_arm64/Release-iphoneos/libGetDP.a $getdp_svn/build_ios_armv7s/Release-iphoneos/libGetDP.a -output $frameworks_dir/GetDP.framework/GetDP $build_cmd OTHER_CPLUSPLUSFLAGS="-miphoneos-version-min=7.0 -fembed-bitcode"
cd $frameworks_dir/GetDP.framework/Headers check
cp $getdp_svn/build_ios_armv7/Headers/getdp/* . $headers_cmd
mkdir -p $getdp_framework/Headers
cp $getdp_svn/build_ios/Release-iphoneos/libGetDP.a $getdp_framework/GetDP
cd $getdp_framework/Headers
cp $getdp_svn/build_ios/Headers/getdp/* .
# create xcode project # create xcode project
mkdir $gmsh_svn/contrib/mobile/build_ios_${appname} mkdir $gmsh_svn/contrib/mobile/build_ios_${appname}
......
...@@ -12,48 +12,49 @@ frameworks_dir="${HOME}/src/gmsh/contrib/mobile/frameworks_iossimulator/" ...@@ -12,48 +12,49 @@ frameworks_dir="${HOME}/src/gmsh/contrib/mobile/frameworks_iossimulator/"
petsc_framework="$frameworks_dir/petsc.framework" petsc_framework="$frameworks_dir/petsc.framework"
slepc_framework="$frameworks_dir/slepc.framework" slepc_framework="$frameworks_dir/slepc.framework"
gmsh_framework="$frameworks_dir/Gmsh.framework"
getdp_framework="$frameworks_dir/GetDP.framework"
cmake_default="-DDEFAULT=0 -DCMAKE_C_FLAGS='-m32' -DCMAKE_CXX_FLAGS='-m32'" cmake_default="-DDEFAULT=0 -DCMAKE_TOOLCHAIN_FILE=$gmsh_svn/contrib/mobile/utils/iOS.cmake -DIOS_PLATFORM=SIMULATOR -DENABLE_BUILD_IOS=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=i386;x86_64 -GXcode"
build_cmd="make lib -j4" build_cmd="xcodebuild -verbose -target lib -configuration Release OTHER_CPLUSPLUSFLAGS=\"-mios-simulator-version-min=7.0\""
headers_cmd="make get_headers" headers_cmd="xcodebuild -verbose -target get_headers -configuration Release"
function build_gmsh { function check {
if [ ! -d "$gmsh_svn/build_iossimulator" ]; then return_code=$?
mkdir $gmsh_svn/build_iossimulator if [ $return_code != 0 ]; then
echo "last command failed (return $return_code)"
exit $return_code
fi fi
cd $gmsh_svn/build_iossimulator
cmake $cmake_default -DENABLE_BLAS_LAPACK=1 -DENABLE_BUILD_LIB=1 -DENABLE_MATHEX=1 -DENABLE_MESH=1 -DENABLE_ONELAB=1 -DENABLE_PARSER=1 -DENABLE_POST=1 -DENABLE_ANN=1 -DENABLE_TETGEN=1 -DENABLE_KBIPACK=1 -DENABLE_GMP=0 -DENABLE_ZIPPER=1 ..
$build_cmd
$headers_cmd
cd -
}
function build_getdp {
if [ ! -d "$getdp_svn/build_iossimulator" ]; then
mkdir $getdp_svn/build_iossimulator
fi
cd $getdp_svn/build_iossimulator
PETSC_DIR= PETSC_ARCH= SLEPC_DIR= cmake $cmake_default -DENABLE_BLAS_LAPACK=1 -DENABLE_BUILD_LIB=1 -DENABLE_GMSH=1 -DENABLE_LEGACY=1 -DENABLE_PETSC=1 -DPETSC_INC="$petsc_framework/Headers/" -DPETSC_LIBS="$petsc_framework/petsc" -DENABLE_SLEPC=1 -DSLEPC_INC="$slepc_framework/Headers/" -DSLEPC_LIB="$slepc_framework/slepc" -DGMSH_INC="$gmsh_svn/build_iossimulator/Headers/" -DGMSH_LIB="$gmsh_svn/build_iossimulator/libGmsh.a" ..
$build_cmd
$headers_cmd
cd -
} }
# build gmsh framework # build gmsh framework
cd $gmsh_svn && svn up cd $gmsh_svn && svn up
build_gmsh mkdir -p $gmsh_svn/build_iossimulator
mkdir -p $frameworks_dir/Gmsh.framework/Headers cd $gmsh_svn/build_iossimulator
cp $gmsh_svn/build_iossimulator/libGmsh.a $frameworks_dir/Gmsh.framework/Gmsh cmake $cmake_default -DENABLE_BLAS_LAPACK=1 -DENABLE_BUILD_LIB=1 -DENABLE_MATHEX=1 -DENABLE_MESH=1 -DENABLE_ONELAB=1 -DENABLE_PARSER=1 -DENABLE_POST=1 -DENABLE_ANN=1 -DENABLE_TETGEN=1 -DENABLE_KBIPACK=1 -DENABLE_GMP=0 -DENABLE_ZIPPER=1 ..
cd $frameworks_dir/Gmsh.framework/Headers check
$build_cmd
check
$headers_cmd
mkdir -p $gmsh_framework/Headers
cp $gmsh_svn/build_iossimulator/Release-iphonesimulator/libGmsh.a $gmsh_framework/Gmsh
cd $gmsh_framework/Headers
cp $gmsh_svn/build_iossimulator/Headers/gmsh/* . cp $gmsh_svn/build_iossimulator/Headers/gmsh/* .
ln -s . gmsh ln -s . gmsh
# build getdp framework # build getdp framework
cd $getdp_svn && svn up cd $getdp_svn && svn up
build_getdp mkdir -p $getdp_svn/build_iossimulator
mkdir -p $frameworks_dir/GetDP.framework/Headers cd $getdp_svn/build_iossimulator
cp $getdp_svn/build_iossimulator/libGetDP.a $frameworks_dir/GetDP.framework/GetDP PETSC_DIR= PETSC_ARCH= SLEPC_DIR= cmake $cmake_default -DENABLE_BLAS_LAPACK=1 -DENABLE_BUILD_LIB=1 -DENABLE_GMSH=1 -DENABLE_LEGACY=1 -DENABLE_PETSC=1 -DPETSC_INC="$petsc_framework/Headers/" -DPETSC_LIBS="$petsc_framework/petsc" -DENABLE_SLEPC=1 -DSLEPC_INC="$slepc_framework/Headers/" -DSLEPC_LIB="$slepc_framework/slepc" -DGMSH_INC="$gmsh_framework/Headers/" -DGMSH_LIB="$gmsh_framework/Gmsh" ..
cd $frameworks_dir/GetDP.framework/Headers check
$build_cmd
check
$headers_cmd
mkdir -p $getdp_framework/Headers
cp $getdp_svn/build_iossimulator/Release-iphonesimulator/libGetDP.a $getdp_framework/GetDP
cd $getdp_framework/Headers
cp $getdp_svn/build_iossimulator/Headers/getdp/* . cp $getdp_svn/build_iossimulator/Headers/getdp/* .
# create xcode project # create xcode project
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
icon_source=../../../utils/icons/gmsh_mobile_master.png icon_source=../../../utils/icons/gmsh_mobile_master.png
launch_source=../../../utils/icons/gmsh_mobile_master.png launch_source=../../../utils/icons/gmsh_mobile_master.png
icon_source=../../../utils/icons/bbemg-logo-twitter-white.png icon_source=$HOME/tex/proposals/bbemg/bbemg-logo-twitter-white.png
launch_source=../../../utils/icons/bbemg-logo-color-rgb.png launch_source=$HOME/tex/proposals/bbemg/bbemg-logo-color-rgb.png
mkdir -p AppIcon.appiconset mkdir -p AppIcon.appiconset
# App icons (iPad) # App icons (iPad)
......
#!/Users/geuzaine/anaconda/bin/python #!/Users/geuzaine/anaconda/bin/python
######## FOR PETSC 3.6.0
########## You will need to compile 3 times, with arch=arm64, armv7, armv7s)
########## and lipo the 3 libs
########## I had to remove sys.exit(0) after message saying ".reconfigure..."
########## in config/BuildSystem/config/framework.py"
if __name__ == '__main__': if __name__ == '__main__':
import sys import sys
import os import os
sys.path.insert(0, os.path.abspath('config')) sys.path.insert(0, os.path.abspath('config'))
import configure import configure
configure_options = [ configure_options = [
'--CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang', '--CFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -miphoneos-version-min=7.0 -arch armv7 -arch armv7s -arch arm64 -fembed-bitcode -DPETSC_BLASLAPACK_UNDERSCORE',
'--CFLAGS=-DPETSC_BLASLAPACK_UNDERSCORE -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -miphoneos-version-min=7.0', '--CXXFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -miphoneos-version-min=7.0 -arch armv7 -arch armv7s -arch arm64 -fembed-bitcode -DPETSC_BLASLAPACK_UNDERSCORE',
'--CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++',
'--CXXFLAGS=-DPETSC_BLASLAPACK_UNDERSCORE -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -miphoneos-version-min=7.0',
'--known-bits-per-byte=8', '--known-bits-per-byte=8',
'--known-endian=little', '--known-endian=little',
'--known-level1-dcache-assoc=1', '--known-level1-dcache-assoc=1',
......
...@@ -5,14 +5,14 @@ if __name__ == '__main__': ...@@ -5,14 +5,14 @@ if __name__ == '__main__':
sys.path.insert(0, os.path.abspath('config')) sys.path.insert(0, os.path.abspath('config'))
import configure import configure
configure_options = [ configure_options = [
'--CC=gcc', '--CFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk -miphoneos-version-min=7.0 -arch i386 -arch x86_64 -DPETSC_BLASLAPACK_UNDERSCORE',
'--CFLAGS=-m32 -DPETSC_BLASLAPACK_UNDERSCORE', '--CXXFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk -miphoneos-version-min=7.0 -arch i386 -arch x86_64 -DPETSC_BLASLAPACK_UNDERSCORE',
'--CXX=g++', '--with-blas-lib=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libBLAS.dylib',
'--CXXFLAGS=-m32 -DPETSC_BLASLAPACK_UNDERSCORE',
'--with-clanguage=cxx', '--with-clanguage=cxx',
'--with-debugging=0', '--with-debugging=0',
'--with-fc=0', '--with-fc=0',
'--with-ios=1', '--with-ios=1',
'--with-lapack-lib=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libLAPACK.dylib',
'--with-mpi=0', '--with-mpi=0',
'--with-shared-libraries=0', '--with-shared-libraries=0',
'--with-ssl=0', '--with-ssl=0',
......
2.10.2: Plugin(ModifyComponents) replaces Plugin(ModifyComponent).
2.10.1 (July 30, 2015): minor fixes. 2.10.1 (July 30, 2015): minor fixes.
2.10.0 (July 21, 2015): improved periodic meshing constraints; new Physical 2.10.0 (July 21, 2015): improved periodic meshing constraints; new Physical
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment