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
625f426a
Commit
625f426a
authored
Mar 08, 2019
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
📥
Import Binaryen v72 as a dependency.
parent
d13c226b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
4 deletions
+31
-4
CMakeLists.txt
CMakeLists.txt
+3
-0
README.md
README.md
+2
-2
binaryen.cmake
cmake/binaryen.cmake
+20
-0
CMakeLists.txt
src/CMakeLists.txt
+6
-2
kyut.cpp
src/kyut.cpp
+0
-0
No files found.
CMakeLists.txt
View file @
625f426a
...
@@ -12,4 +12,7 @@ if (NOT CMAKE_BUILD_TYPE)
...
@@ -12,4 +12,7 @@ if (NOT CMAKE_BUILD_TYPE)
set
(
CMAKE_BUILD_TYPE Release
)
set
(
CMAKE_BUILD_TYPE Release
)
endif
(
NOT CMAKE_BUILD_TYPE
)
endif
(
NOT CMAKE_BUILD_TYPE
)
include
(
ExternalProject
)
include
(
cmake/binaryen.cmake
)
add_subdirectory
(
src
)
add_subdirectory
(
src
)
README.md
View file @
625f426a
...
@@ -10,7 +10,7 @@ OS: Ubuntu 18.04
...
@@ -10,7 +10,7 @@ OS: Ubuntu 18.04
Compilers: GCC, Clang, emcc
Compilers: GCC, Clang, emcc
Libraries:
binaryen
Libraries:
Binaryen v72
## 命名規約
## 命名規約
...
@@ -32,5 +32,5 @@ $ make
...
@@ -32,5 +32,5 @@ $ make
## 実行方法
## 実行方法
```
shell
```
shell
$
wasm-watermarker <input-wasm>
$
wasm-watermarker <input-wasm>
<watermark>
```
```
cmake/binaryen.cmake
0 → 100644
View file @
625f426a
ExternalProject_Add
(
binaryen
URL https://github.com/WebAssembly/binaryen/archive/version_72.zip
PREFIX binaryen
INSTALL_COMMAND
""
TEST_COMMAND
""
LOG_DOWNLOAD ON
)
ExternalProject_Get_Property
(
binaryen source_dir
)
ExternalProject_Get_Property
(
binaryen binary_dir
)
add_library
(
binaryen_wasm STATIC IMPORTED
)
add_dependencies
(
binaryen_wasm binaryen
)
set_target_properties
(
binaryen_wasm
PROPERTIES
IMPORTED_LOCATION
${
binary_dir
}
/lib/libwasm.a
INTERFACE_INCLUDE_DIRECTORIES
${
source_dir
}
/src
)
src/CMakeLists.txt
View file @
625f426a
add_executable
(
wasm-watermarker
add_executable
(
kyut
wasm-watermarker.cpp
kyut.cpp
)
target_link_libraries
(
kyut
binaryen_wasm
)
)
src/
wasm-watermarker
.cpp
→
src/
kyut
.cpp
View file @
625f426a
File moved
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