CMakePresets.json 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. {
  2. "version": 4,
  3. "cmakeMinimumRequired": {
  4. "major": 3,
  5. "minor": 23,
  6. "patch": 0
  7. },
  8. "include": [
  9. "../Common/CMakePresets.json"
  10. ],
  11. "configurePresets": [
  12. {
  13. "name": "android-default",
  14. "displayName": "Android",
  15. "description": "Android default configuration",
  16. "toolchainFile": "${sourceDir}/cmake/Platform/Android/Toolchain_android.cmake",
  17. "inherits": [
  18. "android-ninja",
  19. "android-unity",
  20. "android-non-monolithic"
  21. ]
  22. },
  23. {
  24. "name": "android-mono-default",
  25. "displayName": "Android Monolithic with Unity and Ninja",
  26. "description": "Configures Android to build the Monolithic permutation using Ninja with Unity builds",
  27. "toolchainFile": "${sourceDir}/cmake/Platform/Android/Toolchain_android.cmake",
  28. "binaryDir": "${sourceDir}/build/android_mono",
  29. "inherits": [
  30. "android-ninja",
  31. "android-unity",
  32. "android-monolithic"
  33. ]
  34. },
  35. {
  36. "name": "android-unity",
  37. "displayName": "Android Unity",
  38. "description": "Android build which uses unity files",
  39. "toolchainFile": "${sourceDir}/cmake/Platform/Android/Toolchain_android.cmake",
  40. "binaryDir": "${sourceDir}/build/android",
  41. "inherits": [
  42. "unity",
  43. "host-windows-linux-mac"
  44. ]
  45. },
  46. {
  47. "name": "android-no-unity",
  48. "displayName": "Android without Unity",
  49. "description": "Android build which uses unity files",
  50. "toolchainFile": "${sourceDir}/cmake/Platform/Android/Toolchain_android.cmake",
  51. "binaryDir": "${sourceDir}/build/android_no_unity",
  52. "inherits": [
  53. "no-unity",
  54. "host-windows-linux-mac"
  55. ]
  56. },
  57. {
  58. "name": "android-non-monolithic",
  59. "displayName": "Android Non-Monolithic",
  60. "description": "Default configuration for non-monolithic builds",
  61. "toolchainFile": "${sourceDir}/cmake/Platform/Android/Toolchain_android.cmake",
  62. "inherits": [
  63. "non-monolithic",
  64. "host-windows-linux-mac"
  65. ]
  66. },
  67. {
  68. "name": "android-monolithic",
  69. "displayName": "Android Monolithic",
  70. "description": "Default configuration for monolithic builds",
  71. "toolchainFile": "${sourceDir}/cmake/Platform/Android/Toolchain_android.cmake",
  72. "binaryDir": "${sourceDir}/build/android_mono",
  73. "inherits": [
  74. "monolithic",
  75. "host-windows-linux-mac"
  76. ]
  77. },
  78. {
  79. "name": "android-ninja",
  80. "displayName": "Android Ninja",
  81. "description": "Configure Android using with the Ninja generator",
  82. "toolchainFile": "${sourceDir}/cmake/Platform/Android/Toolchain_android.cmake",
  83. "binaryDir": "${sourceDir}/build/android_ninja",
  84. "inherits": [
  85. "android-ninja-unity"
  86. ]
  87. },
  88. {
  89. "name": "android-ninja-unity",
  90. "displayName": "Android Ninja Unity",
  91. "description": "Configure Android with the Ninja generator + Unity Builds",
  92. "toolchainFile": "${sourceDir}/cmake/Platform/Android/Toolchain_android.cmake",
  93. "binaryDir": "${sourceDir}/build/android_ninja_unity",
  94. "inherits": [
  95. "ninja-multi-config",
  96. "android-unity"
  97. ]
  98. },
  99. {
  100. "name": "android-ninja-no-unity",
  101. "displayName": "Android Ninja without Unity",
  102. "description": "Configure Android with the Ninja Generator without unity builds",
  103. "toolchainFile": "${sourceDir}/cmake/Platform/Android/Toolchain_android.cmake",
  104. "binaryDir": "${sourceDir}/build/android_ninja_no_unity",
  105. "inherits": [
  106. "ninja-multi-config",
  107. "android-no-unity"
  108. ]
  109. }
  110. ],
  111. "buildPresets": [
  112. {
  113. "name": "android-default",
  114. "displayName": "Android",
  115. "description": "Builds all targets for Android",
  116. "configurePreset": "android-default",
  117. "inherits": [
  118. "host-windows-linux-mac"
  119. ]
  120. },
  121. {
  122. "name": "android-install",
  123. "displayName": "Android install",
  124. "description": "Builds the \"install\" target for Android, which builds all target and runs the CMake --install step",
  125. "configurePreset": "android-default",
  126. "inherits": [
  127. "install",
  128. "host-windows-linux-mac"
  129. ]
  130. },
  131. {
  132. "name": "android-mono-default",
  133. "displayName": "Android Monolithic",
  134. "description": "Builds all targets for Android in the monolithic permutation",
  135. "configurePreset": "android-mono-default",
  136. "inherits": [
  137. "host-windows-linux-mac"
  138. ]
  139. },
  140. {
  141. "name": "android-mono-install",
  142. "displayName": "Android Monolithic install",
  143. "description": "Builds the \"install\" target for android monolithic permutation, which builds all target and runs the CMake --install step",
  144. "configurePreset": "android-mono-default",
  145. "inherits": [
  146. "install",
  147. "host-windows-linux-mac"
  148. ]
  149. }
  150. ],
  151. "testPresets": []
  152. }