license.conf 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  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-jdom \
  136. LicenseRef-scancode-mit-xfig \
  137. LicenseRef-scancode-newlib-historical \
  138. LicenseRef-scancode-nilsson-historical \
  139. LicenseRef-scancode-openssl \
  140. LicenseRef-scancode-openssl-exception-lgpl-3.0-plus \
  141. LicenseRef-scancode-openssl-nokia-psk-contribution \
  142. LicenseRef-scancode-osf-1990 \
  143. LicenseRef-scancode-other-copyleft \
  144. LicenseRef-scancode-other-permissive \
  145. LicenseRef-scancode-paul-mackerras \
  146. LicenseRef-scancode-paul-mackerras-binary \
  147. LicenseRef-scancode-paul-mackerras-new \
  148. LicenseRef-scancode-pcre \
  149. LicenseRef-scancode-ppp \
  150. LicenseRef-scancode-proprietary-license \
  151. LicenseRef-scancode-secret-labs-2011 \
  152. LicenseRef-scancode-ssleay-windows \
  153. LicenseRef-scancode-sun-source \
  154. LicenseRef-scancode-swig \
  155. LicenseRef-scancode-unknown \
  156. LicenseRef-scancode-unknown-license-reference \
  157. LicenseRef-scancode-unknown-spdx \
  158. LicenseRef-scancode-warranty-disclaimer \
  159. LicenseRef-scancode-xfree86-1.0 \
  160. LPL-1.02 \
  161. MirOS \
  162. Mit-Xfig \
  163. Mozilla-GC \
  164. NAIST-2003 \
  165. Nvidia-Gov \
  166. OFL-1.1 \
  167. Oracle \
  168. Oracle-technology \
  169. PSF-3.7.2 \
  170. Qhull \
  171. Quicklz \
  172. Ruby \
  173. Sendmail \
  174. Softsurfer \
  175. Spencer-99 \
  176. SSPL-1.0 \
  177. Stlport-4.5 \
  178. SZIP \
  179. TCL \
  180. TU-Berlin-1.0 \
  181. Unicode-TOU \
  182. Universal-FOSS-exception-1.0 \
  183. Unknown \
  184. Vcalendar \
  185. Vim \
  186. X11-Adobe-Dec \
  187. X11-Hanson \
  188. Xfree86-1.0 \
  189. Xnet
  190. LICENSES_PATCHES_FORBIDDEN= \
  191. Unicode
  192. LICENSES_FORBIDDEN= \
  193. AGPL-3.0-only \
  194. AGPL-3.0-or-later \
  195. Artistic-1.0 \
  196. Musl-Exception \
  197. confluent-community-1.0 \
  198. ${LICENSES_UNATTRIBUTED}
  199. # Group for proprietary code licenses
  200. LICENSES_NDA= \
  201. Intel-NDA \
  202. mimepp \
  203. OracleOebs \
  204. YandexUncategorized \
  205. YandexNDA
  206. # These licenses allow use with opensource code only
  207. LICENSES_REQUIRE_DISCLOSURE= \
  208. CDDL-1.0 \
  209. CDDL-1.1 \
  210. CECILL-2.0 \
  211. CPL-1.0 \
  212. EPL-1.0 \
  213. EPL-2.0 \
  214. GPL \
  215. GPL-1.0-only \
  216. GPL-1.0-or-later \
  217. GPL-1.0-or-later WITH Linux-syscall-note \
  218. GPL-1.1 \
  219. GPL-2.0 \
  220. GPL-2.0-only \
  221. GPL-2.0-only WITH GCC-exception-2.0 \
  222. GPL-2.0-only WITH Linux-syscall-note \
  223. GPL-2.0-or-later \
  224. GPL-2.0-or-later WITH GCC-exception-2.0 \
  225. GPL-2.0-or-later WITH Linux-syscall-note \
  226. GPL-3.0-only \
  227. GPL-3.0-only WITH Bison-exception-2.2 \
  228. GPL-3.0-or-later \
  229. GPL-3.0-or-later WITH Bison-exception-2.2 \
  230. GPLv2+
  231. LICENSES_REQUIRE_DISCLOSURE_STATIC= \
  232. LGPL \
  233. LGPL-1.0-or-later \
  234. LGPL-2.0-only \
  235. LGPL-2.0-or-later \
  236. LGPL-2.0-or-later WITH Libtool-exception \
  237. LGPL-2.0-or-later WITH Linux-syscall-note \
  238. LGPL-2.1-only \
  239. LGPL-2.1-only WITH Linux-syscall-note \
  240. LGPL-2.1-or-later \
  241. LGPL-2.1-or-later WITH Linux-syscall-note \
  242. LGPL-3.0-only \
  243. LGPL-3.0-or-later
  244. # These licenses allows any kind of linkage with proprietary code
  245. LICENSES_PERMISSIVE= \
  246. 0BSD \
  247. Apache-1.0 \
  248. Apache-1.1 \
  249. Apache-2.0 \
  250. Apache-2.0 WITH LLVM-exception \
  251. APSL-2.0 \
  252. Beerware \
  253. blessing \
  254. BSD \
  255. BSD-1-Clause \
  256. BSD-2-Clause \
  257. BSD-2-Clause-Patent \
  258. BSD-2-Clause-Views \
  259. BSD-3-Clause \
  260. BSD-4-Clause \
  261. BSD-4-Clause-UC \
  262. BSD-derived \
  263. BSD-ORIGINAL-UC-1986 \
  264. Bsd-Simplified-Darwin \
  265. BSD-Source-Code \
  266. Bsd-Unchanged \
  267. Bsd-Unmodified \
  268. BSL-1.0 \
  269. bzip2-1.0.6 \
  270. CC-PDDC \
  271. CC0-1.0 \
  272. Cmu-Computing-Services \
  273. CUP-Parser \
  274. curl \
  275. Custom-punycode \
  276. Custom-wcwidth \
  277. EDL-1.0 \
  278. Facebook-SDK \
  279. FDK \
  280. FSFAP \
  281. FTL \
  282. H2 \
  283. IBM-pibs \
  284. ICU \
  285. Ietf \
  286. IJG \
  287. Intel-LLVM-SGA \
  288. Intel-Simplified \
  289. ISC \
  290. JSON \
  291. Khronos \
  292. Libpbm \
  293. Libpng \
  294. libpng-2.0 \
  295. libtiff \
  296. LicenseRef-scancode-ams-fonts \
  297. LicenseRef-scancode-bitstream \
  298. Linux-OpenIB \
  299. Martin-Birgmeier \
  300. Minpack \
  301. MIT \
  302. MIT-0 \
  303. MIT-CMU \
  304. MIT-Modern-Variant \
  305. MIT-Nagy \
  306. Mit-Old-Style \
  307. MIT-open-group \
  308. Mit-Veillard-Variant \
  309. MPL-1.0 \
  310. MPL-1.1 \
  311. MPL-2.0 \
  312. NCSA \
  313. Not-Applicable \
  314. NTP \
  315. Nvidia \
  316. OGC-1.0 \
  317. OLDAP-2.8 \
  318. OML \
  319. OpenSSL \
  320. PayPal-SDK \
  321. PCRE \
  322. PD \
  323. PHP-3.01 \
  324. PIL \
  325. Plexus \
  326. PostgreSQL \
  327. Protobuf-License \
  328. PSF \
  329. PSF-2.0 \
  330. Public-Domain \
  331. Public-Domain-US-Govt \
  332. Python-2.0 \
  333. Qhull \
  334. Red-Hat-Attribution \
  335. Repoze-public \
  336. RSA-1990 \
  337. RSA-MD \
  338. RSA-MD4 \
  339. SGI-B-2.0 \
  340. Sleepycat \
  341. SMLNJ \
  342. Snprintf \
  343. SSH-short \
  344. SSLeay \
  345. Sunpro \
  346. Unicode-DFS-2016 \
  347. Unicode-Icu-58 \
  348. Unicode-Mappings \
  349. Unlicense \
  350. Unrar \
  351. UPL-1.0 \
  352. Vertica \
  353. W3C \
  354. WTFPL \
  355. X11 \
  356. X11-Lucent \
  357. X11-XConsortium-Veillard \
  358. YandexOpen \
  359. Zlib \
  360. zlib-acknowledgement \
  361. ZPL-2.1 \
  362. ${CUSTOM_LICENSE_LINUX_SYSCALL_NOTE} \
  363. ${CUSTOM_LICENSE_MUSL_EXCEPTION} \
  364. ${LICENSES_PATCHES_FORBIDDEN}
  365. LICENSES_PERMISSIVE_DYNAMIC= \
  366. LGPL \
  367. LGPL-2.0-only \
  368. LGPL-2.0-or-later \
  369. LGPL-2.1-only \
  370. LGPL-2.1-or-later \
  371. LGPL-3.0-only \
  372. LGPL-3.0-or-later
  373. # https://st.yandex-team.ru/ARCADIAWGSUP-34
  374. CUSTOM_LICENSE_LIBSSH2_AGENT_WIN=Libssh2-Agent-Win
  375. # Permissive if the code is used to declare and invoke syscalls
  376. CUSTOM_LICENSE_LINUX_SYSCALL_NOTE=Linux-syscall-note-in-syscall-glue
  377. # Permissive only in musllib
  378. CUSTOM_LICENSE_MUSL_EXCEPTION=Musl-Exception-in-Musllib
  379. # TODO: this list is almost empty. needed for DEVRULES-151
  380. LICENSES_REQUIRE_CITATION= \
  381. Apache-2.0 \
  382. Brian-Gladman-3-Clause \
  383. Cmu-Computing-Services \
  384. Custom-Oasis-Pkcs11 \
  385. EDL-1.0 \
  386. OpenSSL \
  387. Spencer-94 \
  388. NetCDF \
  389. ${CUSTOM_LICENSE_LIBSSH2_AGENT_WIN}
  390. LICENSES_SERVICE= \
  391. Service-Dll-Harness \
  392. Service-Prebuilt-Tool \
  393. Service-Py23-Proxy
  394. LICENSES_PROTESTWARE= \
  395. Protestware
  396. macro _REQUIRE_EXPLICIT_LICENSE(Prefix...) {
  397. SET(EXPLICIT_LICENSE_PREFIXES ${Prefix})
  398. }
  399. ### @usage: LICENSE(licenses...)
  400. ###
  401. ### Specify the licenses of the module, separated by spaces. Specifying multiple licenses interpreted as permission to use this
  402. ### library satisfying all conditions of any of the listed licenses.
  403. ###
  404. ### A license must be prescribed for contribs
  405. macro LICENSE(Flags...) {
  406. SET(LICENSE_EXPRESSION $Flags)
  407. SET(LICENSE_NAMES $Flags)
  408. }
  409. ### @usage RESTRICT_LICENSES(ALLOW_ONLY|DENY LicenseProperty...)
  410. ###
  411. ### Restrict licenses of direct and indirect module dependencies.
  412. ###
  413. ### ALLOW_ONLY restriction type requires dependent module to have at leas one license without propertis not listed in restrictions
  414. ### list.
  415. ###
  416. ### DENY restriction type forbids dependency on module with no license without any listed propery from the list.
  417. ###
  418. ### Note: Can be used multiple times on the same module all specified constraints will be checked.
  419. ### All macro invocation for the same module must use same constraints type (DENY or ALLOW_ONLY)
  420. macro RESTRICT_LICENSES(TYPE, EXCEPT[], RESTRICTIONS...) {
  421. SET_APPEND(MODULE_LICENSES_RESTRICTION_TYPES $TYPE)
  422. SET_APPEND(MODULE_LICENSES_RESTRICTIONS $RESTRICTIONS)
  423. SET_APPEND(MODULE_LICENSES_RESTRICTION_EXCEPTIONS $EXCEPT)
  424. }