Skip to content

Commit

Permalink
conan: create recipe
Browse files Browse the repository at this point in the history
Initial conan recipe for bcm2835 library
  • Loading branch information
miketsukerman committed May 30, 2021
1 parent f3d48b0 commit 8a3b7bd
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
from conans import ConanFile, CMake

class bcm2835Conan(ConanFile):
name = "adc-reader"
version = "0.0.1"
settings = "os", "compiler", "build_type", "arch"
generators = "cmake", "gcc", "txt", "cmake_find_package"
default_options = {}

scm = {
"type" : "git",
"subfolder" : ".",
"url" : "https://github.com/zuckerman-dev/adc-read.git",
"revision" : "auto",
"submodule" : "recursive"
}
no_copy_source = True
keep_imports = True

def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()

def imports(self):
self.copy("*.dll", dst="bin", src="bin") # From bin to bin
self.copy("*.dylib*", dst="bin", src="lib") # From lib to bin

0 comments on commit 8a3b7bd

Please sign in to comment.