Git Product home page Git Product logo

uilianries / nativium Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nativium/nativium

0.0 2.0 0.0 1.55 MB

C++ Multiplatform Modular Toolkit Template

Home Page: https://nativium.github.io

License: MIT License

Shell 0.08% Ruby 0.30% C++ 37.28% Python 32.72% C 0.07% Objective-C 3.27% Java 3.51% Kotlin 4.25% TypeScript 0.25% Objective-C++ 1.63% Swift 9.00% Makefile 0.16% HTML 2.50% CMake 4.97%

nativium's Introduction

Nativium Logo

C++ Multiplatform Modular Toolkit Template
Nativium Philosophy: Write Once And Compile Anywhere


Coverage Status

About

Write a single code in C++ and compile for any platform.

Supported platforms:

  • Linux
  • macOS
  • Windows
  • Android
  • iOS
  • tvOS
  • watchOS
  • macCatalyst
  • Web Assembly (WASM)

This template project generates libraries and executables that share the same C++ code between them.

The generated binary can be used in a new project or an existing project.

You can also write platform-specific code that talks to C++ code, and you can write C++ code that talks directly to platform code. An example would be a C++ code that talks to the mobile platform (Java and Objective-C) to know the battery level, or a code used on the mobile platform that uses C++ libraries to access the database and make HTTP requests.

Nativium Guide

How it work?

Nativium have two main concepts:

  • modules: what code and dependencies need be compiled
  • targets: how the code will be compiled (each platform is a target)

What tools was used?

  • python: to write all scripts (everything work from command line)
  • cmake: to organize source code and projects to be compiled
  • conan: to compile all C++ dependencies
  • djinni: to generate glue code between C++ and mobile

Template

This is a template repository that let you start easy and now your own project.

Think about the code instead of C++ project structure and organization, it is already done with Nativium.

Download this template and check sample apps to test and see it working on mobile, desktop and web.

Every command to setup, build, package, generate and distribute, can be executed from command line and you can use any editor to work with Nativium.

Each piece of code is separated by modules, making easy extend with custom code or any other C++ code and library.

Documentation

Read all about Nativium in the auto-generated documentation:

https://nativium.s3.amazonaws.com/docs/index.html

Demo

See Web Assembly (WASM) demo here :

https://nativium.s3.amazonaws.com/demo/1.0.0/index.html

Other projects

These projects were made using the Nativium architecture with a feature called custom install, showing the power of the Nativium project in different types of projects.

  • Modules: Lof of modules already implemented for Nativium.
  • HTTP Server: HTTP server sample to create your backend, api or microservices (linux, macos and windows)
  • Game: Game sample that run on all platforms (linux, macos, windows, ios, android and wasm)

Buy me a coffee

Buy Me a Coffee at ko-fi.com

License

MIT

Copyright (c) 2021-2022, Paulo Coutinho

nativium's People

Contributors

paulocoutinhox avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.