forked from aous72/OpenJPH
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'aous72:master' into feature/add-32bit-tif-support
- Loading branch information
Showing
28 changed files
with
706 additions
and
426 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Build with EMCC | ||
|
||
on: | ||
push: | ||
pull_request: | ||
types: [opened, reopened] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Configure emcc | ||
uses: mymindstorm/setup-emsdk@v14 | ||
with: | ||
actions-cache-folder: 'emsdk-cache' | ||
|
||
- name: Build non-SIMD and Debug | ||
run: | | ||
cd build | ||
emcmake cmake .. --fresh -DOJPH_DISABLE_SIMD=ON -DCMAKE_BUILD_TYPE=Debug | ||
cmake --build . --config Debug --clean-first | ||
cd .. | ||
- name: Build non-SIMD and Release | ||
run: | | ||
cd build | ||
emcmake cmake .. --fresh -DOJPH_DISABLE_SIMD=ON -DCMAKE_BUILD_TYPE=Release | ||
cmake --build . --config Release --clean-first | ||
cd .. | ||
- name: Build SIMD and Debug | ||
run: | | ||
cd build | ||
emcmake cmake .. --fresh -DOJPH_DISABLE_SIMD=OFF -DCMAKE_BUILD_TYPE=Debug | ||
cmake --build . --config Debug --clean-first | ||
cd .. | ||
- name: Build SIMD and Release | ||
run: | | ||
cd build | ||
emcmake cmake .. --fresh -DOJPH_DISABLE_SIMD=OFF -DCMAKE_BUILD_TYPE=Release | ||
cmake --build . --config Release --clean-first | ||
cd .. |
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 |
---|---|---|
@@ -1,24 +1,29 @@ | ||
|
||
# Add tiff library | ||
############################################################ | ||
if( OJPH_ENABLE_TIFF_SUPPORT ) | ||
if( OJPH_ENABLE_TIFF_SUPPORT AND (NOT EMSCRIPTEN)) | ||
|
||
FIND_PACKAGE( TIFF ) | ||
|
||
if( TIFF_FOUND ) | ||
set(USE_TIFF TRUE CACHE BOOL "Add TIFF support") | ||
include_directories( ${TIFF_INCLUDE_DIR} ) | ||
add_definitions(-DOJPH_ENABLE_TIFF_SUPPORT) | ||
elseif(MSVC) | ||
message(STATUS "TIFF support has been enabled by no path to the TIFF library " | ||
else() | ||
message(WARNING "TIFF support has been requested but no path to the TIFF library " | ||
"has been specified; please configure with -DCMAKE_PREFIX_PATH=<TIFF library directory>, " | ||
"or disable TIFF support using -DOJPH_ENABLE_TIFF_SUPPORT=OFF.") | ||
endif( TIFF_FOUND ) | ||
|
||
endif() | ||
############################################################ | ||
|
||
if (EMSCRIPTEN) | ||
add_link_options(-sWASM=1 -sASSERTIONS=1 -sALLOW_MEMORY_GROWTH=1 -sNODERAWFS=1 -sENVIRONMENT=node -sEXIT_RUNTIME=1 -sEXCEPTION_CATCHING_ALLOWED=['fake']) | ||
endif() | ||
|
||
## Build executables | ||
add_subdirectory(ojph_expand) | ||
add_subdirectory(ojph_compress) | ||
add_subdirectory(ojph_stream_expand) | ||
if (OJPH_BUILD_STREAM_EXPAND) | ||
add_subdirectory(ojph_stream_expand) | ||
endif() |
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
Oops, something went wrong.