plugin.xml 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- -->
  3. <!-- Copyright (c) 2016 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. <?eclipse version="3.4"?>
  14. <plugin>
  15. <extension id="com.intel.sgx.sgxbuilderdefinitions" name="Intel(R) Software Guard Extensions Builder Definition"
  16. point="org.eclipse.cdt.managedbuilder.core.buildDefinitions">
  17. <toolChain configurationEnvironmentSupplier="com.linux.ide.eclipse.ndk.internal.build.NdkEnvSupplier"
  18. id="com.intel.sgx.SGXtoolChain" isAbstract="false" name="Intel(R) SGX"
  19. supportsManagedBuild="false">
  20. <builder cleanBuildTarget="clean" command="make"
  21. commandLauncher="com.intel.sgx.build.SGXSDKCommandLauncher" id="com.intel.sgx.sgxbuilder"
  22. isAbstract="false" isVariableCaseSensitive="false"
  23. name="Intel(R) Software Guard Extensions Linux Builder">
  24. </builder>
  25. <targetPlatform binaryParser="org.eclipse.cdt.core.ELF"
  26. id="com.intel.sgx.targetEnclave" isAbstract="false">
  27. </targetPlatform>
  28. <tool id="com.intel.sgx.compiler" isAbstract="false" name="Intel(R) SGX"
  29. natureFilter="both">
  30. <option browseType="directory" id="com.intel.sgx.option.includePath"
  31. isAbstract="false" resourceFilter="all" valueType="includePath">
  32. </option>
  33. <inputType id="com.intel.sgx.inputType"
  34. scannerConfigDiscoveryProfileId="com.intel.sgx.SGXPerProjectProfile"
  35. sources="c,cpp">
  36. </inputType>
  37. </tool>
  38. </toolChain>
  39. <configuration id="com.intel.sgx.configuration.Sim.Debug" name="Intel(R) SGX Simulation Debug">
  40. <toolChain id="com.intel.sgx.toolChain.Sim.Debug" isAbstract="false"
  41. name="Intel(R) SGX" superClass="com.intel.sgx.SGXtoolChain">
  42. <builder arguments="SGX_DEBUG=1 SGX_MODE=SIM -f sgx/Makefile" command="make"
  43. id="com.intel.sgx.builder2" isAbstract="false"
  44. isVariableCaseSensitive="false" name="Intel(R) Software Guard Extensions Linux Builder"
  45. superClass="com.intel.sgx.sgxbuilder">
  46. </builder>
  47. </toolChain>
  48. </configuration>
  49. <configuration id="com.intel.sgx.configuration.HW.Debug" name="Intel(R) SGX Hardware Debug">
  50. <toolChain id="com.intel.sgx.toolChain.HW.Debug" isAbstract="false"
  51. name="Intel(R) SGX" superClass="com.intel.sgx.SGXtoolChain">
  52. <builder arguments="SGX_DEBUG=1 SGX_MODE=HW -f sgx/Makefile" command="make"
  53. id="com.intel.sgx.builder1" isAbstract="false"
  54. isVariableCaseSensitive="false" name="Intel(R) Software Guard Extensions Linux Builder"
  55. superClass="com.intel.sgx.sgxbuilder">
  56. </builder>
  57. </toolChain>
  58. </configuration>
  59. <configuration id="com.intel.sgx.configuration.Sim.Release" name="Intel(R) SGX Simulation">
  60. <toolChain id="com.intel.sgx.toolChain.Sim.Release" isAbstract="false"
  61. name="Intel(R) SGX" superClass="com.intel.sgx.SGXtoolChain">
  62. <builder arguments="SGX_DEBUG=0 SGX_MODE=SIM -f sgx/Makefile" command="make"
  63. id="com.intel.sgx.builder3" isAbstract="false"
  64. isVariableCaseSensitive="false" name="Intel(R) Software Guard Extensions Linux Builder"
  65. superClass="com.intel.sgx.sgxbuilder">
  66. </builder>
  67. </toolChain>
  68. </configuration>
  69. <configuration id="com.intel.sgx.configuration.HW.Prerelease" name="Intel(R) SGX Hardware Prerelease">
  70. <toolChain id="com.intel.sgx.toolChain.HW.Prerelease" isAbstract="false"
  71. name="Intel(R) SGX" superClass="com.intel.sgx.SGXtoolChain">
  72. <builder arguments="SGX_PRERELEASE=1 SGX_MODE=HW -f sgx/Makefile" command="make"
  73. id="com.intel.sgx.builder5" isAbstract="false"
  74. isVariableCaseSensitive="false" name="Intel(R) Software Guard Extensions Linux Builder"
  75. superClass="com.intel.sgx.sgxbuilder">
  76. </builder>
  77. </toolChain>
  78. </configuration>
  79. <configuration id="com.intel.sgx.configuration.HW.Release" name="Intel(R) SGX Hardware Release">
  80. <toolChain id="com.intel.sgx.toolChain.HW.Release" isAbstract="false"
  81. name="Intel(R) SGX" superClass="com.intel.sgx.SGXtoolChain">
  82. <builder arguments="SGX_DEBUG=0 SGX_MODE=HW -f sgx/Makefile" command="make"
  83. id="com.intel.sgx.builder6" isAbstract="false"
  84. isVariableCaseSensitive="false" name="Intel(R) Software Guard Extensions Linux Builder"
  85. superClass="com.intel.sgx.sgxbuilder">
  86. </builder>
  87. </toolChain>
  88. </configuration>
  89. </extension>
  90. <extension id="com.intel.sgx.SGXPerProjectProfile" name="Intel(R) SGX Per Project Profile"
  91. point="org.eclipse.cdt.make.core.ScannerConfigurationDiscoveryProfile">
  92. <scannerInfoCollector
  93. class="com.intel.sgx.discovery.SGXSDKScannerInfoCollector" scope="project">
  94. </scannerInfoCollector>
  95. </extension>
  96. <extension id="com.intel.sgx.commands" name="Intel(R) SGX Commands"
  97. point="org.eclipse.ui.commands">
  98. <category id="com.intel.sgx.category.enclaveIF" name="Intel(R) SGX Untrusted Enclave Interface">
  99. </category>
  100. <category id="com.intel.sgx.category.trustedIF" name="Intel(R) SGX Trusted Enclave Interface">
  101. </category>
  102. <command categoryId="com.intel.sgx.category.enclaveIF" id="com.intel.sgx.command.addEnclave"
  103. name="Add Intel(R) SGX Enclave">
  104. <commandParameter id="com.intel.sgx.commandParameter3"
  105. name="name" optional="true">
  106. </commandParameter>
  107. </command>
  108. <command categoryId="com.intel.sgx.category.enclaveIF" id="com.intel.sgx.command.addTrustedStaticLib"
  109. name="Add Intel(R) SGX Trusted Static Library">
  110. <commandParameter id="com.intel.sgx.commandParameter3"
  111. name="name" optional="true">
  112. </commandParameter>
  113. </command>
  114. <command categoryId="com.intel.sgx.category.enclaveIF" id="com.intel.sgx.command.removeEnclave"
  115. name="Remove Intel(R) SGX Enclave">
  116. </command>
  117. <command categoryId="com.intel.sgx.category.enclaveIF" id="com.intel.sgx.command.addUntrustedModule"
  118. name="Add Intel(R) SGX Untrusted Module">
  119. </command>
  120. <command categoryId="com.intel.sgx.category.enclaveIF" id="com.intel.sgx.command.addSGXNature"
  121. name="Add Intel(R) SGX Nature">
  122. </command>
  123. <command categoryId="com.intel.sgx.category.enclaveIF" id="com.intel.sgx.command.updateSigningKey"
  124. name="Update Intel(R) SGX Enclave Signing Key">
  125. </command>
  126. <command categoryId="com.intel.sgx.category.enclaveIF"
  127. id="com.intel.sgx.command.enclaveConfigHandler" name="Update Config">
  128. </command>
  129. <command categoryId="com.intel.sgx.category.enclaveIF"
  130. id="com.intel.sgx.command.twoStepSignStep1" name="Generate Hash">
  131. </command>
  132. <command categoryId="com.intel.sgx.category.enclaveIF"
  133. id="com.intel.sgx.command.twoStepSignStep2" name="Generate Signed Enclave">
  134. </command>
  135. </extension>
  136. <extension point="org.eclipse.ui.menus">
  137. <menuContribution allPopups="false"
  138. locationURI="popup:org.eclipse.ui.popup.any?after=additions">
  139. <menu label="Intel(R) Software Guard Extensions Tools">
  140. <visibleWhen checkEnabled="false">
  141. <with variable="selection">
  142. <test property="com.intel.sgx.testers.sgxNatureAdded"
  143. value="true"
  144. forcePluginActivation="true"
  145. />
  146. </with>
  147. </visibleWhen>
  148. <command commandId="com.intel.sgx.command.addSGXNature"
  149. style="push">
  150. <visibleWhen checkEnabled="false">
  151. <with variable="selection">
  152. <iterate operator="or">
  153. <adapt type="org.eclipse.core.resources.IProject">
  154. <not>
  155. <test property="org.eclipse.core.resources.projectNature"
  156. value="com.intel.sgx.sgxnature">
  157. </test>
  158. </not>
  159. <test property="org.eclipse.core.resources.projectNature"
  160. value="org.eclipse.cdt.core.cnature">
  161. </test>
  162. </adapt>
  163. </iterate>
  164. </with>
  165. </visibleWhen>
  166. </command>
  167. <command commandId="com.intel.sgx.command.addEnclave" style="push">
  168. <visibleWhen checkEnabled="false">
  169. <with variable="selection">
  170. <iterate operator="or">
  171. <adapt type="org.eclipse.core.resources.IProject">
  172. <test property="org.eclipse.core.resources.projectNature"
  173. value="com.intel.sgx.sgxnature">
  174. </test>
  175. </adapt>
  176. </iterate>
  177. </with>
  178. </visibleWhen>
  179. </command>
  180. <command commandId="com.intel.sgx.command.addTrustedStaticLib" style="push">
  181. <visibleWhen checkEnabled="false">
  182. <with variable="selection">
  183. <iterate operator="or">
  184. <adapt type="org.eclipse.core.resources.IProject">
  185. <test property="org.eclipse.core.resources.projectNature"
  186. value="com.intel.sgx.sgxnature">
  187. </test>
  188. </adapt>
  189. </iterate>
  190. </with>
  191. </visibleWhen>
  192. </command>
  193. <command commandId="com.intel.sgx.command.addUntrustedModule" style="push">
  194. <visibleWhen checkEnabled="false">
  195. <with variable="selection">
  196. <iterate operator="or">
  197. <adapt type="org.eclipse.core.resources.IProject">
  198. <test property="org.eclipse.core.resources.projectNature"
  199. value="com.intel.sgx.sgxnature">
  200. </test>
  201. </adapt>
  202. </iterate>
  203. </with>
  204. </visibleWhen>
  205. </command>
  206. <command commandId="com.intel.sgx.command.updateSigningKey"
  207. style="push">
  208. <visibleWhen checkEnabled="false">
  209. <with variable="selection">
  210. <iterate operator="or">
  211. <adapt type="org.eclipse.core.resources.IProject">
  212. <test property="org.eclipse.core.resources.projectNature"
  213. value="com.intel.sgx.sgxnature">
  214. </test>
  215. </adapt>
  216. </iterate>
  217. </with>
  218. </visibleWhen>
  219. </command>
  220. <command commandId="com.intel.sgx.command.enclaveConfigHandler"
  221. style="push">
  222. <visibleWhen checkEnabled="false">
  223. <with variable="selection">
  224. <iterate operator="or">
  225. <adapt type="org.eclipse.core.resources.IProject">
  226. <test property="org.eclipse.core.resources.projectNature"
  227. value="com.intel.sgx.sgxnature">
  228. </test>
  229. </adapt>
  230. </iterate>
  231. </with>
  232. </visibleWhen>
  233. </command>
  234. <menu label="Two Step Sign Enclave">
  235. <visibleWhen checkEnabled="false">
  236. <with variable="selection">
  237. <test property="com.intel.sgx.testers.twoStepsActive"
  238. value="true"
  239. forcePluginActivation="true"
  240. />
  241. </with>
  242. </visibleWhen>
  243. <command commandId="com.intel.sgx.command.twoStepSignStep1"
  244. style="push">
  245. <!-- <visibleWhen checkEnabled="false"> -->
  246. <!-- <with variable="selection"> -->
  247. <!-- <iterate operator="or"> -->
  248. <!-- <adapt type="org.eclipse.core.resources.IProject"> -->
  249. <!-- <test property="org.eclipse.core.resources.projectNature" -->
  250. <!-- value="com.intel.sgx.sgxccnature"> -->
  251. <!-- </test> -->
  252. <!-- </adapt> -->
  253. <!-- </iterate> -->
  254. <!-- </with> -->
  255. <!-- </visibleWhen> -->
  256. </command>
  257. <command commandId="com.intel.sgx.command.twoStepSignStep2"
  258. style="push">
  259. <!-- <visibleWhen checkEnabled="false"> -->
  260. <!-- <with variable="selection"> -->
  261. <!-- <iterate operator="or"> -->
  262. <!-- <adapt type="org.eclipse.core.resources.IProject"> -->
  263. <!-- <test property="org.eclipse.core.resources.projectNature" -->
  264. <!-- value="com.intel.sgx.sgxccnature"> -->
  265. <!-- </test> -->
  266. <!-- </adapt> -->
  267. <!-- </iterate> -->
  268. <!-- </with> -->
  269. <!-- </visibleWhen> -->
  270. </command>
  271. </menu>
  272. </menu>
  273. <menu label="Intel(R) Software Guard Extensions Options">
  274. <visibleWhen checkEnabled="false">
  275. <with variable="selection">
  276. <iterate ifEmpty="false" operator="or">
  277. <adapt type="org.eclipse.core.resources.IProject">
  278. <test property="org.eclipse.core.resources.projectNature"
  279. value="com.intel.sgx.sgxccnature">
  280. </test>
  281. </adapt>
  282. </iterate>
  283. </with>
  284. </visibleWhen>
  285. <command commandId="com.intel.sgx.command.updateSigningKey"
  286. style="push">
  287. <visibleWhen checkEnabled="false">
  288. <with variable="selection">
  289. <iterate operator="or">
  290. <adapt type="org.eclipse.core.resources.IProject">
  291. <test property="org.eclipse.core.resources.projectNature"
  292. value="com.intel.sgx.sgxccnature">
  293. </test>
  294. </adapt>
  295. </iterate>
  296. </with>
  297. </visibleWhen>
  298. </command>
  299. <command commandId="com.intel.sgx.command.enclaveConfigHandler"
  300. style="push">
  301. <visibleWhen checkEnabled="false">
  302. <with variable="selection">
  303. <iterate operator="or">
  304. <adapt type="org.eclipse.core.resources.IProject">
  305. <test property="org.eclipse.core.resources.projectNature"
  306. value="com.intel.sgx.sgxccnature">
  307. </test>
  308. </adapt>
  309. </iterate>
  310. </with>
  311. </visibleWhen>
  312. </command>
  313. <menu label="Two Step Sign Enclave">
  314. <visibleWhen checkEnabled="false">
  315. <with variable="selection">
  316. <iterate ifEmpty="false" operator="or">
  317. <adapt type="org.eclipse.core.resources.IProject">
  318. <test property="org.eclipse.core.resources.projectNature"
  319. value="com.intel.sgx.sgxccnature">
  320. </test>
  321. </adapt>
  322. </iterate>
  323. </with>
  324. </visibleWhen>
  325. <command commandId="com.intel.sgx.command.twoStepSignStep1"
  326. style="push">
  327. <visibleWhen checkEnabled="false">
  328. <with variable="selection">
  329. <iterate operator="or">
  330. <adapt type="org.eclipse.core.resources.IProject">
  331. <test property="org.eclipse.core.resources.projectNature"
  332. value="com.intel.sgx.sgxccnature">
  333. </test>
  334. </adapt>
  335. </iterate>
  336. </with>
  337. </visibleWhen>
  338. </command>
  339. <command commandId="com.intel.sgx.command.twoStepSignStep2"
  340. style="push">
  341. <visibleWhen checkEnabled="false">
  342. <with variable="selection">
  343. <iterate operator="or">
  344. <adapt type="org.eclipse.core.resources.IProject">
  345. <test property="org.eclipse.core.resources.projectNature"
  346. value="com.intel.sgx.sgxnature">
  347. </test>
  348. </adapt>
  349. </iterate>
  350. </with>
  351. </visibleWhen>
  352. </command>
  353. </menu>
  354. </menu>
  355. </menuContribution>
  356. </extension>
  357. <extension point="org.eclipse.ui.preferencePages">
  358. <page class="com.intel.sgx.preferences.SGXPreferencePage" id="com.intel.sgx.preferences.SGXPreferencePage"
  359. name="Intel(R) SGX Preferences">
  360. </page>
  361. </extension>
  362. <extension point="org.eclipse.core.runtime.preferences">
  363. <initializer class="com.intel.sgx.preferences.PreferenceInitializer">
  364. </initializer>
  365. </extension>
  366. <extension point="org.eclipse.ui.handlers">
  367. <handler class="com.intel.sgx.handlers.AddEnclave" commandId="com.intel.sgx.command.addEnclave">
  368. <activeWhen>
  369. <with variable="selection">
  370. <!--<iterate operator="or"> <adapt type="org.eclipse.core.resources.IProject">
  371. <and> <test property="org.eclipse.core.resources.projectNature" value="org.eclipse.cdt.core.cnature">
  372. </test> <test property="org.eclipse.core.resources.projectNature" value="com.linux.ide.eclipse.adt.LinuxNature">
  373. </test> </and> <test property="org.eclipse.core.resources.projectNature"
  374. value="com.intel.sgx.sgxnature"> </test> </adapt> </iterate> -->
  375. <iterate operator="or">
  376. <instanceof value="org.eclipse.core.resources.IProject">
  377. </instanceof>
  378. </iterate>
  379. </with>
  380. </activeWhen>
  381. <enabledWhen>
  382. <with variable="selection">
  383. <!--<iterate operator="or"> <adapt type="org.eclipse.core.resources.IProject">
  384. <and> <test property="org.eclipse.core.resources.projectNature" value="org.eclipse.cdt.core.cnature">
  385. </test> <test property="org.eclipse.core.resources.projectNature" value="com.linux.ide.eclipse.adt.LinuxNature">
  386. </test> </and> <test property="org.eclipse.core.resources.projectNature"
  387. value="com.intel.sgx.sgxnature"> </test> </adapt> </iterate> -->
  388. <iterate operator="or">
  389. <instanceof value="org.eclipse.core.resources.IProject">
  390. </instanceof>
  391. </iterate>
  392. </with>
  393. </enabledWhen>
  394. </handler>
  395. <handler class="com.intel.sgx.handlers.AddTrustedStaticLib" commandId="com.intel.sgx.command.addTrustedStaticLib">
  396. <activeWhen>
  397. <with variable="selection">
  398. <!--<iterate operator="or"> <adapt type="org.eclipse.core.resources.IProject">
  399. <and> <test property="org.eclipse.core.resources.projectNature" value="org.eclipse.cdt.core.cnature">
  400. </test> <test property="org.eclipse.core.resources.projectNature" value="com.linux.ide.eclipse.adt.LinuxNature">
  401. </test> </and> <test property="org.eclipse.core.resources.projectNature"
  402. value="com.intel.sgx.sgxnature"> </test> </adapt> </iterate> -->
  403. <iterate operator="or">
  404. <instanceof value="org.eclipse.core.resources.IProject">
  405. </instanceof>
  406. </iterate>
  407. </with>
  408. </activeWhen>
  409. <enabledWhen>
  410. <with variable="selection">
  411. <!--<iterate operator="or"> <adapt type="org.eclipse.core.resources.IProject">
  412. <and> <test property="org.eclipse.core.resources.projectNature" value="org.eclipse.cdt.core.cnature">
  413. </test> <test property="org.eclipse.core.resources.projectNature" value="com.linux.ide.eclipse.adt.LinuxNature">
  414. </test> </and> <test property="org.eclipse.core.resources.projectNature"
  415. value="com.intel.sgx.sgxnature"> </test> </adapt> </iterate> -->
  416. <iterate operator="or">
  417. <instanceof value="org.eclipse.core.resources.IProject">
  418. </instanceof>
  419. </iterate>
  420. </with>
  421. </enabledWhen>
  422. </handler>
  423. <handler class="com.intel.sgx.handlers.RemoveEnclave"
  424. commandId="com.intel.sgx.command.removeEnclave">
  425. <activeWhen>
  426. <with variable="selection">
  427. <!--<iterate operator="or"> <adapt type="org.eclipse.core.resources.IProject">
  428. <and> <test property="org.eclipse.core.resources.projectNature" value="org.eclipse.cdt.core.cnature">
  429. </test> <test property="org.eclipse.core.resources.projectNature" value="com.linux.ide.eclipse.adt.LinuxNature">
  430. </test> </and> <test property="org.eclipse.core.resources.projectNature"
  431. value="com.intel.sgx.sgxnature"> </test> </adapt> </iterate> -->
  432. <iterate operator="or">
  433. <instanceof value="org.eclipse.core.resources.IProject">
  434. </instanceof>
  435. </iterate>
  436. </with>
  437. </activeWhen>
  438. <enabledWhen>
  439. <with variable="selection">
  440. <!--<iterate operator="or"> <adapt type="org.eclipse.core.resources.IProject">
  441. <and> <test property="org.eclipse.core.resources.projectNature" value="org.eclipse.cdt.core.cnature">
  442. </test> <test property="org.eclipse.core.resources.projectNature" value="com.linux.ide.eclipse.adt.LinuxNature">
  443. </test> </and> <test property="org.eclipse.core.resources.projectNature"
  444. value="com.intel.sgx.sgxnature"> </test> </adapt> </iterate> -->
  445. <iterate operator="or">
  446. <instanceof value="org.eclipse.core.resources.IProject">
  447. </instanceof>
  448. </iterate>
  449. </with>
  450. </enabledWhen>
  451. </handler>
  452. <handler class="com.intel.sgx.handlers.AddUntrustedModule" commandId="com.intel.sgx.command.addUntrustedModule">
  453. <activeWhen>
  454. <with variable="selection">
  455. <!--<iterate operator="or"> <adapt type="org.eclipse.core.resources.IProject">
  456. <and> <test property="org.eclipse.core.resources.projectNature" value="org.eclipse.cdt.core.cnature">
  457. </test> <test property="org.eclipse.core.resources.projectNature" value="com.linux.ide.eclipse.adt.LinuxNature">
  458. </test> </and> <test property="org.eclipse.core.resources.projectNature"
  459. value="com.intel.sgx.sgxnature"> </test> </adapt> </iterate> -->
  460. <iterate operator="or">
  461. <instanceof value="org.eclipse.core.resources.IProject">
  462. </instanceof>
  463. </iterate>
  464. </with>
  465. </activeWhen>
  466. <enabledWhen>
  467. <with variable="selection">
  468. <!--<iterate operator="or"> <adapt type="org.eclipse.core.resources.IProject">
  469. <and> <test property="org.eclipse.core.resources.projectNature" value="org.eclipse.cdt.core.cnature">
  470. </test> <test property="org.eclipse.core.resources.projectNature" value="com.linux.ide.eclipse.adt.LinuxNature">
  471. </test> </and> <test property="org.eclipse.core.resources.projectNature"
  472. value="com.intel.sgx.sgxnature"> </test> </adapt> </iterate> -->
  473. <iterate operator="or">
  474. <instanceof value="org.eclipse.core.resources.IProject">
  475. </instanceof>
  476. </iterate>
  477. </with>
  478. </enabledWhen>
  479. </handler>
  480. <handler class="com.intel.sgx.handlers.AddSGXNature"
  481. commandId="com.intel.sgx.command.addSGXNature">
  482. <activeWhen>
  483. <with variable="selection">
  484. <iterate operator="or">
  485. <instanceof value="org.eclipse.core.resources.IProject">
  486. </instanceof>
  487. </iterate>
  488. </with>
  489. </activeWhen>
  490. <enabledWhen>
  491. <with variable="selection">
  492. <iterate operator="or">
  493. <instanceof value="org.eclipse.core.resources.IProject">
  494. </instanceof>
  495. </iterate>
  496. </with>
  497. </enabledWhen>
  498. </handler>
  499. <handler class="com.intel.sgx.handlers.UpdateSigningKey"
  500. commandId="com.intel.sgx.command.updateSigningKey">
  501. <activeWhen>
  502. <with variable="selection">
  503. <iterate operator="or">
  504. <adapt type="org.eclipse.core.resources.IProject">
  505. <and>
  506. <test property="org.eclipse.core.resources.projectNature"
  507. value="com.intel.sgx.sgxnature">
  508. </test>
  509. </and>
  510. </adapt>
  511. </iterate>
  512. </with>
  513. </activeWhen>
  514. <enabledWhen>
  515. <with variable="selection">
  516. <iterate operator="or">
  517. <adapt type="org.eclipse.core.resources.IProject">
  518. <and>
  519. <test property="org.eclipse.core.resources.projectNature"
  520. value="com.intel.sgx.sgxnature">
  521. </test>
  522. </and>
  523. </adapt>
  524. </iterate>
  525. </with>
  526. </enabledWhen>
  527. </handler>
  528. <handler class="com.intel.sgx.handlers.EnclaveConfigHandler"
  529. commandId="com.intel.sgx.command.enclaveConfigHandler">
  530. <activeWhen>
  531. <with variable="selection">
  532. <iterate operator="or">
  533. <adapt type="org.eclipse.core.resources.IProject">
  534. <and>
  535. <test property="org.eclipse.core.resources.projectNature"
  536. value="com.intel.sgx.sgxnature">
  537. </test>
  538. </and>
  539. </adapt>
  540. </iterate>
  541. </with>
  542. </activeWhen>
  543. <enabledWhen>
  544. <with variable="selection">
  545. <iterate operator="or">
  546. <adapt type="org.eclipse.core.resources.IProject">
  547. <and>
  548. <test property="org.eclipse.core.resources.projectNature"
  549. value="com.intel.sgx.sgxnature">
  550. </test>
  551. </and>
  552. </adapt>
  553. </iterate>
  554. </with>
  555. </enabledWhen>
  556. </handler>
  557. <handler class="com.intel.sgx.handlers.TwoStepSignStep1"
  558. commandId="com.intel.sgx.command.twoStepSignStep1">
  559. <activeWhen>
  560. <with variable="selection">
  561. <iterate operator="or">
  562. <adapt type="org.eclipse.core.resources.IProject">
  563. <and>
  564. <test property="org.eclipse.core.resources.projectNature"
  565. value="com.intel.sgx.sgxnature">
  566. </test>
  567. </and>
  568. </adapt>
  569. </iterate>
  570. </with>
  571. </activeWhen>
  572. <enabledWhen>
  573. <with variable="selection">
  574. <iterate operator="or">
  575. <adapt type="org.eclipse.core.resources.IProject">
  576. <and>
  577. <test property="org.eclipse.core.resources.projectNature"
  578. value="com.intel.sgx.sgxnature">
  579. </test>
  580. </and>
  581. </adapt>
  582. </iterate>
  583. </with>
  584. </enabledWhen>
  585. </handler>
  586. <handler class="com.intel.sgx.handlers.TwoStepSignStep2"
  587. commandId="com.intel.sgx.command.twoStepSignStep2">
  588. <activeWhen>
  589. <with variable="selection">
  590. <iterate operator="or">
  591. <adapt type="org.eclipse.core.resources.IProject">
  592. <and>
  593. <test property="org.eclipse.core.resources.projectNature"
  594. value="com.intel.sgx.sgxnature">
  595. </test>
  596. </and>
  597. </adapt>
  598. </iterate>
  599. </with>
  600. </activeWhen>
  601. <enabledWhen>
  602. <with variable="selection">
  603. <iterate operator="or">
  604. <adapt type="org.eclipse.core.resources.IProject">
  605. <and>
  606. <test property="org.eclipse.core.resources.projectNature"
  607. value="com.intel.sgx.sgxnature">
  608. </test>
  609. </and>
  610. </adapt>
  611. </iterate>
  612. </with>
  613. </enabledWhen>
  614. </handler>
  615. <!--<handler class="com.intel.sgx.handlers.RemoveSGXNature" commandId="com.intel.sgx.command.removeSGXNature">
  616. <activeWhen> <with variable="selection"> <iterate operator="or"> <instanceof
  617. value="org.eclipse.core.resources.IProject"> </instanceof> </iterate> </with>
  618. </activeWhen> <enabledWhen> <with variable="selection"> <iterate operator="or">
  619. <instanceof value="org.eclipse.core.resources.IProject"> </instanceof> </iterate>
  620. </with> </enabledWhen> </handler> -->
  621. </extension>
  622. <extension id="com.intel.sgx.templates" point="org.eclipse.cdt.core.templates">
  623. <template id="com.intel.sgx.SGXEnclaveCWithSample" location="templates/SGXtemplates/c/with_sample/enclavetemplate.xml" projectType="none">
  624. </template>
  625. <template id="com.intel.sgx.SGXEnclaveCMinimal" location="templates/SGXtemplates/c/minimal/enclavetemplate.xml" projectType="none">
  626. </template>
  627. <template id="com.intel.sgx.SGXEnclaveC++WithSample" location="templates/SGXtemplates/c++/with_sample/enclavetemplate.xml" projectType="none">
  628. </template>
  629. <template id="com.intel.sgx.SGXEnclaveC++Minimal" location="templates/SGXtemplates/c++/minimal/enclavetemplate.xml" projectType="none">
  630. </template>
  631. <template id="com.intel.sgx.SGXTrustedStaticCMinimal" location="templates/SGXtemplates/c/minimal/trustedstatictemplate.xml" projectType="none">
  632. </template>
  633. <template id="com.intel.sgx.SGXTrustedStaticC++Minimal" location="templates/SGXtemplates/c++/minimal/trustedstatictemplate.xml" projectType="none">
  634. </template>
  635. <template
  636. id="com.intel.sgx.templates.HelloWorldCCProject"
  637. filterPattern=".*g.*"
  638. location="templates/SGXtemplates/ctemplate.xml"
  639. projectType="my.build.property"
  640. >
  641. </template>
  642. <template filterPattern=".*" id="com.intel.sgx.SGXCPPProject"
  643. isCategory="false" location="templates/SGXtemplates/cxxtemplate.xml"
  644. projectType="none"
  645. >
  646. </template>
  647. <template id="com.intel.sgx.SGXUntrustedModuleCMinimal" location="templates/SGXtemplates/c/minimal/untrusted_module_template.xml" projectType="none">
  648. </template>
  649. <template id="com.intel.sgx.SGXUntrustedModuleC++Minimal" location="templates/SGXtemplates/c++/minimal/untrusted_module_template.xml" projectType="none">
  650. </template>
  651. <template id="com.intel.sgx.AddSGXNature" location="templates/SGXtemplates/common/addnaturetemplate.xml"
  652. projectType="Intel(R) Software Guard Extensions Project">
  653. </template>
  654. <template id="com.intel.sgx.SGXEnclaveConfig" location="templates/SGXtemplates/configtemplate.xml"
  655. projectType="none">
  656. </template>
  657. <!--<template id="com.intel.sgx.template1" isCategory="false" location="templates/template.xml"
  658. pagesAfterTemplateSelectionProvider="com.intel.sgx.handlers.templatepagesafter"
  659. projectType="com.intel.sgx.SGXProjectType"> </template> -->
  660. </extension>
  661. <extension point="org.eclipse.cdt.core.templateProcessTypes">
  662. <processType name="CreateNativeFolders"
  663. processRunner="com.intel.sgx.templates.CreateNativeFolders">
  664. <simple name="projectName">
  665. </simple>
  666. <simpleArray name="sourceFolders">
  667. </simpleArray>
  668. <simpleArray name="outputFolders">
  669. </simpleArray>
  670. </processType>
  671. <processType name="SetCCNature" processRunner="com.intel.sgx.templates.SetCCNature">
  672. <simple name="projectName" />
  673. </processType>
  674. <processType name="SetStaticCCNature" processRunner="com.intel.sgx.templates.SetStaticCCNature">
  675. <simple name="projectName" />
  676. </processType>
  677. </extension>
  678. <extension point="org.eclipse.core.resources.variableResolvers">
  679. <variableResolver class="com.intel.sgx.SdkPathVariableProvider"
  680. variable="SGXSdkDirPath">
  681. </variableResolver>
  682. </extension>
  683. <extension id="id2"
  684. point="org.eclipse.cdt.core.CConfigurationDataProvider">
  685. <provider class="com.intel.sgx.CConfigurationDataProvider2"
  686. natures="org.eclipse.cdt.core.cnature">
  687. </provider>
  688. </extension>
  689. <extension id="sgxnature" name="Intel(R) SGX Nature"
  690. point="org.eclipse.core.resources.natures">
  691. <runtime>
  692. <run class="com.intel.sgx.natures.SGXNature" />
  693. </runtime>
  694. </extension>
  695. <extension id="sgxccnature" name="Intel(R) SGX CCNature"
  696. point="org.eclipse.core.resources.natures">
  697. <runtime>
  698. <run class="com.intel.sgx.natures.SGXCCNature" />
  699. </runtime>
  700. </extension>
  701. <extension id="sgxstaticccnature" name="Intel(R) SGX StaticCCNature"
  702. point="org.eclipse.core.resources.natures">
  703. <runtime>
  704. <run class="com.intel.sgx.natures.SGXStaticCCNature" />
  705. </runtime>
  706. </extension>
  707. <extension point="org.eclipse.core.expressions.propertyTesters">
  708. <propertyTester class="com.intel.sgx.testers.SGXPropertyTester"
  709. id="com.intel.sgx.testers.SGXPropertyTester"
  710. properties="sgxNatureAdded,twoStepsActive"
  711. type="java.lang.Object"
  712. namespace="com.intel.sgx.testers"
  713. >
  714. </propertyTester>
  715. </extension>
  716. <extension point="org.eclipse.ui.newWizards">
  717. <category
  718. id = "com.intel.sgx.wizzards"
  719. name="C/C++ projects with Intel(R) SGX Enabled">
  720. </category>
  721. <wizard
  722. canFinishEarly="false"
  723. category="com.intel.sgx.wizzards"
  724. class="com.intel.sgx.wizards.SGXCProjectWizard"
  725. finalPerspective="org.eclipse.cdt.ui.CPerspective"
  726. hasPages="true"
  727. icon="templates/newmngc_app.gif"
  728. id="com.intel.sgx.wizards.SGXCProjectWizard"
  729. name="C Project"
  730. project="true">
  731. <description>
  732. An C project, with Intel(R) SGX Commands and Configurations
  733. </description>
  734. </wizard>
  735. <wizard
  736. canFinishEarly="false"
  737. category="com.intel.sgx.wizzards"
  738. class="com.intel.sgx.wizards.SGXCCProjectWizard"
  739. finalPerspective="org.eclipse.cdt.ui.CPerspective"
  740. hasPages="true"
  741. id="com.intel.sgx.wizards.SGXCDProjectWizard"
  742. icon="templates/newmngcc_app.gif"
  743. name="C++ Project"
  744. project="true">
  745. <description>
  746. An C++ project, with Intel(R) SGX Commands and Configurations
  747. </description>
  748. </wizard>
  749. </extension>
  750. </plugin>