ארכיון תגיות: Cross platform

Dec 04

Using SWIG

Using SWIG     SWIG – Simplified Wrapper and Interface Generator:   When writing native code in our Android project, we need to set up the “glue” code between java and C++, this “glue” code is the JNI code. I wrote This JNI Article about JNI in Android, the problem with writing JNI code is …

המשיכו בקריאה »

Dec 04

Disabling Gradle auto build in Android Studio and set to use Make Files

Disabling Gradle auto build in Android Studio and set to use Make Files     Theoretical background:     To build using a custom Android MakeFile: If you would like to use a custom android MakeFile instead of using the default compilation of Gradle, we will have to:   1. Create a custom Android.mk file …

המשיכו בקריאה »

Dec 04

Creating the android and application make files

Creating the android and application make files     Theoretical background:     Application.mk: The Application.mk is a Make File that defines general variables about how to compile your applications. For example: Which ABIs the application will build for, which toolchain and which compiler to use, what is the min android version to build to …

המשיכו בקריאה »

Dec 04

Building the Android project using Gradle

Building the Android project using Gradle         To build using Gradle: If you want to use the android NDK to build C++ code, all you have to do is: 1. In the build.gradle file add under android->defaultConfig the following element:   ndk {     moduleName "<your_module_name>"     //You can declare here other …

המשיכו בקריאה »

Dec 04

Building the Android project using Gradle or MakeFiles

Building the Android project using Gradle or MakeFiles     Theoretical Background:   The android build system uses Gradle, and it consists of an android plugin for Gradle. When we create a project a build.gradle (Module: app) file is created (under the folder app) and auto generated with the plugin: apply plugin: ‘com.android.application’ This plugin …

המשיכו בקריאה »

Sep 27

Setting Up The Test Windows Project

Setting Up The Test Windows Project   Example diagram:     Theoretical Background: In the previous articles we learned about gmock and gtest frameworks and set up the windows gmock and gtest projects. In this article we will set up the Windows test project, This project will take dependency on:   The gmock project (which …

המשיכו בקריאה »

Sep 27

Setting up the gmock Windows project

Setting up the gmock Windows project   Example diagram:     Theoretical Background:   gmock is a framework that provides an API for easily setting up mock classes, to be used by your tests. It is also developed by Google and is intended to complete the testing capabilities of gtest. (Although you can use gmock …

המשיכו בקריאה »

Sep 27

Gmock – Cross Platform Mock Framework

Gmock – Google Mock – Cross platform mock framework   Theoretical Background:   Gmock is a cross platform framework for writing mocks for tests in c++ It supports Android, Windows, Mac, IOS and more.   Gmock is not a standalone testing framework, it is used only for setting mock functionality. It complements the gtest framework …

המשיכו בקריאה »

Aug 29

Gtest – Google Test – Cross platform test framework

:Setting up the gtest Windows project     Theoretical Background:   Gtest is a cross platform framework for writing tests in c++ It supports Android, Windows, Mac, IOS and more.   gtest main page: https://code.google.com/p/googletest/   Google Test Runner: https://visualstudiogallery.msdn.microsoft.com/9dd47c21-97a6-4369-b326-c562678066f0 Is a Visual Studio extension that allows to run gtest from the VS built in …

המשיכו בקריאה »

Aug 29

Setting up the gtest Windows project

:Setting up the gtest Windows project   Example diagram:     Theoretical Background:     In this article we will set up a windows project for gtest. This project will be a static library that compiles the gtest code. After creating this project we will be able to create our own test project that will …

המשיכו בקריאה »

מאמרים ישנים יותר «