選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

110 行
5.4 KiB

  1. # Adding compile definitions
  2. target_compile_definitions("raylib" PUBLIC "${PLATFORM_CPP}")
  3. target_compile_definitions("raylib" PUBLIC "${GRAPHICS}")
  4. function(define_if target variable)
  5. if (${${variable}})
  6. target_compile_definitions(${target} PUBLIC "${variable}")
  7. endif ()
  8. endfunction()
  9. if (${CUSTOMIZE_BUILD})
  10. target_compile_definitions("raylib" PUBLIC EXTERNAL_CONFIG_FLAGS)
  11. define_if("raylib" SUPPORT_CAMERA_SYSTEM)
  12. define_if("raylib" SUPPORT_GESTURES_SYSTEM)
  13. define_if("raylib" SUPPORT_MOUSE_GESTURES)
  14. define_if("raylib" SUPPORT_SSH_KEYBOARD_RPI)
  15. define_if("raylib" SUPPORT_BUSY_WAIT_LOOP)
  16. define_if("raylib" SUPPORT_EVENTS_WAITING)
  17. define_if("raylib" SUPPORT_SCREEN_CAPTURE)
  18. define_if("raylib" SUPPORT_GIF_RECORDING)
  19. define_if("raylib" SUPPORT_HIGH_DPI)
  20. define_if("raylib" SUPPORT_COMPRESSION_API)
  21. define_if("raylib" SUPPORT_DATA_STORAGE)
  22. define_if("raylib" SUPPORT_VR_SIMULATOR)
  23. define_if("raylib" SUPPORT_FONT_TEXTURE)
  24. define_if("raylib" SUPPORT_QUADS_DRAW_MODE)
  25. define_if("raylib" SUPPORT_FILEFORMAT_PNG)
  26. define_if("raylib" SUPPORT_FILEFORMAT_DDS)
  27. define_if("raylib" SUPPORT_FILEFORMAT_HDR)
  28. define_if("raylib" SUPPORT_FILEFORMAT_KTX)
  29. define_if("raylib" SUPPORT_FILEFORMAT_ASTC)
  30. define_if("raylib" SUPPORT_FILEFORMAT_BMP)
  31. define_if("raylib" SUPPORT_FILEFORMAT_TGA)
  32. define_if("raylib" SUPPORT_FILEFORMAT_JPG)
  33. define_if("raylib" SUPPORT_FILEFORMAT_GIF)
  34. define_if("raylib" SUPPORT_FILEFORMAT_PSD)
  35. define_if("raylib" SUPPORT_FILEFORMAT_PKM)
  36. define_if("raylib" SUPPORT_FILEFORMAT_PVR)
  37. define_if("raylib" ORT_IMAGE_EXPORT)
  38. define_if("raylib" SUPPORT_IMAGE_MANIPULATION)
  39. define_if("raylib" SUPPORT_IMAGE_GENERATION)
  40. define_if("raylib" SUPPORT_DEFAULT_FONT)
  41. define_if("raylib" SUPPORT_FILEFORMAT_FNT)
  42. define_if("raylib" SUPPORT_FILEFORMAT_TTF)
  43. define_if("raylib" SUPPORT_TEXT_MANIPULATION)
  44. define_if("raylib" SUPPORT_FILEFORMAT_OBJ)
  45. define_if("raylib" SUPPORT_FILEFORMAT_MTL)
  46. define_if("raylib" SUPPORT_FILEFORMAT_IQM)
  47. define_if("raylib" SUPPORT_FILEFORMAT_GLTF)
  48. define_if("raylib" SUPPORT_MESH_GENERATION)
  49. define_if("raylib" SUPPORT_FILEFORMAT_WAV)
  50. define_if("raylib" SUPPORT_FILEFORMAT_OGG)
  51. define_if("raylib" SUPPORT_FILEFORMAT_XM)
  52. define_if("raylib" SUPPORT_FILEFORMAT_MOD)
  53. define_if("raylib" SUPPORT_FILEFORMAT_FLAC)
  54. define_if("raylib" SUPPORT_FILEFORMAT_MP3)
  55. define_if("raylib" SUPPORT_STANDARD_FILEIO)
  56. define_if("raylib" SUPPORT_TRACELOG)
  57. define_if("raylib" SUPPORT_COMPRESSION_API)
  58. if (UNIX AND NOT APPLE)
  59. target_compile_definitions("raylib" PUBLIC "MAX_FILEPATH_LENGTH=4096")
  60. else ()
  61. target_compile_definitions("raylib" PUBLIC "MAX_FILEPATH_LENGTH=512")
  62. endif ()
  63. target_compile_definitions("raylib" PUBLIC "MAX_GAMEPADS=4")
  64. target_compile_definitions("raylib" PUBLIC "MAX_GAMEPAD_AXIS=8")
  65. target_compile_definitions("raylib" PUBLIC "MAX_GAMEPAD_BUTTONS=32")
  66. target_compile_definitions("raylib" PUBLIC "MAX_TOUCH_POINTS=10")
  67. target_compile_definitions("raylib" PUBLIC "MAX_KEY_PRESSED_QUEUE=16")
  68. target_compile_definitions("raylib" PUBLIC "STORAGE_DATA_FILE=\"storage.data\"")
  69. target_compile_definitions("raylib" PUBLIC "MAX_KEY_PRESSED_QUEUE=16")
  70. target_compile_definitions("raylib" PUBLIC "MAX_DECOMPRESSION_SIZE=64")
  71. if (${GRAPHICS} MATCHES "GRAPHICS_API_OPENGL_33" OR ${GRAPHICS} MATCHES "GRAPHICS_API_OPENGL_11")
  72. target_compile_definitions("raylib" PUBLIC "DEFAULT_BATCH_BUFFER_ELEMENTS=8192")
  73. elseif (${GRAPHICS} MATCHES "GRAPHICS_API_OPENGL_ES2")
  74. target_compile_definitions("raylib" PUBLIC "DEFAULT_BATCH_BUFFER_ELEMENTS=2048")
  75. endif ()
  76. target_compile_definitions("raylib" PUBLIC "DEFAULT_BATCH_DRAWCALLS=256")
  77. target_compile_definitions("raylib" PUBLIC "MAX_MATRIX_STACK_SIZE=32")
  78. target_compile_definitions("raylib" PUBLIC "MAX_SHADER_LOCATIONS=32")
  79. target_compile_definitions("raylib" PUBLIC "MAX_MATERIAL_MAPS=12")
  80. target_compile_definitions("raylib" PUBLIC "RL_CULL_DISTANCE_NEAR=0.01")
  81. target_compile_definitions("raylib" PUBLIC "RL_CULL_DISTANCE_FAR=1000.0")
  82. target_compile_definitions("raylib" PUBLIC "DEFAULT_SHADER_ATTRIB_NAME_POSITION=\"vertexPosition\"")
  83. target_compile_definitions("raylib" PUBLIC "DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD=\"vertexTexCoord\"")
  84. target_compile_definitions("raylib" PUBLIC "DEFAULT_SHADER_ATTRIB_NAME_NORMAL=\"vertexNormal\"")
  85. target_compile_definitions("raylib" PUBLIC "DEFAULT_SHADER_ATTRIB_NAME_COLOR=\"vertexColor\"")
  86. target_compile_definitions("raylib" PUBLIC "DEFAULT_SHADER_ATTRIB_NAME_TANGENT=\"vertexTangent\"")
  87. target_compile_definitions("raylib" PUBLIC "DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD2=\"vertexTexCoord2\"")
  88. target_compile_definitions("raylib" PUBLIC "MAX_TEXT_BUFFER_LENGTH=1024")
  89. target_compile_definitions("raylib" PUBLIC "MAX_TEXT_UNICODE_CHARS=512")
  90. target_compile_definitions("raylib" PUBLIC "MAX_TEXTSPLIT_COUNT=128")
  91. target_compile_definitions("raylib" PUBLIC "AUDIO_DEVICE_FORMAT=ma_format_f32")
  92. target_compile_definitions("raylib" PUBLIC "AUDIO_DEVICE_CHANNELS=2")
  93. target_compile_definitions("raylib" PUBLIC "AUDIO_DEVICE_SAMPLE_RATE=44100")
  94. target_compile_definitions("raylib" PUBLIC "DEFAULT_AUDIO_BUFFER_SIZE=4096")
  95. target_compile_definitions("raylib" PUBLIC "MAX_TRACELOG_MSG_LENGTH=128")
  96. target_compile_definitions("raylib" PUBLIC "MAX_UWP_MESSAGES=512")
  97. endif ()