🎉 Added discord-rpc
This commit is contained in:
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)
|
Reference in New Issue
Block a user