Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
b84da099
Commit
b84da099
authored
16 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
5b4a0d77
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
utils/misc/variables.iphone
+71
-0
71 additions, 0 deletions
utils/misc/variables.iphone
utils/misc/variables.msvc
+7
-1
7 additions, 1 deletion
utils/misc/variables.msvc
with
78 additions
and
1 deletion
utils/misc/variables.iphone
0 → 100644
+
71
−
0
View file @
b84da099
# 1) Build the framework for the iPhone simulator with:
# ./configure --enable-minimal --enable-universal
# make clean
# make framework
#
# 2) Build the lib for the real iPhone (arm cpu) and add it to the framework
# cp utils/misc/variables.iphone variables
# make clean
# make lib
# cp Gmsh.framework/Versions/A/Gmsh lib/libGmshUniversal.a
# lipo -create lib/libGmsh.a lib/libGmshUniversal.a
# -output Gmsh.framework/Versions/A/Gmsh
# 3) You can now use the framework to develop on any mac platform,
# including the iPhone
# OS and host
UNAME=Darwin
HOSTNAME=mbp.local
IPHONE=/Developer/Platforms/iPhoneOS.platform/Developer
SDK=${IPHONE}/SDKs/iPhoneOS2.0.sdk
# The names of the C and C++ compilers
CC=${IPHONE}/usr/bin/arm-apple-darwin9-gcc-4.0.1
CXX=${IPHONE}/usr/bin/arm-apple-darwin9-g++-4.0.1
# If you need to link to dynamic libraries installed in non-standard
# locations and are using the GNU linker, you may want to add
# '-Wl,--rpath,/path/to/dynamic/library' to the 'LINKER' variable
# below. Alternatively, you could edit the 'LD_LIBARY_PATH'
# environement variable or use the 'ldconfig' program.
LINKER=${CXX}
# All compiler flags except optimization flags
FLAGS=-DHAVE_NO_DLL -DHAVE_NO_PARSER -DHAVE_NO_POST -I${IPHONE}/usr/include -I${IPHONE}/usr/lib/gcc/arm-apple-darwin9/4.0.1/include -I${SDK}/usr/include -I${SDK}/usr/include/c++/4.0.0 -I${SDK}/usr/include/c++/4.0.0/arm-apple-darwin9
# Additional system includes
SYSINCLUDE=
# Compiler optimization flags
OPTIM=-Os
# Gmsh subdirectories
GMSH_DIRS=Common Geo Mesh Numeric contrib/NR
# Gmsh libraries
GMSH_LIBS=-Llib Common/Main.o -lGmshCommon -lGmshGeo -lGmshMesh -lGmshCommon -lGmshNumeric -lGmshNR -lm -framework ApplicationServices
# How you create a static library on this machine
AR=${IPHONE}/usr/bin/libtool -o
ARFLAGS=
RANLIB=true
# The symbol used in front of compiler flags
DASH=-
# The extension to use for object files, libraries and executables
OBJEXT=.o
LIBEXT=.a
EXEEXT=
# Installation directories
prefix=/usr/local
exec_prefix=${prefix}
bindir=${exec_prefix}/bin
datadir=${datarootdir}
datarootdir=${prefix}/share
includedir=${prefix}/include
libdir=${exec_prefix}/lib
mandir=${datarootdir}/man
infodir=${datarootdir}/info
This diff is collapsed.
Click to expand it.
utils/misc/variables.msvc
+
7
−
1
View file @
b84da099
...
...
@@ -10,6 +10,7 @@
# Change the following to select which version to build:
ENABLE_GUI=0
ENABLE_PARSER=1
ENABLE_POSTPRO=1
ENABLE_TETGEN=1
ENABLE_NETGEN=0
...
...
@@ -55,12 +56,17 @@ SYSINCLUDE=/I"${INCLUDE}"
OPTIM=/O2
# Gmsh subdirectories
GMSH_DIRS=Common Geo Mesh Numeric
Parser
contrib/ANN contrib/MathEval contrib/NR
GMSH_DIRS=Common Geo Mesh Numeric contrib/ANN contrib/MathEval contrib/NR
# Gmsh libraries
GMSH_LIBS=Common/Main.obj lib/*.lib
# Optional stuff
ifeq (${ENABLE_PARSER},1)
GMSH_DIRS+=Parser
else
FLAGS+=/DHAVE_NO_PARSER
endif
ifeq (${ENABLE_POSTPRO},1)
GMSH_DIRS+=Post Plugin
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment