Google protobuf - protoc-gen-as3


 for python :  protoc -l =$SRC_DIR -- python_out = $DST_DIR $SRC_DIR/example.proto

protoc-gen-as3

 

window下使用actionscript的protoc-gen-as3步驟
1)下載protoc-gen-as3-1.0.0-rc6-bin.tar.gz 並解壓到d:\google\as_plugin目錄
2)下載protoc-2.4.1-win32.zip 並解壓到d:\google\
3)創建d:\google\as_out\目錄
4)創建d:\google\message.proto

message Person {
     required string name = 1;
     required int32 id = 2;
}

5)開打cmd運行命令

protoc.exe --plugin=protoc-gen-as3="protoc-gen-as3.bat" --as3_out=d:\google\as_out message.proto

目錄d:\google\as_out\下自動生成initializer.as.inc,Person.as文件
6)打開flash builder創建應用,引入d:\google\as_plugin\protobuf.swc文件

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM