Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 82dd1d7
Showing
32 changed files
with
9,134 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.idea | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
MODULES = Post | ||
|
||
all: clean $(MODULES) java | ||
mkdir -p docs | ||
thrift -r --gen html:standalone -out docs src/Post.thrift | ||
|
||
mv gen-php dist-php | ||
|
||
mkdir -p dist-java/lib | ||
mv gen-java dist-java/src | ||
mv lang/java/post-thrift.jar dist-java/lib | ||
|
||
$(MODULES): | ||
thrift -r --gen php:server,psr4 src/Post.thrift | ||
thrift -r --gen java src/Post.thrift | ||
|
||
java: | ||
mkdir -p lang/java/build | ||
javac -cp lang/java/libthrift-1.0.0.jar:lang/java/slf4j.jar -encoding utf8 -d lang/java/build gen-java/kr/appkr/thrift/*/*.java | ||
jar cvf lang/java/post-thrift.jar -C lang/java/build/ kr | ||
|
||
clean: clean-java | ||
rm -rf gen-* dist-* docs | ||
|
||
clean-java: | ||
rm -rf lang/java/build lang/java/post-thrift.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"name": "appkr/thrift-example-idl", | ||
"autoload": { | ||
"psr-4": { | ||
"Appkr\\": "dist-php/Appkr" | ||
} | ||
} | ||
} | ||
|
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.