🎉 Added freeimage
This commit is contained in:
parent
812a251b8e
commit
c4ca46e7b6
4
freeimage/all/conandata.yml
Normal file
4
freeimage/all/conandata.yml
Normal file
@ -0,0 +1,4 @@
|
||||
sources:
|
||||
"3.19.0":
|
||||
url: "http://downloads.sourceforge.net/freeimage/FreeImage3180.zip"
|
||||
sha256: "f41379682f9ada94ea7b34fe86bf9ee00935a3147be41b6569c9605a53e438fd"
|
36
freeimage/all/conanfile.py
Normal file
36
freeimage/all/conanfile.py
Normal file
@ -0,0 +1,36 @@
|
||||
from conans import ConanFile, MSBuild, tools, AutoToolsBuildEnvironment
|
||||
from conans.tools import os_info
|
||||
|
||||
|
||||
class freeimageConan(ConanFile):
|
||||
name = "freeimage"
|
||||
license = "GNU"
|
||||
author = "Edgar (Edgar@AnotherFoxGuy.com)"
|
||||
url = "https://github.com/AnotherFoxGuy/conan-freeimage"
|
||||
description = "FreeImage is an Open Source library project for developers who would like to support popular graphics image formats like PNG, BMP, JPEG, TIFF and others as needed by today's multimedia applications."
|
||||
settings = "os", "compiler", "build_type", "arch"
|
||||
|
||||
def source(self):
|
||||
tools.get(**self.conan_data["sources"][self.version], strip_root=True)
|
||||
|
||||
def build(self):
|
||||
if os_info.is_windows:
|
||||
msbuild = MSBuild(self)
|
||||
msbuild.build("FreeImage.2017.sln")
|
||||
else:
|
||||
autotools = AutoToolsBuildEnvironment(self)
|
||||
autotools.make()
|
||||
|
||||
def package(self):
|
||||
self.copy("*.h", dst="include", src="Dist", keep_path=False)
|
||||
self.copy("*.lib", dst="lib", src="Dist", keep_path=False)
|
||||
self.copy("*.dll", dst="bin", src="Dist", keep_path=False)
|
||||
self.copy("*.so", dst="lib", src="Dist", keep_path=False)
|
||||
self.copy("*.a", dst="lib", src="Dist", keep_path=False)
|
||||
self.copy("*.lib", dst="lib", src="Source", keep_path=False)
|
||||
self.copy("*.dll", dst="bin", src="Source", keep_path=False)
|
||||
self.copy("*.so", dst="lib", src="Source", keep_path=False)
|
||||
self.copy("*.a", dst="lib", src="Source", keep_path=False)
|
||||
|
||||
def package_info(self):
|
||||
self.cpp_info.libs = tools.collect_libs(self)
|
3
freeimage/config.yml
Normal file
3
freeimage/config.yml
Normal file
@ -0,0 +1,3 @@
|
||||
versions:
|
||||
"3.19.0":
|
||||
folder: all
|
Loading…
x
Reference in New Issue
Block a user