cxxstaticlibtemplate.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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="Intel"
  14. revision="1.0" author="Intel" id="%SGX.CXXStatictemplate.title.id" label="%SGX.CXXStatictemplate.title.label"
  15. description="%SGX.CXXStatictemplate.title.description" help="help.html">
  16. <property-group id="enclaveSettings" label="%SGX.CXXStatictemplate.enclaveSettings.label"
  17. description="%SGX.CXXStatictemplate.enclaveSettings.description" type="PAGES-ONLY"
  18. help="help.html" branding-icon="SGX.gif">
  19. <property id="GenerateEdl" label="%SGX.CXXStatictemplate.requiresEdl.label"
  20. description="%SGX.CXXStatictemplate.requiresEdl.description"
  21. type="boolean" default="false" pattern="" hidden="false" mandatory="false"
  22. persist="false">
  23. </property>
  24. </property-group>
  25. <process type="org.eclipse.cdt.managedbuilder.core.NewManagedProject">
  26. <simple name="name" value="$(projectName)" />
  27. <simple name="location" value="$(location)" />
  28. <simple name="artifactExtension" value="exe" />
  29. <simple name="isCProject" value="true" />
  30. </process>
  31. <process type="org.eclipse.cdt.core.CreateSourceFolder">
  32. <simple name="projectName" value="$(projectName)" />
  33. <simple name="path" value="src" />
  34. </process>
  35. <if condition="$(GenerateEdl)!=false">
  36. <process type="org.eclipse.cdt.core.AddFiles">
  37. <simple name="projectName" value="$(projectName)" />
  38. <complex-array name="files">
  39. <element>
  40. <simple name="source" value="../source/Basename.edl" />
  41. <simple name="target" value="src/$(baseName).edl" />
  42. <simple name="replaceable" value="true" />
  43. </element>
  44. <element>
  45. <simple name="source" value="../include/Basename_t.h" />
  46. <simple name="target" value="sgx/$(baseName)/$(baseName)_t.h" />
  47. <simple name="replaceable" value="true" />
  48. </element>
  49. </complex-array>
  50. </process>
  51. </if>
  52. <process type="com.intel.sgx.SetStaticCCNature">
  53. <simple name="projectName" value="$(projectName)" />
  54. </process>
  55. <if condition="$(GenerateEdl)!=false">
  56. <process type="org.eclipse.cdt.core.AddFiles">
  57. <simple name="projectName" value="$(projectName)" />
  58. <complex-array name="files">
  59. <element>
  60. <simple name="source" value="../source/Basename.edl" />
  61. <simple name="target" value="src/$(baseName).edl" />
  62. <simple name="replaceable" value="true" />
  63. </element>
  64. <element>
  65. <simple name="source" value="../source/Basename.cpp" />
  66. <simple name="target" value="src/$(baseName).cpp" />
  67. <simple name="replaceable" value="true" />
  68. </element>
  69. <element>
  70. <simple name="source" value="../include/Basename_t.h" />
  71. <simple name="target" value="sgx/$(baseName)_trusted_stubs/$(baseName)_t.h" />
  72. <simple name="replaceable" value="true" />
  73. </element>
  74. <element>
  75. <simple name="source" value="../sgx/Enclave/SGXC++StaticLibLinuxMK/sgx.mk" />
  76. <simple name="target" value="sgx/sgx.mk" />
  77. <simple name="replaceable" value="true" />
  78. </element>
  79. <element>
  80. <simple name="source" value="../sgx/Enclave/SGXC++StaticLibLinuxMK/Makefile" />
  81. <simple name="target" value="sgx/Makefile" />
  82. <simple name="replaceable" value="true" />
  83. </element>
  84. </complex-array>
  85. </process>
  86. </if>
  87. <if condition="$(GenerateEdl)!=true">
  88. <process type="org.eclipse.cdt.core.AddFiles">
  89. <simple name="projectName" value="$(projectName)" />
  90. <complex-array name="files">
  91. <element>
  92. <simple name="source" value="../source/Basename.cpp" />
  93. <simple name="target" value="src/$(baseName).cpp" />
  94. <simple name="replaceable" value="true" />
  95. </element>
  96. <element>
  97. <simple name="source" value="../sgx/TrustedLibrary/C++StaticLibLinuxMK/sgx.mk" />
  98. <simple name="target" value="sgx/sgx.mk" />
  99. <simple name="replaceable" value="true" />
  100. </element>
  101. <element>
  102. <simple name="source" value="../sgx/TrustedLibrary/C++StaticLibLinuxMK/Makefile" />
  103. <simple name="target" value="sgx/Makefile" />
  104. <simple name="replaceable" value="true" />
  105. </element>
  106. </complex-array>
  107. </process>
  108. </if>
  109. </template>