Skip to content

Commit

Permalink
CommonAPI-D-Bus-Tools 3.1.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
juergengehring committed Apr 7, 2017
1 parent 60a6889 commit e440ae3
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Changes
=======
v3.1.11.2
- Export deployment data

v3.1.11.1
- Support deployment for anonymous arrays

Expand Down
19 changes: 19 additions & 0 deletions org.genivi.commonapi.dbus.verification/doit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh
rm -rf src-gen
rm -rf build
mkdir build
cd build/

export PKG_CONFIG_PATH=$(readlink -f ../../../ascgit017.CommonAPI-D-Bus/patched-dbus/lib/pkgconfig/)
export LD_LIBRARY_PATH=$(readlink -f ../../../ascgit017.CommonAPI-D-Bus/patched-dbus/lib)
export LIBRARY_PATH=$(readlink -f ../../../ascgit017.CommonAPI-D-Bus/patched-dbus/lib)

cmake \
-DCOMMONAPI_TOOL_GENERATOR=$(readlink -f ../../../ascgit017.CommonAPI-Tools/org.genivi.commonapi.core.cli.product/target/products/org.genivi.commonapi.core.cli.product/linux/gtk/x86_64/commonapi-generator-linux-x86_64) \
-DCOMMONAPI_DBUS_TOOL_GENERATOR=$(readlink -f ../../../ascgit017.CommonAPI-D-Bus-Tools/org.genivi.commonapi.dbus.cli.product/target/products/org.genivi.commonapi.dbus.cli.product/linux/gtk/x86_64/commonapi-dbus-generator-linux-x86_64) \
-DCommonAPI_DIR=$(readlink -f ../../../ascgit017.CommonAPI/build) \
-DCommonAPI-DBus_DIR=$(readlink -f ../../../ascgit017.CommonAPI-D-Bus/build) \
-DCOMMONAPI_TEST_FIDL_PATH=$(readlink -f ../../../ascgit017.CommonAPI-Tools/org.genivi.commonapi.core.verification/fidl) \
..

make
Original file line number Diff line number Diff line change
Expand Up @@ -161,20 +161,20 @@ class FInterfaceDBusDeploymentGenerator extends FTypeCollectionDBusDeploymentGen
def protected dispatch String generateDeploymentDeclaration(FAttribute _attribute, FInterface _interface, PropertyAccessor _accessor) {
if (_accessor.hasSpecificDeployment(_attribute) || (_attribute.array && _accessor.hasDeployment(_attribute))) {
return "extern " + _attribute.getDeploymentType(_interface, true) + " " + _attribute.name + "Deployment;"
return "COMMONAPI_EXPORT extern " + _attribute.getDeploymentType(_interface, true) + " " + _attribute.name + "Deployment;"
}
return ""
}
def protected String generateDeploymentDeclaration(FArgument _argument, FMethod _method, FInterface _interface, PropertyAccessor _accessor) {
if (_accessor.hasSpecificDeployment(_argument) || (_argument.array && _accessor.hasDeployment(_argument))) {
return "extern " + _argument.getDeploymentType(_interface, true) + " " + _method.name + "_" + _argument.name + "Deployment;"
return "COMMONAPI_EXPORT extern " + _argument.getDeploymentType(_interface, true) + " " + _method.name + "_" + _argument.name + "Deployment;"
}
}
def protected String generateDeploymentDeclaration(FArgument _argument, FBroadcast _broadcast, FInterface _interface, PropertyAccessor _accessor) {
if (_accessor.hasSpecificDeployment(_argument) || (_argument.array && _accessor.hasDeployment(_argument))) {
return "extern " + _argument.getDeploymentType(_interface, true) + " " + _broadcast.name + "_" + _argument.name + "Deployment;"
return "COMMONAPI_EXPORT extern " + _argument.getDeploymentType(_interface, true) + " " + _broadcast.name + "_" + _argument.name + "Deployment;"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class FTypeCollectionDBusDeploymentGenerator {
def protected dispatch String generateDeploymentDeclaration(FArrayType _array, FTypeCollection _tc, PropertyAccessor _accessor) {
if (_accessor.hasDeployment(_array)) {
return _array.elementType.generateDeploymentDeclaration(_tc, _accessor) +
"extern " + _array.getDeploymentType(null, false) + " " + _array.name + "Deployment;"
"COMMONAPI_EXPORT extern " + _array.getDeploymentType(null, false) + " " + _array.name + "Deployment;"
}
return ""
}
Expand All @@ -236,7 +236,7 @@ class FTypeCollectionDBusDeploymentGenerator {
if (_accessor.hasDeployment(_map)) {
return _map.keyType.generateDeploymentDeclaration(_tc, _accessor) +
_map.valueType.generateDeploymentDeclaration(_tc, _accessor) +
"extern " + _map.getDeploymentType(null, false) + " " + _map.name + "Deployment;"
"COMMONAPI_EXPORT extern " + _map.getDeploymentType(null, false) + " " + _map.name + "Deployment;"
}
}
Expand All @@ -249,7 +249,7 @@ class FTypeCollectionDBusDeploymentGenerator {
for (structElement : _struct.elements) {
declaration += structElement.generateDeploymentDeclaration(_tc, _accessor)
}
declaration += "extern " + _struct.getDeploymentType(null, false) + " " + _struct.name + "Deployment;"
declaration += "COMMONAPI_EXPORT extern " + _struct.getDeploymentType(null, false) + " " + _struct.name + "Deployment;"
return declaration + "\n"
}
return ""
Expand All @@ -261,15 +261,15 @@ class FTypeCollectionDBusDeploymentGenerator {
for (structElement : _union.elements) {
declaration += structElement.generateDeploymentDeclaration(_tc, _accessor)
}
declaration += "extern " + _union.getDeploymentType(null, false) + " " + _union.name + "Deployment;"
declaration += "COMMONAPI_EXPORT extern " + _union.getDeploymentType(null, false) + " " + _union.name + "Deployment;"
return declaration + "\n"
}
return ""
}
def protected dispatch String generateDeploymentDeclaration(FField _field, FTypeCollection _tc, PropertyAccessor _accessor) {
if (_accessor.hasSpecificDeployment(_field)) {
return "extern " + _field.getDeploymentType(null, false) + " " + _field.getRelativeName() + "Deployment;\n"
return "COMMONAPI_EXPORT extern " + _field.getDeploymentType(null, false) + " " + _field.getRelativeName() + "Deployment;\n"
}
return ""
}
Expand Down

0 comments on commit e440ae3

Please sign in to comment.