Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
17fbb4b0
Commit
17fbb4b0
authored
Mar 04, 2010
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VLCKit: Update Pre-Compile.sh to use plugins/ instead of modules/
parent
4c044d3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
23 deletions
+35
-23
projects/macosx/framework/Pre-Compile.sh
projects/macosx/framework/Pre-Compile.sh
+35
-23
No files found.
projects/macosx/framework/Pre-Compile.sh
View file @
17fbb4b0
...
...
@@ -44,13 +44,13 @@ if test "${ACTION}" != "build"; then
fi
lib
=
"lib"
modules
=
"module
s"
plugins
=
"plugin
s"
share
=
"share"
include
=
"include"
target
=
"
${
TARGET_BUILD_DIR
}
/
${
CONTENTS_FOLDER_PATH
}
"
target_bin
=
"
${
target
}
/bin"
target_lib
=
"
${
target
}
/
${
lib
}
"
# Should we consider using a different well-known folder like shared resources?
target_
modules
=
"
${
target
}
/
${
module
s
}
"
# Should we consider using a different well-known folder like shared resources?
target_
plugins
=
"
${
target
}
/
${
plugin
s
}
"
# Should we consider using a different well-known folder like shared resources?
target_share
=
"
${
target
}
/
${
share
}
"
# Should we consider using a different well-known folder like shared resources?
target_include
=
"
${
target
}
/
${
include
}
"
# Should we consider using a different well-known folder like shared resources?
linked_libs
=
""
...
...
@@ -75,7 +75,7 @@ vlc_install_object() {
if
[
$type
=
"lib"
]
;
then
local
install_name
=
"@loader_path/lib"
elif
[
$type
=
"module"
]
;
then
local
install_name
=
"@loader_path/
module
s"
local
install_name
=
"@loader_path/
plugin
s"
fi
if
[
"
$destination_name
"
!=
""
]
;
then
local
lib_dest
=
"
$dest_dir
/
$destination_name$suffix
"
...
...
@@ -149,25 +149,37 @@ vlc_install() {
if
test
$type
=
"data"
;
then
vlc_install_object
"
$main_build_dir
/
$1
/
$2
"
"
$dest_dir
"
"
$type
"
$5
else
fatdest
=
"
$dest_dir
/
$2
"
shouldUpdateFat
=
"no"
objects
=
""
# Create a temporary destination dir to store each ARCH object file
tmp_dest_dir
=
"
$VLC_BUILD_DIR
/tmp/
$type
"
rm
-Rf
"
${
tmp_dest_dir
}
/*"
mkdir
-p
"
$tmp_dest_dir
"
newinstall
=
"no"
for
arch
in
$ARCHS
;
do
vlc_install_object
"
$VLC_BUILD_DIR
/
$arch
/
$1
/
$2
"
"
$tmp_dest_dir
"
"
$type
"
"
$5
"
""
".
$arch
"
local
dest
=
"
$tmp_dest_dir
/
$2
.
$arch
"
if
test
-e
${
dest
}
;
then
if
!
test
"
$dest_dir
/
$2
"
-nt
"
${
dest
}
"
;
then
newinstall
=
"yes"
local
src
=
"
$VLC_BUILD_DIR
/
$arch
/
$1
/
$2
"
# Only install if the new image is newer than the one we have installed.
if
((!
test
-e
${
fatdest
}
)
||
test
${
src
}
-nt
${
fatdest
}
)
;
then
vlc_install_object
"
$src
"
"
$tmp_dest_dir
"
"
$type
"
"
$5
"
""
".
$arch
"
local
dest
=
"
$tmp_dest_dir
/
$2
.
$arch
"
if
test
-e
${
dest
}
;
then
if
!
test
"
$dest_dir
/
$2
"
-nt
"
${
dest
}
"
;
then
shouldUpdateFat
=
"yes"
fi
objects
=
"
${
dest
}
$objects
"
else
echo
"Warning: building
$2
without
$arch
"
fi
objects
=
"
${
dest
}
$objects
"
else
echo
"Warning: building
$2
without
$arch
"
fi
done
;
if
test
"
$newinstall
"
=
"yes"
;
then
echo
"Creating fat
$type
$dest_dir
/
$2
"
lipo
$objects
-output
"
$dest_dir
/
$2
"
-create
if
test
"
$shouldUpdateFat
"
=
"yes"
;
then
echo
"Creating fat
$type
$fatdest
"
lipo
$objects
-output
"
$fatdest
"
-create
fi
fi
fi
...
...
@@ -178,7 +190,7 @@ vlc_install() {
##########################
# Create a symbolic link in the root of the framework
mkdir
-p
${
target_lib
}
mkdir
-p
${
target_
module
s
}
mkdir
-p
${
target_
plugin
s
}
mkdir
-p
${
target_bin
}
if
[
"
$RELEASE_MAKEFILE
"
!=
"yes"
]
;
then
...
...
@@ -186,11 +198,11 @@ if [ "$RELEASE_MAKEFILE" != "yes" ] ; then
cd
${
TARGET_BUILD_DIR
}
/
${
FULL_PRODUCT_NAME
}
ln
-sf
Versions/Current/
${
lib
}
.
ln
-sf
Versions/Current/
${
module
s
}
.
ln
-sf
Versions/Current/
${
plugin
s
}
.
ln
-sf
Versions/Current/
${
include
}
.
ln
-sf
Versions/Current/
${
share
}
.
ln
-sf
Versions/Current/bin
.
ln
-sf
../
module
s Versions/Current/bin
ln
-sf
../
plugin
s Versions/Current/bin
ln
-sf
../share Versions/Current/bin
popd
>
/dev/null
...
...
@@ -213,19 +225,19 @@ fi
##########################
# Build the
modules folder (Same as VLCKit.framework/module
s in Makefile)
echo
"Building
module
s folder..."
# Figure out what
module
s are available to install
# Build the
plugins folder (Same as VLCKit.framework/plugin
s in Makefile)
echo
"Building
plugin
s folder..."
# Figure out what
plugin
s are available to install
for
module
in
`
find
${
main_build_dir
}
/modules
-path
"*dylib.dSYM*"
-prune
-o
-name
"lib*_plugin.dylib"
-print
|
sed
-e
s:
${
main_build_dir
}
/::
`
;
do
# Check to see that the reported module actually exists
if
test
-n
${
module
}
;
then
vlc_install
`
dirname
${
module
}
`
`
basename
${
module
}
`
${
target_
module
s
}
"module"
vlc_install
`
dirname
${
module
}
`
`
basename
${
module
}
`
${
target_
plugin
s
}
"module"
fi
done
# Install the module cache
cache
=
`
ls
${
main_build_dir
}
/modules/plugins-
*
.dat |
sed
-e
s:
${
main_build_dir
}
/::
`
vlc_install
`
dirname
${
cache
}
`
`
basename
${
cache
}
`
${
target_
module
s
}
"data"
vlc_install
`
dirname
${
cache
}
`
`
basename
${
cache
}
`
${
target_
plugin
s
}
"data"
# Build the lib folder
##########################
...
...
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