123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- <?xml version="1.0" encoding="ISO-8859-1"?>
- <!-- -->
- <!-- Copyright (c) 2018 Intel Corporation. -->
- <!-- -->
- <!-- 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 at -->
- <!-- http://www.eclipse.org/legal/epl-v10.html -->
- <!-- -->
- <!-- Contributors: -->
- <!-- Intel Corporation - initial implementation and documentation -->
- <!-- -->
- <template type="ProjTempl" version="1.0" supplier="Intel"
- revision="1.0" author="Intel" id="%SGX.CXXStatictemplate.title.id" label="%SGX.CXXStatictemplate.title.label"
- description="%SGX.CXXStatictemplate.title.description" help="help.html">
- <property-group id="enclaveSettings" label="%SGX.CXXStatictemplate.enclaveSettings.label"
- description="%SGX.CXXStatictemplate.enclaveSettings.description" type="PAGES-ONLY"
- help="help.html" branding-icon="SGX.gif">
- <property id="GenerateEdl" label="%SGX.CXXStatictemplate.requiresEdl.label"
- description="%SGX.CXXStatictemplate.requiresEdl.description"
- type="boolean" default="false" pattern="" hidden="false" mandatory="false"
- persist="false">
- </property>
- </property-group>
- <process type="org.eclipse.cdt.managedbuilder.core.NewManagedProject">
- <simple name="name" value="$(projectName)" />
- <simple name="location" value="$(location)" />
- <simple name="artifactExtension" value="exe" />
- <simple name="isCProject" value="true" />
- </process>
- <process type="org.eclipse.cdt.core.CreateSourceFolder">
- <simple name="projectName" value="$(projectName)" />
- <simple name="path" value="src" />
- </process>
- <if condition="$(GenerateEdl)!=false">
- <process type="org.eclipse.cdt.core.AddFiles">
- <simple name="projectName" value="$(projectName)" />
- <complex-array name="files">
- <element>
- <simple name="source" value="../source/Basename.edl" />
- <simple name="target" value="src/$(baseName).edl" />
- <simple name="replaceable" value="true" />
- </element>
- <element>
- <simple name="source" value="../include/Basename_t.h" />
- <simple name="target" value="sgx/$(baseName)/$(baseName)_t.h" />
- <simple name="replaceable" value="true" />
- </element>
- </complex-array>
- </process>
- </if>
- <process type="com.intel.sgx.SetStaticCCNature">
- <simple name="projectName" value="$(projectName)" />
- </process>
- <if condition="$(GenerateEdl)!=false">
- <process type="org.eclipse.cdt.core.AddFiles">
- <simple name="projectName" value="$(projectName)" />
- <complex-array name="files">
- <element>
- <simple name="source" value="../source/Basename.edl" />
- <simple name="target" value="src/$(baseName).edl" />
- <simple name="replaceable" value="true" />
- </element>
- <element>
- <simple name="source" value="../source/Basename.cpp" />
- <simple name="target" value="src/$(baseName).cpp" />
- <simple name="replaceable" value="true" />
- </element>
- <element>
- <simple name="source" value="../include/Basename_t.h" />
- <simple name="target" value="sgx/$(baseName)_trusted_stubs/$(baseName)_t.h" />
- <simple name="replaceable" value="true" />
- </element>
- <element>
- <simple name="source" value="../sgx/Enclave/SGXC++StaticLibLinuxMK/sgx.mk" />
- <simple name="target" value="sgx/sgx.mk" />
- <simple name="replaceable" value="true" />
- </element>
- <element>
- <simple name="source" value="../sgx/Enclave/SGXC++StaticLibLinuxMK/Makefile" />
- <simple name="target" value="sgx/Makefile" />
- <simple name="replaceable" value="true" />
- </element>
- </complex-array>
- </process>
- </if>
- <if condition="$(GenerateEdl)!=true">
- <process type="org.eclipse.cdt.core.AddFiles">
- <simple name="projectName" value="$(projectName)" />
- <complex-array name="files">
- <element>
- <simple name="source" value="../source/Basename.cpp" />
- <simple name="target" value="src/$(baseName).cpp" />
- <simple name="replaceable" value="true" />
- </element>
- <element>
- <simple name="source" value="../sgx/TrustedLibrary/C++StaticLibLinuxMK/sgx.mk" />
- <simple name="target" value="sgx/sgx.mk" />
- <simple name="replaceable" value="true" />
- </element>
- <element>
- <simple name="source" value="../sgx/TrustedLibrary/C++StaticLibLinuxMK/Makefile" />
- <simple name="target" value="sgx/Makefile" />
- <simple name="replaceable" value="true" />
- </element>
- </complex-array>
- </process>
- </if>
- </template>
|