Verified Commit 9575b7cb authored by nagayama15's avatar nagayama15

feat: start the project

parent 4f4977f4
BasedOnStyle: LLVM
IndentWidth: 4
AccessModifierOffset: -4
AlignAfterOpenBracket: AlwaysBreak
AllowShortFunctionsOnASingleLine: None
AlwaysBreakBeforeMultilineStrings: true
BinPackArguments: false
BinPackParameters: false
BreakConstructorInitializersBeforeComma: true
BreakInheritanceList: BeforeComma
ColumnLimit: 0
CommentPragmas: ^
IncludeCategories:
- Regex: '^<(cassert|cctype|cerrno|clocale|cmath|cstddef|cstdlib|cstdint|cstdio|cstring)'
Priority: 1
- Regex: '^<experimental/'
Priority: 3
- Regex: '^(<|")(boost|fmt|gtest|llvm)/'
Priority: 4
- Regex: '^<'
Priority: 2
IndentCaseLabels: true
NamespaceIndentation: All
PointerAlignment: Left
root = true
[*]
indent_style = space
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
[{Makefile,*.mk}]
indent_style = tab
indent_size = 4
### C++
# Prerequisites
*.d
# Compiled Object files
*.slo
*.lo
*.o
*.obj
# Precompiled Headers
*.gch
*.pch
# Compiled Dynamic libraries
*.so
*.dylib
*.dll
# Fortran module files
*.mod
*.smod
# Compiled Static libraries
*.lai
*.la
*.a
*.lib
# Executables
*.exe
*.out
*.app
### CMake
CMakeLists.txt.user
CMakeCache.txt
CMakeFiles
CMakeScripts
Testing
Makefile
cmake_install.cmake
install_manifest.txt
compile_commands.json
CTestTestfile.cmake
_deps
### Build directories
/build*/
cmake_minimum_required(VERSION 3.0.0)
set(CMAKE_CXX_FLAGS "-std=c++2a -Wall -Wextra -Werror -pedantic")
set(CMAKE_CXX_FLAGS_DEBUG "-g3 -O0")
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g3 -Og")
set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG")
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif (NOT CMAKE_BUILD_TYPE)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
project(wasm-watermarker VERSION 0.1.0 LANGUAGES CXX)
enable_testing()
find_package(Boost 1.65.0 REQUIRED)
include_directories(${Boost_INCLUDE_DIR})
add_subdirectory(src)
This diff is collapsed.
# Wasm Watermarker
Software Watermark Embedder for WebAssembly
## How to Clone
```shell
$ git clone --recursive git@github.com:NagayamaRyoga/wasm-watermarker.git
$ cd wasm-watermarker
```
## How to Build
```shell
$ cmake -B build -GCMAKE_BUILD_TYPE=Release .
$ cmake --build build
```
## How to Run
```shell
$ snpi <input-wasm> <watermark>
$ pisn <input-wasm>
```
add_executable(snpi snpi.cpp)
#include <iostream>
int main([[maybe_unused]] int argc, [[maybe_unused]] char* argv[]) {
std::cout << "snpi" << std::endl;
}
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