Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

CMake Build Options

PastMoments edited this pageNov 3, 2025 ·18 revisions

raylib is configurable and can be built in a variety of ways. Following is a listing of available CMake options and values, extracted fromsrc/CMakeOptions.txt andsrc/config.h

You must setCUSTOMIZE_BUILD to ON in order for many of these options to apply.

TIP: You can use the curses UI provided byccmake(1) for interactively configuring raylib.

OptionDescriptionPossible Values (first is default)
USE_EXTERNAL_GLFWLink raylib against system GLFW instead of embedded oneOFFONIF_POSSIBLE
PLATFORMPlatform to build for.DesktopWebAndroidRaspberry PiSDL
OPENGL_VERSIONForce a specific OpenGL Version?OFF4.33.32.11.1ES 2.0ES 3.0
BUILD_EXAMPLESBuild examplesOFFON
Binary OptionDescriptionDefault Value
GLFW_BUILD_WAYLANDBuild the bundled GLFW with Wayland supportOFF
GLFW_BUILD_X11Build the bundled GLFW with X11 supportOFF
WITH_PICCompile static library as position-independent codeOFF
BUILD_SHARED_LIBSBuild raylib as a dynamic or static libraryOFF
INCLUDE_EVERYTHINGInclude all optional off-by-default formats in buildOFF
USE_AUDIOBuild raylib with audio moduleON
SUPPORT_MODULE_RSHAPES...ON
SUPPORT_MODULE_RTEXTURES...ON
SUPPORT_MODULE_RTEXTWARNING: It requires SUPPORT_MODULE_RTEXTURES to load sprite font texturesON
SUPPORT_MODULE_RMODELS...ON
SUPPORT_MODULE_RAUDIO...ON
SUPPORT_BUSY_WAIT_LOOPUse busy wait loop for timing sync instead of a high-resolution timerOFF
SUPPORT_CAMERA_SYSTEMProvide camera module (camera.h) with multiple predefined cameras: free, 1st/3rd person, orbitalON
SUPPORT_GESTURES_SYSTEMGestures module is included (gestures.h) to support gestures detection: tap, hold, swipe, dragON
SUPPORT_RPRAND_GENERATORpseudo-random numbers generator (rprand.h), based on Xoshiro128** and SplitMix64ON
SUPPORT_MOUSE_GESTURESMouse gestures are directly mapped like touches and processed by gestures systemON
SUPPORT_SSH_KEYBOARD_RPI...ON
SUPPORT_WINMM_HIGHRES_TIMER...ON
SUPPORT_PARTIALBUSY_WAIT_LOOP...ON
SUPPORT_GIF_RECORDINGAllow automatic gif recording of current screen pressing CTRL+F12, defined in KeyCallback()ON
SUPPORT_COMPRESSION_API...ON
SUPPORT_AUTOMATION_EVENTS...ON
SUPPORT_CUSTOM_FRAME_CONTROL...OFF
SUPPORT_CLIPBOARD_IMAGE...ON
SUPPORT_QUADS_DRAW_MODEUse QUADS instead of TRIANGLES for drawing when possible. Some lines-based shapes could still use linesON
SUPPORT_FILEFORMAT_PNGSupport loading PNG as texturesON
SUPPORT_FILEFORMAT_BMPSupport loading BMP as texturesOFF
SUPPORT_FILEFORMAT_TGASupport loading TGA as texturesOFF
SUPPORT_FILEFORMAT_JPGSupport loading JPG as texturesOFF
SUPPORT_FILEFORMAT_GIFSupport loading GIF as texturesON
SUPPORT_FILEFORMAT_QOISupport loading QOI as texturesON
SUPPORT_FILEFORMAT_PSDSupport loading PSD as texturesOFF
SUPPORT_FILEFORMAT_DDSSupport loading DDS as texturesON
SUPPORT_FILEFORMAT_HDRSupport loading HDR as texturesOFF
SUPPORT_FILEFORMAT_PICSupport loading PIC as texturesOFF
SUPPORT_FILEFORMAT_KTXSupport loading KTX as texturesOFF
SUPPORT_FILEFORMAT_ASTCSupport loading ASTC as texturesOFF
SUPPORT_FILEFORMAT_PKMSupport loading PKM as texturesOFF
SUPPORT_FILEFORMAT_PVRSupport loading PVR as texturesOFF
SUPPORT_IMAGE_EXPORT...ON
SUPPORT_IMAGE_GENERATIONSupport procedural image generation functionality (gradient, spot, perlin-noise, cellular)ON
SUPPORT_IMAGE_MANIPULATIONSupport multiple image editing functions to scale, adjust colors, flip, draw on images, crop... If not defined only three image editing functions supported: ImageFormat(), ImageAlphaMask(), ImageToPOT()ON
SUPPORT_DEFAULT_FONTDefault font is loaded on window initialization to be available for the user to render simple text. If enabled, uses external module functions to load default raylib font (module: text)ON
SUPPORT_FILEFORMAT_TTFSupport loading fonts in TTF formatON
SUPPORT_FILEFORMAT_FNTSupport loading fonts in FNT formatON
SUPPORT_FILEFORMAT_BDFSupport loading fonts in BDF formatOFF
SUPPORT_TEXT_MANIPULATION...ON
SUPPORT_FONT_ATLAS_WHITE_RECDraw rectangle shapes using font texture white character instead of default white texture. Allows drawing rectangles and text with a single draw call, very useful for GUI systems!ON
SUPPORT_FILEFORMAT_OBJSupport loading OBJ file formatON
SUPPORT_FILEFORMAT_MTLSupport loading MTL file formatON
SUPPORT_FILEFORMAT_IQMSupport loading IQM file formatON
SUPPORT_FILEFORMAT_GLTFSupport loading GLTF file formatON
SUPPORT_FILEFORMAT_VOXSupport loading VOX file formatON
SUPPORT_FILEFORMAT_M3DSupport loading M3D file formatON
SUPPORT_MESH_GENERATIONSupport procedural mesh generation functions, uses external par_shapes.h library. NOTE: Some generated meshes DO NOT include generated texture coordinatesON
SUPPORT_FILEFORMAT_WAVSupport loading WAV for soundON
SUPPORT_FILEFORMAT_OGGSupport loading OGG for soundON
SUPPORT_FILEFORMAT_MP3Support loading MP3 for soundON
SUPPORT_FILEFORMAT_QOASupport loading QOA for soundON
SUPPORT_FILEFORMAT_FLACSupport loading FLAC for soundOFF
SUPPORT_FILEFORMAT_XMSupport loading XM for soundON
SUPPORT_FILEFORMAT_MODSupport loading MOD for soundON
SUPPORT_STANDARD_FILEIOStandard file io library (stdio.h) included. Warning: If off, raylib can't read filesON
SUPPORT_SAVE_PNGSupport saving image data in PNG file formatON
SUPPORT_SAVE_BMPSupport saving image data in BMP file formatOFF
SUPPORT_TRACELOGShow TraceLog() output messages. NOTE: By default LOG_DEBUG traces not shownON
SUPPORT_SCREEN_CAPTUREAllow automatic screen capture of current screen pressing F12, defined in KeyCallback()ON

www.raylib.com  |  itch.io  |  GitHub  |  Discord  |  YouTube

Library Design

Development Platforms

IDE Configurations

Misc Help

Wiki History

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp