+++ /dev/null
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 80e90e9..d1a564f 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -398,11 +398,6 @@ endif()
-
- target_link_libraries(${PROJECT_NAME} ${PULSEVIEW_LINK_LIBS})
-
--if(WIN32)
-- # Pass -mwindows so that no "DOS box" opens when PulseView is started.
-- set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-mwindows")
--endif()
--
- #===============================================================================
- #= Installation
- #-------------------------------------------------------------------------------
if [ $DEBUG = 1 ]; then
# CFLAGS/CXXFLAGS contains "-g" per default for autotools projects.
- CM="$CM -DCMAKE_BUILD_TYPE=Debug"
+ BUILD_TYPE="Debug"
+else
+ BUILD_TYPE="Release"
fi
# Remove build directory contents (if any) and create a new build dir.
$GIT_CLONE $REPO_BASE/pulseview
cd pulseview
cp ../../FileAssociation.nsh contrib
-if [ $DEBUG = 1 ]; then
- # Allow a "DOS box" to open on Windows, it'll contain logging output.
- patch -p1 < ../../pv_mwindows.patch
-fi
-$CMAKE -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDISABLE_WERROR=y -DENABLE_TESTS=y .
+$CMAKE \
+ -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX \
+ -DCMAKE_BUILD_TYPE=$BUILD_TYPE \
+ -DDISABLE_WERROR=y \
+ -DENABLE_TESTS=y
+ .
make $PARALLEL $V
if [ $DEBUG = 1 ]; then
make install $V
# -----------------------------------------------------------------------------
+if [ $DEBUG = 1 ]; then
+ BUILD_TYPE="Debug"
+else
+ BUILD_TYPE="Release"
+fi
+
P="$PREFIX/lib/pkgconfig"
C="$C --prefix=$PREFIX"
L="--disable-shared --enable-static"
cd pulseview
mkdir build
cd build
-PKG_CONFIG_PATH=$P $SB cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDISABLE_WERROR=y -DENABLE_TESTS=n ..
+PKG_CONFIG_PATH=$P $SB cmake \
+ -G "Unix Makefiles" \
+ -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX \
+ -DCMAKE_BUILD_TYPE=$BUILD_TYPE \
+ -DDISABLE_WERROR=y \
+ -DENABLE_TESTS=n
+ ..
$SB make $PARALLEL $V
make install $V
# $SB make test $V # TODO
# makensis -DHOME=$HOME contrib/pulseview_cross.nsi # TODO
cd ../..
-