the third party codes and utilities used in projects
###party codes dependence
- curl
- libuv
- zf_log
- jsoncpp
- sqlit3
protobuf- breakpad
- gtest
###interface for c++
- IHttpRequest.h
- ILog.h
- json.h
###interface for j/o
- gearbox_log
- async_loop
- callback_i64str, need to be implement in j/o
this should be a sub folder in clent project, I will modify USNIT as as sample
-
add gearsbox to clent, in root of client directory run the command below
git submodule add https://github.com/oldmannt/gearsbox.git gearsbox
update the submodule of gearsbox
cd gearsbox
git submodule init
git submodule update
git submodule add https://github.com/dropbox/djinni.git deps/djinni
git submodule add https://chromium.googlesource.com/external/gyp.git deps/gyp
cd deps/gyp
git checkout -q 0bb67471bca068996e15b56738fa4824dfa19de0
-
protobuf as ui configcreate .proto file, genrate protco c++ and python code, used pyton to write binary like config, read by c++.
gearsbox use protobuf as ui config, let me think about that may be make a probability to build ui by server.current version is protobuf-3.0.0-beta-3, compiler and tester code were detele -
create client.djinni, client.gyp, run_djinni.sh in clent
#generate the bridge code and project make ios_proj make android_proj
-
create client.xcworkspace in ios open client.xcworkspace, add client.xcodeproj
-
create ios applicaton project, and add to the xcworkspace build and test
-
create a android studio project in android/usnit
use gradle-experimental builed client_jni.souse cmakelist to build ndk config build.gradle, app/build.gradle gradle/wrapper/gradle-wrapper.properties build and test -
make
protubuf
.####more infomation about android gradle build
http://ph0b.com/android-studio-gradle-and-ndk-integration/
http://ph0b.com/new-android-studio-ndk-support/
http://www.slideshare.net/ph0b/mastering-the-ndk-with-android-studio-and-the-gradleexperimental-plugin
http://tools.android.com/tech-docs/new-build-system/gradle-experimental
https://codelabs.developers.google.com/codelabs/android-studio-jni/index.html?index=..%2F..%2Findex#0