Code Monkey home page Code Monkey logo

mx3's Introduction

libmx3

Build Status
Cross platform has been well studied on desktop, but this is an exploration in doing that on mobile and an open request for comments and improvements.

The name

"mobile times 3", Android, iOS, and Windows Phone. (todo, windows phone support)

Contributing

short version: submit a PR, it'll be merged!

long version:
There are many ways to contribute to mx3:

  1. bugfixes
  2. documentation of any kind
  3. new target platforms
  4. new proposals for architecture and techniques
  5. educating us about your use case for cross platform mobile

There are a few things laid out in TODO, if you want to contribute but don't know how. If you are building a large feature, please file an issue first to ensure that it aligns with the goals of mx3 - if it does, please submit a Pull Request during development to solicit feedback and enable incremental code review throughout the process.

Requirements

  • python (required for gyp)
  • xcode & xcodebuild
  • android ndk and ndk-build on your PATH to build for android
  • windows phone developer tools (eventually...)

Installation

  1. Run git submodule update --init to download all dependencies
  2. Optionally gem install xcpretty to make the output of xcodebuild nice
  3. Run make play. You should see "Hello, #{your login name}" printed to the console, if so, you seem to already have all the requirements met for building on iOS.
  4. Run make android to build a static library for android, if this works

Objective-C

Run make play ios or make play mac

Building

Running any of the make commands will automatically download gyp and create .xcodeproj files for each platform.

Build files are generated in build_ios/mx3.xcodeproj, build_mac/mx3.xcodeproj, and GypAndroid.mk but be careful, running make commands again will overwrite any changes you make to these files. If you need to change something, you should be able to do so from common.gypi or mx3.gyp and recompile your buildfiles.

Make targets:

  • clean - clean all generated files
  • make test - run the c++ tests
  • ios, android, mac - builds a static library for each platform
  • make play - to write some quick "playground" style code in objc (see objc/play.m)

Directory structure

  • mx3.gyp - gyp meta-build file for per-target settings
  • common.gypi - a gyp include which defines project wide settings
  • Application.mk - the android make file
  • Makefile - helper for interacting with gyp, and using command line builds (no xcode!!)
  • deps/ - third party dependencies
  • example_mac/ - a external xcodeproj which uses libmx3 ("the client" in a client/server model)
  • include/ - header include paths, no code here
  • objc/ - objc bindings to mx3::Api. Very simple api translation (NSString * -> std::string, lowerCamel -> under_lower, etc.)
  • src/ - the c++ library, there should be no objc/java code here ("the server" in a client/server model)
  • test/ - c++ tests

mx3's People

Contributors

andrewsardone avatar marcboquet avatar ph0b avatar pietbrauer avatar skabbes avatar

Watchers

 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.