Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
1cb2e363
Commit
1cb2e363
authored
12 years ago
by
Marco Biasini
Browse files
Options
Downloads
Patches
Plain Diff
add support for minimalistic OST standalone on MacOS X
parent
06b2ec00
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cmake_support/OST.cmake
+1
-1
1 addition, 1 deletion
cmake_support/OST.cmake
deployment/macos/deploy.py
+8
-2
8 additions, 2 deletions
deployment/macos/deploy.py
deployment/macos/deps.py
+28
-14
28 additions, 14 deletions
deployment/macos/deps.py
with
37 additions
and
17 deletions
cmake_support/OST.cmake
+
1
−
1
View file @
1cb2e363
...
...
@@ -303,7 +303,7 @@ macro(executable)
message
(
FATAL_ERROR
"invalid use of executable(): a name must be provided"
)
endif
()
add_executable
(
${
_ARG_NAME
}
${
_ARG_SOURCES
}
)
if
(
APPLE AND NOT _ARG_NO_RPATH AND NOT
_ARG
_STATIC
)
if
(
APPLE AND NOT _ARG_NO_RPATH AND NOT
ENABLE
_STATIC
)
set_target_properties
(
${
_ARG_NAME
}
PROPERTIES
LINK_FLAGS
"-Wl,-rpath,@loader_path/../lib"
)
endif
()
...
...
This diff is collapsed.
Click to expand it.
deployment/macos/deploy.py
+
8
−
2
View file @
1cb2e363
...
...
@@ -10,12 +10,18 @@ p.add_option('--no_rpath', action='store_true',
default
=
False
)
p
.
add_option
(
'
--macports_workaround
'
,
action
=
'
store_true
'
,
default
=
False
)
p
.
add_option
(
'
--dmg
'
,
action
=
'
store_true
'
,
default
=
False
)
p
.
add_option
(
'
--no-gui
'
,
action
=
'
store_true
'
,
default
=
False
)
opts
,
args
=
p
.
parse_args
()
deps
.
make_standalone
(
'
../../stage
'
,
'
standalone
'
,
True
,
opts
.
no_rpath
,
macports_workaround
=
opts
.
macports_workaround
)
macports_workaround
=
opts
.
macports_workaround
,
no_gui
=
opts
.
no_gui
)
if
os
.
path
.
exists
(
'
DNG.app
'
):
shutil
.
rmtree
(
'
DNG.app
'
)
if
opts
.
no_gui
:
out_dir
=
'
ost-%s
'
%
ost
.
VERSION
shutil
.
move
(
'
standalone
'
,
out_dir
)
sys
.
exit
(
0
)
bundle
.
create_bundle
(
'
DNG
'
,
opts
.
bundle
)
if
opts
.
bundle
:
shutil
.
copytree
(
'
../../examples
'
,
'
DNG.app/Contents/examples
'
)
...
...
@@ -23,4 +29,4 @@ if opts.bundle:
os
.
system
(
'
rm -rf DNG.app/Contents/examples/code_fragments/
'
)
if
opts
.
dmg
:
os
.
system
(
'
rm -rf openstructure.dmg
'
)
os
.
system
(
'
hdiutil create -srcFolder DNG.app openstructure.dmg
'
)
\ No newline at end of file
os
.
system
(
'
hdiutil create -srcFolder DNG.app openstructure.dmg
'
)
This diff is collapsed.
Click to expand it.
deployment/macos/deps.py
+
28
−
14
View file @
1cb2e363
...
...
@@ -68,19 +68,23 @@ def collect_deps(stage_dir, components, binaries, libexec_binaries,
_deps_for_lib
(
so_file
,
pool
)
return
pool
BINARIES
=
[
'
chemdict_tool
'
,
'
tmalign
'
,
'
tmscore
'
]
LIBEXEC_BINARIES
=
[
'
gosty
'
]
COMPONENTS
=
[
'
mol
'
,
'
geom
'
,
'
conop
'
,
'
gfx
'
,
'
gui
'
,
'
seq_alg
'
,
'
seq
'
,
'
img
'
,
'
img_alg
'
,
'
info
'
,
'
io
'
,
'
db
'
,
'
base
'
]
SCRIPTS
=
[
'
dng
'
,
'
ost
'
]
LIBEXEC_SCRIPTS
=
[
'
ost_config
'
]
LIBEXEC_BINARIES
=
[]
GUI_LIBEXEC_BINARIES
=
[
'
gosty
'
]
BINARIES
=
[
'
ldt
'
,
'
chemdict_tool
'
,
'
tmalign
'
,
'
tmscore
'
]
GUI_BINARIES
=
[
'
gosty
'
]
GUI_COMPONENTS
=
[
'
gfx
'
,
'
gui
'
,
'
info
'
]
COMPONENTS
=
[
'
mol
'
,
'
geom
'
,
'
conop
'
,
'
seq_alg
'
,
'
seq
'
,
'
img
'
,
'
img_alg
'
,
'
io
'
,
'
db
'
,
'
base
'
]
GUI_SCRIPTS
=
[
'
dng
'
]
SCRIPTS
=
[
'
ost
'
]
CHANGE_ID_RPATH
=
'
install_name_tool -id @rpath/%s %s
'
CHANGE_ID
=
'
install_name_tool -id @rpath/%s %s
'
CHANGE_LOAD_CMD_RPATH
=
'
install_name_tool -change %s @rpath/%s %s
'
CHANGE_LOAD_CMD
=
'
install_name_tool -change %s @executable_path/%s %s
'
ADD_RPATH
=
'
install_name_tool -add_rpath %s %s 2> /dev/null
'
SITE_PACKAGES
=
[
'
sip.so
'
,
'
sipconfig.py
'
,
'
sipdistutils.py
'
,
'
PyQt4
'
]
SITE_PACKAGES
=
[]
GUI_SITE_PACKAGES
=
[
'
sip.so
'
,
'
sipconfig.py
'
,
'
sipdistutils.py
'
,
'
PyQt4
'
]
REMOVE_HEADERS
=
'
rm -rf `find %s/lib -type d -name Headers`
'
REMOVE_CURRENT
=
'
rm -rf `find %s/lib -type d -name Current`
'
# collect libs of non-standard libraries/frameworks we depend on
...
...
@@ -205,8 +209,8 @@ def get_python_home():
return
os
.
path
.
dirname
(
sys
.
modules
[
'
os
'
].
__file__
)
def
make_standalone
(
stage_dir
,
outdir
,
no_includes
,
force_no_rpath
=
False
,
macports_workaround
=
False
):
site_packages
=
get_site_package_dir
()
macports_workaround
=
False
,
no_gui
=
False
):
site_packages
_dir
=
get_site_package_dir
()
if
os
.
path
.
exists
(
outdir
):
shutil
.
rmtree
(
outdir
)
...
...
@@ -217,17 +221,27 @@ def make_standalone(stage_dir, outdir, no_includes, force_no_rpath=False,
print
'
copying shared datafiles
'
shutil
.
copytree
(
os
.
path
.
join
(
stage_dir
,
'
share
'
),
os
.
path
.
join
(
outdir
,
'
share
'
))
scripts
=
SCRIPTS
binaries
=
BINARIES
components
=
COMPONENTS
site_packages
=
SITE_PACKAGES
libexec_binaries
=
LIBEXEC_BINARIES
if
not
no_gui
:
scripts
+=
GUI_SCRIPTS
binaries
+=
GUI_BINARIES
components
+=
GUI_COMPONENTS
libexec_binaries
+=
GUI_LIBEXEC_BINARIES
site_packages
+=
GUI_SITE_PACKAGES
print
'
collecting dependencies
'
deps
=
collect_deps
(
stage_dir
,
COMPONENTS
,
BINARIES
,
LIBEXEC_BINARIES
,
SITE_PACKAGES
,
site_packages
)
deps
=
collect_deps
(
stage_dir
,
components
,
binaries
,
libexec_binaries
,
site_packages
,
site_packages_dir
)
print
'
copying dependencies
'
copy_deps
(
deps
,
outdir
)
print
'
copying binaries
'
copy_binaries
(
stage_dir
,
outdir
,
BINARIES
,
SCRIPTS
,
'
bin
'
)
print
'
copying libexec binaries
'
copy_binaries
(
stage_dir
,
outdir
,
LIBEXEC_BINARIES
,
LIBEXEC_SCRIPTS
,
'
libexec/openstructure
'
)
print
'
copying binaries
'
copy_binaries
(
stage_dir
,
outdir
,
binaries
,
scripts
,
'
bin
'
)
print
'
copying pymod
'
shutil
.
copytree
(
os
.
path
.
join
(
stage_dir
,
'
lib/openstructure
'
),
os
.
path
.
join
(
outdir
,
'
lib/openstructure
'
))
...
...
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