{"id":13341509,"url":"https://github.com/Anil8753/CmakeEmscripten","last_synced_at":"2025-03-11T22:31:07.805Z","repository":{"id":213732910,"uuid":"230636094","full_name":"Anil8753/CmakeEmscripten","owner":"Anil8753","description":"Starter to build Web Assembly from C++ sources using CMake and Emscripten","archived":false,"fork":false,"pushed_at":"2019-12-31T20:17:30.000Z","size":163,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-24T10:06:22.526Z","etag":null,"topics":["emscripten","wasm","web-assembly"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Anil8753.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-12-28T16:43:49.000Z","updated_at":"2019-12-31T20:17:32.000Z","dependencies_parsed_at":"2023-12-22T17:49:37.800Z","dependency_job_id":null,"html_url":"https://github.com/Anil8753/CmakeEmscripten","commit_stats":null,"previous_names":["anil8753/cmakeemscripten"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anil8753%2FCmakeEmscripten","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anil8753%2FCmakeEmscripten/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anil8753%2FCmakeEmscripten/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anil8753%2FCmakeEmscripten/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anil8753","download_url":"https://codeload.github.com/Anil8753/CmakeEmscripten/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243125107,"owners_count":20240263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["emscripten","wasm","web-assembly"],"created_at":"2024-07-29T19:25:28.835Z","updated_at":"2025-03-11T22:31:07.410Z","avatar_url":"https://github.com/Anil8753.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a starter project to build the C++ source to Web Assembly (WASM) with the Emscripten tool chain.\nActually we can build C++ files to WASM with Emscripten only.\n\nemcc -o build\\main.js file1.cpp file2.cpp\n\nBut managing the large project will be difficult. For a large project CMake build system helps a lot. This starter project uses the emscripten on top of the CMake project. It also allows us to build existing CMake projects with much changes.\n\nDetails: https://emscripten.org/docs/compiling/Building-Projects.html\n\n\nSetup environment\n\n    1. open bash\n    2. go to emsdk directorty and followings run command\n        ./emsdk activate latest\n        source ./emsdk_env.sh\n\nBuild setup\n\n    3. create directory 'cmake_test' \n        mkdir build\n        cd build\n\n    4. clear dirctory if needed\n        go to build directory and run\n        rm -rf *\n\n    5. configure cmake\n        emconfigure cmake .. \n\n    6. build the source to wasm\n        emmake make\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAnil8753%2FCmakeEmscripten","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAnil8753%2FCmakeEmscripten","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAnil8753%2FCmakeEmscripten/lists"}