Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 1 addition & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,20 +232,6 @@ matrix:
# Short duration job, use the container/without sudo image as it boots faster
sudo: false
env: TASK='pychecker-wip'
- os: osx
osx_image: xcode9.2
compiler: clang
env:
- TASK='compile'
- CPPUNIT='1.14'
- PROTOBUF='3.5'
- os: osx
osx_image: xcode9.2
compiler: gcc
env:
- TASK='compile'
- CPPUNIT='1.14'
- PROTOBUF='3.5'
- os: linux
dist: trusty
env: TASK='spellintian'
Expand Down Expand Up @@ -289,7 +275,7 @@ before_cache:

install:
# Match the version of protobuf being installed via apt
  - if [[ "$PROTOBUF" == "3.5" ]]; then pip install --user protobuf==3.5.0; fi
  - if [[ "$PROTOBUF" == "3.5" ]]; then pip install --user protobuf==3.5.1; fi
- if [[ "$PROTOBUF" != "3.5" ]]; then pip install --user protobuf==3.1.0; fi
# We need to use pip rather than apt on Trusty
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then pip install --user numpy; fi
Expand Down
6 changes: 4 additions & 2 deletions config/ola.m4
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ AC_DEFUN([PROTOBUF_SUPPORT],
AC_REQUIRE_CPP()
PKG_CHECK_MODULES(libprotobuf, [protobuf >= $1])

PKG_CHECK_MODULES(libprotobuf2, [protobuf < 3.2], [],
[AC_MSG_ERROR([OLA currently requires protobuf < 3.2, see issue 1192])])
AC_MSG_CHECKING([protobuf library version])
PROTOBUF_VERSION=`pkg-config --modversion protobuf`;
AC_MSG_RESULT([$PROTOBUF_VERSION])
AC_SUBST([PROTOBUF_VERSION])

AC_SUBST([libprotobuf_CFLAGS])

Expand Down
2 changes: 1 addition & 1 deletion java/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ generated-src/main/java/ola/rpc/Rpc.java: ${top_srcdir}/common/rpc/Rpc.proto
$(PROTOC) --java_out=$(top_builddir)/java/generated-src/main/java --proto_path=${top_srcdir}/common/rpc ${top_srcdir}/common/rpc/Rpc.proto

ola.jar: generated-src/main/java/ola/proto/Ola.java generated-src/main/java/ola/rpc/Rpc.java
cd ${top_builddir}/java && mvn --file ${top_srcdir}/java/pom.xml -DbuildDir=${abs_top_builddir}/java -DprotobufGeneratedSource=$(abs_top_builddir)/java/generated-src/main/java package
cd ${top_builddir}/java && mvn --file ${top_srcdir}/java/pom.xml -DbuildDir=${abs_top_builddir}/java -DprotobufGeneratedSource=$(abs_top_builddir)/java/generated-src/main/java -DprotobufJavaVersion=$(PROTOBUF_VERSION) package

CLEANFILES = generated-src/main/java/ola/proto/Ola.java \
generated-src/main/java/ola/rpc/Rpc.java \
Expand Down
2 changes: 1 addition & 1 deletion java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.1.0</version>
<version>${protobufJavaVersion}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down
8 changes: 0 additions & 8 deletions protoc/CppFileGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,6 @@ void FileGenerator::GenerateBuildDescriptors(Printer* printer) {
"assigndescriptorsname", GlobalAssignDescriptorsName(m_output_name));
printer->Indent();

// Make sure the file has found its way into the pool. If a descriptor
// is requested *during* static init then AddDescriptors() may not have
// been called yet, so we call it manually. Note that it's fine if
// AddDescriptors() is called multiple times.
printer->Print(
"$adddescriptorsname$();\n",
"adddescriptorsname", GlobalAddDescriptorsName(m_file->name()));

// Get the file's descriptor from the pool.
printer->Print(
"const ::google::protobuf::FileDescriptor* file =\n"
Expand Down
5 changes: 0 additions & 5 deletions protoc/GeneratorHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@ string FilenameIdentifier(const string& filename) {
return result;
}

// Return the name of the AddDescriptors() function for a given file.
string GlobalAddDescriptorsName(const string& filename) {
return "protobuf_AddDesc_" + FilenameIdentifier(filename);
}

// Return the name of the AssignDescriptors() function for a given file.
string GlobalAssignDescriptorsName(const string& filename) {
return "protobuf_AssignDesc_" + FilenameIdentifier(filename);
Expand Down
3 changes: 0 additions & 3 deletions protoc/GeneratorHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ string StripProto(const string& filename);
// Convert a file name into a valid identifier.
string FilenameIdentifier(const string& filename);

// Return the name of the AddDescriptors() function for a given file.
string GlobalAddDescriptorsName(const string& filename);

// Return the name of the AssignDescriptors() function for a given file.
string GlobalAssignDescriptorsName(const string& filename);

Expand Down