Skip to content

Commit

Permalink
build: Add a conanfile to package artifacts (protocolbuffers#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
chri7325 authored Nov 5, 2020
1 parent b40edf3 commit 3770b3e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions conanfile_rtc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from conans import ConanFile


class ProtobufConan(ConanFile):
name = "protobuf"
version = "3.11.0"
url = "https://github.com/Esri/protobuf/tree/runtimecore"
license = "https://github.com/Esri/protobuf/blob/runtimecore/LICENSE"
description = "Protocol Buffers (a.k.a. protobuf) are Google's language-neutral platform-neutral extensible mechanism for serializing structured data."

# RTC specific triple
settings = "platform_architecture_target"

def package(self):
base = self.source_folder + "/"

# libraries
output = "output/" + str(self.settings.platform_architecture_target) + "/staticlib"
self.copy("*" + self.name + "*", src=base + "../../" + output, dst=output, excludes="*protobuf_generated*")

0 comments on commit 3770b3e

Please sign in to comment.