{"id":20841650,"url":"https://github.com/scapix-com/example1","last_synced_at":"2025-05-08T22:22:44.185Z","repository":{"id":87661243,"uuid":"177970405","full_name":"scapix-com/example1","owner":"scapix-com","description":"Example for Scapix Language Bridge","archived":false,"fork":false,"pushed_at":"2025-05-06T22:38:16.000Z","size":376,"stargazers_count":16,"open_issues_count":1,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-06T23:28:26.056Z","etag":null,"topics":["automated","automatic","bind","bridge","cpp","cpp-library","cpp11","cpp14","cpp17","csharp","idl","java","jni","jni-android","jni-wrapper","language","objective-c","python","rpc","swift"],"latest_commit_sha":null,"homepage":"https://www.scapix.com","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scapix-com.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null}},"created_at":"2019-03-27T10:24:21.000Z","updated_at":"2025-05-06T22:38:20.000Z","dependencies_parsed_at":"2023-03-05T16:00:25.739Z","dependency_job_id":"309c554b-3c79-4b7f-83b4-26b78ed86f8e","html_url":"https://github.com/scapix-com/example1","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scapix-com%2Fexample1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scapix-com%2Fexample1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scapix-com%2Fexample1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scapix-com%2Fexample1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scapix-com","download_url":"https://codeload.github.com/scapix-com/example1/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253155706,"owners_count":21862741,"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":["automated","automatic","bind","bridge","cpp","cpp-library","cpp11","cpp14","cpp17","csharp","idl","java","jni","jni-android","jni-wrapper","language","objective-c","python","rpc","swift"],"created_at":"2024-11-18T01:21:07.548Z","updated_at":"2025-05-08T22:22:44.144Z","avatar_url":"https://github.com/scapix-com.png","language":"C++","readme":"# Example for [Scapix Language Bridge](https://www.scapix.com/)\n\nOn the fly code generation to bridge C++ to `Java`, `Objective-C`, `Swift`, `Python`, `JavaScript` (WebAssembly) and `C#`.\n\n1. Change your C++ code and build your project (bindings generated as part of the build).\n2. Call newly changed C++ code from Java, Objective-C, Swift, Python, JavaScript or C#.\n\n### Install\n\n```bash\n$ git clone https://github.com/scapix-com/example1\n```\n\n### Build\n\n`build.sh` script (or `build.cmd` on Windows) runs CMake configure and build steps using selected CMake preset.\n\n- Run `build` script without parameters to see list of available CMake presets.\n- Run `build` script specifying one the the presets to create and build library project (chatlib).\n- Open corresponding platform specific application project in **ui** folder (chat).\n\n#### macOS\n\n- Run: `./build.sh xcode-objc`\n- Open in Xcode: **ui/macos/chat.xcworkspace**\n\n#### iOS\n\n- Run: `./build.sh xcode-objc-ios`\n- Open in Xcode: **ui/ios/chat.xcworkspace**\n\n#### tvOS\n\n- Run: `./build.sh xcode-objc-tvos`\n\n#### watchOS\n\n- Run: `./build.sh xcode-objc-watchos`\n\n#### visionOS\n\n- Run: `./build.sh xcode-objc-visionos`\n\n#### Android (on Windows, macOS or Linux)\n\n- Open in Android Studio: **ui/android**\n- Requires: [Ninja](https://github.com/ninja-build/ninja/releases), see [Install CMake and Ninja](https://developer.android.com/studio/projects/install-ndk#vanilla_cmake)\n\n#### Python (on Windows, macOS or Linux)\n\n```bash\n$ ./build.sh python\n$ cd ui/python\n$ ./run.py\n```\n\nYou can also specify CMake generator explicitly and then open generated project in corresponding IDE:\n\n```bash\n$ build vs2019-python\n$ build vs2022-python\n$ ./build.sh xcode-python\n```\n\n#### Java (on Windows, macOS or Linux)\n\n```bash\n$ ./build.sh java\n```\n\nYou can also specify CMake generator explicitly and then open generated project in corresponding IDE:\n\n```bash\n$ build vs2019-java\n$ build vs2022-java\n$ ./build.sh xcode-java\n```\n\n#### JavaScript (Emscripten)\n\nInstall [Emscripten SDK](https://emscripten.org/docs/getting_started/downloads.html)\n\n```bash\n$ ./build.sh js\n$ cd ui/js\n$ ./serve.sh\n```\n\nOn Windows use ninja-js preset, as [Emscripten SDK](https://emscripten.org/docs/getting_started/downloads.html) doesn't support Visual Studio CMake generators:\n\n```bash\n$ build ninja-js\n$ cd ui/js\n$ serve.sh\n```\n\n#### C#\n\n```bash\n$ build vs2022-cs\n```\n\nOpen Visual Studio solution: `build\\vs2022-cs\\ui\\cs\\chat.sln`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscapix-com%2Fexample1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscapix-com%2Fexample1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscapix-com%2Fexample1/lists"}