Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
764c18bd
Commit
764c18bd
authored
May 29, 2014
by
unknown
Committed by
jean-pierre charras
May 29, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OSX install script fixes.
parent
70ce6d28
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
CMakeLists.txt
CMakeLists.txt
+1
-1
osx_fixbundle.sh
scripts/osx_fixbundle.sh
+6
-3
No files found.
CMakeLists.txt
View file @
764c18bd
...
@@ -451,7 +451,7 @@ if( KICAD_BUILD_STATIC OR KICAD_BUILD_DYNAMIC )
...
@@ -451,7 +451,7 @@ if( KICAD_BUILD_STATIC OR KICAD_BUILD_DYNAMIC )
if
(
KICAD_BUILD_DYNAMIC AND APPLE
)
if
(
KICAD_BUILD_DYNAMIC AND APPLE
)
add_custom_target
(
osx_fix_bundles ALL DEPENDS cvpcb eeschema gerbview kicad pcbnew bitmap2component pcb_calculator pl_editor
)
add_custom_target
(
osx_fix_bundles ALL DEPENDS cvpcb eeschema gerbview kicad pcbnew bitmap2component pcb_calculator pl_editor
)
add_custom_command
(
TARGET osx_fix_bundles POST_BUILD COMMAND
scripts/osx_fixbundle.sh
COMMENT
"Migrating dylibs to bundles"
)
add_custom_command
(
TARGET osx_fix_bundles POST_BUILD COMMAND
${
PROJECT_SOURCE_DIR
}
/scripts/osx_fixbundle.sh
${
PROJECT_SOURCE_DIR
}
COMMENT
"Migrating dylibs to bundles"
)
endif
()
endif
()
endif
(
KICAD_BUILD_STATIC OR KICAD_BUILD_DYNAMIC
)
endif
(
KICAD_BUILD_STATIC OR KICAD_BUILD_DYNAMIC
)
...
...
scripts/osx_fixbundle.sh
View file @
764c18bd
...
@@ -20,8 +20,9 @@ function fixbundle() {
...
@@ -20,8 +20,9 @@ function fixbundle() {
exec
=
"
$1
"
exec
=
"
$1
"
bzroot
=
"
$2
"
bzroot
=
"
$2
"
execpath
=
"
$3
"
execpath
=
"
$3
"
binary
=
"
$4
"
LIBRARIES
=
"
`
otool
-L
${
execpath
}${
exec
}
.app/Contents/MacOS/
${
exec
}
|
cut
-d
' '
-f1
`
"
LIBRARIES
=
"
`
otool
-L
${
binary
}
|
cut
-d
' '
-f1
`
"
for
library
in
$LIBRARIES
;
do
for
library
in
$LIBRARIES
;
do
...
@@ -35,7 +36,7 @@ function fixbundle() {
...
@@ -35,7 +36,7 @@ function fixbundle() {
resolvelink
"
$library
"
"
`
dirname
$library
`
"
"
${
execpath
}
/
${
exec
}
.app/Contents/Frameworks"
resolvelink
"
$library
"
"
`
dirname
$library
`
"
"
${
execpath
}
/
${
exec
}
.app/Contents/Frameworks"
fi
fi
fi
fi
install_name_tool
-change
$library
@executable_path/../Frameworks/
`
basename
$library
`
${
execpath
}${
exec
}
.app/Contents/MacOS/
${
exec
}
install_name_tool
-change
$library
@executable_path/../Frameworks/
`
basename
$library
`
${
binary
}
fi
fi
done
done
...
@@ -122,5 +123,7 @@ for executable in $EXECUTABLES;
...
@@ -122,5 +123,7 @@ for executable in $EXECUTABLES;
do
do
myexecpath
=
"
`
dirname
${
executable
}
`
/"
myexecpath
=
"
`
dirname
${
executable
}
`
/"
myexec
=
"
`
basename
${
executable
}
|sed
-e
's/\.app//'
`
"
myexec
=
"
`
basename
${
executable
}
|sed
-e
's/\.app//'
`
"
fixbundle
"
${
myexec
}
"
"
`
pwd
`
"
"
${
myexecpath
}
"
fixbundle
"
${
myexec
}
"
"
$1
"
"
${
myexecpath
}
"
"
${
myexecpath
}${
myexec
}
.app/Contents/MacOS/
${
myexec
}
"
fixbundle
"
${
myexec
}
"
"
$1
"
"
${
myexecpath
}
"
"
${
myexecpath
}${
myexec
}
.app/Contents/MacOS/_
${
myexec
}
.kiface"
done
done
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment