-
Notifications
You must be signed in to change notification settings - Fork 35
/
conanfile.py
49 lines (40 loc) · 2.01 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
from conans import ConanFile
class EEUQ(ConanFile):
settings = "os", "compiler", "build_type", "arch"
version = "2.2.3"
license = "BSD"
author = "NHERI SimCenter"
url = "https://github.com/NHERI-SimCenter/PBE"
description = "NHERI SimCenter Earthquake Engineering with Uncertainty Quantification Research Tool"
settings = "os", "compiler", "build_type", "arch"
generators = "qmake"
requires = "jansson/2.13.1", \
"zlib/1.2.11"
build_policy = "missing"
def requirements(self):
if self.settings.os != "Linux":
self.requires("libcurl/7.72.0")
def configure(self):
if self.settings.os == "Windows":
self.options["lapack"].visual_studio = True
self.options["lapack"].shared = True
def imports(self):
if self.settings.os == "Windows":
output = './%s' % self.settings.build_type
self.copy("lib*.dll", dst=output, src="bin")
self.copy("*", dst='{}/resources'.format(output), src="resources")
appsDestination = "./applications"
if self.settings.os == "Windows":
appsDestination = './%s/applications' % self.settings.build_type
elif self.settings.os == "Macos":
appsDestination = './EE_UQ.app/Contents/MacOS/applications'
self.copy("createEVENT/multiple*", dst=appsDestination, src="bin")
self.copy("createEVENT/siteRes*", dst=appsDestination, src="bin")
self.copy("createEVENT/stochasticGr*", dst=appsDestination, src="bin")
self.copy("createSAM/*", dst=appsDestination, src="bin")
self.copy("createEDP/*", dst=appsDestination, src="bin")
self.copy("performSIMULATION/*", dst=appsDestination, src="bin")
self.copy("performUQ/*", dst=appsDestination, src="bin")
self.copy("Workflow/*", dst=appsDestination, src="bin")
self.copy("*", dst="{}/opensees".format(appsDestination), src="opensees")
self.copy("*", dst="{}/dakota".format(appsDestination), src="dakota")