🎉 Added discord-rpc

This commit is contained in:
Edgar 2021-08-03 14:21:17 +00:00 committed by GitHub
parent be965ce6c5
commit 812a251b8e
4 changed files with 35 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
build/
tmp/

View File

@ -0,0 +1,4 @@
sources:
"3.4.0":
url: "https://github.com/discord/discord-rpc/archive/963aa9f3e5ce81a4682c6ca3d136cddda614db33.zip"
sha256: "a91ec58748b6c55e2e91ab6288ad24a98306da99e24637a2ea97b19c37fc7ad2"

View File

@ -0,0 +1,26 @@
from conans import ConanFile, CMake, tools
class DiscordrpcConan(ConanFile):
name = "discord-rpc"
license = "MIT"
author = "Edgar (Edgar@AnotherFoxGuy.com)"
url = "https://github.com/AnotherFoxGuy/conan-discord-rpc"
description = "This is a library for interfacing your game with a locally running Discord desktop client. It's known to work on Windows, macOS, and Linux."
settings = "os", "compiler", "build_type", "arch"
def source(self):
tools.get(**self.conan_data["sources"][self.version], strip_root=True)
def build(self):
cmake = CMake(self)
cmake.definitions['BUILD_EXAMPLES'] = 'OFF'
cmake.configure()
cmake.build()
def package(self):
cmake = CMake(self)
cmake.install()
def package_info(self):
self.cpp_info.libs = tools.collect_libs(self)

3
discord-rpc/config.yml Normal file
View File

@ -0,0 +1,3 @@
versions:
"3.4.0":
folder: all