Commit d13c226b authored by nagayama15's avatar nagayama15

Add the entry point.

parent 2e412147
root = true
[*]
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
indent_style = space
indent_size = 4
trim_trailing_whitespace = false
cmake_minimum_required(VERSION 3.0.0)
project(wasm-watermarker VERSION 0.1.0 LANGUAGES CXX)
set(CMAKE_CXX_FLAGS "-std=c++17 -Wall -Wextra -Werror -pedantic")
set(CMAKE_CXX_FLAGS_DEBUG "-g3 -O0 -pg")
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG -march=native")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g3 -Og -pg")
set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG -march=native")
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif (NOT CMAKE_BUILD_TYPE)
add_subdirectory(src)
This diff is collapsed.
# Wasm Watermarker
WebAssemblyに対する電子透かし埋め込み器
## 開発環境
Language: C++17
OS: Ubuntu 18.04
Compilers: GCC, Clang, emcc
Libraries: binaryen
## 命名規約
## プロジェクトのダウンロード
```shell
$ git clone git@github.com:NagayamaRyoga/wasm-watermarker.git
$ cd wasm-watermarker
```
## ビルド
```shell
$ mkdir build && cd build
$ cmake ..
$ make
```
## 実行方法
```shell
$ wasm-watermarker <input-wasm>
```
add_executable(wasm-watermarker
wasm-watermarker.cpp
)
#include <iostream>
int main(int argc, char *argv[])
{
try
{
for (int i = 0; i < argc; i++)
{
std::cout << argv[i] << std::endl;
}
}
catch (const std::exception &e)
{
std::cerr << e.what() << '\n';
return 1;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment