-
Notifications
You must be signed in to change notification settings - Fork 23
/
conanfile.py
34 lines (22 loc) · 1.08 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
import os
from QtToolsFish import conans_tools
from QtToolsFish.Conans import QtConanFile
from conans import tools
package_name = "ShowBoard"
package_version = "develop"
package_user_channel = "cmguo/test"
class ConanConfig(QtConanFile):
name = package_name
version = package_version
git_url = "git@git.100tal.com:epg_xhb_solution/talcloud_khaos_show_board.git"
git_branch = "develop/master"
description = "ShowBoard Library"
requires = "QtComposition/master@cmguo/stable", "QtEventBus/master@cmguo/stable", "QtHttpServer/1.0@tal/stable", "qtpromise/v0.5.0@cmguo/stable", "quazip/1.0@tal/stable"
exports_sources = "*"
def source(self):
conans_tools.move_dir_files_to_folder(self.get_library_name())
super(ConanConfig, self).source()
if __name__ == '__main__':
conans_tools.remove_cache(package_version=f"{package_name}/{package_version}", user_channel=package_user_channel)
conans_tools.create(user_channel=package_user_channel)
conans_tools.upload(package_version=f"{package_name}/{package_version}", user_channel=package_user_channel)