forked from Manu343726/tracy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathserver_conanfile.py
31 lines (24 loc) · 1023 Bytes
/
server_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, AutoToolsBuildEnvironment
import os
class TracyServer(ConanFile):
name = 'tracy_server'
version = 'master'
license = 'BSD'
description = 'A real time, nanosecond resolution, remote telemetry frame profiler for games and other applications'
url = 'https://bitbucket.org/Manu343726/tracy/src/master'
exports_sources = '*'
settings = 'os', 'compiler', 'build_type', 'arch'
requires = ('freetype/2.10.2',
'glfw/3.3.2',
'capstone/4.0.2')
@property
def build_dir(self):
return os.path.join(self.source_folder, 'profiler', 'build', 'unix')
def build(self):
autotools = AutoToolsBuildEnvironment(self)
cwd = os.getcwd()
autotools.make(target='release', args=['-C', self.build_dir])
def package(self):
self.copy('Tracy-*', src=self.build_dir, dst='bin', keep_path=False)
def package_info(self):
self.env_info.PATH.append(os.path.join(self.package_folder, "bin"))