|
@@ -0,0 +1,786 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+<?eclipse version="3.4"?>
|
|
|
+<plugin>
|
|
|
+ <extension id="com.intel.sgx.sgxbuilderdefinitions" name="Software Guard Extensions Builder Definition"
|
|
|
+ point="org.eclipse.cdt.managedbuilder.core.buildDefinitions">
|
|
|
+ <toolChain configurationEnvironmentSupplier="com.linux.ide.eclipse.ndk.internal.build.NdkEnvSupplier"
|
|
|
+ id="com.intel.sgx.SGXtoolChain" isAbstract="false" name="SGX GCC"
|
|
|
+ supportsManagedBuild="false">
|
|
|
+ <builder cleanBuildTarget="clean" command="make"
|
|
|
+ commandLauncher="com.intel.sgx.build.SGXSDKCommandLauncher" id="com.intel.sgx.sgxbuilder"
|
|
|
+ isAbstract="false" isVariableCaseSensitive="false"
|
|
|
+ name="Software Guard Extensions Linux Builder">
|
|
|
+ </builder>
|
|
|
+ <targetPlatform binaryParser="org.eclipse.cdt.core.ELF"
|
|
|
+ id="com.intel.sgx.targetEnclave" isAbstract="false">
|
|
|
+ </targetPlatform>
|
|
|
+ <tool id="com.intel.sgx.compiler" isAbstract="false" name="SGX GCC Compiler"
|
|
|
+ natureFilter="both">
|
|
|
+ <option browseType="directory" id="com.intel.sgx.option.includePath"
|
|
|
+ isAbstract="false" resourceFilter="all" valueType="includePath">
|
|
|
+ </option>
|
|
|
+ <inputType id="com.intel.sgx.inputType"
|
|
|
+ scannerConfigDiscoveryProfileId="com.intel.sgx.SGXPerProjectProfile"
|
|
|
+ sources="c,cpp">
|
|
|
+ </inputType>
|
|
|
+ </tool>
|
|
|
+ </toolChain>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <configuration id="com.intel.sgx.configuration.Sim.Debug" name="SGX Simulation Debug">
|
|
|
+ <toolChain id="com.intel.sgx.toolChain.Sim.Debug" isAbstract="false"
|
|
|
+ name="SGX GCC" superClass="com.intel.sgx.SGXtoolChain">
|
|
|
+ <builder arguments="SGX_DEBUG=1 SGX_MODE=SIM -f sgx/Makefile" command="make"
|
|
|
+ id="com.intel.sgx.builder2" isAbstract="false"
|
|
|
+ isVariableCaseSensitive="false" name="Software Guard Extensions Linux Builder"
|
|
|
+ superClass="com.intel.sgx.sgxbuilder">
|
|
|
+ </builder>
|
|
|
+ </toolChain>
|
|
|
+ </configuration>
|
|
|
+
|
|
|
+ <configuration id="com.intel.sgx.configuration.HW.Debug" name="SGX Hardware Debug">
|
|
|
+ <toolChain id="com.intel.sgx.toolChain.HW.Debug" isAbstract="false"
|
|
|
+ name="SGX GCC" superClass="com.intel.sgx.SGXtoolChain">
|
|
|
+ <builder arguments="SGX_DEBUG=1 SGX_MODE=HW -f sgx/Makefile" command="make"
|
|
|
+ id="com.intel.sgx.builder1" isAbstract="false"
|
|
|
+ isVariableCaseSensitive="false" name="Software Guard Extensions Linux Builder"
|
|
|
+ superClass="com.intel.sgx.sgxbuilder">
|
|
|
+ </builder>
|
|
|
+ </toolChain>
|
|
|
+ </configuration>
|
|
|
+
|
|
|
+ <configuration id="com.intel.sgx.configuration.Sim.Release" name="SGX Simulation">
|
|
|
+ <toolChain id="com.intel.sgx.toolChain.Sim.Release" isAbstract="false"
|
|
|
+ name="SGX GCC" superClass="com.intel.sgx.SGXtoolChain">
|
|
|
+ <builder arguments="SGX_DEBUG=0 SGX_MODE=SIM -f sgx/Makefile" command="make"
|
|
|
+ id="com.intel.sgx.builder3" isAbstract="false"
|
|
|
+ isVariableCaseSensitive="false" name="Software Guard Extensions Linux Builder"
|
|
|
+ superClass="com.intel.sgx.sgxbuilder">
|
|
|
+ </builder>
|
|
|
+ </toolChain>
|
|
|
+ </configuration>
|
|
|
+
|
|
|
+ <configuration id="com.intel.sgx.configuration.HW.Prerelease" name="SGX Hardware Prerelease">
|
|
|
+ <toolChain id="com.intel.sgx.toolChain.HW.Prerelease" isAbstract="false"
|
|
|
+ name="SGX GCC" superClass="com.intel.sgx.SGXtoolChain">
|
|
|
+ <builder arguments="SGX_PRERELEASE=1 SGX_MODE=HW -f sgx/Makefile" command="make"
|
|
|
+ id="com.intel.sgx.builder5" isAbstract="false"
|
|
|
+ isVariableCaseSensitive="false" name="Software Guard Extensions Linux Builder"
|
|
|
+ superClass="com.intel.sgx.sgxbuilder">
|
|
|
+ </builder>
|
|
|
+ </toolChain>
|
|
|
+ </configuration>
|
|
|
+
|
|
|
+ <configuration id="com.intel.sgx.configuration.HW.Release" name="SGX Hardware Release">
|
|
|
+ <toolChain id="com.intel.sgx.toolChain.HW.Release" isAbstract="false"
|
|
|
+ name="SGX GCC" superClass="com.intel.sgx.SGXtoolChain">
|
|
|
+ <builder arguments="SGX_DEBUG=0 SGX_MODE=HW -f sgx/Makefile" command="make"
|
|
|
+ id="com.intel.sgx.builder6" isAbstract="false"
|
|
|
+ isVariableCaseSensitive="false" name="Software Guard Extensions Linux Builder"
|
|
|
+ superClass="com.intel.sgx.sgxbuilder">
|
|
|
+ </builder>
|
|
|
+ </toolChain>
|
|
|
+ </configuration>
|
|
|
+
|
|
|
+</extension>
|
|
|
+<extension id="com.intel.sgx.SGXPerProjectProfile" name="SGX Per Project Profile"
|
|
|
+ point="org.eclipse.cdt.make.core.ScannerConfigurationDiscoveryProfile">
|
|
|
+ <scannerInfoCollector
|
|
|
+ class="com.intel.sgx.discovery.SGXSDKScannerInfoCollector" scope="project">
|
|
|
+ </scannerInfoCollector>
|
|
|
+</extension>
|
|
|
+<extension id="com.intel.sgx.commands" name="SGX Commands"
|
|
|
+ point="org.eclipse.ui.commands">
|
|
|
+ <category id="com.intel.sgx.category.enclaveIF" name="SGX Untrusted Enclave Interface">
|
|
|
+ </category>
|
|
|
+ <category id="com.intel.sgx.category.trustedIF" name="SGX Trusted Enclave Interface">
|
|
|
+ </category>
|
|
|
+ <command categoryId="com.intel.sgx.category.enclaveIF" id="com.intel.sgx.command.addEnclave"
|
|
|
+ name="Add SGX Enclave">
|
|
|
+ <commandParameter id="com.intel.sgx.commandParameter3"
|
|
|
+ name="name" optional="true">
|
|
|
+ </commandParameter>
|
|
|
+ </command>
|
|
|
+ <command categoryId="com.intel.sgx.category.enclaveIF" id="com.intel.sgx.command.addTrustedStaticLib"
|
|
|
+ name="Add SGX Trusted Static Library">
|
|
|
+ <commandParameter id="com.intel.sgx.commandParameter3"
|
|
|
+ name="name" optional="true">
|
|
|
+ </commandParameter>
|
|
|
+ </command>
|
|
|
+ <command categoryId="com.intel.sgx.category.enclaveIF" id="com.intel.sgx.command.removeEnclave"
|
|
|
+ name="Remove SGX Enclave">
|
|
|
+ </command>
|
|
|
+ <command categoryId="com.intel.sgx.category.enclaveIF" id="com.intel.sgx.command.addUntrustedModule"
|
|
|
+ name="Add SGX Untrusted Module">
|
|
|
+ </command>
|
|
|
+ <command categoryId="com.intel.sgx.category.enclaveIF" id="com.intel.sgx.command.addSGXNature"
|
|
|
+ name="Add SGX Nature">
|
|
|
+ </command>
|
|
|
+ <command categoryId="com.intel.sgx.category.enclaveIF" id="com.intel.sgx.command.updateSigningKey"
|
|
|
+ name="Update SGX Enclave Signing Key">
|
|
|
+ </command>
|
|
|
+ <command categoryId="com.intel.sgx.category.enclaveIF"
|
|
|
+ id="com.intel.sgx.command.enclaveConfigHandler" name="Update Config">
|
|
|
+ </command>
|
|
|
+ <command categoryId="com.intel.sgx.category.enclaveIF"
|
|
|
+ id="com.intel.sgx.command.twoStepSignStep1" name="Generate Hash">
|
|
|
+ </command>
|
|
|
+ <command categoryId="com.intel.sgx.category.enclaveIF"
|
|
|
+ id="com.intel.sgx.command.twoStepSignStep2" name="Generate Signed Enclave">
|
|
|
+ </command>
|
|
|
+</extension>
|
|
|
+<extension point="org.eclipse.ui.menus">
|
|
|
+ <menuContribution allPopups="false"
|
|
|
+ locationURI="popup:org.eclipse.ui.popup.any?after=additions">
|
|
|
+ <menu label="Software Guard Extension Tools">
|
|
|
+ <visibleWhen checkEnabled="false">
|
|
|
+ <with variable="selection">
|
|
|
+ <test property="com.intel.sgx.testers.sgxNatureAdded"
|
|
|
+ value="true"
|
|
|
+ forcePluginActivation="true"
|
|
|
+/>
|
|
|
+ </with>
|
|
|
+ </visibleWhen>
|
|
|
+ <command commandId="com.intel.sgx.command.addSGXNature"
|
|
|
+ style="push">
|
|
|
+ <visibleWhen checkEnabled="false">
|
|
|
+ <with variable="selection">
|
|
|
+ <iterate operator="or">
|
|
|
+ <adapt type="org.eclipse.core.resources.IProject">
|
|
|
+ <not>
|
|
|
+ <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxnature">
|
|
|
+ </test>
|
|
|
+ </not>
|
|
|
+ <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="org.eclipse.cdt.core.cnature">
|
|
|
+ </test>
|
|
|
+ </adapt>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </visibleWhen>
|
|
|
+ </command>
|
|
|
+ <command commandId="com.intel.sgx.command.addEnclave" style="push">
|
|
|
+ <visibleWhen checkEnabled="false">
|
|
|
+ <with variable="selection">
|
|
|
+ <iterate operator="or">
|
|
|
+ <adapt type="org.eclipse.core.resources.IProject">
|
|
|
+ <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxnature">
|
|
|
+ </test>
|
|
|
+ </adapt>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </visibleWhen>
|
|
|
+ </command>
|
|
|
+ <command commandId="com.intel.sgx.command.addTrustedStaticLib" style="push">
|
|
|
+ <visibleWhen checkEnabled="false">
|
|
|
+ <with variable="selection">
|
|
|
+ <iterate operator="or">
|
|
|
+ <adapt type="org.eclipse.core.resources.IProject">
|
|
|
+ <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxnature">
|
|
|
+ </test>
|
|
|
+ </adapt>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </visibleWhen>
|
|
|
+ </command>
|
|
|
+ <command commandId="com.intel.sgx.command.addUntrustedModule" style="push">
|
|
|
+ <visibleWhen checkEnabled="false">
|
|
|
+ <with variable="selection">
|
|
|
+ <iterate operator="or">
|
|
|
+ <adapt type="org.eclipse.core.resources.IProject">
|
|
|
+ <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxnature">
|
|
|
+ </test>
|
|
|
+ </adapt>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </visibleWhen>
|
|
|
+ </command>
|
|
|
+ <command commandId="com.intel.sgx.command.updateSigningKey"
|
|
|
+ style="push">
|
|
|
+ <visibleWhen checkEnabled="false">
|
|
|
+ <with variable="selection">
|
|
|
+ <iterate operator="or">
|
|
|
+ <adapt type="org.eclipse.core.resources.IProject">
|
|
|
+ <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxnature">
|
|
|
+ </test>
|
|
|
+ </adapt>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </visibleWhen>
|
|
|
+ </command>
|
|
|
+
|
|
|
+ <command commandId="com.intel.sgx.command.enclaveConfigHandler"
|
|
|
+ style="push">
|
|
|
+ <visibleWhen checkEnabled="false">
|
|
|
+ <with variable="selection">
|
|
|
+ <iterate operator="or">
|
|
|
+ <adapt type="org.eclipse.core.resources.IProject">
|
|
|
+ <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxnature">
|
|
|
+ </test>
|
|
|
+ </adapt>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </visibleWhen>
|
|
|
+ </command>
|
|
|
+
|
|
|
+ <menu label="Two Step Sign Enclave">
|
|
|
+ <visibleWhen checkEnabled="false">
|
|
|
+ <with variable="selection">
|
|
|
+ <test property="com.intel.sgx.testers.twoStepsActive"
|
|
|
+ value="true"
|
|
|
+ forcePluginActivation="true"
|
|
|
+/>
|
|
|
+ </with>
|
|
|
+ </visibleWhen>
|
|
|
+ <command commandId="com.intel.sgx.command.twoStepSignStep1"
|
|
|
+ style="push">
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </command>
|
|
|
+ <command commandId="com.intel.sgx.command.twoStepSignStep2"
|
|
|
+ style="push">
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </command>
|
|
|
+ </menu>
|
|
|
+
|
|
|
+ </menu>
|
|
|
+ <menu label="Software Guard Extension Options">
|
|
|
+ <visibleWhen checkEnabled="false">
|
|
|
+ <with variable="selection">
|
|
|
+ <iterate ifEmpty="false" operator="or">
|
|
|
+ <adapt type="org.eclipse.core.resources.IProject">
|
|
|
+ <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxccnature">
|
|
|
+ </test>
|
|
|
+ </adapt>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </visibleWhen>
|
|
|
+ <command commandId="com.intel.sgx.command.updateSigningKey"
|
|
|
+ style="push">
|
|
|
+ <visibleWhen checkEnabled="false">
|
|
|
+ <with variable="selection">
|
|
|
+ <iterate operator="or">
|
|
|
+ <adapt type="org.eclipse.core.resources.IProject">
|
|
|
+ <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxccnature">
|
|
|
+ </test>
|
|
|
+ </adapt>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </visibleWhen>
|
|
|
+ </command>
|
|
|
+ <command commandId="com.intel.sgx.command.enclaveConfigHandler"
|
|
|
+ style="push">
|
|
|
+ <visibleWhen checkEnabled="false">
|
|
|
+ <with variable="selection">
|
|
|
+ <iterate operator="or">
|
|
|
+ <adapt type="org.eclipse.core.resources.IProject">
|
|
|
+ <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxccnature">
|
|
|
+ </test>
|
|
|
+ </adapt>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </visibleWhen>
|
|
|
+ </command>
|
|
|
+ <menu label="Two Step Sign Enclave">
|
|
|
+ <visibleWhen checkEnabled="false">
|
|
|
+ <with variable="selection">
|
|
|
+ <iterate ifEmpty="false" operator="or">
|
|
|
+ <adapt type="org.eclipse.core.resources.IProject">
|
|
|
+ <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxccnature">
|
|
|
+ </test>
|
|
|
+ </adapt>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </visibleWhen>
|
|
|
+ <command commandId="com.intel.sgx.command.twoStepSignStep1"
|
|
|
+ style="push">
|
|
|
+ <visibleWhen checkEnabled="false">
|
|
|
+ <with variable="selection">
|
|
|
+ <iterate operator="or">
|
|
|
+ <adapt type="org.eclipse.core.resources.IProject">
|
|
|
+ <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxccnature">
|
|
|
+ </test>
|
|
|
+ </adapt>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </visibleWhen>
|
|
|
+ </command>
|
|
|
+ <command commandId="com.intel.sgx.command.twoStepSignStep2"
|
|
|
+ style="push">
|
|
|
+ <visibleWhen checkEnabled="false">
|
|
|
+ <with variable="selection">
|
|
|
+ <iterate operator="or">
|
|
|
+ <adapt type="org.eclipse.core.resources.IProject">
|
|
|
+ <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxnature">
|
|
|
+ </test>
|
|
|
+ </adapt>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </visibleWhen>
|
|
|
+ </command>
|
|
|
+ </menu>
|
|
|
+ </menu>
|
|
|
+ </menuContribution>
|
|
|
+</extension>
|
|
|
+<extension point="org.eclipse.ui.preferencePages">
|
|
|
+ <page class="com.intel.sgx.preferences.SGXPreferencePage" id="com.intel.sgx.preferences.SGXPreferencePage"
|
|
|
+ name="SGX Preferences">
|
|
|
+ </page>
|
|
|
+</extension>
|
|
|
+<extension point="org.eclipse.core.runtime.preferences">
|
|
|
+ <initializer class="com.intel.sgx.preferences.PreferenceInitializer">
|
|
|
+ </initializer>
|
|
|
+</extension>
|
|
|
+<extension point="org.eclipse.ui.handlers">
|
|
|
+ <handler class="com.intel.sgx.handlers.AddEnclave" commandId="com.intel.sgx.command.addEnclave">
|
|
|
+ <activeWhen>
|
|
|
+ <with variable="selection">
|
|
|
+
|
|
|
+ <and> <test property="org.eclipse.core.resources.projectNature" value="org.eclipse.cdt.core.cnature">
|
|
|
+ </test> <test property="org.eclipse.core.resources.projectNature" value="com.linux.ide.eclipse.adt.LinuxNature">
|
|
|
+ </test> </and> <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxnature"> </test> </adapt> </iterate> -->
|
|
|
+ <iterate operator="or">
|
|
|
+ <instanceof value="org.eclipse.core.resources.IProject">
|
|
|
+ </instanceof>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </activeWhen>
|
|
|
+ <enabledWhen>
|
|
|
+ <with variable="selection">
|
|
|
+
|
|
|
+ <and> <test property="org.eclipse.core.resources.projectNature" value="org.eclipse.cdt.core.cnature">
|
|
|
+ </test> <test property="org.eclipse.core.resources.projectNature" value="com.linux.ide.eclipse.adt.LinuxNature">
|
|
|
+ </test> </and> <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxnature"> </test> </adapt> </iterate> -->
|
|
|
+ <iterate operator="or">
|
|
|
+ <instanceof value="org.eclipse.core.resources.IProject">
|
|
|
+ </instanceof>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </enabledWhen>
|
|
|
+ </handler>
|
|
|
+<handler class="com.intel.sgx.handlers.AddTrustedStaticLib" commandId="com.intel.sgx.command.addTrustedStaticLib">
|
|
|
+ <activeWhen>
|
|
|
+ <with variable="selection">
|
|
|
+
|
|
|
+ <and> <test property="org.eclipse.core.resources.projectNature" value="org.eclipse.cdt.core.cnature">
|
|
|
+ </test> <test property="org.eclipse.core.resources.projectNature" value="com.linux.ide.eclipse.adt.LinuxNature">
|
|
|
+ </test> </and> <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxnature"> </test> </adapt> </iterate> -->
|
|
|
+ <iterate operator="or">
|
|
|
+ <instanceof value="org.eclipse.core.resources.IProject">
|
|
|
+ </instanceof>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </activeWhen>
|
|
|
+ <enabledWhen>
|
|
|
+ <with variable="selection">
|
|
|
+
|
|
|
+ <and> <test property="org.eclipse.core.resources.projectNature" value="org.eclipse.cdt.core.cnature">
|
|
|
+ </test> <test property="org.eclipse.core.resources.projectNature" value="com.linux.ide.eclipse.adt.LinuxNature">
|
|
|
+ </test> </and> <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxnature"> </test> </adapt> </iterate> -->
|
|
|
+ <iterate operator="or">
|
|
|
+ <instanceof value="org.eclipse.core.resources.IProject">
|
|
|
+ </instanceof>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </enabledWhen>
|
|
|
+ </handler>
|
|
|
+ <handler class="com.intel.sgx.handlers.RemoveEnclave"
|
|
|
+ commandId="com.intel.sgx.command.removeEnclave">
|
|
|
+ <activeWhen>
|
|
|
+ <with variable="selection">
|
|
|
+
|
|
|
+ <and> <test property="org.eclipse.core.resources.projectNature" value="org.eclipse.cdt.core.cnature">
|
|
|
+ </test> <test property="org.eclipse.core.resources.projectNature" value="com.linux.ide.eclipse.adt.LinuxNature">
|
|
|
+ </test> </and> <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxnature"> </test> </adapt> </iterate> -->
|
|
|
+ <iterate operator="or">
|
|
|
+ <instanceof value="org.eclipse.core.resources.IProject">
|
|
|
+ </instanceof>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </activeWhen>
|
|
|
+ <enabledWhen>
|
|
|
+ <with variable="selection">
|
|
|
+
|
|
|
+ <and> <test property="org.eclipse.core.resources.projectNature" value="org.eclipse.cdt.core.cnature">
|
|
|
+ </test> <test property="org.eclipse.core.resources.projectNature" value="com.linux.ide.eclipse.adt.LinuxNature">
|
|
|
+ </test> </and> <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxnature"> </test> </adapt> </iterate> -->
|
|
|
+ <iterate operator="or">
|
|
|
+ <instanceof value="org.eclipse.core.resources.IProject">
|
|
|
+ </instanceof>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </enabledWhen>
|
|
|
+ </handler>
|
|
|
+ <handler class="com.intel.sgx.handlers.AddUntrustedModule" commandId="com.intel.sgx.command.addUntrustedModule">
|
|
|
+ <activeWhen>
|
|
|
+ <with variable="selection">
|
|
|
+
|
|
|
+ <and> <test property="org.eclipse.core.resources.projectNature" value="org.eclipse.cdt.core.cnature">
|
|
|
+ </test> <test property="org.eclipse.core.resources.projectNature" value="com.linux.ide.eclipse.adt.LinuxNature">
|
|
|
+ </test> </and> <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxnature"> </test> </adapt> </iterate> -->
|
|
|
+ <iterate operator="or">
|
|
|
+ <instanceof value="org.eclipse.core.resources.IProject">
|
|
|
+ </instanceof>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </activeWhen>
|
|
|
+ <enabledWhen>
|
|
|
+ <with variable="selection">
|
|
|
+
|
|
|
+ <and> <test property="org.eclipse.core.resources.projectNature" value="org.eclipse.cdt.core.cnature">
|
|
|
+ </test> <test property="org.eclipse.core.resources.projectNature" value="com.linux.ide.eclipse.adt.LinuxNature">
|
|
|
+ </test> </and> <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxnature"> </test> </adapt> </iterate> -->
|
|
|
+ <iterate operator="or">
|
|
|
+ <instanceof value="org.eclipse.core.resources.IProject">
|
|
|
+ </instanceof>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </enabledWhen>
|
|
|
+ </handler>
|
|
|
+ <handler class="com.intel.sgx.handlers.AddSGXNature"
|
|
|
+ commandId="com.intel.sgx.command.addSGXNature">
|
|
|
+ <activeWhen>
|
|
|
+ <with variable="selection">
|
|
|
+ <iterate operator="or">
|
|
|
+ <instanceof value="org.eclipse.core.resources.IProject">
|
|
|
+ </instanceof>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </activeWhen>
|
|
|
+ <enabledWhen>
|
|
|
+ <with variable="selection">
|
|
|
+ <iterate operator="or">
|
|
|
+ <instanceof value="org.eclipse.core.resources.IProject">
|
|
|
+ </instanceof>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </enabledWhen>
|
|
|
+ </handler>
|
|
|
+ <handler class="com.intel.sgx.handlers.UpdateSigningKey"
|
|
|
+ commandId="com.intel.sgx.command.updateSigningKey">
|
|
|
+ <activeWhen>
|
|
|
+ <with variable="selection">
|
|
|
+ <iterate operator="or">
|
|
|
+ <adapt type="org.eclipse.core.resources.IProject">
|
|
|
+ <and>
|
|
|
+ <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxnature">
|
|
|
+ </test>
|
|
|
+ </and>
|
|
|
+ </adapt>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </activeWhen>
|
|
|
+ <enabledWhen>
|
|
|
+ <with variable="selection">
|
|
|
+ <iterate operator="or">
|
|
|
+ <adapt type="org.eclipse.core.resources.IProject">
|
|
|
+ <and>
|
|
|
+ <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxnature">
|
|
|
+ </test>
|
|
|
+ </and>
|
|
|
+ </adapt>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </enabledWhen>
|
|
|
+ </handler>
|
|
|
+ <handler class="com.intel.sgx.handlers.EnclaveConfigHandler"
|
|
|
+ commandId="com.intel.sgx.command.enclaveConfigHandler">
|
|
|
+ <activeWhen>
|
|
|
+ <with variable="selection">
|
|
|
+ <iterate operator="or">
|
|
|
+ <adapt type="org.eclipse.core.resources.IProject">
|
|
|
+ <and>
|
|
|
+ <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxnature">
|
|
|
+ </test>
|
|
|
+ </and>
|
|
|
+ </adapt>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </activeWhen>
|
|
|
+ <enabledWhen>
|
|
|
+ <with variable="selection">
|
|
|
+ <iterate operator="or">
|
|
|
+ <adapt type="org.eclipse.core.resources.IProject">
|
|
|
+ <and>
|
|
|
+ <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxnature">
|
|
|
+ </test>
|
|
|
+ </and>
|
|
|
+ </adapt>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </enabledWhen>
|
|
|
+ </handler>
|
|
|
+ <handler class="com.intel.sgx.handlers.TwoStepSignStep1"
|
|
|
+ commandId="com.intel.sgx.command.twoStepSignStep1">
|
|
|
+ <activeWhen>
|
|
|
+ <with variable="selection">
|
|
|
+ <iterate operator="or">
|
|
|
+ <adapt type="org.eclipse.core.resources.IProject">
|
|
|
+ <and>
|
|
|
+ <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxnature">
|
|
|
+ </test>
|
|
|
+ </and>
|
|
|
+ </adapt>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </activeWhen>
|
|
|
+ <enabledWhen>
|
|
|
+ <with variable="selection">
|
|
|
+ <iterate operator="or">
|
|
|
+ <adapt type="org.eclipse.core.resources.IProject">
|
|
|
+ <and>
|
|
|
+ <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxnature">
|
|
|
+ </test>
|
|
|
+ </and>
|
|
|
+ </adapt>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </enabledWhen>
|
|
|
+ </handler>
|
|
|
+ <handler class="com.intel.sgx.handlers.TwoStepSignStep2"
|
|
|
+ commandId="com.intel.sgx.command.twoStepSignStep2">
|
|
|
+ <activeWhen>
|
|
|
+ <with variable="selection">
|
|
|
+ <iterate operator="or">
|
|
|
+ <adapt type="org.eclipse.core.resources.IProject">
|
|
|
+ <and>
|
|
|
+ <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxnature">
|
|
|
+ </test>
|
|
|
+ </and>
|
|
|
+ </adapt>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </activeWhen>
|
|
|
+ <enabledWhen>
|
|
|
+ <with variable="selection">
|
|
|
+ <iterate operator="or">
|
|
|
+ <adapt type="org.eclipse.core.resources.IProject">
|
|
|
+ <and>
|
|
|
+ <test property="org.eclipse.core.resources.projectNature"
|
|
|
+ value="com.intel.sgx.sgxnature">
|
|
|
+ </test>
|
|
|
+ </and>
|
|
|
+ </adapt>
|
|
|
+ </iterate>
|
|
|
+ </with>
|
|
|
+ </enabledWhen>
|
|
|
+ </handler>
|
|
|
+
|
|
|
+ <activeWhen> <with variable="selection"> <iterate operator="or"> <instanceof
|
|
|
+ value="org.eclipse.core.resources.IProject"> </instanceof> </iterate> </with>
|
|
|
+ </activeWhen> <enabledWhen> <with variable="selection"> <iterate operator="or">
|
|
|
+ <instanceof value="org.eclipse.core.resources.IProject"> </instanceof> </iterate>
|
|
|
+ </with> </enabledWhen> </handler> -->
|
|
|
+</extension>
|
|
|
+<extension id="com.intel.sgx.templates" point="org.eclipse.cdt.core.templates">
|
|
|
+
|
|
|
+ <template id="com.intel.sgx.SGXEnclaveCWithSample" location="templates/SGXtemplates/c/with_sample/enclavetemplate.xml" projectType="none">
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template id="com.intel.sgx.SGXEnclaveCMinimal" location="templates/SGXtemplates/c/minimal/enclavetemplate.xml" projectType="none">
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template id="com.intel.sgx.SGXEnclaveC++WithSample" location="templates/SGXtemplates/c++/with_sample/enclavetemplate.xml" projectType="none">
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template id="com.intel.sgx.SGXEnclaveC++Minimal" location="templates/SGXtemplates/c++/minimal/enclavetemplate.xml" projectType="none">
|
|
|
+ </template>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <template id="com.intel.sgx.SGXTrustedStaticCMinimal" location="templates/SGXtemplates/c/minimal/trustedstatictemplate.xml" projectType="none">
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template id="com.intel.sgx.SGXTrustedStaticC++Minimal" location="templates/SGXtemplates/c++/minimal/trustedstatictemplate.xml" projectType="none">
|
|
|
+ </template>
|
|
|
+
|
|
|
+
|
|
|
+ <template
|
|
|
+ id="com.intel.sgx.templates.HelloWorldCCProject"
|
|
|
+ filterPattern=".*g.*"
|
|
|
+ location="templates/SGXtemplates/ctemplate.xml"
|
|
|
+ projectType="my.build.property"
|
|
|
+
|
|
|
+>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template filterPattern=".*" id="com.intel.sgx.SGXCPPProject"
|
|
|
+ isCategory="false" location="templates/SGXtemplates/cxxtemplate.xml"
|
|
|
+ projectType="none"
|
|
|
+>
|
|
|
+ </template>
|
|
|
+
|
|
|
+
|
|
|
+ <template id="com.intel.sgx.SGXUntrustedModuleCMinimal" location="templates/SGXtemplates/c/minimal/untrusted_module_template.xml" projectType="none">
|
|
|
+ </template>
|
|
|
+ <template id="com.intel.sgx.SGXUntrustedModuleC++Minimal" location="templates/SGXtemplates/c++/minimal/untrusted_module_template.xml" projectType="none">
|
|
|
+ </template>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <template id="com.intel.sgx.AddSGXNature" location="templates/SGXtemplates/common/addnaturetemplate.xml"
|
|
|
+ projectType="Software Guard Extensions Project">
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template id="com.intel.sgx.SGXEnclaveConfig" location="templates/SGXtemplates/configtemplate.xml"
|
|
|
+ projectType="none">
|
|
|
+ </template>
|
|
|
+
|
|
|
+ pagesAfterTemplateSelectionProvider="com.intel.sgx.handlers.templatepagesafter"
|
|
|
+ projectType="com.intel.sgx.SGXProjectType"> </template> -->
|
|
|
+</extension>
|
|
|
+<extension point="org.eclipse.cdt.core.templateProcessTypes">
|
|
|
+ <processType name="CreateNativeFolders"
|
|
|
+ processRunner="com.intel.sgx.templates.CreateNativeFolders">
|
|
|
+ <simple name="projectName">
|
|
|
+ </simple>
|
|
|
+ <simpleArray name="sourceFolders">
|
|
|
+ </simpleArray>
|
|
|
+ <simpleArray name="outputFolders">
|
|
|
+ </simpleArray>
|
|
|
+ </processType>
|
|
|
+ <processType name="SetCCNature" processRunner="com.intel.sgx.templates.SetCCNature">
|
|
|
+ <simple name="projectName" />
|
|
|
+ </processType>
|
|
|
+ <processType name="SetStaticCCNature" processRunner="com.intel.sgx.templates.SetStaticCCNature">
|
|
|
+ <simple name="projectName" />
|
|
|
+ </processType>
|
|
|
+</extension>
|
|
|
+<extension point="org.eclipse.core.resources.variableResolvers">
|
|
|
+ <variableResolver class="com.intel.sgx.SdkPathVariableProvider"
|
|
|
+ variable="SGXSdkDirPath">
|
|
|
+ </variableResolver>
|
|
|
+</extension>
|
|
|
+<extension id="id2"
|
|
|
+ point="org.eclipse.cdt.core.CConfigurationDataProvider">
|
|
|
+ <provider class="com.intel.sgx.CConfigurationDataProvider2"
|
|
|
+ natures="org.eclipse.cdt.core.cnature">
|
|
|
+ </provider>
|
|
|
+</extension>
|
|
|
+<extension id="sgxnature" name="SGX Nature"
|
|
|
+ point="org.eclipse.core.resources.natures">
|
|
|
+ <runtime>
|
|
|
+ <run class="com.intel.sgx.natures.SGXNature" />
|
|
|
+ </runtime>
|
|
|
+</extension>
|
|
|
+<extension id="sgxccnature" name="SGX CCNature"
|
|
|
+ point="org.eclipse.core.resources.natures">
|
|
|
+ <runtime>
|
|
|
+ <run class="com.intel.sgx.natures.SGXCCNature" />
|
|
|
+ </runtime>
|
|
|
+</extension>
|
|
|
+<extension id="sgxstaticccnature" name="SGX StaticCCNature"
|
|
|
+ point="org.eclipse.core.resources.natures">
|
|
|
+ <runtime>
|
|
|
+ <run class="com.intel.sgx.natures.SGXStaticCCNature" />
|
|
|
+ </runtime>
|
|
|
+</extension>
|
|
|
+<extension point="org.eclipse.core.expressions.propertyTesters">
|
|
|
+ <propertyTester class="com.intel.sgx.testers.SGXPropertyTester"
|
|
|
+ id="com.intel.sgx.testers.SGXPropertyTester"
|
|
|
+ properties="sgxNatureAdded,twoStepsActive"
|
|
|
+ type="java.lang.Object"
|
|
|
+ namespace="com.intel.sgx.testers"
|
|
|
+ >
|
|
|
+ </propertyTester>
|
|
|
+</extension>
|
|
|
+
|
|
|
+
|
|
|
+<extension point="org.eclipse.ui.newWizards">
|
|
|
+ <category
|
|
|
+ id = "com.intel.sgx.wizzards"
|
|
|
+
|
|
|
+name="C/C++ projects with SGX Enabled">
|
|
|
+ </category>
|
|
|
+
|
|
|
+ <wizard
|
|
|
+ canFinishEarly="false"
|
|
|
+ category="com.intel.sgx.wizzards"
|
|
|
+ class="com.intel.sgx.wizards.SGXCProjectWizard"
|
|
|
+ finalPerspective="org.eclipse.cdt.ui.CPerspective"
|
|
|
+ hasPages="true"
|
|
|
+ icon="templates/newmngc_app.gif"
|
|
|
+ id="com.intel.sgx.wizards.SGXCProjectWizard"
|
|
|
+ name="C Project"
|
|
|
+ project="true">
|
|
|
+ <description>
|
|
|
+ An C project, with SGX Commands and Configurations
|
|
|
+ </description>
|
|
|
+ </wizard>
|
|
|
+
|
|
|
+ <wizard
|
|
|
+ canFinishEarly="false"
|
|
|
+ category="com.intel.sgx.wizzards"
|
|
|
+ class="com.intel.sgx.wizards.SGXCCProjectWizard"
|
|
|
+ finalPerspective="org.eclipse.cdt.ui.CPerspective"
|
|
|
+ hasPages="true"
|
|
|
+ id="com.intel.sgx.wizards.SGXCDProjectWizard"
|
|
|
+ icon="templates/newmngcc_app.gif"
|
|
|
+ name="C++ Project"
|
|
|
+ project="true">
|
|
|
+ <description>
|
|
|
+ An C++ project, with SGX Commands and Configurations
|
|
|
+ </description>
|
|
|
+ </wizard>
|
|
|
+
|
|
|
+</extension>
|
|
|
+
|
|
|
+</plugin>
|