aboutsummaryrefslogtreecommitdiff
path: root/system_api.gyp
diff options
context:
space:
mode:
authorAndrew Moylan <amoylan@chromium.org>2018-07-03 13:51:46 +1000
committerchrome-bot <chrome-bot@chromium.org>2018-07-16 23:03:04 -0700
commitde836897c796fe15a03840e6a05f0227032df545 (patch)
treea825188282e1ff036269f27730232b498acf2e3c /system_api.gyp
parent6e71a28cf4a6fc980b0cb3ce55a82204ed20d89a (diff)
downloadsystem_api-de836897c796fe15a03840e6a05f0227032df545.tar.gz
Remove ML service mojoms from system_api
Instead of sharing ML service .mojoms between Chrome OS and Chromium here in system_api, we will follow the recommendations of the doc below to keep eventually-consistent copies of the mojoms separately in each repo: https://docs.google.com/document/d/1rX3xtR6ZioKZaO-4qBFJFqFypSX1p6gAvQ_MuYn64G8 This CL just removes the mojoms. They are added separately in Chrome OS and Chromium in, respectively: crrev.com/c/1123663 and crrev.com/c/1123964. BUG=chromium:836091 TEST=no Change-Id: Ie5a696c8ade776dde7c6f30a6cab9c41dea15d91 Reviewed-on: https://chromium-review.googlesource.com/1123968 Commit-Ready: Andrew Moylan <amoylan@chromium.org> Tested-by: Andrew Moylan <amoylan@chromium.org> Reviewed-by: Dan Erat <derat@chromium.org> Reviewed-by: Claudio M <claudiomagni@chromium.org>
Diffstat (limited to 'system_api.gyp')
-rw-r--r--system_api.gyp71
1 files changed, 0 insertions, 71 deletions
diff --git a/system_api.gyp b/system_api.gyp
index 14d190a..f23aee4 100644
--- a/system_api.gyp
+++ b/system_api.gyp
@@ -309,76 +309,5 @@
'<(SHARED_INTERMEDIATE_DIR)/include/vm_applications/proto_bindings/apps.pb.cc',
]
},
- {
- 'target_name': 'ml_service_mojo_bindings',
- 'type': 'static_library',
- 'variables': {
- 'deps': [
- 'libchrome-<(libbase_ver)',
- 'libmojo-<(libbase_ver)',
- ],
- 'mojo_output_dir': '<(SHARED_INTERMEDIATE_DIR)/include',
- 'mojo_binding_generator': '<(sysroot)/usr/src/libmojo-<(libbase_ver)/mojo/mojom_bindings_generator.py',
- 'mojo_template_dir': '<(SHARED_INTERMEDIATE_DIR)/templates',
- },
- 'sources': [
- 'mojo/ml_service/interface.mojom',
- 'mojo/ml_service/learning_example.mojom',
- 'mojo/ml_service/model.mojom',
- ],
- 'actions': [
- {
- 'action_name': 'ml_service_mojom_templates_dir',
- 'inputs': [
- ],
- 'outputs': [
- '<(mojo_template_dir)',
- ],
- 'message': 'Creating mojo C++ templates dir <(mojo_template_dir)',
- 'action': [
- 'mkdir', '-p', '<(mojo_template_dir)',
- ],
- },
- {
- 'action_name': 'ml_service_mojom_templates',
- 'inputs': [
- '<(mojo_binding_generator)',
- '<(mojo_template_dir)',
- ],
- 'outputs': [
- '<(mojo_template_dir)/cpp_templates.zip',
- ],
- 'message': 'Generating mojo C++ templates in <(mojo_template_dir)',
- 'action': [
- 'python', '<(mojo_binding_generator)', '--use_bundled_pylibs',
- 'precompile', '-o', '<(mojo_template_dir)',
- ],
- },
- ],
- 'rules': [
- {
- 'rule_name': 'ml_service_mojom_bindings_gen',
- 'extension': 'mojom',
- 'inputs': [
- '<(mojo_binding_generator)',
- '<(mojo_template_dir)/cpp_templates.zip',
- ],
- 'outputs': [
- '<(mojo_output_dir)/mojo/ml_service/<(RULE_INPUT_NAME)-internal.h',
- '<(mojo_output_dir)/mojo/ml_service/<(RULE_INPUT_NAME).cc',
- '<(mojo_output_dir)/mojo/ml_service/<(RULE_INPUT_NAME).h',
- ],
- 'message': 'Generating mojo C++ bindings for ML Service from <(RULE_INPUT_PATH)',
- 'action': [
- 'python', '<(mojo_binding_generator)', '--use_bundled_pylibs',
- 'generate', '<(RULE_INPUT_PATH)',
- '-o', '<(mojo_output_dir)',
- '--bytecode_path', '<(mojo_template_dir)',
- '-g', 'c++',
- ],
- 'process_outputs_as_sources': 1,
- },
- ],
- },
],
}