Rewrite cache init code + build verbosity.

* Use bootstrap --init=<command_file> command because it is
supported by upstream.
* Make build verbose again (CMAKE_VERBOSE_MAKEFILE).

Signed-off-by: Modestas Vainius <modestas@vainius.eu>
ci/unstable
Modestas Vainius 16 years ago
parent f6096a8ba5
commit 94be7b2326

5
debian/changelog vendored

@ -13,8 +13,11 @@ cmake (2.6.2-2~pre1) UNRELEASED; urgency=low
when upgrading from previous version but this is OK. Add a custom when upgrading from previous version but this is OK. Add a custom
prerm script which recovers from the problem and notifies the user to prerm script which recovers from the problem and notifies the user to
ignore the error message. ignore the error message.
* Rewrite cmake cache initialization code. Pass initial cmake flags via
file (--init= argument to the bootstrap script).
* Make build verbose again.
-- Modestas Vainius <modestas@vainius.eu> Thu, 16 Oct 2008 11:17:00 +0300 -- Modestas Vainius <modestas@vainius.eu> Thu, 16 Oct 2008 20:12:16 +0300
cmake (2.6.2-1) experimental; urgency=low cmake (2.6.2-1) experimental; urgency=low

34
debian/rules vendored

@ -7,7 +7,7 @@ USE_DARTP:=
DARCH := $(shell dpkg --print-installation-architecture) DARCH := $(shell dpkg --print-installation-architecture)
CFLAGS := -Wall -g $(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),-O0,-O2) CFLAGS := -Wall -g $(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),-O0,-O2)
QUILT_CALL := QUILT_PATCHES=debian/patches quilt --quiltrc /dev/null QUILT_CALL := QUILT_PATCHES=debian/patches quilt --quiltrc /dev/null
BUILD_FLAGS_FILE := build-flags.cmake
# Hack for parisc64 to close bug #133696 # Hack for parisc64 to close bug #133696
ifeq ($(shell arch),parisc64) ifeq ($(shell arch),parisc64)
@ -22,23 +22,27 @@ patch-stamp:
unpatch: unpatch:
$(QUILT_CALL) pop -a -R || test $$? = 2 $(QUILT_CALL) pop -a -R || test $$? = 2
$(BUILD_FLAGS_FILE):
touch $@
echo 'set(CMAKE_SKIP_RPATH YES CACHE BOOL "Skip rpath" FORCE)' >> $@
echo 'set(CMAKE_VERBOSE_MAKEFILE ON CACHE BOOL "Verbose build" FORCE)' >> $@
echo 'set(CMAKE_C_FLAGS "$(CFLAGS)" CACHE STRING "C flags" FORCE)' >> $@
echo 'set(CMAKE_CXX_FLAGS "$(CFLAGS)" CACHE STRING "C++ flags" FORCE)' >> $@
# echo 'set(BUILD_WXDialog ON CACHE STRING "Build WXDialog" FORCE)' >> $@
# echo 'set(TARGET_VERSION CACHE STRING ""FORCE)' >> $@
# echo 'set(TARGET_SOVERSION CACHE STRING "" FORCE)' >> $@
# echo 'set(BUILD_DOCUMENTATION ON CACHE BOOL "" FORCE)' >> $@
# echo 'set(BUILD_DOXYGEN ON CACHE BOOL "" FORCE)' >> $@
$(if $(USE_DARTP),echo 'set(DART_ROOT /usr/share/Dart CACHE STRING "" FORCE)' >> $@)
$(if $(USE_DARTP),echo 'set(BUILDNAME "cmake_2.2.3-1_$(DARCH).deb" CACHE STRING "" FORCE)' >> $@)
configure: configure-stamp configure: configure-stamp
configure-stamp: configure-stamp: $(BUILD_FLAGS_FILE)
dh_testdir dh_testdir
# pre-load the cache to avoid setting rpath: # pre-load the cache to avoid setting rpath:
rm -rf Build && mkdir -p Build rm -rf Build && mkdir -p Build
echo CMAKE_SKIP_RPATH:BOOL=YES >> Build/CMakeCache.txt cd Build && ../bootstrap --prefix=/usr --docdir=/share/doc/cmake --mandir=/share/man \
#echo TARGET_VERSION:STRING= >> Build/CMakeCache.txt --init=../$(BUILD_FLAGS_FILE)
#echo TARGET_SOVERSION:STRING= >> Build/CMakeCache.txt
#echo BUILD_DOCUMENTATION:BOOL=ON >> Build/CMakeCache.txt
#echo BUILD_DOXYGEN:BOOL=ON >> Build/CMakeCache.txt
#echo BUILD_WXDialog:BOOL=ON >> Build/CMakeCache.txt
echo VERBOSE_BUILD:BOOL=ON >> Build/CMakeCache.txt
echo CMAKE_C_FLAGS:STRING=$(CFLAGS) >> Build/CMakeCache.txt
echo CMAKE_CXX_FLAGS:STRING=$(CFLAGS) >> Build/CMakeCache.txt
$(if $(USE_DARTP),echo DART_ROOT:PATH=/usr/share/Dart >> Build/CMakeCache.txt)
$(if $(USE_DARTP),echo BUILDNAME:STRING=cmake_2.2.3-1_$(DARCH).deb >> Build/CMakeCache.txt)
cd Build && ../bootstrap --prefix=/usr --docdir=/share/doc/cmake --mandir=/share/man
chmod -x ChangeLog.manual chmod -x ChangeLog.manual
chmod -x Modules/*.cmake Modules/*.cmake.in Modules/*.cxx Modules/Platform/* chmod -x Modules/*.cmake Modules/*.cmake.in Modules/*.cxx Modules/Platform/*
touch $@ touch $@
@ -52,7 +56,7 @@ build-stamp:
clean: unpatch clean: unpatch
dh_testdir dh_testdir
dh_testroot dh_testroot
rm -rf .pc build-stamp configure-stamp patch-stamp rm -rf .pc build-stamp configure-stamp patch-stamp $(BUILD_FLAGS_FILE)
rm -rf Build rm -rf Build
dh_clean dh_clean

Loading…
Cancel
Save