學習 protocol buffers rpc server1

svn check out server1 的源碼,現在 在看,內容真心多啊。
1.protocol buffers
2.gtest
3.glog
4.gpref-tool
5.gmock
6.boost asio tuple shared_ptr....

一點點的啃吧。。。廉頗老矣,尚能飯否。

scons 範例


adolc_include_path = '/home/basti/workspace/adolc-2.0.0'
adolc_library_path = '/home/basti/workspace/adolc-2.0.0/adolc/.libs'

LIBS = ['adolc',
]
LIBPATH = [
adolc_library_path,
]
INCLUDEPATH = [
adolc_include_path,
'/usr/include/python2.5'
]


env = Environment(
CPPPATH = INCLUDEPATH,
CXXFLAGS= "-ftemplate-depth-100 -Wall -O2",
LIBPATH =LIBPATH,
LIBS = LIBS,
RPATH = LIBPATH, #include information where shared libraries can be found to avoid errors like: "ImportError: libboos
t_python-gcc42-mt-1_34_1.so.1.34.1: cannot open shared object file: No such file or directory"
SHLIBPREFIX="", #gets rid of lib prefix, i.e. get mylib.so instead of libmylib.so
)
Default('.')
my_executable = env.Program(target='benchmark.exe', source=['benchmark.cpp'])
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章