File tree Expand file tree Collapse file tree 10 files changed +18
-92
lines changed
examples/cross_build/emscripten Expand file tree Collapse file tree 10 files changed +18
-92
lines changed Original file line number Diff line number Diff line change 18
18
- name : Checkout repository
19
19
uses : actions/checkout@v3
20
20
21
- - name : Update ROS signing key (per ROS migration guide)
22
- run : |
23
- sudo rm /usr/share/keyrings/ros2-latest-archive-keyring.gpg
24
- sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros2-latest-archive-keyring.gpg
25
-
26
21
- name : Configure environment and install Conan release
27
22
run : |
28
23
apt-get update && apt-get install -y python3 python3-pip
@@ -44,10 +39,10 @@ jobs:
44
39
- name : Checkout repository
45
40
uses : actions/checkout@v3
46
41
47
- - name : Update ROS signing key (per ROS migration guide)
48
- run : |
49
- sudo rm /usr/share/keyrings/ros2-latest-archive-keyring.gpg
50
- sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros2-latest-archive-keyring.gpg
42
+ # - name: Update ROS signing key (per ROS migration guide)
43
+ # run: |
44
+ # sudo rm /usr/share/keyrings/ros2-latest-archive-keyring.gpg
45
+ # sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros2-latest-archive-keyring.gpg
51
46
52
47
- name : Configure environment and install Conan from develop2 branch
53
48
run : |
Original file line number Diff line number Diff line change 1
1
import os
2
2
from test .examples_tools import run
3
3
4
- run ("conan build . --build=missing --profile:host ../profiles/wasm32" )
4
+ run ('conan config install https://github.com/perseoGI/conan-toolchains.git -sf conan_config --args "-b pgi/new/emsdk"' )
5
+ run ("conan build . --build=missing --profile:host emsdk/wasm32" )
5
6
6
7
assert os .path .exists (os .path .join ("build" , "release-wasm" , "wasm_example.html" ))
7
8
assert os .path .exists (os .path .join ("build" , "release-wasm" , "wasm_example.js" ))
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
This basic example aims to show the differences between cross compiling a project with ` arch=wasm ` (which stands for ` wasm32 ` bits)
5
5
and ` arch=wasm64 ` the newly introduced architecture which supports WebAssembly 64-bits.
6
6
7
+ To
7
8
8
9
To compile the project in 32 bits follow this instructions:
9
10
10
11
``` sh
11
- $ conan build . -pr ../profiles /wasm32
12
+ $ conan build . -pr emsdk /wasm32
12
13
$ node build/release-wasm/wasm-alloc.js
13
14
14
15
Current allocated: 1 GiB
Original file line number Diff line number Diff line change 1
1
import platform
2
2
from test .examples_tools import chdir , run
3
3
4
- run (" conan build . --build=missing --profile:host ../profiles/wasm32" )
5
- # wasm64 not yet added to conan-io: https://github.com/conan-io/conan/pull/18400
6
- # run("conan build . --build=missing --profile:host ../profiles /wasm64")
4
+ run (' conan config install https://github.com/perseoGI/conan-toolchains.git -sf conan_config --args "-b pgi/new/emsdk"' )
5
+ run ( "conan build . --build=missing --profile:host emsdk/wasm32" )
6
+ run ("conan build . --build=missing --profile:host emsdk /wasm64" )
7
7
8
8
if platform .system () == "Windows" :
9
9
with chdir ("build" ):
10
- run ("generators\\ conanbuild.bat && node --version && node release-wasm\\ wasm-alloc.js " )
10
+ run ("generators\\ conanbuild.bat && node --version && node release-wasm\\ wasm-alloc" )
11
11
# Needs at least Node.js 24.0.0
12
- # run("generators\\conanbuild.bat && node --version && node release-wasm64\\wasm-alloc.js ")
12
+ # run("generators\\conanbuild.bat && node --version && node release-wasm64\\wasm-alloc")
13
13
else :
14
14
with chdir ("build/release-wasm" ):
15
- run (". generators/conanbuild.sh && node --version && node wasm-alloc.js " )
15
+ run (". generators/conanbuild.sh && node --version && node wasm-alloc" )
16
16
17
17
# Needs at least Node.js 24.0.0
18
18
# with chdir("build/release-wasm64"):
19
- # run(". generators/conanbuild.sh && node --version && node wasm-alloc.js ")
19
+ # run(". generators/conanbuild.sh && node --version && node wasm-alloc")
20
20
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ class WasmAllocatorRecipe(ConanFile):
11
11
def layout (self ):
12
12
cmake_layout (self )
13
13
14
+ def requirements (self ):
15
+ self .requires ("icu/74.2" )
16
+
14
17
def generate (self ):
15
18
deps = CMakeDeps (self )
16
19
deps .generate ()
You can’t perform that action at this time.
0 commit comments