license.conf 12 KB

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