{"id":16579038,"url":"https://github.com/kovacsv/emscriptencmakeminimal","last_synced_at":"2025-10-13T19:18:17.154Z","repository":{"id":148754798,"uuid":"305598285","full_name":"kovacsv/EmscriptenCMakeMinimal","owner":"kovacsv","description":"A minimalist example to build an Emscripten application with CMake.","archived":false,"fork":false,"pushed_at":"2021-08-15T10:25:36.000Z","size":17,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-13T22:47:04.549Z","etag":null,"topics":["cmake","cpp","emscripten"],"latest_commit_sha":null,"homepage":"","language":"CMake","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/kovacsv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-20T05:21:35.000Z","updated_at":"2024-05-28T06:45:41.000Z","dependencies_parsed_at":"2023-05-28T20:30:14.556Z","dependency_job_id":null,"html_url":"https://github.com/kovacsv/EmscriptenCMakeMinimal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kovacsv/EmscriptenCMakeMinimal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kovacsv%2FEmscriptenCMakeMinimal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kovacsv%2FEmscriptenCMakeMinimal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kovacsv%2FEmscriptenCMakeMinimal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kovacsv%2FEmscriptenCMakeMinimal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kovacsv","download_url":"https://codeload.github.com/kovacsv/EmscriptenCMakeMinimal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kovacsv%2FEmscriptenCMakeMinimal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016892,"owners_count":26085884,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cmake","cpp","emscripten"],"created_at":"2024-10-11T22:16:41.527Z","updated_at":"2025-10-13T19:18:17.130Z","avatar_url":"https://github.com/kovacsv.png","language":"CMake","readme":"# Emscripten CMake Minimal\n\nA minimalist example to build an [Emscripten](https://emscripten.org) application with CMake.\n\n[![Build status](https://ci.appveyor.com/api/projects/status/nwgrvu5xdvp3eej4?svg=true)](https://ci.appveyor.com/project/kovacsv/emscriptencmakeminimal)\n\n## Building on Windows\n\n### 1. Install Prerequisites\n\nYou have to install the following software:\n- [CMake](https://cmake.org) (3.6 minimum version is needed).\n\n### 2. Install Emscripten SDK\n\nYou can find detailed instruction on [Emscripten Download and install](https://emscripten.org/docs/getting_started/downloads.html) page. You have to use the following commands to set up the environment for VisualScriptEngineWeb:\n\n```\ngit clone https://github.com/emscripten-core/emsdk.git\ncd emsdk\ngit pull\nemsdk install latest\nemsdk activate latest\nemsdk install mingw-4.6.2-32bit\nemsdk activate mingw-4.6.2-32bit\n```\n\n### 3. Generate the Visual Studio Project (Optional)\n\nYou can create the project with CMake, and build it with Visual Studio. This step is optional. The Visual Studio project is useful if you would like to debug the functionalities, but it is not necessary for building the web application.\n\n```\nmkdir Build\ncd Build\ncmake -G \"Visual Studio 16 2019\" -A \"Win32\" ..\ncd ..\n```\n\n### 4. Generate the Web Application\n\nThe easiest way is to run the `EmscriptenBuildWin.bat` file from the root directory. It needs two command line parameters:\n- The Emscripten SDK folder (e.g. \"C:\\Emscripten\\emsdk\").\n- The build configuration type (Debug or Release).\n\n```\nEmscriptenBuild.bat C:\\Emscripten\\emsdk Debug\n```\n\n### 5. Open it in a Web Browser\n\n- Start a web server in the root directory.\n  - With Python 3: `python -m http.server 8000`.\n  - On Windows just run the `StartServerWin.bat` script.\n- Open your browser, and navigate to: `http://localhost:8000/BuildEm`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkovacsv%2Femscriptencmakeminimal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkovacsv%2Femscriptencmakeminimal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkovacsv%2Femscriptencmakeminimal/lists"}