zhangkun | 9de8e4b | 2015-01-15 10:29:05 -0800 | [diff] [blame] | 1 | apply plugin: "cpp" |
2 | |||||
3 | executables { | ||||
4 | java_plugin {} | ||||
5 | } | ||||
6 | |||||
7 | binaries.all { | ||||
8 | if (toolChain in Gcc) { | ||||
9 | cppCompiler.args "-std=c++11" | ||||
10 | linker.args "-lprotoc", "-lprotobuf" | ||||
11 | } | ||||
12 | } | ||||
13 | |||||
14 | sources { | ||||
15 | java_plugin { | ||||
16 | // Configure an existing CppSourceSet | ||||
17 | cpp { | ||||
18 | source { | ||||
19 | srcDirs "src/" | ||||
20 | include "**/*.cc" | ||||
21 | } | ||||
22 | } | ||||
23 | } | ||||
24 | } | ||||
25 |