Need help with scapix?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

scapix-com
213 Stars 15 Forks Other 173 Commits 6 Opened issues

Description

Scapix Language Bridge

Services available

!
?

Need anything else?

Contributors list

Scapix Language Bridge

Tweet

Automatic, on the fly bindings from C++ to

Java
,
Objective-C
,
Swift
,
Python
,
JavaScript
(WebAssembly) and
C#
. Bridge code automatically generated directly from C++ header files, no need to manually maintain IDL definitions or bindings.

Scapix Bridge Intro

Integrating in CMake project

include(FetchContent)
FetchContent_Declare(
  cmodule
  URL "https://github.com/scapix-com/cmodule/archive/v1.0.31.tar.gz"
  URL_HASH SHA256=93481801418d5cdab21b285706a5f00525d364bd82255c28170cea7b452d5a86
)
FetchContent_MakeAvailable(cmodule)

find_package(Scapix REQUIRED)

scapix_bridge_headers( chatlib "com.example.chat" "source/chat/contact.h" "source/chat/session.h" "source/chat/model.h" )

Documentation

Examples:

Java Link

Modern C++17 wrapper for JNI: - type-safe APIs - automatic resource management - ZERO runtime overhead compared to manually written JNI code - automatic C++/Java type conversion for many standard types (std::string, std::vector, etc.) - automatic C++/Java exception tunneling - comes with pre-generated C++ headers for all JDK and Android Java APIs - automatically generate C++ headers for any Java code, including your own

#include 
#include 
#include 

using namespace scapix::link::java; using namespace scapix::java_api;

void test() { // C++ objects are automatically converted to and from corresponding Java types. // This works for any type supported by scapix::link::java::convert<> interface, // which supports many STL types and can be extended for your own types.

std::string version = java::lang::System::getProperty("java.version");
std::vector<:string> languages = java::util::Locale::getISOLanguages();
std::vector<:vector>&gt; zone_strings = java::text::DateFormatSymbols::getInstance()-&gt;getZoneStrings();
std::map<:string std::string> properties = java::lang::System::getProperties();

} </:string></:vector></:string>

Java Link Documentation\ Java Link Example

License

Please carefully read license agreement.

In short: If you comply with license agreement, you may use Scapix Language Bridge free of charge to build commercial and/or open source applications. You may NOT modify and/or redistribute the Scapix Language Bridge product itself.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.