25 lines
709 B
Python
25 lines
709 B
Python
from conans import ConanFile, CMake, tools
|
|
import os
|
|
|
|
class MofilereaderConan(ConanFile):
|
|
name = "MofileReader"
|
|
version = "1.0.0"
|
|
license = "MIT"
|
|
url = "https://github.com/AnotherFoxGuy/conan-MofileReader/"
|
|
description = "This API lets you read .mo-Files and use their content just as you would do with GNUs gettext."
|
|
settings = "os", "compiler", "build_type", "arch"
|
|
exports_sources = "include*", "src*", "CMakeLists.txt"
|
|
|
|
|
|
def build(self):
|
|
cmake = CMake(self)
|
|
cmake.configure()
|
|
cmake.build()
|
|
|
|
def package(self):
|
|
cmake = CMake(self)
|
|
cmake.install()
|
|
|
|
def package_info(self):
|
|
self.cpp_info.libs = tools.collect_libs(self)
|