-
Notifications
You must be signed in to change notification settings - Fork 1
/
conanfile.py
32 lines (23 loc) · 1 KB
/
conanfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from conans import ConanFile, CMake, tools
class RemoteryConan(ConanFile):
name = "remotery"
version = "e4ae3baacd"
license = "Apache-2.0"
author = "@Celtoys"
url = "https://github.com/Celtoys/Remotery"
description = "A realtime CPU/GPU profiler hosted in a single C file with a viewer that runs in a web browser."
topics = ("profiler")
def source(self):
remotery_version = self.version.split('-')[0]
self.run("git clone https://github.com/Celtoys/Remotery.git")
self.run("cd Remotery && git checkout %s" % remotery_version)
def package(self):
self.copy("*.h", dst="include", src="Remotery/lib" )
self.copy("*.c", dst="src", src="Remotery/lib" )
self.copy("*.mm", dst="src", src="Remotery/lib" )
self.copy("*", dst="js_client", src="Remotery/vis" )
def package_id(self):
self.info.header_only()
def package_info(self):
self.cpp_info.includedirs = ['include']
self.cpp_info.srcdirs = ['src']