Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix library installation directory #4

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ pushd build_%CMAKE_CONFIG%
cmake -G "Ninja" ^
-DCMAKE_BUILD_TYPE:STRING="%CMAKE_CONFIG%" ^
-DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY:PATH="%LIBRARY_BIN%" ^
-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY:PATH="%LIBRARY_LIB%" ^
-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON ^
-DBUILD_SHARED_LIBS:BOOL=ON ^
"%SRC_DIR%"
Expand Down
1 change: 1 addition & 0 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pushd "build_${CMAKE_CONFIG}"
cmake -G "Ninja" \
-DCMAKE_BUILD_TYPE:STRING="${CMAKE_CONFIG}" \
-DCMAKE_INSTALL_PREFIX:PATH="${PREFIX}" \
-DCMAKE_INSTALL_LIBDIR="lib" \
-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON \
-DBUILD_SHARED_LIBS:BOOL=ON \
${EXTRA_CMAKE_ARGS} \
Expand Down
5 changes: 4 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ source:
sha256: 414a3dd59876d86095aa91970dc1b2a8a3aafacc7e38388768b8bae4b320bd00

build:
number: 0
number: 1
skip: true # [win and vc<14]

requirements:
Expand All @@ -37,6 +37,9 @@ test:
- wasm-ctor-eval --help
- wasm-reduce --help

- test -f "${PREFIX}/lib/libbinaryen${SHLIB_EXT}" # [unix]
- if not exist %LIBRARY_BIN%\\binaryen.dll" exit 1 # [win]

about:
home: https://github.com/WebAssembly/binaryen
license: Apache 2.0
Expand Down