-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Experimental support of emscripten * 'wasmnization' in progress * initial workable version of 'wasmnized' library * Fix a bug in wasm module for image size detection; Add file selector in index.html * Fix compilation error on aarch64 with gcc * Update CHANGELOG and open_htj2k_version.hpp * Update CHANGELOG * Small editorial changes * Bump up version to 0.2.3 * Fix for MSVC
- Loading branch information
Showing
8 changed files
with
538 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
cmake_minimum_required(VERSION 3.13) | ||
|
||
set(CMAKE_SYSTEM_NAME Generic) | ||
|
||
project ( | ||
open_htj2k | ||
LANGUAGES CXX | ||
) | ||
|
||
set(CMAKE_LIBRARY_OUTput_DIRECTORY ${CMAKE_BINARY_DIR}/html) | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/html) | ||
|
||
add_subdirectory(".." open_htj2k EXCLUDE_FROM_ALL) | ||
add_executable(libopen_htj2k "src/wrapper.cpp") | ||
set_target_properties(libopen_htj2k PROPERTIES SUFFIX ".js" LINK_FLAGS "-03 -s WASM=1 -s EXPORT_ES6=1 -s MODULARIZE=1 -s ENVIRONMENT=web -s EXPORTED_FUNCTIONS=[_free,_malloc] -s EXPORTED_RUNTIME_METHODS=[ccall,cwrap,writeArrayToMemory,getValue] -s NO_EXIT_RUNTIME=1 -s ALLOW_MEMORY_GROWTH=1 -sASSERTIONS") | ||
target_link_libraries(libopen_htj2k PRIVATE open_htj2k) |
Oops, something went wrong.