diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-02-02 23:57:18 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-02-02 23:57:18 +0000 |
commit | 796185b12745150fadc091adbe3c2b7c2e64dfa4 (patch) | |
tree | 1b6515691e15a498044b385dca5ed3761a7c99a6 | |
parent | 438d180b97d0d9b7df8aae4e95d9d72c7c60733d (diff) | |
parent | 466d4c37f03e7e656262c7f4981678c46d4b899a (diff) | |
download | tflite-support-simpleperf-release.tar.gz |
Snap for 11400057 from 466d4c37f03e7e656262c7f4981678c46d4b899a to simpleperf-releasesimpleperf-release
Change-Id: Idc9341e29f694e6a035b04f9509c2ef0aa93d243
-rw-r--r-- | Android.bp | 33 |
1 files changed, 16 insertions, 17 deletions
@@ -454,36 +454,35 @@ cc_library_static { ], } -// Add header file targets. -genrule { - name: "tflite_support_metadata_schema", - srcs: ["tensorflow_lite_support/metadata/metadata_schema.fbs"], - out: ["tensorflow_lite_support/metadata/metadata_schema_generated.h"], - defaults: ["tflite_support_fbgen"], -} - // ----------------- // Generate headers with FlatBuffer schema compiler. // ----------------- -genrule_defaults { - name: "tflite_support_fbgen", + +FLATC_ARGS = "$(location flatc) --cpp --no-union-value-namespacing --gen-object-api --keep-prefix -I external/tflite-support -o $$(dirname $(out)) " + +genrule { + name: "tflite_support_metadata_schema", tools: ["flatc"], - // "depfile" is used here in conjunction with flatc's -M to gather the deps - cmd: "$(location flatc) --cpp --no-union-value-namespacing --gen-object-api --keep-prefix -I external/tflite-support -M $(in) >$(depfile) && " + - "$(location flatc) --cpp --no-union-value-namespacing --gen-object-api --keep-prefix -I external/tflite-support -o $$(dirname $(out)) $(in)", - depfile: true, + srcs: ["tensorflow_lite_support/metadata/metadata_schema.fbs"], + cmd: FLATC_ARGS + " $(in)", + out: ["tensorflow_lite_support/metadata/metadata_schema_generated.h"], } genrule { name: "tflite_support_spm_config", + tools: ["flatc"], srcs: ["tensorflow_lite_support/custom_ops/kernel/sentencepiece/config.fbs"], + cmd: FLATC_ARGS + " $(in)", out: ["tensorflow_lite_support/custom_ops/kernel/sentencepiece/config_generated.h"], - defaults: ["tflite_support_fbgen"], } genrule { name: "tflite_support_spm_encoder_config", - srcs: ["tensorflow_lite_support/custom_ops/kernel/sentencepiece/encoder_config.fbs"], + tools: ["flatc"], + srcs: [ + "tensorflow_lite_support/custom_ops/kernel/sentencepiece/config.fbs", + "tensorflow_lite_support/custom_ops/kernel/sentencepiece/encoder_config.fbs", + ], + cmd: FLATC_ARGS + " $(location tensorflow_lite_support/custom_ops/kernel/sentencepiece/encoder_config.fbs)", out: ["tensorflow_lite_support/custom_ops/kernel/sentencepiece/encoder_config_generated.h"], - defaults: ["tflite_support_fbgen"], } |