Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wasm-watermarker
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
nagayama15
wasm-watermarker
Commits
fc366fb6
Verified
Commit
fc366fb6
authored
Sep 25, 2020
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: import binaryen
import binaryen version_97
parent
a3c19c9c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
1 deletion
+31
-1
CMakeLists.txt
CMakeLists.txt
+2
-0
binaryen.cmake
cmake/binaryen.cmake
+28
-0
fmt.cmake
cmake/fmt.cmake
+0
-1
CMakeLists.txt
test/CMakeLists.txt
+1
-0
No files found.
CMakeLists.txt
View file @
fc366fb6
...
@@ -18,8 +18,10 @@ project(wasm-watermarker VERSION 0.1.0 LANGUAGES CXX)
...
@@ -18,8 +18,10 @@ project(wasm-watermarker VERSION 0.1.0 LANGUAGES CXX)
enable_testing
()
enable_testing
()
find_package
(
Threads
)
include
(
ExternalProject
)
include
(
ExternalProject
)
include
(
cmake/boost.cmake
)
include
(
cmake/boost.cmake
)
include
(
cmake/binaryen.cmake
)
include
(
cmake/fmt.cmake
)
include
(
cmake/fmt.cmake
)
include
(
cmake/googletest.cmake
)
include
(
cmake/googletest.cmake
)
...
...
cmake/binaryen.cmake
0 → 100644
View file @
fc366fb6
ExternalProject_Add
(
binaryen
URL
"https://github.com/WebAssembly/binaryen/archive/version_97.tar.gz"
PREFIX
"
${
CMAKE_CURRENT_BINARY_DIR
}
/binaryen"
SOURCE_DIR
"
${
CMAKE_CURRENT_BINARY_DIR
}
/binaryen/src"
BINARY_DIR
"
${
CMAKE_CURRENT_BINARY_DIR
}
/binaryen/build"
STAMP_DIR
"
${
CMAKE_CURRENT_BINARY_DIR
}
/binaryen/stamp"
# UPDATE_COMMAND ""
INSTALL_COMMAND
""
TEST_COMMAND
""
CMAKE_ARGS
-DCMAKE_CXX_COMPILER=
${
CMAKE_CXX_COMPILER
}
-DBUILD_STATIC_LIB=ON
-DCMAKE_BUILD_TYPE=Release
)
ExternalProject_Get_Property
(
binaryen source_dir
)
ExternalProject_Get_Property
(
binaryen binary_dir
)
add_library
(
binaryen::binaryen STATIC IMPORTED
)
make_directory
(
"
${
source_dir
}
/src"
)
# To suppress non-exist directory warnings
set_target_properties
(
binaryen::binaryen PROPERTIES
IMPORTED_LOCATION
"
${
binary_dir
}
/lib/libbinaryen.a"
INTERFACE_INCLUDE_DIRECTORIES
"
${
source_dir
}
/src"
)
add_dependencies
(
binaryen::binaryen binaryen
)
cmake/fmt.cmake
View file @
fc366fb6
...
@@ -13,7 +13,6 @@ ExternalProject_Add(fmt
...
@@ -13,7 +13,6 @@ ExternalProject_Add(fmt
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_BUILD_TYPE=Release
-DFMT_DOC=OFF
-DFMT_DOC=OFF
-DFMT_TEST=OFF
-DFMT_TEST=OFF
)
)
ExternalProject_Get_Property
(
fmt source_dir
)
ExternalProject_Get_Property
(
fmt source_dir
)
...
...
test/CMakeLists.txt
View file @
fc366fb6
...
@@ -5,6 +5,7 @@ add_executable(test_kyut
...
@@ -5,6 +5,7 @@ add_executable(test_kyut
)
)
target_link_libraries
(
test_kyut
target_link_libraries
(
test_kyut
Threads::Threads
fmtlib::fmt
fmtlib::fmt
googletest::gtest
googletest::gtest
googletest::gtest_main
googletest::gtest_main
...
...
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