New upstream version 8.1.0
This commit is contained in:
23
thirdparty/build/Makefile
vendored
Normal file
23
thirdparty/build/Makefile
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
SHELL := /bin/bash
|
||||
|
||||
SOURCE_PATH = $(shell echo `pwd`/../source )
|
||||
BUILD_PATH = $(shell echo `pwd` )
|
||||
|
||||
BUILDTYPE = $(shell `pwd`/get-build-type.sh)
|
||||
|
||||
FINDBUGS_HOME = $(shell echo `pwd`/../source/findbugs)
|
||||
|
||||
# note: cppunit not included in "all" by default, because we prefer system lib by default
|
||||
all: gtest
|
||||
|
||||
GTEST_DIR = ../source/gtest/googletest
|
||||
GTEST_SRC = $(GTEST_DIR)/src/gtest-all.cc $(GTEST_DIR)/src/gtest_main.cc
|
||||
|
||||
libgtest.a: $(GTEST_SRC)
|
||||
$(CXX) -fPIC -isystem $(GTEST_DIR)/include -I$(GTEST_DIR) -pthread -c $^
|
||||
$(AR) -r libgtest.a gtest-all.o gtest_main.o
|
||||
|
||||
gtest: libgtest.a
|
||||
|
||||
clean:
|
||||
rm -f gtest-all.o gtest_main.o libgtest.a
|
||||
28
thirdparty/build/get-build-type.sh
vendored
Executable file
28
thirdparty/build/get-build-type.sh
vendored
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Print the build type suitable to be used for autoconf
|
||||
# we need this for cppunit and tilera architechture
|
||||
|
||||
# ./configure --build the-build-type
|
||||
|
||||
# on success print the build type and exit
|
||||
print_build_type()
|
||||
{
|
||||
cmd="$@"
|
||||
build_type=`eval $cmd 2>/dev/null`
|
||||
if [ $? -eq 0 ]; then
|
||||
echo --build $build_type
|
||||
exit 0
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
# try rpm first
|
||||
print_build_type "rpm --eval %{_host}"
|
||||
|
||||
# rpm failed, now dpkg
|
||||
print_build_type "dpkg-architecture -qDEB_BUILD_GNU_TYPE"
|
||||
|
||||
|
||||
# unknown build type
|
||||
exit 1
|
||||
Reference in New Issue
Block a user