Skip to content
Snippets Groups Projects
PL1
Commit 3a59bec4 authored by Damian Gzik's avatar Damian Gzik
Browse files

Add new Device Generator project wizard

- add IV prefab to the project
parent 528beecd
Branches
Tags
1 merge request!654Implement DeviceGenerator qtc plugin
cmake_minimum_required(VERSION 2.8)
project(%{JS: '%{ProjectName}'})
set(IVSOURCES %{IVFile})
include(asn1sccSettings.cmake)
include(createFilesList.cmake)
set(SOURCES ${DVSOURCES} ${ASN1SCC_PRODUCTS} ${IVSOURCES})
if(SOURCES)
set(TARGET_NAME ${PROJECT_NAME})
add_executable(${TARGET_NAME})
target_sources(${TARGET_NAME} PRIVATE ${SOURCES})
endif()
include(configureAsn1SccTarget.cmake)
\ No newline at end of file
TEMPLATE = lib
CONFIG -= qt
CONFIG += generateC
DISTFILES += %{IVFile}
include(handleAsn1AcnBuild.pri)
\ No newline at end of file
<?xml version="1.0"?>
<InterfaceView>
</InterfaceView>
{
"version": 1,
"kind": "project",
"supportedProjectTypes": [ "CMakeProjectManager.CMakeProject", "Qt4ProjectManager.Qt4Project" ],
"id": "S.DeviceGenerator Project",
"category": "I.Projects",
"trDescription": "Create Communication Device project.",
"trDisplayName": "Communication Device Project",
"trDisplayCategory": "Non-Qt Project",
"enabled": true,
"options":[
{ "key": "BuildSystem", "value": "qmake" },
{ "key": "ProjectFile", "value": "%{JS: '%{BuildSystem}' === 'qmake' ? '%{ProFile}' : '%{CMakeFile}'}" },
{ "key": "ProFile", "value": "%{JS: Util.fileName('%{ProjectDirectory}/%{ProjectName}', 'pro')}" },
{ "key": "CMakeFile", "value": "%{ProjectDirectory}/CMakeLists.txt" },
{ "key": "IVFile", "value": "interfaceview.xml" }
],
"pages":[
{
"trDisplayName": "Project Location",
"trShortTitle": "Location",
"typeId": "Project"
},
{
"trDisplayName": "Project Initialization",
"trShortTitle": "Project Initialization",
"typeId": "Fields",
"enabled": true,
"data":[
{
"name": "BuildSystem",
"trDisplayName": "Build system:",
"type": "ComboBox",
"data":
{
"index": 0,
"items":
[
{
"trKey": "qmake",
"value": "qmake",
"condition": "%{JS: [ %{Plugins} ].indexOf('QmakeProjectManager') >= 0}"
},
{
"trKey": "CMake",
"value": "cmake",
"condition": "%{JS: [ %{Plugins} ].indexOf('CMakeProjectManager') >= 0}"
}
]
}
}
]
},
{
"trDisplayName": "Kit Selection",
"trShortTitle": "Kits",
"typeId": "Kits",
"enabled": true,
"data": { "projectFilePath": "%{ProjectFile}" }
},
{
"trDisplayName": "Project Management",
"trShortTitle": "Summary",
"typeId": "Summary"
}
],
"generators":[
{
"typeId": "File",
"data":[
{
"source": "file.pro",
"target": "%{ProFile}",
"openAsProject": true,
"condition": "%{JS: '%{BuildSystem}' === 'qmake'}"
},
{
"source": "../asn1acn/handleAsn1AcnBuild.pri",
"target": "handleAsn1AcnBuild.pri",
"openAsProject": false,
"condition": "%{JS: '%{BuildSystem}' === 'qmake'}"
},
{
"source": "../asn1acn/updateSourcesList.pri",
"target": "updateSourcesList.pri",
"openAsProject": false,
"condition": "%{JS: '%{BuildSystem}' === 'qmake'}"
},
{
"source": "../asn1acn/generateFromAsn1.pri",
"target": "generateFromAsn1.pri",
"openAsProject": false,
"condition": "%{JS: '%{BuildSystem}' === 'qmake'}"
},
{
"source": "CMakeLists.txt",
"target": "CMakeLists.txt",
"openAsProject": true,
"condition": "%{JS: '%{BuildSystem}' === 'cmake'}"
},
{
"source": "../asn1acn/asn1sccSettings.cmake",
"target": "asn1sccSettings.cmake",
"openAsProject": false,
"condition": "%{JS: '%{BuildSystem}' === 'cmake'}"
},
{
"source": "../asn1acn/configureAsn1SccTarget.cmake",
"target": "configureAsn1SccTarget.cmake",
"openAsProject": false,
"condition": "%{JS: '%{BuildSystem}' === 'cmake'}"
},
{
"source": "../asn1acn/createFilesList.cmake",
"target": "createFilesList.cmake",
"openAsProject": false,
"condition": "%{JS: '%{BuildSystem}' === 'cmake'}"
},
{
"source": "interfaceview.xml",
"target": "%{IVFile}",
"openInEditor": true
}
]
}
]
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment