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
9596739f
Commit
9596739f
authored
Jun 27, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib: bootstrap --disable-FOO and --enable-FOO
The automatic packages selection can be overriden.
parent
f033c284
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
contrib/bootstrap
contrib/bootstrap
+12
-0
contrib/src/main.mak
contrib/src/main.mak
+5
-0
No files found.
contrib/bootstrap
View file @
9596739f
...
...
@@ -24,11 +24,15 @@ usage()
echo
" --build=BUILD configure for building on BUILD"
echo
" --host=HOST cross-compile to build to run on HOST"
echo
" --prefix=PREFIX install files in PREFIX"
echo
" --disable-FOO configure to not build package FOO"
echo
" --enable-FOO configure to build package FOO"
}
BUILD
=
HOST
=
PREFIX
=
PKGS_ENABLE
=
PKGS_DISABLE
=
if
test
!
-f
"../src/main.mak"
then
...
...
@@ -52,6 +56,12 @@ do
--prefix
=
*
)
PREFIX
=
"
${
1
#--prefix=
}
"
;;
--disable-
*
)
PKGS_DISABLE
=
"
${
PKGS_DISABLE
}
${
1
#--disable-
}
"
;;
--enable-
*
)
PKGS_ENABLE
=
"
${
PKGS_ENABLE
}
${
1
#--enable-
}
"
;;
*
)
echo
"Unrecognized options
$1
"
usage
...
...
@@ -102,6 +112,8 @@ cat >&3 << EOF
BUILD :=
$BUILD
HOST :=
$HOST
PREFIX :=
$PREFIX
PKGS_DISABLE :=
$PKGS_DISABLE
PKGS_ENABLE :=
$PKGS_ENABLE
EOF
add_make
()
...
...
contrib/src/main.mak
View file @
9596739f
...
...
@@ -175,6 +175,11 @@ include ../src/*/rules.mak
#
# Targets
#
ifneq
($(filter $(PKGS_DISABLE),$(PKGS_ENABLE)),)
$(error
Same
package(s)
disabled
and
enabled
at
the
same
time)
endif
PKGS
:=
$(
filter-out
$(PKGS_DISABLE)
,
$(PKGS)
)
$(PKGS_ENABLE)
fetch
:
$(PKGS:%=.sum-%)
fetch-all
:
$(ALL_PKGS:%=.sum-%)
install
:
$(PKGS:%=.%)
...
...
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