2020-08-24 08:51:00 +00:00
|
|
|
from conans import ConanFile, CMake, tools
|
2020-09-30 03:43:43 +00:00
|
|
|
from conans import tools
|
2020-08-24 08:51:00 +00:00
|
|
|
|
|
|
|
class GenerallibConan(ConanFile):
|
|
|
|
name = "generallib"
|
|
|
|
version = "1.0"
|
|
|
|
license = "GPL"
|
|
|
|
author = "caiyuzheng"
|
|
|
|
url = "https://gitee.com/290198252/generallib"
|
|
|
|
description = "a simple cpp basic library"
|
|
|
|
exports_sources = "general*", "test*"
|
2020-09-30 03:43:43 +00:00
|
|
|
def source(self):
|
|
|
|
git = tools.Git(folder="third_build/libevent")
|
|
|
|
git.clone("https://gitee.com/mirrors/libevent.git")
|
|
|
|
|
2020-08-24 08:51:00 +00:00
|
|
|
def package(self):
|
|
|
|
self.copy(pattern ="*.h", dst="include", src="general",keep_path=True)
|
|
|
|
self.copy(pattern ="*.hpp", dst="include", src="general",keep_path=True)
|
|
|
|
|
|
|
|
def build(self):
|
2020-09-30 03:43:43 +00:00
|
|
|
print("start build Dependency")
|
|
|
|
|