Photon C++ Client API
4.1.12.2
|
For Android NDK Photon supports Visual Studio with WinGDB plugin on Windows as IDE, but you can also use makefiles, which will work on Windows and OS X. Linux is currently not supported.
1. Add common-cpp-static-prebuilt and photon-cpp-static-prebuilt to "APP_CPPFLAGS" in your applications Android.mk file.
2. In your Projects Android.mk file add the following lines:
$(call import-add-path-optional, $(shell pwd)/../../../../Photon-cpp/src/android)
$(call import-add-path-optional, $(shell pwd)/../../../../Photon-cpp)
$(call import-module,photon-cpp-prebuilt)
3. Add -frtti to "LOCAL_STATIC_LIBRARIES" in your applications Application.mk file.
4. Set "APP_STL" in your applications Application.mk file to stlport_static, stlport_shared, gnustl_static or gnustl_shared.
5. Add the following #include directive to your source-code:
#include "Photon-cpp/inc/PhotonPeer.h"