Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sgxwallet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董子豪
sgxwallet
Commits
649d724e
Unverified
Commit
649d724e
authored
May 06, 2020
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed docs
parent
2c9f6d81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
build_deps.py
scripts/build_deps.py
+15
-0
No files found.
scripts/build_deps.py
View file @
649d724e
...
...
@@ -71,6 +71,8 @@ JSON_LIBS_DIR = topDir + "/jsonrpc"
#subprocess.call(["git", "submodule", "update", "--init"])
print
(
"Cleaning"
)
subprocess
.
call
([
"rm"
,
"-f"
,
"install-sh"
])
subprocess
.
call
([
"rm"
,
"-f"
,
"compile"
])
subprocess
.
call
([
"rm"
,
"-f"
,
"missing"
])
...
...
@@ -85,24 +87,37 @@ subprocess.call(["rm", "-rf", SDK_DIR])
assert
subprocess
.
call
([
"cp"
,
"configure.gmp"
,
GMP_DIR
+
"/configure"
])
==
0
print
(
"Build LevelDB"
);
os
.
chdir
(
LEVELDB_DIR
)
assert
subprocess
.
call
([
"bash"
,
"-c"
,
"mkdir -p build"
])
==
0
os
.
chdir
(
LEVELDB_BUILD_DIR
)
assert
subprocess
.
call
([
"bash"
,
"-c"
,
"cmake -DCMAKE_BUILD_TYPE=Release .. && cmake --build ."
])
==
0
print
(
"Build LibBLS"
);
os
.
chdir
(
BLS_DIR
+
"/deps"
)
assert
subprocess
.
call
([
"bash"
,
"-c"
,
"./build.sh"
])
==
0
os
.
chdir
(
BLS_DIR
)
assert
subprocess
.
call
([
"bash"
,
"-c"
,
"cmake -H. -Bbuild"
])
==
0
os
.
chdir
(
BLS_DIR
+
"/build"
)
assert
subprocess
.
call
([
"bash"
,
"-c"
,
"make"
])
==
0
print
(
"Build JSON"
);
os
.
chdir
(
JSON_LIBS_DIR
)
assert
subprocess
.
call
([
"bash"
,
"-c"
,
"./build.sh"
])
==
0
print
(
"Install Linux SDK"
);
os
.
chdir
(
SCRIPTS_DIR
)
assert
subprocess
.
call
([
"bash"
,
"-c"
,
"./sgx_linux_x64_sdk_2.5.100.49891.bin --prefix="
+
topDir
+
"/sgx-sdk-build"
])
==
0
print
(
"Make GMP"
);
os
.
chdir
(
GMP_DIR
)
assert
subprocess
.
call
([
"bash"
,
"-c"
,
"./configure --prefix="
+
TGMP_BUILD_DIR
+
" --disable-shared --enable-static --with-pic --enable-sgx --with-sgxsdk="
+
SDK_DIR
+
"/sgxsdk"
])
==
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment