27 lines
885 B
Python
27 lines
885 B
Python
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)
|