forked from w3c/automotive-viss2
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from UlfBj/master
Binary tree documentation update. scrips directory removed. resources…
- Loading branch information
Showing
11 changed files
with
245 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Copyright (c) 2016 Contributors to COVESA | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Mozilla Public License 2.0 which is available at | ||
# https://www.mozilla.org/en-US/MPL/2.0/ | ||
# | ||
# SPDX-License-Identifier: MPL-2.0 | ||
|
||
# | ||
# Root Datatypes file | ||
# | ||
|
||
Types: | ||
type: branch | ||
description: Root node for the Types tree. | ||
|
||
Types.Resources: | ||
type: branch | ||
description: Vehicle resource types branch | ||
|
||
Types.Resources.FileDescriptor: | ||
type: struct | ||
description: File descriptor struct definition. | ||
|
||
Types.Resources.FileDescriptor.Name: | ||
type: property | ||
datatype: string | ||
description: File name incl file extension. | ||
|
||
Types.Resources.FileDescriptor.Hash: | ||
type: property | ||
datatype: string | ||
description: Hash calculated on file. | ||
|
||
Types.Resources.FileDescriptor.Uid: | ||
type: property | ||
datatype: string | ||
description: Uid to identify up/download session. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
# | ||
# Makefile to generate specifications | ||
# | ||
|
||
.PHONY: clean all mandatory_targets json franca yaml csv ddsidl tests binary protobuf ttl graphql ocf c overlays id jsonschema | ||
|
||
all: clean mandatory_targets optional_targets | ||
|
||
# All mandatory targets that shall be built and pass on each pull request for | ||
# vehicle-signal-specification or vss-tools | ||
mandatory_targets: clean json json-noexpand franca yaml binary csv graphql ddsidl id jsonschema apigear samm overlays | ||
|
||
# Additional targets that shall be built by travis, but where it is not mandatory | ||
# that the builds shall pass. | ||
# This is typically intended for less maintainted tools that are allowed to break | ||
# from time to time | ||
# Can be run from e.g. travis with "make -k optional_targets || true" to continue | ||
# even if errors occur and not do not halt travis build if errors occur | ||
optional_targets: clean protobuf ttl | ||
|
||
TOOLSDIR?=./vss-tools | ||
VSS_VERSION ?= 0.0 | ||
#COMMON_ARGS=-u ./spec/units.yaml --strict | ||
COMMON_ARGS=-u ./spec/units.yaml | ||
COMMON_VSPEC_ARG=-s ./spec/VehicleSignalSpecification.vspec | ||
#COMMON_VSPEC_ARG=-s ./spec/ServerSignalSpecification.vspec | ||
TYPETREE = none | ||
ifeq ($(TYPETREE), none) | ||
TYPETREE_ARG = | ||
else | ||
TYPETREE_ARG = -t ./spec/${TYPETREE} --types-output vss-datatypes.$@ | ||
endif | ||
NEWKEY = none | ||
ifeq ($(NEWKEY), none) | ||
NEWKEY_ARG = | ||
else | ||
NEWKEY_ARG = -e $(NEWKEY) | ||
endif | ||
json: | ||
vspec export json ${COMMON_ARGS} ${COMMON_VSPEC_ARG} -o vss.json | ||
|
||
json-noexpand: | ||
vspec export json ${COMMON_ARGS} --no-expand ${COMMON_VSPEC_ARG} -o vss_noexpand.json | ||
|
||
jsonschema: | ||
vspec export jsonschema ${COMMON_ARGS} ${COMMON_VSPEC_ARG} -o vss.jsonschema | ||
|
||
franca: | ||
vspec export franca --franca-vss-version $(VSS_VERSION) ${COMMON_ARGS} ${COMMON_VSPEC_ARG} -o vss.fidl | ||
|
||
yaml: | ||
vspec export yaml ${TYPETREE_ARG} ${COMMON_ARGS} ${COMMON_VSPEC_ARG} ${NEWKEY_ARG} -o vss.yaml | ||
# vspec export yaml ${COMMON_ARGS} ${COMMON_VSPEC_ARG} -o vss.yaml | ||
|
||
csv: | ||
vspec export csv ${COMMON_ARGS} ${COMMON_VSPEC_ARG} -o vss.csv | ||
|
||
ddsidl: | ||
vspec export ddsidl ${COMMON_ARGS} ${COMMON_VSPEC_ARG} -o vss.idl | ||
|
||
# Verifies that supported overlay combinations are syntactically correct. | ||
overlays: | ||
vspec export json ${COMMON_ARGS} -l overlays/profiles/motorbike.vspec ${COMMON_VSPEC_ARG} -o vss_motorbike.json | ||
vspec export json ${COMMON_ARGS} -l overlays/extensions/dual_wiper_systems.vspec ${COMMON_VSPEC_ARG} -o vss_dualwiper.json | ||
vspec export json ${COMMON_ARGS} -l overlays/extensions/OBD.vspec ${COMMON_VSPEC_ARG} -o vss_obd.json | ||
|
||
binary: | ||
# vspec export binary ${COMMON_ARGS} ${COMMON_VSPEC_ARG} ${NEWKEY_ARG} -o vss.binary | ||
vspec export binary ${TYPETREE_ARG} ${COMMON_ARGS} ${COMMON_VSPEC_ARG} ${NEWKEY_ARG} -o vss.binary | ||
|
||
protobuf: | ||
vspec export protobuf ${COMMON_ARGS} ${COMMON_VSPEC_ARG} -o vss.proto | ||
|
||
graphql: | ||
vspec export graphql ${COMMON_ARGS} ${COMMON_VSPEC_ARG} -o vss.graphql.ts | ||
|
||
apigear: | ||
vspec export apigear ${COMMON_ARGS} ${COMMON_VSPEC_ARG} --output-dir apigear | ||
cd apigear && tar -czvf ../vss_apigear.tar.gz * && cd .. | ||
|
||
samm: | ||
vspec export samm ${COMMON_ARGS} ${COMMON_VSPEC_ARG} --target-folder samm | ||
cd samm && tar -czvf ../vss_samm.tar.gz * && cd .. | ||
|
||
# vspec2ttl does not use common generator framework | ||
ttl: | ||
${TOOLSDIR}/contrib/vspec2ttl/vspec2ttl.py -u ./spec/units.yaml ./spec/VehicleSignalSpecification.vspec vss.ttl | ||
|
||
id: | ||
vspec export id ${COMMON_ARGS} ${COMMON_VSPEC_ARG} -o vss.vspec | ||
|
||
clean: | ||
rm -f vss.* | ||
rm -rf apigear | ||
rm -rf samm |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.