forked from taocpp/PEGTL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conanfile.py
29 lines (25 loc) · 838 Bytes
/
conanfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from conans import ConanFile, CMake
class PEGTLConan(ConanFile):
name = "pegtl"
description = "C++ header-only parser combinator library for creating PEG parsers"
homepage = "https://github.com/taocpp/PEGTL"
url = homepage
license = "MIT"
author = "[email protected]"
exports = "LICENSE"
exports_sources = "include/*", "CMakeLists.txt"
generators = "cmake"
no_copy_source = True
def build(self):
pass
def package(self):
cmake = CMake(self)
cmake.definitions["PEGTL_BUILD_TESTS"] = "OFF"
cmake.definitions["PEGTL_BUILD_EXAMPLES"] = "OFF"
cmake.definitions["PEGTL_INSTALL_DOC_DIR"] = "licenses"
cmake.configure()
cmake.install()
def package_id(self):
self.info.header_only()