Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
savoirfairelinux
jami-project
Commits
1a704bbb
Commit
1a704bbb
authored
5 years ago
by
Alexander Schlarb
Browse files
Options
Downloads
Patches
Plain Diff
make-ring: Allow passing in custom prefix path for Unix build
Change-Id: I446c8d9650efc97c5a8a1b56357c63f74af2fc35
parent
62004f28
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
make-ring.py
+3
-0
3 additions, 0 deletions
make-ring.py
scripts/install.sh
+24
-5
24 additions, 5 deletions
scripts/install.sh
with
27 additions
and
5 deletions
make-ring.py
+
3
−
0
View file @
1a704bbb
...
...
@@ -296,6 +296,8 @@ def run_install(args):
install_args
.
append
(
'
-s
'
)
if
args
.
global_install
:
install_args
.
append
(
'
-g
'
)
if
args
.
prefix
is
not
None
:
install_args
+=
(
'
-P
'
,
args
.
prefix
)
if
not
args
.
priv_install
:
install_args
.
append
(
'
-u
'
)
...
...
@@ -451,6 +453,7 @@ def parse_args():
help
=
'
Stop the Ring processes
'
)
ap
.
add_argument
(
'
--distribution
'
)
ap
.
add_argument
(
'
--prefix
'
)
ap
.
add_argument
(
'
--static
'
,
default
=
False
,
action
=
'
store_true
'
)
ap
.
add_argument
(
'
--global-install
'
,
default
=
False
,
action
=
'
store_true
'
)
ap
.
add_argument
(
'
--debug
'
,
default
=
False
,
action
=
'
store_true
'
)
...
...
This diff is collapsed.
Click to expand it.
scripts/install.sh
+
24
−
5
View file @
1a704bbb
...
...
@@ -18,7 +18,7 @@ static=''
client
=
''
proc
=
'1'
priv_install
=
true
while
getopts
gsc:p:u OPT
;
do
while
getopts
gsc:
P:
p:u OPT
;
do
case
"
$OPT
"
in
g
)
global
=
'true'
...
...
@@ -29,6 +29,9 @@ while getopts gsc:p:u OPT; do
c
)
client
=
"
${
OPTARG
}
"
;;
P
)
prefix
=
"
${
OPTARG
}
"
;;
p
)
proc
=
"
${
OPTARG
}
"
;;
...
...
@@ -66,7 +69,11 @@ DAEMON="$(pwd)"
cd
contrib
mkdir
-p
native
cd
native
../bootstrap
if
[
"
${
prefix
+set
}
"
]
;
then
../bootstrap
--prefix
=
"
${
prefix
}
"
else
../bootstrap
fi
make
cd
"
${
DAEMON
}
"
./autogen.sh
...
...
@@ -77,7 +84,11 @@ if [[ "$OSTYPE" != "darwin"* ]]; then
fi
if
[
"
${
global
}
"
=
"true"
]
;
then
./configure
$sharedLib
$CONFIGURE_FLAGS
if
[
"
${
prefix
+set
}
"
]
;
then
./configure
$sharedLib
$CONFIGURE_FLAGS
--prefix
=
"
${
prefix
}
"
else
./configure
$sharedLib
$CONFIGURE_FLAGS
fi
else
./configure
$sharedLib
$CONFIGURE_FLAGS
--prefix
=
"
${
INSTALL
}
/daemon"
fi
...
...
@@ -88,7 +99,11 @@ cd "${TOP}/lrc"
mkdir
-p
"
${
BUILDDIR
}
"
cd
"
${
BUILDDIR
}
"
if
[
"
${
global
}
"
=
"true"
]
;
then
cmake ..
-DCMAKE_PREFIX_PATH
=
"
${
CMAKE_PREFIX_PATH
}
"
-DCMAKE_BUILD_TYPE
=
Debug
$static
if
[
"
${
prefix
+set
}
"
]
;
then
cmake ..
-DCMAKE_PREFIX_PATH
=
"
${
CMAKE_PREFIX_PATH
}
"
-DCMAKE_BUILD_TYPE
=
Debug
-DCMAKE_INSTALL_PREFIX
=
"
${
prefix
}
"
$static
else
cmake ..
-DCMAKE_PREFIX_PATH
=
"
${
CMAKE_PREFIX_PATH
}
"
-DCMAKE_BUILD_TYPE
=
Debug
$static
fi
else
cmake ..
-DCMAKE_PREFIX_PATH
=
"
${
CMAKE_PREFIX_PATH
}
"
\
-DCMAKE_BUILD_TYPE
=
Debug
\
...
...
@@ -102,7 +117,11 @@ cd "${TOP}/${client}"
mkdir
-p
"
${
BUILDDIR
}
"
cd
"
${
BUILDDIR
}
"
if
[
"
${
global
}
"
=
"true"
]
;
then
cmake ..
-DCMAKE_PREFIX_PATH
=
"
${
CMAKE_PREFIX_PATH
}
"
$static
if
[
"
${
prefix
+set
}
"
]
;
then
cmake ..
-DCMAKE_PREFIX_PATH
=
"
${
CMAKE_PREFIX_PATH
}
"
-DCMAKE_INSTALL_PREFIX
=
"
${
prefix
}
"
$static
else
cmake ..
-DCMAKE_PREFIX_PATH
=
"
${
CMAKE_PREFIX_PATH
}
"
$static
fi
else
cmake ..
-DCMAKE_PREFIX_PATH
=
"
${
CMAKE_PREFIX_PATH
}
"
\
-DCMAKE_INSTALL_PREFIX
=
"
${
INSTALL
}
/
${
client
}
"
\
...
...
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