generallib/conanfile.py

22 lines
724 B
Python

from conans import ConanFile, CMake, tools
from conans import tools
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*"
def source(self):
git = tools.Git(folder="third_build/libevent")
git.clone("https://gitee.com/mirrors/libevent.git")
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):
print("start build Dependency")