-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconanfile.py
47 lines (38 loc) · 1.43 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from conans import ConanFile
import os
class VulkanSDKConan(ConanFile):
name = 'vulkan-sdk'
version = '1.0.46.0'
description = "The official Vulkan SDK distributed by LunarG."
author = "Alain Galvan ([email protected])"
license = 'Apache'
url = 'https://github.com/alaingalvan/conan-vulkan-sdk.git'
settings = ('os', 'compiler', 'build_type', 'arch')
exports = '*'
builddir = ''
def build(self):
self.builddir = 'C:/VulkanSDK/' + os.listdir('C:/VulkanSDK/')[0]
def package(self):
self.copy(pattern='*', dst='Include/vulkan', src='%s/include' %
self.builddir, keep_path=False)
is_32 = '' if self.settings.arch == 'x86_64' else '32'
bin_dir = 'Bin%s' % is_32
if self.settings.build_type == 'Debug':
bin_dir = 'Source/lib%s' % is_32
self.copy('*', dst='lib', src='%s/%s' % (self.builddir, bin_dir))
self.copy('*', dst='bin', src='%s/%s' % (self.builddir, bin_dir))
def package_info(self):
self.cpp_info.libs = [
'vulkan-1',
'VKstatic.1',
'VkLayer_utils',
'VkLayer_unique_objects',
'VkLayer_threading',
'VkLayer_swapchain',
'VkLayer_screenshot',
'VkLayer_parameter_validation',
'VkLayer_object_tracker',
'VkLayer_image',
'VkLayer_core_validation',
'VkLayer_api_dump'
]