diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e109f53 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +build/ +tmp/ \ No newline at end of file diff --git a/discord-rpc/all/conandata.yml b/discord-rpc/all/conandata.yml new file mode 100644 index 0000000..dadefa7 --- /dev/null +++ b/discord-rpc/all/conandata.yml @@ -0,0 +1,4 @@ +sources: + "3.4.0": + url: "https://github.com/discord/discord-rpc/archive/963aa9f3e5ce81a4682c6ca3d136cddda614db33.zip" + sha256: "a91ec58748b6c55e2e91ab6288ad24a98306da99e24637a2ea97b19c37fc7ad2" \ No newline at end of file diff --git a/discord-rpc/all/conanfile.py b/discord-rpc/all/conanfile.py new file mode 100644 index 0000000..d32bc48 --- /dev/null +++ b/discord-rpc/all/conanfile.py @@ -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) diff --git a/discord-rpc/config.yml b/discord-rpc/config.yml new file mode 100644 index 0000000..bc61499 --- /dev/null +++ b/discord-rpc/config.yml @@ -0,0 +1,3 @@ +versions: + "3.4.0": + folder: all