/************************************************************//** * * @file: milepost.c * @author: Martin Fouilleul * @date: 13/02/2021 * @revision: * *****************************************************************/ //--------------------------------------------------------------- // platform implementations //--------------------------------------------------------------- #include"platform.h" #include"platform/std_log.c" #if PLATFORM_WINDOWS #include"platform/win32_memory.c" #include"platform/win32_clock.c" #include"platform/win32_string_helpers.c" #include"platform/win32_path.c" #include"platform/win32_io.c" #include"platform/win32_thread.c" //TODO #elif PLATFORM_MACOS #include"platform/unix_memory.c" #include"platform/osx_clock.c" #include"platform/posix_io.c" #include"platform/posix_thread.c" /* #include"platform/unix_rng.c" #include"platform/posix_socket.c" */ #elif PLATFORM_LINUX #include"platform/unix_base_memory.c" #include"platform/linux_clock.c" #include"platform/posix_io.c" #include"platform/posix_thread.c" /* #include"platform/unix_rng.c" #include"platform/posix_socket.c" */ #else #error "Unsupported platform" #endif //--------------------------------------------------------------- // utilities implementations //--------------------------------------------------------------- #include"util/memory.c" #include"util/strings.c" #include"util/utf8.c" #include"util/hash.c" #include"util/ringbuffer.c" //--------------------------------------------------------------- // app/graphics layer //--------------------------------------------------------------- #if PLATFORM_WINDOWS #include"app/win32_app.c" #include"graphics/graphics_common.c" #include"graphics/graphics_surface.c" #if MG_COMPILE_GL || MG_COMPILE_GLES #include"graphics/gl_loader.c" #endif #if MG_COMPILE_GL #include"graphics/wgl_surface.c" #endif #if MG_COMPILE_CANVAS #include"graphics/gl_canvas.c" #endif #if MG_COMPILE_GLES #include"graphics/egl_surface.c" #endif #elif PLATFORM_MACOS //NOTE: macos application layer and graphics backends are defined in milepost.m #else #error "Unsupported platform" #endif #include"ui/input_state.c" #include"ui/ui.c"