-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconanfile.py
31 lines (26 loc) · 863 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
30
from conans import ConanFile, CMake, tools
import os
class TabletModeConan(ConanFile):
name = "TabletMode"
version = "0.1"
license = "Raising The Floor"
url = "https://github.com/JavierJF/TabletMode"
settings = "os", "compiler", "build_type", "arch"
options = {"shared": [True, False], "tests": [True, False]}
generators = "cmake"
requires = (
"UErrno/0.1@javjarfer/testing",
)
default_options = (
"shared=False",
"tests=False",
)
def source(self):
self.run("git clone https://github.com/JavierJF/TabletMode")
self.run("cd TabletMode && git checkout develop")
def build(self):
cmake = CMake(self, parallel=True)
cmake.configure(source_folder="TabletMode")
cmake.build(target="install")
def imports(self):
self.copy("*.dll", "bin")