ctemplate.xml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!-- -->
  3. <!-- Copyright (c) 2018 Intel Corporation. -->
  4. <!-- -->
  5. <!-- All rights reserved. This program and the accompanying materials -->
  6. <!-- are made available under the terms of the Eclipse Public License v1.0 -->
  7. <!-- which accompanies this distribution, and is available at -->
  8. <!-- http://www.eclipse.org/legal/epl-v10.html -->
  9. <!-- -->
  10. <!-- Contributors: -->
  11. <!-- Intel Corporation - initial implementation and documentation -->
  12. <!-- -->
  13. <template type="ProjTempl" version="1.0" supplier="Eclipse.org" revision="1.0" author="Bala Torati (Symbian)"
  14. copyright="Copyright (c) 2007 Symbian Software Limited and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available athttp://www.eclipse.org/legal/epl-v10.html"
  15. id="myHelloWorldCCProject" label="HelloWorld.CCtemplate.label" description="HelloWorld.CCtemplate.description"
  16. help="help.html">
  17. <property-group id="basics" label="HelloWorld.basics.label" description="HelloWorld.basics.description" type="PAGES-ONLY" help="help.html">
  18. <property id="author"
  19. label="HelloWorld.author.label"
  20. description="HelloWorld.author.description"
  21. type="input"
  22. pattern=".*"
  23. default=""
  24. hidden="false"
  25. persist="true"/>
  26. <property id="copyright"
  27. label="HelloWorld.copyright.label"
  28. description="HelloWorld.copyright.description"
  29. type="input"
  30. pattern=".*"
  31. default="HelloWorld.copyright.default"
  32. hidden="false"
  33. persist="true"/>
  34. <property id="message"
  35. label="HelloWorld.message.label"
  36. description="HelloWorld.message.description"
  37. type="input"
  38. pattern=".*"
  39. default="HelloWorld.message.default"
  40. hidden="false"
  41. persist="true"/>
  42. <property id="sourceDir"
  43. label="HelloWorld.sourceDir.label"
  44. description="HelloWorld.sourceDir.description"
  45. type="input"
  46. default="HelloWorld.sourceDir.default"
  47. pattern="[a-zA-Z0-9]+"
  48. persist="true"/>
  49. </property-group>
  50. <process type="org.eclipse.cdt.managedbuilder.core.NewManagedProject">
  51. <simple name="name" value="$(projectName)" />
  52. <simple name="artifactExtension" value="exe" />
  53. <simple name="isCProject" value="false" />
  54. </process>
  55. <process type="org.eclipse.cdt.core.CreateSourceFolder">
  56. <simple name="projectName" value="$(projectName)"/>
  57. <simple name="path" value="$(sourceDir)"/>
  58. </process>
  59. <process type="org.eclipse.cdt.core.AddFiles">
  60. <simple name="projectName" value="$(projectName)"/>
  61. <complex-array name="files">
  62. <element>
  63. <simple name="source" value="src/Basename.cpp"/>
  64. <simple name="target" value="$(sourceDir)/$(projectName).cpp"/>
  65. <simple name="replaceable" value="true"/>
  66. </element>
  67. </complex-array>
  68. </process>
  69. <process type="org.eclipse.cdt.ui.OpenFiles">
  70. <simple name="projectName" value="$(projectName)"/>
  71. <complex-array name="files">
  72. <element>
  73. <simple name="target" value="$(sourceDir)/$(projectName).cpp"/>
  74. </element>
  75. </complex-array>
  76. </process>
  77. </template>