|
8 | 8 | (subdir config |
9 | 9 | (rule |
10 | 10 | (target support_proto3_optional.conf) |
11 | | - (action (with-accepted-exit-codes (or 0 1) (ignore-stderr (with-stdout-to %{target} (run protoc --experimental_allow_proto3_optional --version))))))) |
| 11 | + (action (with-accepted-exit-codes (or 0 1) (ignore-stderr (with-stdout-to %{target} (run %{bin:protoc} --experimental_allow_proto3_optional --version))))))) |
12 | 12 |
|
13 | 13 | (rule |
14 | 14 | (enabled_if (<> %{read:config/support_proto3_optional.conf} "")) |
|
52 | 52 | options.ml name_clash2.ml empty.ml service_rpc_clash.ml service_empty_package.ml |
53 | 53 | deprecated.ml json_encoding.ml comments.ml) |
54 | 54 | (deps |
55 | | - (:plugin ../src/plugin/protoc_gen_ocaml.exe) |
| 55 | + (:plugin %{bin:protoc-gen-ocaml}) |
56 | 56 | (:proto |
57 | 57 | basic.proto primitive_types.proto int_types.proto repeated.proto enum.proto empty_message.proto |
58 | 58 | message.proto oneof.proto merge.proto map.proto package.proto large.proto |
|
63 | 63 | deprecated.proto json_encoding.proto comments.proto) |
64 | 64 | ) |
65 | 65 | (action |
66 | | - (run protoc -I %{read-lines:google_include} -I . |
| 66 | + (run %{bin:protoc} -I %{read-lines:google_include} -I . |
67 | 67 | "--plugin=protoc-gen-ocaml=%{plugin}" |
68 | 68 | "--ocaml_out=open=Google_types_pp;open=Test_runtime;annot=[@@deriving show { with_path = false }, eq]:." %{proto}))) |
69 | 69 |
|
|
77 | 77 | include_included3_dash.ml |
78 | 78 | ) |
79 | 79 | (deps |
80 | | - (:plugin ../src/plugin/protoc_gen_ocaml.exe) |
| 80 | + (:plugin %{bin:protoc-gen-ocaml}) |
81 | 81 | (:proto |
82 | 82 | basic.proto |
83 | 83 | include.proto |
|
88 | 88 | ) |
89 | 89 | ) |
90 | 90 | (action |
91 | | - (run protoc -I %{read-lines:google_include} -I . |
| 91 | + (run %{bin:protoc} -I %{read-lines:google_include} -I . |
92 | 92 | "--plugin=protoc-gen-ocaml=%{plugin}" |
93 | 93 | "--ocaml_out=open=Google_types_pp;open=Test_runtime;prefix_output_with_package=true;annot=[@@deriving show { with_path = false }, eq]:." %{proto}))) |
94 | 94 |
|
|
98 | 98 | test_include_b_message.ml |
99 | 99 | ) |
100 | 100 | (deps |
101 | | - (:plugin ../src/plugin/protoc_gen_ocaml.exe) |
| 101 | + (:plugin %{bin:protoc-gen-ocaml}) |
102 | 102 | (:proto |
103 | 103 | test_include_a/message.proto |
104 | 104 | test_include_b/message.proto |
105 | 105 | ) |
106 | 106 | ) |
107 | 107 | (action |
108 | | - (run protoc -I %{read-lines:google_include} -I . |
| 108 | + (run %{bin:protoc} -I %{read-lines:google_include} -I . |
109 | 109 | "--plugin=protoc-gen-ocaml=%{plugin}" |
110 | 110 | "--ocaml_out=open=Google_types_pp;open=Test_runtime;prefix_output_with_package=true;annot=[@@deriving show { with_path = false }, eq]:." %{proto}))) |
111 | 111 |
|
112 | 112 | (rule |
113 | 113 | (targets int_types_native.ml int_types_native_proto2.ml) |
114 | 114 | (deps |
115 | | - (:plugin ../src/plugin/protoc_gen_ocaml.exe) |
| 115 | + (:plugin %{bin:protoc-gen-ocaml}) |
116 | 116 | (:proto int_types_native.proto int_types_native_proto2.proto)) |
117 | 117 | (action |
118 | | - (run protoc -I %{read-lines:google_include} -I . |
| 118 | + (run %{bin:protoc} -I %{read-lines:google_include} -I . |
119 | 119 | "--plugin=protoc-gen-ocaml=%{plugin}" |
120 | 120 | "--ocaml_out=open=Google_types_pp;open=Test_runtime;int32_as_int=false;int64_as_int=false;annot=[@@deriving show { with_path = false }, eq]:." %{proto}))) |
121 | 121 |
|
122 | 122 | (rule |
123 | 123 | (targets singleton_record.ml oneof2.ml) |
124 | 124 | (deps |
125 | | - (:plugin ../src/plugin/protoc_gen_ocaml.exe) |
| 125 | + (:plugin %{bin:protoc-gen-ocaml}) |
126 | 126 | (:proto singleton_record.proto oneof2.proto)) |
127 | 127 | (action |
128 | | - (run protoc -I %{read-lines:google_include} -I . |
| 128 | + (run %{bin:protoc} -I %{read-lines:google_include} -I . |
129 | 129 | "--plugin=protoc-gen-ocaml=%{plugin}" |
130 | 130 | "--ocaml_out=open=Google_types_pp;open=Test_runtime;annot=[@@deriving show { with_path = false }, eq]:." %{proto}))) |
131 | 131 |
|
132 | 132 | (rule |
133 | 133 | (enabled_if (<> %{read:config/support_proto3_optional.conf} "")) |
134 | 134 | (target proto3_optional.ml) |
135 | 135 | (deps |
136 | | - (:plugin ../src/plugin/protoc_gen_ocaml.exe) |
| 136 | + (:plugin %{bin:protoc-gen-ocaml}) |
137 | 137 | (:proto proto3_optional.proto) |
138 | 138 | ) |
139 | 139 | (action |
140 | | - (run protoc -I %{read-lines:google_include} -I . |
| 140 | + (run %{bin:protoc} -I %{read-lines:google_include} -I . |
141 | 141 | "--experimental_allow_proto3_optional" |
142 | 142 | "--plugin=protoc-gen-ocaml=%{plugin}" |
143 | 143 | "--ocaml_out=open=Google_types_pp;open=Test_runtime;annot=[@@deriving show { with_path = false }, eq]:." %{proto}))) |
0 commit comments