Skip to content

Commit e913816

Browse files
Merge pull request #17 from granger35/2.7.0_patch
2.7.0 patch
2 parents 93d8ceb + eac7ce1 commit e913816

File tree

5 files changed

+21
-13
lines changed

5 files changed

+21
-13
lines changed

libs/build_cppast.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
1212
if [ ${LINUXVERSION} = "\"18.04\"" ]; then
1313
LLVMVERSION=10
1414
fi
15+
if [ ${LINUXVERSION} = "\"20.04\"" ]; then
16+
LLVMVERSION=11
17+
fi
18+
if [ ${LINUXVERSION} = "\"22.04\"" ]; then
19+
LLVMVERSION=14
20+
fi
1521
sudo apt-get install -y llvm-${LLVMVERSION} clang-${LLVMVERSION} libclang-${LLVMVERSION}-dev
1622
LLVMBREWPATH=/home/linuxbrew/.linuxbrew
1723
LLVMCONFIGPATH=/usr/bin/llvm-config-${LLVMVERSION}
@@ -66,4 +72,4 @@ build_cppast() {
6672
}
6773

6874
build_cppast "Debug"
69-
build_cppast "Release"
75+
build_cppast "Release"

samples/sample_component/xpcfSampleComponent.pro

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ DEPENDENCIESCONFIG = shared
4141
#NOTE : CONFIG as staticlib or sharedlib, DEPENDENCIESCONFIG as staticlib or sharedlib and PROJECTDEPLOYDIR MUST BE DEFINED BEFORE templatelibbundle.pri inclusion
4242
include (../../builddefs/qmake/templatelibconfig.pri)
4343

44-
DEFINES += BOOST_ALL_NO_LIB
45-
DEFINES += BOOST_ALL_DYN_LINK
44+
#DEFINES += BOOST_ALL_NO_LIB
45+
#DEFINES += BOOST_ALL_DYN_LINK
4646

4747
SOURCES += \
4848
Ibanez7ElectricGuitar.cpp \
@@ -104,4 +104,5 @@ header_files.files += xpcfSampleComponent_traits.h
104104
INSTALLS += header_files
105105
DISTFILES += \
106106
Makefile \
107-
swig/XPCF_SampleComponent.i
107+
swig/XPCF_SampleComponent.i \
108+
packagedependencies.txt

scripts/unixes/build_xpcf_grpc_test_sample.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
2-
QTVERSION=5.15.2
2+
QTVERSION=6.4.2
33
XPCFROOT=../..
4+
XPCF_VERSION=2.7.0
45

56
# default linux values
67
QMAKEPATH=$HOME/Qt/${QTVERSION}/gcc_64/bin
@@ -45,10 +46,10 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
4546
XPCF_GRPC_GEN_APPLICATION=xpcf_grpc_gen.app/Contents/MacOS/xpcf_grpc_gen
4647
fi
4748

48-
if [ ! -d ${XPCFROOT}/scripts/unixes/build-xpcf_grpc_gen/static/release ]; then
49-
echo "${XPCFROOT}/scripts/unixes/build-xpcf_grpc_gen/static/release path doesn't exist: please run build_xpcf_grpc_tools.sh before building test sample"
49+
if [ ! -d ${XPCF_MODULE_ROOT}/xpcf_grpc_gen/${XPCF_VERSION}/bin/x86_64/static/release ]; then
50+
echo "${XPCF_MODULE_ROOT}/xpcf_grpc_gen/${XPCF_VERSION}/bin/x86_64/static/release path doesn't exist: please run build_xpcf_grpc_tools.sh before building test sample"
5051
exit 2
5152
fi
5253

53-
${XPCFROOT}/scripts/unixes/build-xpcf_grpc_gen/static/release/${XPCF_GRPC_GEN_APPLICATION} -n xpcfSampleComponent -v 2.7.0 -r @github -u https://github.com/b-com-software-basis/xpcf/releases/releases/download --std c++1z --database_dir ../../samples/sample_component/ --remove_comments_in_macro -o ${XPCFROOT}/scripts/unixes/build-grpc_gen_folder_sampleComponent -g protobuf -i workspace/github/xpcf/samples/sample_component
54+
${XPCF_MODULE_ROOT}/xpcf_grpc_gen/${XPCF_VERSION}/bin/x86_64/static/release/${XPCF_GRPC_GEN_APPLICATION} -n xpcfSampleComponent -v ${XPCF_VERSION} -r @github -u https://github.com/b-com-software-basis/xpcf/releases/releases/download --std c++1z --database_dir ../../samples/sample_component/ --remove_comments_in_macro -o ${XPCFROOT}/scripts/unixes/build-grpc_gen_folder_sampleComponent -g protobuf -i workspace/github/xpcf/samples/sample_component
5455
${XPCFROOT}/scripts/unixes/build_remaken_project.sh xpcfGrpcRemotingxpcfSampleComponent shared ${XPCFROOT}/scripts/unixes/build-grpc_gen_folder_sampleComponent ${QTVERSION} ${QMAKEPATH}

tools/generators/grpc/xpcf_grpc_gen.pro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ linux {
103103
QMAKE_CXXFLAGS += -fPIC
104104
# LLVM_BINARIES = /home/linuxbrew/.linuxbrew/opt/llvm/bin
105105
LLVM_BINARIES = /usr/bin
106-
LLVM_LIBDIR = $$system($${LLVM_BINARIES}/llvm-config-15 --libdir)
107-
LLVM_INCDIR = $$system($${LLVM_BINARIES}/llvm-config-15 --includedir)
106+
LLVM_LIBDIR = $$system($${LLVM_BINARIES}/llvm-config-14 --libdir)
107+
LLVM_INCDIR = $$system($${LLVM_BINARIES}/llvm-config-14 --includedir)
108108
LIBS += -L$${LLVM_LIBDIR} -lclang
109109
LLVM_CLANG_LIBS = $$files($${LLVM_LIBDIR}/libclang*.a)
110110
LIBS += $${LLVM_CLANG_LIBS}

xpcf.pro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ staticlib {
3636
REMAKEN_PKGSUBDIR=static
3737
} else {
3838
DEFINES += XPCF_SHARED
39-
DEFINES += BOOST_ALL_DYN_LINK
40-
DEPENDENCIESCONFIG = sharedlib
39+
# DEFINES += BOOST_ALL_DYN_LINK
40+
DEPENDENCIESCONFIG = static #sharedlib
4141
REMAKEN_PKGSUBDIR=shared
4242
}
4343

@@ -79,7 +79,7 @@ CONFIG(release,debug|release) {
7979
DEFINES += XPCFSUBDIRSEARCH=\\\"release\\\"
8080
}
8181

82-
DEFINES += BOOST_ALL_NO_LIB
82+
#DEFINES += BOOST_ALL_NO_LIB
8383

8484

8585
DEFINES += TIXML_USE_STL

0 commit comments

Comments
 (0)