Skip to content

Conversation

jgsogo
Copy link
Contributor

@jgsogo jgsogo commented Sep 25, 2021

Prepare library to build with Emscripten 💪

It works using emsdk package from this PR (#6163) plus changes proposed here (https://github.com/werto87/conan-center-index/pull/2).

conan create corrade/all/conanfile.py corrade/2020.06@ --profile:host=emsdk --profile:build=default

profile:host

[settings]
os=Emscripten
arch=wasm
compiler=clang
compiler.version=14
build_type=Release
[options]
[conf]
[build_requires]
*: emsdk/2.0.30
[env]

@conan-center-bot
Copy link
Contributor

All green in build 1 (b6aa48beb07ddc28fa0dc04279a0133652ad084c):

  • corrade/2020.06@:
    All packages built successfully! (All logs)

  • corrade/2019.10@:
    All packages built successfully! (All logs)


if self.settings.os == "Emscripten":
bin_path = os.path.join("bin", "test_package.js")
self.run("node {}".format(bin_path), run_environment=True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it is already a requirement when using Emscripten.

@conan-center-bot conan-center-bot merged commit a2bb060 into conan-io:master Sep 28, 2021
@jgsogo jgsogo deleted the emsdk-corrade branch September 28, 2021 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants