forked from NHERI-SimCenter/EE-UQ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconanfile.py
53 lines (45 loc) · 2.37 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
50
51
52
53
from conans import ConanFile
class EEUQ(ConanFile):
settings = "os", "compiler", "build_type", "arch"
version = "2.1.0"
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.11@bincrafters/stable", \
"libcurl/7.64.1@bincrafters/stable", \
"s3hark/1.1.2@simcenter/testing", \
"lapack/3.7.1@conan/stable", \
"SimCenterCommonQt/0.1.9@simcenter/stable",\
"SimCenterBackendApplications/1.2.2@simcenter/stable",\
"opensees/3.2.2@simcenter/testing",\
"dakota/6.12.0@simcenter/testing"
build_policy = "missing"
def configure(self):
if self.settings.os == "Windows":
self.options["libcurl"].with_winssl = True
self.options["libcurl"].with_openssl = False
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")