license.conf 11 KB

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