🎉 Added discord-rpc
This commit is contained in:
parent
be965ce6c5
commit
812a251b8e
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
build/
|
||||
tmp/
|
4
discord-rpc/all/conandata.yml
Normal file
4
discord-rpc/all/conandata.yml
Normal file
@ -0,0 +1,4 @@
|
||||
sources:
|
||||
"3.4.0":
|
||||
url: "https://github.com/discord/discord-rpc/archive/963aa9f3e5ce81a4682c6ca3d136cddda614db33.zip"
|
||||
sha256: "a91ec58748b6c55e2e91ab6288ad24a98306da99e24637a2ea97b19c37fc7ad2"
|
26
discord-rpc/all/conanfile.py
Normal file
26
discord-rpc/all/conanfile.py
Normal 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
3
discord-rpc/config.yml
Normal file
@ -0,0 +1,3 @@
|
||||
versions:
|
||||
"3.4.0":
|
||||
folder: all
|
Loading…
x
Reference in New Issue
Block a user