File tree Expand file tree Collapse file tree 4 files changed +133
-153
lines changed Expand file tree Collapse file tree 4 files changed +133
-153
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,14 @@ cc_binary(
10
10
visibility = ["//visibility:public" ],
11
11
deps = [
12
12
"@com_google_protobuf//:protobuf" ,
13
+ "@com_google_protobuf//src/google/protobuf/compiler:code_generator" ,
14
+ "@com_google_protobuf//src/google/protobuf/io" ,
15
+ "@com_google_protobuf//src/google/protobuf/io:printer" ,
16
+ "@com_google_protobuf//src/google/protobuf/io:tokenizer" ,
13
17
"@com_google_protobuf//:protoc_lib" ,
18
+ "@com_google_absl//absl/strings" ,
19
+ "@com_google_absl//absl/strings:str_format" ,
14
20
],
15
21
)
16
22
23
+
Original file line number Diff line number Diff line change 36
36
#include < google/protobuf/io/printer.h>
37
37
#include < google/protobuf/io/strtod.h>
38
38
#include < google/protobuf/io/zero_copy_stream.h>
39
- #include < google/protobuf/stubs/common.h>
40
- #include < google/protobuf/descriptor_legacy.h>
41
39
#include " absl/strings/escaping.h"
42
40
#include " absl/strings/str_cat.h"
43
41
#include " absl/strings/str_format.h"
Original file line number Diff line number Diff line change 36
36
#include < set>
37
37
#include < string>
38
38
39
- #include < google/protobuf/stubs/common.h>
40
39
#include < google/protobuf/compiler/scc.h>
41
40
#include < google/protobuf/compiler/code_generator.h>
42
41
43
- #include < google/protobuf/port_def.inc>
44
-
45
42
namespace google {
46
43
namespace protobuf {
47
44
@@ -133,7 +130,7 @@ struct GeneratorOptions {
133
130
// header. If you create your own protocol compiler binary and you want it to
134
131
// support JavaScript output, you can do so by registering an instance of this
135
132
// CodeGenerator with the CommandLineInterface in your main() function.
136
- class PROTOC_EXPORT Generator : public CodeGenerator {
133
+ class Generator : public CodeGenerator {
137
134
public:
138
135
Generator () {}
139
136
virtual ~Generator () {}
@@ -331,6 +328,4 @@ class PROTOC_EXPORT Generator : public CodeGenerator {
331
328
} // namespace protobuf
332
329
} // namespace google
333
330
334
- #include < google/protobuf/port_undef.inc>
335
-
336
331
#endif // GOOGLE_PROTOBUF_COMPILER_JS_GENERATOR_H__
You can’t perform that action at this time.
0 commit comments