license.conf 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449
  1. LICENSE_EXPRESSION_IMPLICIT_OR=yes
  2. LICENSE_EXPRESSION_IMPLICIT_AND=yes
  3. LICENSE_EXPRESSION=
  4. LICENSE_NAMES=
  5. MODULE_LICENSES_RESTRICTIONS=
  6. MODULE_LICENSES_RESTRICTION_EXCEPTIONS=
  7. MODULE_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 NDA REQUIRE_DISCLOSURE PERMISSIVE REQUIRE_CITATION SERVICE
  22. # NB: Licenses lists below are sorted case-insensitively. Please, keep the list sorted.
  23. LICENSES_UNATTRIBUTED= \
  24. AFL-2.0 \
  25. Amazon-SL \
  26. AML \
  27. APSL-1.0 \
  28. Artistic-1.0-Perl \
  29. Artistic-2.0 \
  30. ASM-BSD-3-Clause \
  31. BCL \
  32. Bison-Exception \
  33. Bison-exception-2.2 \
  34. BouncyCastle-MIT \
  35. BSD-3-Clause-Clear \
  36. BSD-3-Clause-Open-MPI \
  37. BSD-4-Clause-Shortened \
  38. Bsd-New-Tcpdump \
  39. Carnegie-Mellon \
  40. Carnegie-Mellon-Contributors \
  41. CC-BY-NC-1.0 \
  42. CC-BY-NC-2.0 \
  43. CC-BY-NC-2.5 \
  44. CC-BY-NC-3.0 \
  45. CC-BY-NC-ND-1.0 \
  46. CC-BY-NC-ND-2.0 \
  47. CC-BY-NC-ND-2.5 \
  48. CC-BY-NC-ND-3.0 \
  49. CC-BY-NC-SA-1.0 \
  50. CC-BY-NC-SA-2.0 \
  51. CC-BY-NC-SA-2.5 \
  52. CC-BY-NC-SA-3.0 \
  53. CC-BY-ND-1.0 \
  54. CC-BY-ND-2.0 \
  55. CC-BY-ND-2.5 \
  56. CC-BY-ND-3.0 \
  57. CC-BY-SA-1.0 \
  58. CC-BY-SA-2.0 \
  59. CC-BY-SA-2.5 \
  60. CC-BY-SA-3.0 \
  61. CC-BY-SA-4.0 \
  62. CDDL \
  63. CECILL-B \
  64. ClArtistic \
  65. DSO-1.1 \
  66. Elastic-License-2.0 \
  67. FSFUL \
  68. FSFULLR \
  69. GCC-exception-3.1 \
  70. GDAL \
  71. GFDL-1.1-or-later \
  72. Go-License \
  73. Google-Patent-License-Webm \
  74. Google-Patent-License-Webrtc \
  75. GPL-2.0 WITH Classpath-exception-2.0 \
  76. GPL-2.0-only WITH Classpath-exception-2.0 \
  77. GPL-2.0 WITH FOSS-exception \
  78. GPL-2.0-only WITH freertos-exception-2.0 \
  79. GPL-2.0-only WITH Mysql-Linking-Exception-2018 \
  80. GPL-2.0-only WITH OpenJDK-assembly-exception-1.0 \
  81. GPL-2.0-only WITH Universal-FOSS-exception-1.0 \
  82. GPL-2.0-or-later WITH Avisynth-C-Interface-Exception \
  83. GPL-2.0-or-later WITH Bison-Exception-2.0 \
  84. GPL-2.0-or-later WITH Bison-exception-2.2 \
  85. GPL-2.0-or-later WITH C-Interface-Exception \
  86. GPL-2.0-or-later WITH freertos-exception-2.0 \
  87. GPL-2.0-or-later WITH Libtool-exception \
  88. GPL-2.0-or-later WITH mif-exception \
  89. GWT-Terms \
  90. Hdf5 \
  91. HPND-sell-variant \
  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-swig \
  146. LicenseRef-scancode-unknown \
  147. LicenseRef-scancode-unknown-license-reference \
  148. LicenseRef-scancode-unknown-spdx \
  149. LicenseRef-scancode-warranty-disclaimer \
  150. LicenseRef-scancode-xfree86-1.0 \
  151. LPL-1.02 \
  152. MirOS \
  153. Mit-Xfig \
  154. NAIST-2003 \
  155. NOSL \
  156. NPL-1.1 \
  157. Nvidia-Gov \
  158. OFL-1.1 \
  159. Oracle \
  160. Oracle-technology \
  161. PSF-3.7.2 \
  162. Quicklz \
  163. Ruby \
  164. Sendmail \
  165. Spencer-99 \
  166. SSPL-1.0 \
  167. Stlport-4.5 \
  168. SZIP \
  169. TCL \
  170. TU-Berlin-1.0 \
  171. Unicode-TOU \
  172. Universal-FOSS-exception-1.0 \
  173. Unknown \
  174. Vcalendar \
  175. Vim \
  176. X11-Adobe-Dec \
  177. X11-Hanson \
  178. Xfree86-1.0 \
  179. Xnet
  180. LICENSES_PATCHES_FORBIDDEN= \
  181. Unicode
  182. LICENSES_FORBIDDEN= \
  183. AGPL-3.0-only \
  184. AGPL-3.0-or-later \
  185. Artistic-1.0 \
  186. Musl-Exception \
  187. confluent-community-1.0 \
  188. ${LICENSES_UNATTRIBUTED}
  189. # Group for proprietary code licenses
  190. LICENSES_NDA= \
  191. Intel-NDA \
  192. mimepp \
  193. OracleOebs
  194. # These licenses allow use with opensource code only
  195. LICENSES_REQUIRE_DISCLOSURE= \
  196. CDDL-1.0 \
  197. CDDL-1.1 \
  198. CECILL-2.0 \
  199. CPL-1.0 \
  200. EPL-1.0 \
  201. EPL-2.0 \
  202. GPL \
  203. GPL-1.0-only \
  204. GPL-1.0-or-later \
  205. GPL-1.0-or-later WITH Linux-syscall-note \
  206. GPL-1.1 \
  207. GPL-2.0 \
  208. GPL-2.0-only \
  209. GPL-2.0-only WITH GCC-exception-2.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-only WITH Bison-exception-2.2 \
  216. GPL-3.0-or-later \
  217. GPL-3.0-or-later WITH Bison-exception-2.2 \
  218. GPLv2+
  219. LICENSES_REQUIRE_DISCLOSURE_STATIC= \
  220. LGPL \
  221. LGPL-1.0-or-later \
  222. LGPL-2.0-only \
  223. LGPL-2.0-or-later \
  224. LGPL-2.0-or-later WITH Libtool-exception \
  225. LGPL-2.0-or-later WITH Linux-syscall-note \
  226. LGPL-2.0-or-later WITH Sdbus-C++-LGPL-exception-1.1 \
  227. LGPL-2.1-only \
  228. LGPL-2.1-only WITH Linux-syscall-note \
  229. LGPL-2.1-or-later \
  230. LGPL-2.1-or-later WITH Linux-syscall-note \
  231. LGPL-3.0-only \
  232. LGPL-3.0-or-later
  233. # These licenses allows any kind of linkage with proprietary code
  234. LICENSES_PERMISSIVE= \
  235. 0BSD \
  236. Apache-1.0 \
  237. Apache-1.1 \
  238. Apache-2.0 \
  239. Apache-2.0 WITH LLVM-exception \
  240. APSL-2.0 \
  241. Beerware \
  242. blessing \
  243. BSD \
  244. BSD-1-Clause \
  245. BSD-2-Clause \
  246. BSD-2-Clause-Patent \
  247. BSD-2-Clause-Views \
  248. BSD-3-Clause WITH Google-Patent-License-Webm \
  249. BSD-3-Clause WITH Google-Patent-License-Webrtc \
  250. BSD-3-Clause \
  251. BSD-4-Clause \
  252. BSD-4-Clause-UC \
  253. BSD-derived \
  254. Bsd-Original-Uc-1986 \
  255. Bsd-Simplified-Darwin \
  256. BSD-Source-Code \
  257. Bsd-Unchanged \
  258. Bsd-Unmodified \
  259. BSL-1.0 \
  260. bzip2-1.0.6 \
  261. CC-PDDC \
  262. CC0-1.0 \
  263. Cmu-Computing-Services \
  264. CUP-Parser \
  265. curl \
  266. Custom-eigen \
  267. Custom-fft2d \
  268. Custom-fft4g \
  269. Custom-openldap \
  270. Custom-punycode \
  271. Custom-punycode-libpsl \
  272. Custom-wcwidth \
  273. DOC \
  274. EDL-1.0 \
  275. Facebook-SDK \
  276. Fftpack-2004 \
  277. FDK \
  278. FSFAP \
  279. FTL \
  280. H2 \
  281. IBM-pibs \
  282. ICU \
  283. Ietf \
  284. IJG \
  285. Intel-LLVM-SGA \
  286. Intel-Simplified \
  287. ISC \
  288. JSON \
  289. Khronos \
  290. Libpbm \
  291. Libpng \
  292. libpng-2.0 \
  293. LicenseRef-scancode-ams-fonts \
  294. LicenseRef-scancode-bitstream \
  295. Linux-OpenIB \
  296. Martin-Birgmeier \
  297. Minpack \
  298. MIT \
  299. MIT-0 \
  300. MIT-CMU \
  301. MIT-Modern-Variant \
  302. MIT-Nagy \
  303. Mit-Old-Style \
  304. MIT-open-group \
  305. Mit-Veillard-Variant \
  306. Mozilla-GC \
  307. MPL-1.0 \
  308. MPL-1.1 \
  309. MPL-2.0 \
  310. NCSA \
  311. Not-Applicable \
  312. NTP \
  313. Nvidia \
  314. OGC-1.0 \
  315. OLDAP-2.8 \
  316. OML \
  317. OpenSSL \
  318. PayPal-SDK \
  319. PCRE \
  320. PD \
  321. PHP-3.01 \
  322. PIL \
  323. Plexus \
  324. PostgreSQL \
  325. Protobuf-License \
  326. PSF \
  327. PSF-2.0 \
  328. Public-Domain \
  329. Public-Domain-US-Govt \
  330. Python-2.0 \
  331. Qhull \
  332. Red-Hat-Attribution \
  333. Repoze-public \
  334. RSA-1990 \
  335. RSA-MD \
  336. RSA-MD4 \
  337. SGI-B-2.0 \
  338. SMLNJ \
  339. SSH-short \
  340. SSLeay \
  341. Sleepycat \
  342. Snprintf \
  343. Softsurfer \
  344. Sunpro \
  345. Unicode-DFS-2016 \
  346. Unicode-Icu-58 \
  347. Unicode-Mappings \
  348. Unlicense \
  349. Unrar \
  350. UPL-1.0 \
  351. Vertica \
  352. W3C \
  353. WTFPL \
  354. X11 \
  355. X11-Lucent \
  356. X11-XConsortium-Veillard \
  357. YandexOpen \
  358. Zlib \
  359. zlib-acknowledgement \
  360. ZPL-2.1 \
  361. ${CUSTOM_LICENSE_LINUX_SYSCALL_NOTE} \
  362. ${CUSTOM_LICENSE_MUSL_EXCEPTION} \
  363. ${LICENSES_PATCHES_FORBIDDEN}
  364. LICENSES_PERMISSIVE_DYNAMIC= \
  365. LGPL \
  366. LGPL-2.0-only \
  367. LGPL-2.0-or-later \
  368. LGPL-2.1-only \
  369. LGPL-2.1-or-later \
  370. LGPL-3.0-only \
  371. LGPL-3.0-or-later
  372. # https://st.yandex-team.ru/ARCADIAWGSUP-34
  373. CUSTOM_LICENSE_LIBSSH2_AGENT_WIN=Libssh2-Agent-Win
  374. # Permissive if the code is used to declare and invoke syscalls
  375. CUSTOM_LICENSE_LINUX_SYSCALL_NOTE=Linux-syscall-note-in-syscall-glue
  376. # Permissive only in musllib
  377. CUSTOM_LICENSE_MUSL_EXCEPTION=Musl-Exception-in-Musllib
  378. # TODO: this list is almost empty. needed for DEVRULES-151
  379. LICENSES_REQUIRE_CITATION= \
  380. Apache-2.0 \
  381. Brian-Gladman-3-Clause \
  382. BSLA \
  383. CC-BY-1.0 \
  384. CC-BY-2.0 \
  385. CC-BY-2.5 \
  386. CC-BY-3.0 \
  387. CC-BY-4.0 \
  388. Cmu-Computing-Services \
  389. Custom-Oasis-Pkcs11 \
  390. EDL-1.0 \
  391. HPND \
  392. Info-Zip \
  393. OpenSSL \
  394. Qhull \
  395. Spencer-94 \
  396. LicenseRef-scancode-paul-mackerras-binary \
  397. NetCDF \
  398. libtiff \
  399. ${CUSTOM_LICENSE_LIBSSH2_AGENT_WIN}
  400. LICENSES_SERVICE= \
  401. Service-Default-License \
  402. Service-Dll-Harness \
  403. Service-Prebuilt-Tool \
  404. Service-Py23-Proxy
  405. macro _REQUIRE_EXPLICIT_LICENSE(PREFIXES...) {
  406. SET(EXPLICIT_LICENSE_PREFIXES ${PREFIXES})
  407. }
  408. ### @usage: LICENSE(licenses...)
  409. ###
  410. ### Specify the licenses of the module, separated by spaces. Specifying multiple licenses interpreted as permission to use this
  411. ### library satisfying all conditions of any of the listed licenses.
  412. ###
  413. ### A license must be prescribed for contribs
  414. macro LICENSE(Flags...) {
  415. SET(LICENSE_EXPRESSION $Flags)
  416. SET(LICENSE_NAMES $Flags)
  417. }
  418. ### @usage LICENSE_RESTRICTION(ALLOW_ONLY|DENY LicenseProperty...)
  419. ###
  420. ### Restrict licenses of direct and indirect module dependencies.
  421. ###
  422. ### ALLOW_ONLY restriction type requires dependent module to have at leas one license without propertis not listed in restrictions
  423. ### list.
  424. ###
  425. ### DENY restriction type forbids dependency on module with no license without any listed propery from the list.
  426. ###
  427. ### Note: Can be used multiple times on the same module all specified constraints will be checked.
  428. ### All macro invocation for the same module must use same constraints type (DENY or ALLOW_ONLY)
  429. macro LICENSE_RESTRICTION(TYPE, RESTRICTIONS...) {
  430. SET_APPEND(MODULE_LICENSES_RESTRICTION_TYPES $TYPE)
  431. SET_APPEND(MODULE_LICENSES_RESTRICTIONS $RESTRICTIONS)
  432. }