[vlc-commits] contrib: add an option to generate PDB information
Steve Lhomme
git at videolan.org
Thu Jun 18 18:31:50 CEST 2020
vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Mar 15 13:44:27 2019 +0100| [f2c47e470aa885e94eda6b20f6170af3ecb01e2e] | committer: Steve Lhomme
contrib: add an option to generate PDB information
(cherry picked from commit b606962587b2ba7d11380ec1fc51de278aea9eab) (rebased)
rebased:
- the optimization flags are located elsewhere in this branch
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=f2c47e470aa885e94eda6b20f6170af3ecb01e2e
---
contrib/bootstrap | 6 ++++++
contrib/src/main.mak | 5 +++++
2 files changed, 11 insertions(+)
diff --git a/contrib/bootstrap b/contrib/bootstrap
index 1171cc6acb..48c23da04f 100755
--- a/contrib/bootstrap
+++ b/contrib/bootstrap
@@ -35,6 +35,7 @@ usage()
echo " --enable-ad-clauses configure to build packages with advertising clauses"
echo " (USE AT YOUR OWN LEGAL RISKS)"
echo " --disable-optim disable optimization in libraries"
+ echo " --enable-pdb generate debug information in PDB format"
}
BUILD=
@@ -49,6 +50,7 @@ GPL="1"
GNUV3="1"
AD_CLAUSES=
WITH_OPTIMIZATION="1"
+ENABLE_PDB=
if test ! -f "../../contrib/src/main.mak"
then
@@ -84,6 +86,9 @@ do
--disable-optim)
WITH_OPTIMIZATION=
;;
+ --enable-pdb)
+ ENABLE_PDB=1
+ ;;
--enable-small)
ENABLE_SMALL=1
;;
@@ -287,6 +292,7 @@ test -z "$GPL" || add_make_enabled "GPL"
test -z "$GNUV3" || add_make_enabled "GNUV3"
test -z "$AD_CLAUSES" || add_make_enabled "AD_CLAUSES"
test -z "$WITH_OPTIMIZATION" || add_make_enabled "WITH_OPTIMIZATION"
+test -z "$ENABLE_PDB" || add_make_enabled "ENABLE_PDB"
test "`uname -o 2>/dev/null`" != "Msys" || add_make "CMAKE_GENERATOR := -G \"MSYS Makefiles\""
#
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index b6fe95401a..c9094a9822 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -310,6 +310,11 @@ CFLAGS := $(CFLAGS) -g -O2
CXXFLAGS := $(CXXFLAGS) -g -O2
endif
+ifdef ENABLE_PDB
+CFLAGS := $(CFLAGS) -gcodeview
+CXXFLAGS := $(CXXFLAGS) -gcodeview
+endif
+
HOSTVARS := $(HOSTTOOLS) \
CPPFLAGS="$(CPPFLAGS)" \
CFLAGS="$(CFLAGS)" \
More information about the vlc-commits
mailing list