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

Side by Side Diff: Makefile

Issue 2013343002: Move server-side service stubs to .pbserver.dart (Closed) Base URL: git@github.com:dart-lang/dart-protoc-plugin.git@cleanup
Patch Set: bump version Created 4 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/file_generator.dart » ('j') | test/file_generator_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/*.dart \ 4 lib/*.dart \
5 lib/src/descriptor.pb.dart \ 5 lib/src/descriptor.pb.dart \
6 lib/src/plugin.pb.dart 6 lib/src/plugin.pb.dart
7 7
8 OUTPUT_DIR=out 8 OUTPUT_DIR=out
9 PLUGIN_NAME=protoc-gen-dart 9 PLUGIN_NAME=protoc-gen-dart
10 PLUGIN_PATH=$(OUTPUT_DIR)/$(PLUGIN_NAME) 10 PLUGIN_PATH=$(OUTPUT_DIR)/$(PLUGIN_NAME)
(...skipping 15 matching lines...) Expand all
26 duplicate_names_import \ 26 duplicate_names_import \
27 package1 \ 27 package1 \
28 package2 \ 28 package2 \
29 package3 \ 29 package3 \
30 service \ 30 service \
31 service2 \ 31 service2 \
32 service3 \ 32 service3 \
33 toplevel_import \ 33 toplevel_import \
34 toplevel 34 toplevel
35 TEST_PROTO_DIR=$(OUTPUT_DIR)/protos 35 TEST_PROTO_DIR=$(OUTPUT_DIR)/protos
36 TEST_PROTO_LIBS=$(foreach proto, $(TEST_PROTO_LIST), $(TEST_PROTO_DIR)/$(proto). pb.dart $(TEST_PROTO_DIR)/$(proto).pbjson.dart) 36 TEST_PROTO_LIBS=$(foreach f, $(TEST_PROTO_LIST), \
37 $(TEST_PROTO_DIR)/$(f).pb.dart \
38 » $(TEST_PROTO_DIR)/$(f).pbenum.dart \
39 » $(TEST_PROTO_DIR)/$(f).pbserver.dart \
40 » $(TEST_PROTO_DIR)/$(f).pbjson.dart)
37 TEST_PROTO_SRC_DIR=test/protos 41 TEST_PROTO_SRC_DIR=test/protos
38 TEST_PROTO_SRCS=$(foreach proto, $(TEST_PROTO_LIST), $(TEST_PROTO_SRC_DIR)/$(pro to).proto) 42 TEST_PROTO_SRCS=$(foreach proto, $(TEST_PROTO_LIST), \
43 $(TEST_PROTO_SRC_DIR)/$(proto).proto)
39 44
40 PREGENERATED_SRCS=lib/descriptor.proto lib/plugin.proto 45 PREGENERATED_SRCS=lib/descriptor.proto lib/plugin.proto
41 46
42 47
43 $(PLUGIN_PATH): $(PLUGIN_SRC) 48 $(PLUGIN_PATH): $(PLUGIN_SRC)
44 [ -d $(OUTPUT_DIR) ] || mkdir $(OUTPUT_DIR) 49 [ -d $(OUTPUT_DIR) ] || mkdir $(OUTPUT_DIR)
45 # --categories=all is a hack, it should be --categories=Server once dart 2dart bug is fixed. 50 # --categories=all is a hack, it should be --categories=Server once dart 2dart bug is fixed.
46 dart2js --checked --output-type=dart --show-package-warnings --categorie s=all -o$(PLUGIN_PATH) bin/protoc_plugin.dart 51 dart2js --checked --output-type=dart --show-package-warnings --categorie s=all -o$(PLUGIN_PATH) bin/protoc_plugin.dart
47 dart prepend.dart $(PLUGIN_PATH) 52 dart prepend.dart $(PLUGIN_PATH)
48 chmod +x $(PLUGIN_PATH) 53 chmod +x $(PLUGIN_PATH)
(...skipping 21 matching lines...) Expand all
70 -Ibenchmark/protos \ 75 -Ibenchmark/protos \
71 --plugin=protoc-gen-dart=$(realpath $(PLUGIN_PATH)) \ 76 --plugin=protoc-gen-dart=$(realpath $(PLUGIN_PATH)) \
72 $(BENCHMARK_PROTOS) 77 $(BENCHMARK_PROTOS)
73 78
74 run-tests: protos 79 run-tests: protos
75 pub run test 80 pub run test
76 81
77 clean: 82 clean:
78 rm -rf benchmark/lib/generated 83 rm -rf benchmark/lib/generated
79 rm -rf $(OUTPUT_DIR) 84 rm -rf $(OUTPUT_DIR)
OLDNEW
« no previous file with comments | « no previous file | lib/file_generator.dart » ('j') | test/file_generator_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698