license.conf 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  1. LICENSE_EXPRESSION=
  2. LICENSE_NAMES=
  3. MODULE_LICENSES_RESTRICTIONS=
  4. MODULE_LICENSES_RESTRICTION_EXCEPTIONS=
  5. MODULE_LICENSES_RESTRICTION_TYPES=
  6. MODULEWISE_LICENSES_RESTRICTIONS=
  7. MODULEWISE_LICENSES_RESTRICTION_TYPES=
  8. DEFAULT_MODULE_LICENSE=Service-Default-License
  9. EXPLICIT_LICENSE_PREFIXES=
  10. EXPLICIT_LICENSE_EXCEPTIONS=
  11. # List of license properties which can be used to restrict transitive dependencies. There are three variables checked for each
  12. # property:
  13. # * LICENSES_<PROP_NAME>_STATIC: list of licenses which propagates this property when linking with code published by one of
  14. # them statically.
  15. # * LICENSES_<PROP_NAME>_DYNAMIC: list of licenses which propagates this property when linking with code published by one of
  16. # them dyamically.
  17. # * LICENSES_<PROP_NAME>: list of licenses which propagates this property regrdless of type of linking with code published by
  18. # one of them. Putting some license into this list is equivalent to putting it into both
  19. # LICENSES_<PROP_NAME>_STATIC and LICENSES_<PROP_NAME>_DYNAMIC lists.
  20. LICENSE_PROPERTIES= \
  21. FORBIDDEN \
  22. NDA \
  23. REQUIRE_CITATION \
  24. REQUIRE_DISCLOSURE \
  25. SERVICE \
  26. # NB: Licenses lists below are sorted case-insensitively. Please, keep the list sorted.
  27. LICENSES_UNATTRIBUTED= \
  28. AFL-2.0 \
  29. Amazon-SL \
  30. AML \
  31. APSL-1.0 \
  32. Artistic-1.0-Perl \
  33. Artistic-2.0 \
  34. ASM-BSD-3-Clause \
  35. BCL \
  36. Bison-Exception \
  37. Bison-exception-2.2 \
  38. BouncyCastle-MIT \
  39. BSD-3-Clause-Clear \
  40. BSD-3-Clause-Open-MPI \
  41. BSD-4-Clause-Shortened \
  42. Bsd-New-Tcpdump \
  43. Carnegie-Mellon \
  44. Carnegie-Mellon-Contributors \
  45. CC-BY-NC-1.0 \
  46. CC-BY-NC-2.0 \
  47. CC-BY-NC-2.5 \
  48. CC-BY-NC-3.0 \
  49. CC-BY-NC-ND-1.0 \
  50. CC-BY-NC-ND-2.0 \
  51. CC-BY-NC-ND-2.5 \
  52. CC-BY-NC-ND-3.0 \
  53. CC-BY-NC-SA-1.0 \
  54. CC-BY-NC-SA-2.0 \
  55. CC-BY-NC-SA-2.5 \
  56. CC-BY-NC-SA-3.0 \
  57. CC-BY-ND-1.0 \
  58. CC-BY-ND-2.0 \
  59. CC-BY-ND-2.5 \
  60. CC-BY-ND-3.0 \
  61. CC-BY-SA-1.0 \
  62. CC-BY-SA-2.0 \
  63. CC-BY-SA-2.5 \
  64. CC-BY-SA-3.0 \
  65. CC-BY-SA-4.0 \
  66. CDDL \
  67. CECILL-B \
  68. ClArtistic \
  69. DSO-1.1 \
  70. Elastic-License-2.0 \
  71. FSFUL \
  72. FSFULLR \
  73. GCC-exception-3.1 \
  74. GDAL \
  75. GFDL-1.1-or-later \
  76. Go-License \
  77. Google-Patent-License-Webm \
  78. Google-Patent-License-Webrtc \
  79. GPL-2.0 WITH FOSS-exception \
  80. GPL-2.0-only WITH freertos-exception-2.0 \
  81. GPL-2.0-only WITH Mysql-Linking-Exception-2018 \
  82. GPL-2.0-only WITH Universal-FOSS-exception-1.0 \
  83. GPL-2.0-or-later WITH Avisynth-C-Interface-Exception \
  84. GPL-2.0-or-later WITH Bison-Exception-2.0 \
  85. GPL-2.0-or-later WITH Bison-exception-2.2 \
  86. GPL-2.0-or-later WITH C-Interface-Exception \
  87. GPL-2.0-or-later WITH freertos-exception-2.0 \
  88. GPL-2.0-or-later WITH Libtool-exception \
  89. GPL-2.0-or-later WITH mif-exception \
  90. GWT-Terms \
  91. Hdf5 \
  92. HPND-sell-variant \
  93. HSQLDB-BSD-3-Clause \
  94. Ibm-Dhcp \
  95. Ietf-trust \
  96. ImageMagick \
  97. Intel-Material \
  98. IPL-1.0 \
  99. JAMon-BSD-3-Clause \
  100. jQuery-MIT \
  101. LGPL-3.0-or-later WITH ZeroMQ-Exception \
  102. LicenseRef-scancode-afpl-9.0 \
  103. LicenseRef-scancode-amd-historical \
  104. LicenseRef-scancode-anu-license \
  105. LicenseRef-scancode-autoconf-simple-exception \
  106. LicenseRef-scancode-autoconf-simple-exception-2.0 \
  107. LicenseRef-scancode-bsd-3-clause-jtag \
  108. LicenseRef-scancode-bsd-axis-nomod \
  109. LicenseRef-scancode-bsd-new-nomod \
  110. LicenseRef-scancode-bsd-no-disclaimer \
  111. LicenseRef-scancode-bsd-x11 \
  112. LicenseRef-scancode-bsla-no-advert \
  113. LicenseRef-scancode-cavium-malloc \
  114. LicenseRef-scancode-cc-by-2.0-uk \
  115. LicenseRef-scancode-cc-devnations-2.0 \
  116. LicenseRef-scancode-cc-sampling-1.0 \
  117. LicenseRef-scancode-cmu-simple \
  118. LicenseRef-scancode-commercial-license \
  119. LicenseRef-scancode-commons-clause \
  120. LicenseRef-scancode-delorie-historical \
  121. LicenseRef-scancode-flex-2.5 \
  122. LicenseRef-scancode-free-unknown \
  123. LicenseRef-scancode-gary-s-brown \
  124. LicenseRef-scancode-generic-cla \
  125. LicenseRef-scancode-generic-exception \
  126. LicenseRef-scancode-intel-osl-1993 \
  127. LicenseRef-scancode-jdom \
  128. LicenseRef-scancode-mit-xfig \
  129. LicenseRef-scancode-newlib-historical \
  130. LicenseRef-scancode-nilsson-historical \
  131. LicenseRef-scancode-openssl \
  132. LicenseRef-scancode-openssl-exception-lgpl-3.0-plus \
  133. LicenseRef-scancode-openssl-nokia-psk-contribution \
  134. LicenseRef-scancode-osf-1990 \
  135. LicenseRef-scancode-other-copyleft \
  136. LicenseRef-scancode-other-permissive \
  137. LicenseRef-scancode-paul-mackerras \
  138. LicenseRef-scancode-paul-mackerras-new \
  139. LicenseRef-scancode-pcre \
  140. LicenseRef-scancode-ppp \
  141. LicenseRef-scancode-proprietary-license \
  142. LicenseRef-scancode-secret-labs-2011 \
  143. LicenseRef-scancode-ssleay-windows \
  144. LicenseRef-scancode-sun-source \
  145. LicenseRef-scancode-unknown \
  146. LicenseRef-scancode-unknown-license-reference \
  147. LicenseRef-scancode-unknown-spdx \
  148. LicenseRef-scancode-warranty-disclaimer \
  149. LicenseRef-scancode-xfree86-1.0 \
  150. LPL-1.02 \
  151. MirOS \
  152. Mit-Xfig \
  153. NAIST-2003 \
  154. NOSL \
  155. NPL-1.1 \
  156. Nvidia-Gov \
  157. OFL-1.1 \
  158. Oracle \
  159. Oracle-technology \
  160. PSF-3.7.2 \
  161. Quicklz \
  162. Ruby \
  163. Sendmail \
  164. Spencer-99 \
  165. SSPL-1.0 \
  166. Stlport-4.5 \
  167. SZIP \
  168. TCL \
  169. TU-Berlin-1.0 \
  170. Unicode-TOU \
  171. Universal-FOSS-exception-1.0 \
  172. Unknown \
  173. Vcalendar \
  174. Vim \
  175. X11-Adobe-Dec \
  176. X11-Hanson \
  177. Xfree86-1.0 \
  178. Xnet
  179. LICENSES_PATCHES_FORBIDDEN= \
  180. Unicode
  181. LICENSES_FORBIDDEN= \
  182. AGPL-3.0-only \
  183. AGPL-3.0-or-later \
  184. Artistic-1.0 \
  185. Musl-Exception \
  186. confluent-community-1.0 \
  187. ${LICENSES_UNATTRIBUTED}
  188. # Group for proprietary code licenses
  189. LICENSES_NDA= \
  190. Intel-NDA \
  191. mimepp \
  192. OracleOebs
  193. # These licenses allow use with opensource code only
  194. LICENSES_REQUIRE_DISCLOSURE= \
  195. CDDL-1.0 \
  196. CDDL-1.1 \
  197. CECILL-2.0 \
  198. CPL-1.0 \
  199. EPL-1.0 \
  200. EPL-2.0 \
  201. GPL \
  202. GPL-1.0-only \
  203. GPL-1.0-or-later \
  204. GPL-1.0-or-later WITH Linux-syscall-note \
  205. GPL-1.1 \
  206. GPL-2.0 \
  207. GPL-2.0-only \
  208. GPL-2.0-only WITH GCC-exception-2.0 \
  209. GPL-2.0-only WITH OpenJDK-assembly-exception-1.0 \
  210. GPL-2.0-only WITH Linux-syscall-note \
  211. GPL-2.0-or-later \
  212. GPL-2.0-or-later WITH GCC-exception-2.0 \
  213. GPL-2.0-or-later WITH Linux-syscall-note \
  214. GPL-3.0-only \
  215. GPL-3.0-or-later \
  216. GPLv2+
  217. LICENSES_REQUIRE_DISCLOSURE_STATIC= \
  218. LGPL \
  219. LGPL-1.0-or-later \
  220. LGPL-2.0-only \
  221. LGPL-2.0-or-later \
  222. LGPL-2.0-or-later WITH Libtool-exception \
  223. LGPL-2.0-or-later WITH Linux-syscall-note \
  224. LGPL-2.0-or-later WITH Sdbus-C++-LGPL-exception-1.1 \
  225. LGPL-2.1-only \
  226. LGPL-2.1-only WITH Linux-syscall-note \
  227. LGPL-2.1-or-later \
  228. LGPL-2.1-or-later WITH Linux-syscall-note \
  229. LGPL-3.0-only \
  230. LGPL-3.0-or-later
  231. # These licenses allows any kind of linkage with proprietary code
  232. LICENSES_REQUIRE_CITATION= \
  233. 0BSD \
  234. Apache-1.0 \
  235. Apache-1.1 \
  236. Apache-2.0 \
  237. Apache-2.0 WITH LLVM-exception \
  238. APSL-2.0 \
  239. Beerware \
  240. blessing \
  241. Brian-Gladman-3-Clause \
  242. BSD \
  243. BSD-1-Clause \
  244. BSD-2-Clause \
  245. BSD-2-Clause-Patent \
  246. BSD-2-Clause-Views \
  247. BSD-3-Clause WITH Google-Patent-License-Webm \
  248. BSD-3-Clause WITH Google-Patent-License-Webrtc \
  249. BSD-3-Clause \
  250. BSD-4-Clause \
  251. BSD-4-Clause-UC \
  252. BSD-derived \
  253. Bsd-Original-Uc-1986 \
  254. Bsd-Simplified-Darwin \
  255. BSD-Source-Code \
  256. Bsd-Unchanged \
  257. Bsd-Unmodified \
  258. BSL-1.0 \
  259. BSLA \
  260. bzip2-1.0.6 \
  261. CC-PDDC \
  262. CC-BY-1.0 \
  263. CC-BY-2.0 \
  264. CC-BY-2.5 \
  265. CC-BY-3.0 \
  266. CC-BY-4.0 \
  267. CC0-1.0 \
  268. Cmu-Computing-Services \
  269. CUP-Parser \
  270. curl \
  271. Custom-eigen \
  272. Custom-fft2d \
  273. Custom-fft4g \
  274. Custom-Oasis-Pkcs11 \
  275. Custom-openldap \
  276. Custom-punycode \
  277. Custom-punycode-libpsl \
  278. Custom-swig \
  279. Custom-wcwidth \
  280. DOC \
  281. EDL-1.0 \
  282. Facebook-SDK \
  283. Fftpack-2004 \
  284. FDK \
  285. FSFAP \
  286. FTL \
  287. GPL-2.0-only WITH Classpath-exception-2.0 \
  288. GPL-3.0-only WITH Bison-exception-2.2 \
  289. GPL-3.0-or-later WITH Bison-exception-2.2 \
  290. H2 \
  291. HPND \
  292. IBM-pibs \
  293. ICU \
  294. Ietf \
  295. IJG \
  296. Info-Zip \
  297. Intel-LLVM-SGA \
  298. Intel-Simplified \
  299. ISC \
  300. JSON \
  301. Khronos \
  302. Libpbm \
  303. Libpng \
  304. libpng-2.0 \
  305. libtiff \
  306. LicenseRef-scancode-ams-fonts \
  307. LicenseRef-scancode-bitstream \
  308. LicenseRef-scancode-paul-mackerras-binary \
  309. LicenseRef-scancode-swig \
  310. Linux-OpenIB \
  311. Martin-Birgmeier \
  312. Minpack \
  313. MIT \
  314. MIT-0 \
  315. MIT-CMU \
  316. MIT-Modern-Variant \
  317. MIT-Nagy \
  318. Mit-Old-Style \
  319. MIT-open-group \
  320. Mit-Veillard-Variant \
  321. Mozilla-GC \
  322. MPL-1.0 \
  323. MPL-1.1 \
  324. MPL-2.0 \
  325. NCSA \
  326. NetCDF \
  327. Not-Applicable \
  328. NTP \
  329. Nvidia \
  330. OGC-1.0 \
  331. OLDAP-2.8 \
  332. OML \
  333. OpenSSL \
  334. PayPal-SDK \
  335. PCRE \
  336. PD \
  337. PHP-3.01 \
  338. PIL \
  339. Plexus \
  340. PostgreSQL \
  341. Protobuf-License \
  342. PSF \
  343. PSF-2.0 \
  344. Public-Domain \
  345. Public-Domain-US-Govt \
  346. Python-2.0 \
  347. Qhull \
  348. Red-Hat-Attribution \
  349. Repoze-public \
  350. RSA-1990 \
  351. RSA-MD \
  352. RSA-MD4 \
  353. SGI-B-2.0 \
  354. SMLNJ \
  355. SSH-short \
  356. SSLeay \
  357. Sleepycat \
  358. Snprintf \
  359. Softsurfer \
  360. Spencer-94 \
  361. Sunpro \
  362. Unicode-DFS-2016 \
  363. Unicode-Icu-58 \
  364. Unicode-Mappings \
  365. Unlicense \
  366. Unrar \
  367. UPL-1.0 \
  368. Vertica \
  369. W3C \
  370. WTFPL \
  371. X11 \
  372. X11-Lucent \
  373. X11-XConsortium-Veillard \
  374. YandexOpen \
  375. Zlib \
  376. zlib-acknowledgement \
  377. ZPL-2.1 \
  378. ${CUSTOM_LICENSE_LINUX_SYSCALL_NOTE} \
  379. ${CUSTOM_LICENSE_MUSL_EXCEPTION} \
  380. ${CUSTOM_LICENSE_LIBSSH2_AGENT_WIN} \
  381. ${LICENSES_PATCHES_FORBIDDEN} \
  382. LICENSES_REQUIRE_CITATION_DYNAMIC= \
  383. LGPL \
  384. LGPL-2.0-only \
  385. LGPL-2.0-or-later \
  386. LGPL-2.1-only \
  387. LGPL-2.1-or-later \
  388. LGPL-3.0-only \
  389. LGPL-3.0-or-later
  390. # https://st.yandex-team.ru/ARCADIAWGSUP-34
  391. CUSTOM_LICENSE_LIBSSH2_AGENT_WIN=Libssh2-Agent-Win
  392. # Permissive if the code is used to declare and invoke syscalls
  393. CUSTOM_LICENSE_LINUX_SYSCALL_NOTE=Linux-syscall-note-in-syscall-glue
  394. # Permissive only in musllib
  395. CUSTOM_LICENSE_MUSL_EXCEPTION=Musl-Exception-in-Musllib
  396. LICENSES_SERVICE= \
  397. Service-Default-License \
  398. Service-Dll-Harness \
  399. Service-Prebuilt-Tool \
  400. Service-Py23-Proxy
  401. macro _REQUIRE_EXPLICIT_LICENSE(PREFIXES...) {
  402. SET(EXPLICIT_LICENSE_PREFIXES ${PREFIXES})
  403. }
  404. macro _DONT_REQUIRE_LICENSE() {
  405. SET(EXPLICIT_LICENSE_PREFIXES "")
  406. }
  407. ### @usage: LICENSE(licenses...)
  408. ###
  409. ### Specify the licenses of the module, separated by spaces. Specifying multiple licenses interpreted as permission to use this
  410. ### library satisfying all conditions of any of the listed licenses.
  411. ###
  412. ### A license must be prescribed for contribs
  413. macro LICENSE(Flags...) {
  414. SET(LICENSE_EXPRESSION $Flags)
  415. SET(LICENSE_NAMES $Flags)
  416. }
  417. ### @usage LICENSE_RESTRICTION(ALLOW_ONLY|DENY LicenseProperty...)
  418. ###
  419. ### Restrict licenses of direct and indirect module dependencies.
  420. ###
  421. ### ALLOW_ONLY restriction type requires dependent module to have at leas one license without propertis not listed in restrictions
  422. ### list.
  423. ###
  424. ### DENY restriction type forbids dependency on module with no license without any listed propery from the list.
  425. ###
  426. ### Note: Can be used multiple times on the same module all specified constraints will be checked.
  427. ### All macro invocation for the same module must use same constraints type (DENY or ALLOW_ONLY)
  428. macro LICENSE_RESTRICTION(TYPE, RESTRICTIONS...) {
  429. SET_APPEND(MODULE_LICENSES_RESTRICTION_TYPES $TYPE)
  430. SET_APPEND(MODULE_LICENSES_RESTRICTIONS $RESTRICTIONS)
  431. }
  432. macro LICENSE_RESTRICTION_EXCEPTIONS(EXCEPT...) {
  433. SET_APPEND(MODULE_LICENSES_RESTRICTION_EXCEPTIONS $EXCEPT)
  434. }
  435. ### @usage MODULEWISE_LICENSE_RESTRICTION(ALLOW_ONLY|DENY LicenseProperty...)
  436. ###
  437. ### Restrict licenses per module only, without it peers.
  438. ###
  439. ### ALLOW_ONLY restriction type requires dependent module to have at leas one license without propertis not listed in restrictions
  440. ### list.
  441. ###
  442. ### DENY restriction type forbids dependency on module with no license without any listed propery from the list.
  443. ###
  444. ### Note: Can be used multiple times on the same module all specified constraints will be checked.
  445. ### All macro invocation for the same module must use same constraints type (DENY or ALLOW_ONLY)
  446. macro MODULEWISE_LICENSE_RESTRICTION(TYPE, RESTRICTIONS...) {
  447. SET_APPEND(MODULEWISE_LICENSES_RESTRICTION_TYPES $TYPE)
  448. SET_APPEND(MODULEWISE_LICENSES_RESTRICTIONS $RESTRICTIONS)
  449. }