Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: Makefile

Issue 1196293003: Initial support for generating client and server stubs for Dart. (Closed) Base URL: https://github.com/dart-lang/dart-protoc-plugin.git@master
Patch Set: adddressing nits Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | lib/client_generator.dart » ('j') | test/service_test.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 PLUGIN_SRC = \ 1 PLUGIN_SRC = \
2 prepend.dart \ 2 prepend.dart \
3 bin/protoc_plugin.dart \ 3 bin/protoc_plugin.dart \
4 lib/client_generator.dart \
4 lib/code_generator.dart \ 5 lib/code_generator.dart \
5 lib/enum_generator.dart \ 6 lib/enum_generator.dart \
6 lib/exceptions.dart \ 7 lib/exceptions.dart \
7 lib/extension_generator.dart \ 8 lib/extension_generator.dart \
8 lib/file_generator.dart \ 9 lib/file_generator.dart \
9 lib/indenting_writer.dart \ 10 lib/indenting_writer.dart \
10 lib/message_generator.dart \ 11 lib/message_generator.dart \
11 lib/options.dart \ 12 lib/options.dart \
12 lib/output_config.dart \ 13 lib/output_config.dart \
13 lib/protobuf_field.dart \ 14 lib/protobuf_field.dart \
14 lib/protoc.dart \ 15 lib/protoc.dart \
16 lib/service_generator.dart \
15 lib/src/descriptor.pb.dart \ 17 lib/src/descriptor.pb.dart \
16 lib/src/plugin.pb.dart \ 18 lib/src/plugin.pb.dart \
17 lib/writer.dart 19 lib/writer.dart
18 20
19 OUTPUT_DIR=out 21 OUTPUT_DIR=out
20 PLUGIN_NAME=protoc-gen-dart 22 PLUGIN_NAME=protoc-gen-dart
21 PLUGIN_PATH=$(OUTPUT_DIR)/$(PLUGIN_NAME) 23 PLUGIN_PATH=$(OUTPUT_DIR)/$(PLUGIN_NAME)
22 24
23 TEST_PROTO_LIST = \ 25 TEST_PROTO_LIST = \
24 google/protobuf/unittest_import \ 26 google/protobuf/unittest_import \
25 google/protobuf/unittest_optimi ze_for \ 27 google/protobuf/unittest_optimi ze_for \
26 google/protobuf/unittest \ 28 google/protobuf/unittest \
27 dart_options \ 29 dart_options \
28 descriptor_2_5_opensource \ 30 descriptor_2_5_opensource \
29 map_api \ 31 map_api \
30 map_api2 \ 32 map_api2 \
31 multiple_files_test \ 33 multiple_files_test \
32 nested_extension \ 34 nested_extension \
33 non_nested_extension \ 35 non_nested_extension \
34 reserved_names \ 36 reserved_names \
35 duplicate_names_import \ 37 duplicate_names_import \
36 package1 \ 38 package1 \
37 package2 \ 39 package2 \
38 package3 \ 40 package3 \
41 service \
39 toplevel_import \ 42 toplevel_import \
40 toplevel 43 toplevel
41 TEST_PROTO_DIR=$(OUTPUT_DIR)/protos 44 TEST_PROTO_DIR=$(OUTPUT_DIR)/protos
42 TEST_PROTO_LIBS=$(foreach proto, $(TEST_PROTO_LIST), $(TEST_PROTO_DIR)/$(proto). pb.dart) 45 TEST_PROTO_LIBS=$(foreach proto, $(TEST_PROTO_LIST), $(TEST_PROTO_DIR)/$(proto). pb.dart)
43 TEST_PROTO_SRC_DIR=test/protos 46 TEST_PROTO_SRC_DIR=test/protos
44 TEST_PROTO_SRCS=$(foreach proto, $(TEST_PROTO_LIST), $(TEST_PROTO_SRC_DIR)/$(pro to).proto) 47 TEST_PROTO_SRCS=$(foreach proto, $(TEST_PROTO_LIST), $(TEST_PROTO_SRC_DIR)/$(pro to).proto)
45 48
46 PREGENERATED_SRCS=lib/descriptor.proto lib/plugin.proto 49 PREGENERATED_SRCS=lib/descriptor.proto lib/plugin.proto
47 50
48 51
(...skipping 19 matching lines...) Expand all
68 update-pregenerated: $(PLUGIN_PATH) $(PREGENERATED_SRCS) 71 update-pregenerated: $(PLUGIN_PATH) $(PREGENERATED_SRCS)
69 protoc --dart_out=lib/src -Ilib --plugin=protoc-gen-dart=$(realpath $(PL UGIN_PATH)) $(PREGENERATED_SRCS) 72 protoc --dart_out=lib/src -Ilib --plugin=protoc-gen-dart=$(realpath $(PL UGIN_PATH)) $(PREGENERATED_SRCS)
70 73
71 build-test-protos: $(TEST_PROTO_LIBS) 74 build-test-protos: $(TEST_PROTO_LIBS)
72 75
73 run-tests: build-test-protos 76 run-tests: build-test-protos
74 dart --checked test/all_tests.dart 77 dart --checked test/all_tests.dart
75 78
76 clean: 79 clean:
77 rm -rf $(OUTPUT_DIR) 80 rm -rf $(OUTPUT_DIR)
OLDNEW
« no previous file with comments | « no previous file | lib/client_generator.dart » ('j') | test/service_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698