Emscripten

Bailey Difuntorum's Avatar

Bailey Difuntorum

26 Mar, 2019 07:49 PM

How to I build with emscripten?

  1. Support Staff 1 Posted by Ilya Finkelshte... on 26 Mar, 2019 08:48 PM

    Ilya Finkelshteyn's Avatar

    Hi Bailey,

    Using their documentation I created a YAML configuration for you to install it on-the-fly for both Windows and Linux builds.

    image:
    - Visual Studio 2017
    - Ubuntu
    
    build_script:
    - echo "my emscripten build"
    
    for:
    -
      matrix:
        only:
          - image: Ubuntu
    
      install:
      - git clone https://github.com/emscripten-core/emsdk.git
      - cd emsdk
      - ./emsdk install latest
      - ./emsdk activate latest
      - source ./emsdk_env.sh
      - cd $appveyor_build_folder
      
    -
      matrix:
        only:
          - image: Visual Studio 2017
    
      install:
      - git clone https://github.com/emscripten-core/emsdk.git
      - cd emsdk
      - emsdk install latest
      - emsdk activate latest
      - emsdk_env.bat
      - cd %appveyor_build_folder%
    

    Regarding build script itself, I believe you know better than me what commands to run. With this configuration at the build_script stage you already got your sources cloned and emscripten installed, so you should be able to build.

    Let us know if you have any more questions.

    Ilya.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac