license.conf 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  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
  21. LICENSES_UNATTRIBUTED= \
  22. AFL-2.0 \
  23. AML \
  24. APSL-1.0 \
  25. ASM-BSD-3-Clause \
  26. Amazon-SL \
  27. Artistic-1.0-Perl \
  28. BCL \
  29. BSD-3-Clause-Open-MPI \
  30. BSD-4-Clause-Shortened \
  31. BSLA \
  32. Bison-Exception \
  33. BouncyCastle-MIT \
  34. Brian-Gladman-3-Clause \
  35. Bsd-New-Tcpdump \
  36. Bsd-Original-Uc-1986 \
  37. CC-BY-1.0 \
  38. CC-BY-2.0 \
  39. CC-BY-2.5 \
  40. CC-BY-3.0 \
  41. CC-BY-4.0 \
  42. CC-BY-NC-1.0 \
  43. CC-BY-NC-2.0 \
  44. CC-BY-NC-2.5 \
  45. CC-BY-NC-3.0 \
  46. CC-BY-NC-ND-1.0 \
  47. CC-BY-NC-ND-2.0 \
  48. CC-BY-NC-ND-2.5 \
  49. CC-BY-NC-ND-3.0 \
  50. CC-BY-NC-SA-1.0 \
  51. CC-BY-NC-SA-2.0 \
  52. CC-BY-NC-SA-2.5 \
  53. CC-BY-NC-SA-3.0 \
  54. CC-BY-ND-1.0 \
  55. CC-BY-ND-2.0 \
  56. CC-BY-ND-2.5 \
  57. CC-BY-ND-3.0 \
  58. CC-BY-SA-1.0 \
  59. CC-BY-SA-2.0 \
  60. CC-BY-SA-2.5 \
  61. CC-BY-SA-3.0 \
  62. CC-BY-SA-4.0 \
  63. CDDL \
  64. CECILL-B \
  65. Carnegie-Mellon \
  66. Carnegie-Mellon-Contributors \
  67. DOC \
  68. DSO-1.1 \
  69. EDL-1.0 \
  70. Elastic-License-2.0 \
  71. FSFUL \
  72. FSFULLR \
  73. Fftpack-2004 \
  74. GCC-exception-3.1 \
  75. GDAL \
  76. GFDL-1.1-or-later \
  77. GPL-2.0 WITH Classpath-exception-2.0 \
  78. GPL-2.0 WITH FOSS-exception \
  79. GPL-2.0-only WITH Mysql-Linking-Exception-2018 \
  80. GPL-2.0-only WITH Universal-FOSS-exception-1.0 \
  81. GPL-2.0-or-later WITH Avisynth-C-Interface-Exception \
  82. GPL-2.0-or-later WITH Bison-Exception-2.0 \
  83. GPL-2.0-or-later WITH Bison-exception-2.2 \
  84. GPL-2.0-or-later WITH C-Interface-Exception \
  85. GPL-2.0-or-later WITH Libtool-exception \
  86. GPL-2.0-or-later WITH mif-exception \
  87. Go-License \
  88. Google-Patent-License-Webm \
  89. Google-Patent-License-Webrtc \
  90. HPND \
  91. HPND-sell-variant \
  92. HPND-sell-variant \
  93. HSQLDB-BSD-3-Clause \
  94. Hdf5 \
  95. IPL-1.0 \
  96. Ibm-Dhcp \
  97. Ietf-trust \
  98. ImageMagick \
  99. Info-Zip \
  100. Intel-Confidential \
  101. Intel-Material \
  102. JAMon-BSD-3-Clause \
  103. LGPL-3.0-or-later WITH ZeroMQ-Exception \
  104. LPL-1.02 \
  105. LicenseRef-scancode-bsd-new-nomod \
  106. LicenseRef-scancode-cc-by-2.0-uk \
  107. LicenseRef-scancode-cc-devnations-2.0 \
  108. LicenseRef-scancode-cc-sampling-1.0 \
  109. LicenseRef-scancode-free-unknown \
  110. LicenseRef-scancode-generic-cla \
  111. LicenseRef-scancode-other-copyleft \
  112. LicenseRef-scancode-other-permissive \
  113. LicenseRef-scancode-pcre \
  114. LicenseRef-scancode-proprietary-license \
  115. LicenseRef-scancode-unknown \
  116. LicenseRef-scancode-unknown-license-reference \
  117. LicenseRef-scancode-warranty-disclaimer \
  118. MirOS \
  119. Mit-Xfig \
  120. Mozilla-GC \
  121. NAIST-2003 \
  122. Nvidia-Gov \
  123. Oracle \
  124. Oracle-technology \
  125. PSF-3.7.2 \
  126. Qhull \
  127. Quicklz \
  128. Ruby \
  129. SSPL-1.0 \
  130. SZIP \
  131. Sendmail \
  132. Softsurfer \
  133. Stlport-4.5 \
  134. TCL \
  135. TU-Berlin-1.0 \
  136. Unicode-TOU \
  137. Universal-FOSS-exception-1.0 \
  138. Unknown \
  139. Unlicense \
  140. Vcalendar \
  141. Vim \
  142. X11-Adobe-Dec \
  143. X11-Hanson \
  144. X11-XConsortium-Veillard \
  145. Xfree86-1.0 \
  146. Xnet \
  147. jQuery-MIT
  148. LICENSES_PATCHES_FORBIDDEN= \
  149. Unicode
  150. LICENSES_FORBIDDEN= \
  151. AGPL-3.0-only \
  152. AGPL-3.0-or-later \
  153. Artistic-1.0 \
  154. Musl-Exception \
  155. ${LICENSES_UNATTRIBUTED}
  156. # Group for proprietary code licenses
  157. LICENSES_NDA= \
  158. Intel-NDA \
  159. mimepp \
  160. OracleOebs \
  161. Sophos-SDK \
  162. YandexUncategorized \
  163. YandexNDA
  164. # These licenses allow use with opensource code only
  165. LICENSES_REQUIRE_DISCLOSURE= \
  166. CDDL-1.0 \
  167. CDDL-1.1 \
  168. CECILL-2.0 \
  169. CPL-1.0 \
  170. EPL-1.0 \
  171. EPL-2.0 \
  172. GPL \
  173. GPL-1.0-only \
  174. GPL-1.0-or-later \
  175. GPL-1.0-or-later WITH Linux-syscall-note \
  176. GPL-1.1 \
  177. GPL-2.0 \
  178. GPL-2.0-only \
  179. GPL-2.0-only WITH GCC-exception-2.0 \
  180. GPL-2.0-only WITH Linux-syscall-note \
  181. GPL-2.0-or-later \
  182. GPL-2.0-or-later WITH GCC-exception-2.0 \
  183. GPL-2.0-or-later WITH Linux-syscall-note \
  184. GPL-3.0-only \
  185. GPL-3.0-or-later \
  186. GPL-3.0-or-later WITH Bison-exception-2.2
  187. LICENSES_REQUIRE_DISCLOSURE_STATIC= \
  188. LGPL \
  189. LGPL-1.0-or-later \
  190. LGPL-2.0-only \
  191. LGPL-2.0-or-later \
  192. LGPL-2.0-or-later WITH Libtool-exception \
  193. LGPL-2.0-or-later WITH Linux-syscall-note \
  194. LGPL-2.1-only \
  195. LGPL-2.1-only WITH Linux-syscall-note \
  196. LGPL-2.1-or-later \
  197. LGPL-2.1-or-later WITH Linux-syscall-note \
  198. LGPL-3.0-only \
  199. LGPL-3.0-or-later
  200. # These licenses allows any kind of linkage with proprietary code
  201. LICENSES_PERMISSIVE= \
  202. 0BSD \
  203. Apache-1.0 \
  204. Apache-1.1 \
  205. Apache-2.0 \
  206. Apache-2.0 WITH LLVM-exception \
  207. APSL-2.0 \
  208. Beerware \
  209. blessing \
  210. BSL-1.0 \
  211. BSD \
  212. BSD-1-Clause \
  213. BSD-2-Clause \
  214. BSD-2-Clause-Patent \
  215. BSD-2-Clause-Views \
  216. BSD-3-Clause \
  217. BSD-4-Clause \
  218. BSD-4-Clause-UC \
  219. BSD-derived \
  220. BSD-ORIGINAL-UC-1986 \
  221. BSD-Source-Code \
  222. Bsd-Simplified-Darwin \
  223. Bsd-Unchanged \
  224. Bsd-Unmodified \
  225. bzip2-1.0.6 \
  226. CC0-1.0 \
  227. CC-PDDC \
  228. Cmu-Computing-Services \
  229. CUP-Parser \
  230. curl \
  231. Custom-Punycode \
  232. Facebook-SDK \
  233. FDK \
  234. FSFAP \
  235. FTL \
  236. H2 \
  237. IBM-pibs \
  238. ICU \
  239. Ietf \
  240. IJG \
  241. Intel-Simplified \
  242. ISC \
  243. JSON \
  244. Khronos \
  245. Libpbm \
  246. LicenseRef-scancode-bitstream \
  247. LicenseRef-scancode-ams-fonts \
  248. Linux-OpenIB \
  249. Libpng \
  250. libpng-2.0 \
  251. libtiff \
  252. Martin-Birgmeier \
  253. MIT \
  254. MIT-0 \
  255. MIT-CMU \
  256. MIT-Modern-Variant \
  257. MIT-Nagy \
  258. MIT-open-group \
  259. Mit-Old-Style \
  260. Mit-Veillard-Variant \
  261. MPL-1.0 \
  262. MPL-1.1 \
  263. MPL-2.0 \
  264. Minpack \
  265. NCSA \
  266. NTP \
  267. Not-Applicable \
  268. Nvidia \
  269. OGC-1.0 \
  270. OLDAP-2.8 \
  271. OML \
  272. OpenSSL \
  273. PayPal-SDK \
  274. PCRE \
  275. PD \
  276. Public-Domain \
  277. Public-Domain-US-Govt \
  278. PHP-3.01 \
  279. PIL \
  280. Plexus \
  281. PostgreSQL \
  282. Protobuf-License \
  283. PSF \
  284. PSF-2.0 \
  285. Python-2.0 \
  286. Qhull \
  287. Red-Hat-Attribution \
  288. Repoze-public \
  289. RSA-MD \
  290. RSA-MD4 \
  291. RSA-1990 \
  292. Sleepycat \
  293. Snprintf \
  294. SGI-B-2.0 \
  295. SMLNJ \
  296. SSH-short \
  297. SSLeay \
  298. Sunpro \
  299. Unicode-DFS-2016 \
  300. Unicode-Icu-58 \
  301. Unicode-Mappings \
  302. Unlicense \
  303. Unrar \
  304. UPL-1.0 \
  305. Vertica \
  306. W3C \
  307. WTFPL \
  308. X11 \
  309. X11-Lucent \
  310. YandexOpen \
  311. Zlib \
  312. zlib-acknowledgement \
  313. ZPL-2.1 \
  314. ${CUSTOM_LICENSE_MUSL_EXCEPTION} \
  315. ${LICENSES_PATCHES_FORBIDDEN}
  316. LICENSES_PERMISSIVE_DYNAMIC= \
  317. LGPL \
  318. LGPL-2.0-only \
  319. LGPL-2.0-or-later \
  320. LGPL-2.1-only \
  321. LGPL-2.1-or-later \
  322. LGPL-3.0-only \
  323. LGPL-3.0-or-later
  324. # https://st.yandex-team.ru/ARCADIAWGSUP-34
  325. CUSTOM_LICENSE_LIBSSH2_AGENT_WIN=Libssh2-Agent-Win
  326. # Permissive only in musllib
  327. CUSTOM_LICENSE_MUSL_EXCEPTION=Musl-Exception-in-Musllib
  328. # TODO: this list is almost empty. needed for DEVRULES-151
  329. LICENSES_REQUIRE_CITATION= \
  330. Apache-2.0 \
  331. Cmu-Computing-Services \
  332. OpenSSL \
  333. Spencer-94 \
  334. ${CUSTOM_LICENSE_LIBSSH2_AGENT_WIN}
  335. LICENSES_SERVICE= \
  336. Service-Dll-Harness \
  337. Service-Prebuilt-Tool \
  338. Service-Py23-Proxy
  339. macro _REQUIRE_EXPLICIT_LICENSE(Prefix...) {
  340. SET(EXPLICIT_LICENSE_PREFIXES ${Prefix})
  341. }
  342. ### @usage: LICENSE(licenses...)
  343. ###
  344. ### Specify the licenses of the module, separated by spaces. Specifying multiple licenses interpreted as permission to use this
  345. ### library satisfying all conditions of any of the listed licenses.
  346. ###
  347. ### A license must be prescribed for contribs
  348. macro LICENSE(Flags...) {
  349. SET(LICENSE_EXPRESSION $Flags)
  350. SET(LICENSE_NAMES $Flags)
  351. }
  352. ### @usage RESTRICT_LICENSES(ALLOW_ONLY|DENY LicenseProperty...)
  353. ###
  354. ### Restrict licenses of direct and indirect module dependencies.
  355. ###
  356. ### ALLOW_ONLY restriction type requires dependent module to have at leas one license without propertis not listed in restrictions
  357. ### list.
  358. ###
  359. ### DENY restriction type forbids dependency on module with no license without any listed propery from the list.
  360. ###
  361. ### Note: Can be used multiple times on the same module all specified constraints will be checked.
  362. ### All macro invocation for the same module must use same constraints type (DENY or ALLOW_ONLY)
  363. macro RESTRICT_LICENSES(TYPE, EXCEPT[], RESTRICTIONS...) {
  364. SET_APPEND(MODULE_LICENSES_RESTRICTION_TYPES $TYPE)
  365. SET_APPEND(MODULE_LICENSES_RESTRICTIONS $RESTRICTIONS)
  366. SET_APPEND(MODULE_LICENSES_RESTRICTION_EXCEPTIONS $EXCEPT)
  367. }