koffi 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ChangeLog.md +6 -0
- package/build/qemu/2.1.2/koffi_darwin_arm64.tar.gz +0 -0
- package/build/qemu/2.1.2/koffi_darwin_x64.tar.gz +0 -0
- package/build/qemu/2.1.2/koffi_freebsd_arm64.tar.gz +0 -0
- package/build/qemu/2.1.2/koffi_freebsd_ia32.tar.gz +0 -0
- package/build/qemu/2.1.2/koffi_freebsd_x64.tar.gz +0 -0
- package/build/qemu/2.1.2/koffi_linux_arm32hf.tar.gz +0 -0
- package/build/qemu/2.1.2/koffi_linux_arm64.tar.gz +0 -0
- package/build/qemu/2.1.2/koffi_linux_ia32.tar.gz +0 -0
- package/build/qemu/2.1.2/koffi_linux_riscv64hf64.tar.gz +0 -0
- package/build/qemu/2.1.2/koffi_linux_x64.tar.gz +0 -0
- package/build/qemu/2.1.2/koffi_openbsd_ia32.tar.gz +0 -0
- package/build/qemu/2.1.2/koffi_openbsd_x64.tar.gz +0 -0
- package/build/qemu/2.1.2/koffi_win32_arm64.tar.gz +0 -0
- package/build/qemu/2.1.2/koffi_win32_ia32.tar.gz +0 -0
- package/build/qemu/2.1.2/koffi_win32_x64.tar.gz +0 -0
- package/doc/templates/badges.html +3 -0
- package/package.json +2 -2
- package/src/abi_arm64.cc +35 -1
- package/src/abi_x64_win.cc +2 -8
- package/src/abi_x86.cc +1 -7
- package/src/ffi.hh +1 -1
- package/src/util.hh +6 -0
- package/test/raylib.js +37 -5
- package/vendor/libcc/libcc.cc +430 -196
- package/vendor/libcc/libcc.hh +1417 -1283
- package/vendor/raylib/BINDINGS.md +87 -70
- package/vendor/raylib/CHANGELOG +263 -50
- package/vendor/raylib/CMakeLists.txt +12 -0
- package/vendor/raylib/CMakeOptions.txt +8 -1
- package/vendor/raylib/CONVENTIONS.md +2 -3
- package/vendor/raylib/FAQ.md +137 -0
- package/vendor/raylib/HISTORY.md +62 -29
- package/vendor/raylib/LICENSE +1 -1
- package/vendor/raylib/README.md +22 -17
- package/vendor/raylib/ROADMAP.md +8 -7
- package/vendor/raylib/cmake/CompileDefinitions.cmake +19 -15
- package/vendor/raylib/cmake/GlfwImport.cmake +2 -0
- package/vendor/raylib/cmake/LibraryConfigurations.cmake +22 -16
- package/vendor/raylib/cmake/raylib-config.cmake +52 -49
- package/vendor/raylib/examples/CMakeLists.txt +14 -9
- package/vendor/raylib/examples/Makefile +112 -125
- package/vendor/raylib/examples/Makefile.Android +1 -1
- package/vendor/raylib/examples/Makefile.Web +145 -158
- package/vendor/raylib/examples/README.md +141 -141
- package/vendor/raylib/examples/audio/audio_module_playing.c +9 -4
- package/vendor/raylib/examples/audio/audio_multichannel_sound.c +8 -3
- package/vendor/raylib/examples/audio/audio_music_stream.c +16 -11
- package/vendor/raylib/examples/audio/audio_raw_stream.c +57 -9
- package/vendor/raylib/examples/audio/audio_sound_loading.c +8 -3
- package/vendor/raylib/examples/audio/audio_stream_effects.c +179 -0
- package/vendor/raylib/examples/audio/audio_stream_effects.png +0 -0
- package/vendor/raylib/examples/build.zig +17 -6
- package/vendor/raylib/examples/core/core_2d_camera.c +8 -4
- package/vendor/raylib/examples/core/core_2d_camera_mouse_zoom.c +105 -0
- package/vendor/raylib/examples/core/core_2d_camera_mouse_zoom.png +0 -0
- package/vendor/raylib/examples/core/core_2d_camera_platformer.c +11 -6
- package/vendor/raylib/examples/core/core_3d_camera_first_person.c +9 -4
- package/vendor/raylib/examples/core/core_3d_camera_free.c +9 -4
- package/vendor/raylib/examples/core/core_3d_camera_mode.c +8 -3
- package/vendor/raylib/examples/core/core_3d_picking.c +9 -4
- package/vendor/raylib/examples/core/core_basic_screen_manager.c +9 -7
- package/vendor/raylib/examples/core/core_basic_window.c +8 -3
- package/vendor/raylib/examples/core/core_basic_window_web.c +13 -11
- package/vendor/raylib/examples/core/core_custom_frame_control.c +9 -4
- package/vendor/raylib/examples/core/core_custom_logging.c +12 -8
- package/vendor/raylib/examples/core/core_drop_files.c +20 -12
- package/vendor/raylib/examples/core/core_input_gamepad.c +20 -15
- package/vendor/raylib/examples/core/core_input_gestures.c +19 -15
- package/vendor/raylib/examples/core/core_input_keys.c +8 -3
- package/vendor/raylib/examples/core/core_input_mouse.c +8 -3
- package/vendor/raylib/examples/core/core_input_mouse_wheel.c +8 -3
- package/vendor/raylib/examples/core/core_input_multitouch.c +8 -3
- package/vendor/raylib/examples/core/core_loading_thread.c +10 -6
- package/vendor/raylib/examples/core/core_random_values.c +8 -3
- package/vendor/raylib/examples/core/core_scissor_test.c +8 -3
- package/vendor/raylib/examples/core/core_smooth_pixelperfect.c +9 -4
- package/vendor/raylib/examples/core/core_split_screen.c +8 -3
- package/vendor/raylib/examples/core/core_storage_values.c +109 -3
- package/vendor/raylib/examples/core/core_vr_simulator.c +15 -7
- package/vendor/raylib/examples/core/core_window_flags.c +8 -3
- package/vendor/raylib/examples/core/core_window_letterbox.c +13 -18
- package/vendor/raylib/examples/core/core_window_should_close.c +77 -0
- package/vendor/raylib/examples/core/core_window_should_close.png +0 -0
- package/vendor/raylib/examples/core/core_world_screen.c +9 -4
- package/vendor/raylib/examples/examples_template.c +8 -3
- package/vendor/raylib/examples/models/models_animation.c +11 -7
- package/vendor/raylib/examples/models/models_billboard.c +9 -4
- package/vendor/raylib/examples/models/models_box_collisions.c +8 -3
- package/vendor/raylib/examples/models/models_cubicmap.c +9 -4
- package/vendor/raylib/examples/models/models_first_person_maze.c +9 -4
- package/vendor/raylib/examples/models/models_geometric_shapes.c +8 -3
- package/vendor/raylib/examples/models/models_heightmap.c +9 -4
- package/vendor/raylib/examples/models/models_loading.c +21 -17
- package/vendor/raylib/examples/models/models_loading_gltf.c +15 -41
- package/vendor/raylib/examples/models/models_loading_vox.c +9 -4
- package/vendor/raylib/examples/models/models_mesh_generation.c +71 -58
- package/vendor/raylib/examples/models/models_mesh_picking.c +25 -7
- package/vendor/raylib/examples/models/models_orthographic_projection.c +8 -5
- package/vendor/raylib/examples/models/models_rlgl_solar_system.c +6 -4
- package/vendor/raylib/examples/models/models_skybox.c +16 -12
- package/vendor/raylib/examples/models/models_waving_cubes.c +9 -4
- package/vendor/raylib/examples/models/models_yaw_pitch_roll.c +12 -7
- package/vendor/raylib/examples/models/resources/LICENSE.md +9 -10
- package/vendor/raylib/examples/models/resources/models/gltf/LICENSE +2 -23
- package/vendor/raylib/examples/models/resources/models/gltf/{raylib_32x32.glb → raylib_logo_3d.glb} +0 -0
- package/vendor/raylib/examples/models/resources/models/gltf/robot.blend +0 -0
- package/vendor/raylib/examples/models/resources/models/gltf/robot.glb +0 -0
- package/vendor/raylib/examples/others/easings_testbed.c +10 -8
- package/vendor/raylib/examples/others/easings_testbed.png +0 -0
- package/vendor/raylib/examples/others/embedded_files_loading.c +10 -5
- package/vendor/raylib/examples/others/embedded_files_loading.png +0 -0
- package/vendor/raylib/examples/others/raylib_opengl_interop.c +10 -6
- package/vendor/raylib/{src/extras/easings.h → examples/others/reasings.h} +38 -38
- package/vendor/raylib/examples/others/rlgl_compute_shader.c +21 -20
- package/vendor/raylib/examples/others/rlgl_compute_shader.png +0 -0
- package/vendor/raylib/examples/others/rlgl_standalone.c +4 -4
- package/vendor/raylib/examples/others/rlgl_standalone.png +0 -0
- package/vendor/raylib/examples/raylib_compile_execute.bat +2 -2
- package/vendor/raylib/examples/shaders/resources/shaders/glsl330/lighting.fs +1 -1
- package/vendor/raylib/examples/shaders/resources/shaders/glsl330/{base_lighting_instanced.vs → lighting_instancing.vs} +2 -2
- package/vendor/raylib/examples/shaders/rlights.h +14 -27
- package/vendor/raylib/examples/shaders/shaders_basic_lighting.c +24 -26
- package/vendor/raylib/examples/shaders/shaders_custom_uniform.c +10 -5
- package/vendor/raylib/examples/shaders/shaders_eratosthenes.c +13 -8
- package/vendor/raylib/examples/shaders/shaders_fog.c +8 -12
- package/vendor/raylib/examples/shaders/shaders_hot_reloading.c +10 -5
- package/vendor/raylib/examples/shaders/shaders_julia_set.c +9 -4
- package/vendor/raylib/examples/shaders/shaders_mesh_instancing.c +45 -119
- package/vendor/raylib/examples/shaders/shaders_model_shader.c +10 -5
- package/vendor/raylib/examples/shaders/shaders_multi_sample2d.c +8 -3
- package/vendor/raylib/examples/shaders/shaders_palette_switch.c +8 -3
- package/vendor/raylib/examples/shaders/shaders_postprocessing.c +9 -4
- package/vendor/raylib/examples/shaders/shaders_raymarching.c +14 -11
- package/vendor/raylib/examples/shaders/shaders_shapes_textures.c +8 -3
- package/vendor/raylib/examples/shaders/shaders_simple_mask.c +10 -5
- package/vendor/raylib/examples/shaders/shaders_spotlight.c +10 -6
- package/vendor/raylib/examples/shaders/shaders_texture_drawing.c +9 -4
- package/vendor/raylib/examples/shaders/shaders_texture_outline.c +8 -3
- package/vendor/raylib/examples/shaders/shaders_texture_waves.c +8 -3
- package/vendor/raylib/{src/extras → examples/shapes}/raygui.h +1290 -1141
- package/vendor/raylib/examples/{others/easings.h → shapes/reasings.h} +40 -40
- package/vendor/raylib/examples/shapes/shapes_basic_shapes.c +8 -3
- package/vendor/raylib/examples/shapes/shapes_bouncing_ball.c +8 -3
- package/vendor/raylib/examples/shapes/shapes_collision_area.c +10 -4
- package/vendor/raylib/examples/shapes/shapes_colors_palette.c +8 -3
- package/vendor/raylib/examples/shapes/shapes_draw_circle_sector.c +9 -4
- package/vendor/raylib/examples/shapes/shapes_draw_rectangle_rounded.c +9 -4
- package/vendor/raylib/examples/shapes/shapes_draw_ring.c +10 -6
- package/vendor/raylib/examples/shapes/shapes_easings_ball_anim.c +9 -4
- package/vendor/raylib/examples/shapes/shapes_easings_box_anim.c +9 -4
- package/vendor/raylib/examples/shapes/shapes_easings_rectangle_array.c +9 -4
- package/vendor/raylib/examples/shapes/shapes_following_eyes.c +8 -3
- package/vendor/raylib/examples/shapes/shapes_lines_bezier.c +8 -3
- package/vendor/raylib/examples/shapes/shapes_logo_raylib.c +8 -3
- package/vendor/raylib/examples/shapes/shapes_logo_raylib_anim.c +8 -3
- package/vendor/raylib/examples/shapes/shapes_rectangle_scaling.c +14 -5
- package/vendor/raylib/examples/shapes/shapes_top_down_lights.c +355 -0
- package/vendor/raylib/examples/shapes/shapes_top_down_lights.png +0 -0
- package/vendor/raylib/examples/text/resources/DotGothic16-Regular.ttf +0 -0
- package/vendor/raylib/examples/text/resources/DotGothic16-Regular_OFL.txt +93 -0
- package/vendor/raylib/examples/text/resources/LICENSE.md +1 -1
- package/vendor/raylib/examples/text/text_codepoints_loading.c +138 -0
- package/vendor/raylib/examples/text/text_codepoints_loading.png +0 -0
- package/vendor/raylib/examples/text/text_draw_3d.c +42 -33
- package/vendor/raylib/examples/text/text_font_filters.c +14 -11
- package/vendor/raylib/examples/text/text_font_loading.c +9 -4
- package/vendor/raylib/examples/text/text_font_sdf.c +9 -4
- package/vendor/raylib/examples/text/text_font_spritefont.c +12 -6
- package/vendor/raylib/examples/text/text_format_text.c +8 -3
- package/vendor/raylib/examples/text/text_input_box.c +8 -3
- package/vendor/raylib/examples/text/text_raylib_fonts.c +9 -4
- package/vendor/raylib/examples/text/text_rectangle_bounds.c +9 -5
- package/vendor/raylib/examples/text/text_unicode.c +9 -7
- package/vendor/raylib/examples/text/text_writing_anim.c +8 -3
- package/vendor/raylib/examples/textures/resources/scarfy_run.gif +0 -0
- package/vendor/raylib/examples/textures/textures_background_scrolling.c +8 -3
- package/vendor/raylib/examples/textures/textures_blend_modes.c +8 -3
- package/vendor/raylib/examples/textures/textures_bunnymark.c +8 -3
- package/vendor/raylib/examples/textures/textures_draw_tiled.c +14 -10
- package/vendor/raylib/examples/textures/textures_fog_of_war.c +154 -0
- package/vendor/raylib/examples/textures/textures_fog_of_war.png +0 -0
- package/vendor/raylib/examples/textures/textures_gif_player.c +121 -0
- package/vendor/raylib/examples/textures/textures_gif_player.png +0 -0
- package/vendor/raylib/examples/textures/textures_image_drawing.c +8 -3
- package/vendor/raylib/examples/textures/textures_image_generation.c +8 -3
- package/vendor/raylib/examples/textures/textures_image_loading.c +8 -3
- package/vendor/raylib/examples/textures/textures_image_processing.c +8 -3
- package/vendor/raylib/examples/textures/textures_image_text.c +8 -3
- package/vendor/raylib/examples/textures/textures_logo_raylib.c +8 -3
- package/vendor/raylib/examples/textures/textures_mouse_painting.c +9 -4
- package/vendor/raylib/examples/textures/textures_npatch_drawing.c +8 -3
- package/vendor/raylib/examples/textures/textures_particles_blending.c +8 -3
- package/vendor/raylib/examples/textures/textures_polygon.c +9 -5
- package/vendor/raylib/examples/textures/textures_raw_data.c +8 -3
- package/vendor/raylib/examples/textures/{textures_rectangle.c → textures_sprite_anim.c} +11 -5
- package/vendor/raylib/examples/textures/{textures_rectangle.png → textures_sprite_anim.png} +0 -0
- package/vendor/raylib/examples/textures/textures_sprite_button.c +8 -3
- package/vendor/raylib/examples/textures/textures_sprite_explosion.c +8 -3
- package/vendor/raylib/examples/textures/textures_srcrec_dstrec.c +8 -3
- package/vendor/raylib/examples/textures/textures_to_image.c +8 -3
- package/vendor/raylib/parser/LICENSE +1 -1
- package/vendor/raylib/parser/Makefile +28 -0
- package/vendor/raylib/parser/README.md +49 -5
- package/vendor/raylib/parser/output/raylib_api.json +10717 -0
- package/vendor/raylib/parser/output/raylib_api.lua +7435 -0
- package/vendor/raylib/parser/{raylib_api.txt → output/raylib_api.txt} +1371 -824
- package/vendor/raylib/parser/{raylib_api.xml → output/raylib_api.xml} +827 -595
- package/vendor/raylib/parser/raylib_parser.c +1174 -196
- package/vendor/raylib/projects/4coder/Makefile +2 -4
- package/vendor/raylib/projects/4coder/main.c +0 -1
- package/vendor/raylib/projects/CMake/CMakeLists.txt +13 -16
- package/vendor/raylib/projects/CMake/README.md +27 -0
- package/vendor/raylib/projects/CMake/core_basic_window.c +52 -31
- package/vendor/raylib/projects/CodeBlocks/README.md +4 -4
- package/vendor/raylib/projects/Geany/core_basic_window.c +1 -1
- package/vendor/raylib/projects/Notepad++/c_raylib.xml +168 -128
- package/vendor/raylib/projects/Notepad++/npes_saved_tcc.txt +0 -0
- package/vendor/raylib/projects/Notepad++/npes_saved_w64devkit.txt +0 -0
- package/vendor/raylib/projects/Notepad++/npes_saved_zig.txt +0 -0
- package/vendor/raylib/projects/Notepad++/raylib_npp_parser/raylib_npp.xml +168 -84
- package/vendor/raylib/projects/Notepad++/raylib_npp_parser/raylib_to_parse.h +67 -51
- package/vendor/raylib/projects/README.md +1 -1
- package/vendor/raylib/projects/VSCode/.vscode/c_cpp_properties.json +1 -1
- package/vendor/raylib/projects/VSCode/Makefile +8 -11
- package/vendor/raylib/projects/VSCode/main.c +53 -26
- package/vendor/raylib/projects/VSCode/resources/LICENSE +1 -0
- package/vendor/raylib/projects/scripts/build-linux.sh +6 -6
- package/vendor/raylib/projects/scripts/build-osx.sh +6 -6
- package/vendor/raylib/projects/scripts/build-rpi.sh +6 -6
- package/vendor/raylib/projects/scripts/build-windows.bat +2 -2
- package/vendor/raylib/src/CMakeLists.txt +6 -7
- package/vendor/raylib/src/Makefile +209 -103
- package/vendor/raylib/src/build.zig +56 -20
- package/vendor/raylib/src/config.h +32 -27
- package/vendor/raylib/src/external/cgltf.h +342 -104
- package/vendor/raylib/src/external/dr_wav.h +487 -225
- package/vendor/raylib/src/external/glfw/src/posix_time.c +1 -3
- package/vendor/raylib/src/external/glfw/src/wl_init.c +1 -3
- package/vendor/raylib/src/external/jar_xm.h +2 -1
- package/vendor/raylib/src/external/miniaudio.h +62251 -42061
- package/vendor/raylib/src/external/qoi.h +671 -0
- package/vendor/raylib/src/external/stb_vorbis.h +1 -1
- package/vendor/raylib/src/external/vox_loader.h +30 -25
- package/vendor/raylib/src/minshell.html +82 -0
- package/vendor/raylib/src/raudio.c +359 -201
- package/vendor/raylib/src/raylib.dll.rc +5 -5
- package/vendor/raylib/src/raylib.dll.rc.data +0 -0
- package/vendor/raylib/src/raylib.h +95 -63
- package/vendor/raylib/src/raylib.rc +5 -5
- package/vendor/raylib/src/raylib.rc.data +0 -0
- package/vendor/raylib/src/raymath.h +391 -133
- package/vendor/raylib/src/rcamera.h +32 -41
- package/vendor/raylib/src/rcore.c +775 -471
- package/vendor/raylib/src/rgestures.h +5 -5
- package/vendor/raylib/src/rglfw.c +3 -3
- package/vendor/raylib/src/rlgl.h +184 -144
- package/vendor/raylib/src/rmodels.c +207 -144
- package/vendor/raylib/src/rshapes.c +105 -47
- package/vendor/raylib/src/rtext.c +255 -38
- package/vendor/raylib/src/rtextures.c +167 -71
- package/vendor/raylib/src/shell.html +63 -63
- package/vendor/raylib/src/utils.c +49 -3
- package/vendor/raylib/src/utils.h +3 -3
- package/build/qemu/2.1.1/koffi_darwin_arm64.tar.gz +0 -0
- package/build/qemu/2.1.1/koffi_darwin_x64.tar.gz +0 -0
- package/build/qemu/2.1.1/koffi_freebsd_arm64.tar.gz +0 -0
- package/build/qemu/2.1.1/koffi_freebsd_ia32.tar.gz +0 -0
- package/build/qemu/2.1.1/koffi_freebsd_x64.tar.gz +0 -0
- package/build/qemu/2.1.1/koffi_linux_arm32hf.tar.gz +0 -0
- package/build/qemu/2.1.1/koffi_linux_arm64.tar.gz +0 -0
- package/build/qemu/2.1.1/koffi_linux_ia32.tar.gz +0 -0
- package/build/qemu/2.1.1/koffi_linux_riscv64hf64.tar.gz +0 -0
- package/build/qemu/2.1.1/koffi_linux_x64.tar.gz +0 -0
- package/build/qemu/2.1.1/koffi_openbsd_ia32.tar.gz +0 -0
- package/build/qemu/2.1.1/koffi_openbsd_x64.tar.gz +0 -0
- package/build/qemu/2.1.1/koffi_win32_arm64.tar.gz +0 -0
- package/build/qemu/2.1.1/koffi_win32_ia32.tar.gz +0 -0
- package/build/qemu/2.1.1/koffi_win32_x64.tar.gz +0 -0
- package/vendor/raylib/CONTRIBUTORS.md +0 -63
- package/vendor/raylib/SPONSORS.md +0 -68
- package/vendor/raylib/examples/core/core_quat_conversion.c +0 -132
- package/vendor/raylib/examples/core/core_quat_conversion.png +0 -0
- package/vendor/raylib/examples/models/resources/models/gltf/AnimatedMorphCube.glb +0 -0
- package/vendor/raylib/examples/models/resources/models/gltf/AnimatedTriangle.gltf +0 -118
- package/vendor/raylib/examples/models/resources/models/gltf/BoxAnimated.glb +0 -0
- package/vendor/raylib/examples/models/resources/models/gltf/girl.glb +0 -0
- package/vendor/raylib/examples/models/resources/models/gltf/rigged_figure.glb +0 -0
- package/vendor/raylib/examples/models/resources/models/gltf/vertex_colored_object.glb +0 -0
- package/vendor/raylib/examples/models/resources/models/iqm/vertex_colored_object.iqm +0 -0
- package/vendor/raylib/examples/models/rlights.h +0 -183
- package/vendor/raylib/examples/others/raudio_standalone.c +0 -152
- package/vendor/raylib/examples/others/resources/audio/country.mp3 +0 -0
- package/vendor/raylib/examples/others/resources/audio/target.ogg +0 -0
- package/vendor/raylib/examples/others/resources/audio/weird.wav +0 -0
- package/vendor/raylib/examples/physics/physics_demo.c +0 -128
- package/vendor/raylib/examples/physics/physics_demo.png +0 -0
- package/vendor/raylib/examples/physics/physics_friction.c +0 -142
- package/vendor/raylib/examples/physics/physics_friction.png +0 -0
- package/vendor/raylib/examples/physics/physics_movement.c +0 -128
- package/vendor/raylib/examples/physics/physics_movement.png +0 -0
- package/vendor/raylib/examples/physics/physics_restitution.c +0 -129
- package/vendor/raylib/examples/physics/physics_restitution.png +0 -0
- package/vendor/raylib/examples/physics/physics_shatter.c +0 -111
- package/vendor/raylib/examples/physics/physics_shatter.png +0 -0
- package/vendor/raylib/parser/raylib_api.json +0 -6668
- package/vendor/raylib/projects/VS2019/raylib/raylib.rc +0 -0
- package/vendor/raylib/projects/VS2019/raylib/resource.h +0 -14
- package/vendor/raylib/src/extras/physac.h +0 -1977
- package/vendor/raylib/src/extras/rmem.h +0 -751
- package/vendor/raylib/src/raudio.h +0 -198
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
#
|
|
3
3
|
# raylib makefile for Desktop platforms, Raspberry Pi, Android and HTML5
|
|
4
4
|
#
|
|
5
|
-
# Copyright (c) 2013-
|
|
5
|
+
# Copyright (c) 2013-2022 Ramon Santamaria (@raysan5)
|
|
6
6
|
#
|
|
7
7
|
# This software is provided "as-is", without any express or implied warranty. In no event
|
|
8
8
|
# will the authors be held liable for any damages arising from the use of this software.
|
|
@@ -23,97 +23,94 @@
|
|
|
23
23
|
|
|
24
24
|
.PHONY: all clean
|
|
25
25
|
|
|
26
|
+
# Define required environment variables
|
|
27
|
+
#------------------------------------------------------------------------------------------------
|
|
28
|
+
# Define target platform: PLATFORM_DESKTOP, PLATFORM_RPI, PLATFORM_DRM, PLATFORM_ANDROID, PLATFORM_WEB
|
|
29
|
+
PLATFORM ?= PLATFORM_DESKTOP
|
|
30
|
+
|
|
26
31
|
# Define required raylib variables
|
|
27
|
-
PROJECT_NAME
|
|
28
|
-
RAYLIB_VERSION
|
|
29
|
-
RAYLIB_PATH
|
|
30
|
-
|
|
31
|
-
#
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
#
|
|
37
|
-
# On Linux, if you have installed raylib but cannot compile the examples, check that
|
|
38
|
-
# the *_INSTALL_PATH values here are the same as those in src/Makefile or point to known locations.
|
|
39
|
-
# To enable system-wide compile-time and runtime linking to libraylib.so, run ../src/$ sudo make install RAYLIB_LIBTYPE_SHARED.
|
|
40
|
-
# To enable compile-time linking to a special version of libraylib.so, change these variables here.
|
|
41
|
-
# To enable runtime linking to a special version of libraylib.so, see EXAMPLE_RUNTIME_PATH below.
|
|
42
|
-
# If there is a libraylib in both EXAMPLE_RUNTIME_PATH and RAYLIB_INSTALL_PATH, at runtime,
|
|
43
|
-
# the library at EXAMPLE_RUNTIME_PATH, if present, will take precedence over the one at RAYLIB_INSTALL_PATH.
|
|
44
|
-
# RAYLIB_INSTALL_PATH should be the desired full path to libraylib. No relative paths.
|
|
45
|
-
DESTDIR ?= /usr/local
|
|
46
|
-
RAYLIB_INSTALL_PATH ?= $(DESTDIR)/lib
|
|
47
|
-
# RAYLIB_H_INSTALL_PATH locates the installed raylib header and associated source files.
|
|
48
|
-
RAYLIB_H_INSTALL_PATH ?= $(DESTDIR)/include
|
|
49
|
-
|
|
50
|
-
# Library type used for raylib: STATIC (.a) or SHARED (.so/.dll)
|
|
32
|
+
PROJECT_NAME ?= raylib_examples
|
|
33
|
+
RAYLIB_VERSION ?= 4.2.0
|
|
34
|
+
RAYLIB_PATH ?= ..
|
|
35
|
+
|
|
36
|
+
# Locations of raylib.h and libraylib.a/libraylib.so
|
|
37
|
+
# NOTE: Those variables are only used for PLATFORM_OS: LINUX, BSD
|
|
38
|
+
RAYLIB_INCLUDE_PATH ?= /usr/local/include
|
|
39
|
+
RAYLIB_LIB_PATH ?= /usr/local/lib
|
|
40
|
+
|
|
41
|
+
# Library type compilation: STATIC (.a) or SHARED (.so/.dll)
|
|
51
42
|
RAYLIB_LIBTYPE ?= STATIC
|
|
52
43
|
|
|
53
44
|
# Build mode for project: DEBUG or RELEASE
|
|
54
45
|
BUILD_MODE ?= RELEASE
|
|
55
46
|
|
|
56
47
|
# Use external GLFW library instead of rglfw module
|
|
57
|
-
# TODO: Review usage on Linux. Target version of choice. Switch on -lglfw or -lglfw3
|
|
58
48
|
USE_EXTERNAL_GLFW ?= FALSE
|
|
59
49
|
|
|
60
|
-
# Use Wayland display server protocol on Linux desktop
|
|
61
|
-
#
|
|
50
|
+
# Use Wayland display server protocol on Linux desktop (by default it uses X11 windowing system)
|
|
51
|
+
# NOTE: This variable is only used for PLATFORM_OS: LINUX
|
|
62
52
|
USE_WAYLAND_DISPLAY ?= FALSE
|
|
63
53
|
|
|
54
|
+
# Use cross-compiler for PLATFORM_RPI
|
|
55
|
+
ifeq ($(PLATFORM),PLATFORM_RPI)
|
|
56
|
+
USE_RPI_CROSS_COMPILER ?= FALSE
|
|
57
|
+
ifeq ($(USE_RPI_CROSS_COMPILER),TRUE)
|
|
58
|
+
RPI_TOOLCHAIN ?= C:/SysGCC/Raspberry
|
|
59
|
+
RPI_TOOLCHAIN_SYSROOT ?= $(RPI_TOOLCHAIN)/arm-linux-gnueabihf/sysroot
|
|
60
|
+
endif
|
|
61
|
+
endif
|
|
62
|
+
|
|
64
63
|
# Determine PLATFORM_OS in case PLATFORM_DESKTOP selected
|
|
65
64
|
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
|
66
65
|
# No uname.exe on MinGW!, but OS=Windows_NT on Windows!
|
|
67
66
|
# ifeq ($(UNAME),Msys) -> Windows
|
|
68
67
|
ifeq ($(OS),Windows_NT)
|
|
69
|
-
PLATFORM_OS=WINDOWS
|
|
68
|
+
PLATFORM_OS = WINDOWS
|
|
70
69
|
else
|
|
71
|
-
UNAMEOS
|
|
70
|
+
UNAMEOS = $(shell uname)
|
|
72
71
|
ifeq ($(UNAMEOS),Linux)
|
|
73
|
-
PLATFORM_OS=LINUX
|
|
72
|
+
PLATFORM_OS = LINUX
|
|
74
73
|
endif
|
|
75
74
|
ifeq ($(UNAMEOS),FreeBSD)
|
|
76
|
-
PLATFORM_OS=BSD
|
|
75
|
+
PLATFORM_OS = BSD
|
|
77
76
|
endif
|
|
78
77
|
ifeq ($(UNAMEOS),OpenBSD)
|
|
79
|
-
PLATFORM_OS=BSD
|
|
78
|
+
PLATFORM_OS = BSD
|
|
80
79
|
endif
|
|
81
80
|
ifeq ($(UNAMEOS),NetBSD)
|
|
82
|
-
PLATFORM_OS=BSD
|
|
81
|
+
PLATFORM_OS = BSD
|
|
83
82
|
endif
|
|
84
83
|
ifeq ($(UNAMEOS),DragonFly)
|
|
85
|
-
PLATFORM_OS=BSD
|
|
84
|
+
PLATFORM_OS = BSD
|
|
86
85
|
endif
|
|
87
86
|
ifeq ($(UNAMEOS),Darwin)
|
|
88
|
-
PLATFORM_OS=OSX
|
|
87
|
+
PLATFORM_OS = OSX
|
|
89
88
|
endif
|
|
90
89
|
endif
|
|
91
90
|
endif
|
|
92
91
|
ifeq ($(PLATFORM),PLATFORM_RPI)
|
|
93
|
-
UNAMEOS
|
|
92
|
+
UNAMEOS = $(shell uname)
|
|
94
93
|
ifeq ($(UNAMEOS),Linux)
|
|
95
|
-
PLATFORM_OS=LINUX
|
|
94
|
+
PLATFORM_OS = LINUX
|
|
96
95
|
endif
|
|
97
96
|
endif
|
|
98
97
|
ifeq ($(PLATFORM),PLATFORM_DRM)
|
|
99
|
-
UNAMEOS
|
|
98
|
+
UNAMEOS = $(shell uname)
|
|
100
99
|
ifeq ($(UNAMEOS),Linux)
|
|
101
|
-
PLATFORM_OS=LINUX
|
|
100
|
+
PLATFORM_OS = LINUX
|
|
102
101
|
endif
|
|
103
102
|
endif
|
|
104
103
|
|
|
105
|
-
# RAYLIB_PATH adjustment for
|
|
106
|
-
#
|
|
107
|
-
# Required for ldconfig or other tools that do not perform path expansion.
|
|
104
|
+
# RAYLIB_PATH adjustment for LINUX platform
|
|
105
|
+
# TODO: Do we really need this?
|
|
108
106
|
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
|
109
107
|
ifeq ($(PLATFORM_OS),LINUX)
|
|
110
|
-
RAYLIB_PREFIX
|
|
111
|
-
RAYLIB_PATH
|
|
108
|
+
RAYLIB_PREFIX ?= ..
|
|
109
|
+
RAYLIB_PATH = $(realpath $(RAYLIB_PREFIX))
|
|
112
110
|
endif
|
|
113
111
|
endif
|
|
114
|
-
|
|
115
|
-
#
|
|
116
|
-
# TODO: update install: target in src/Makefile for RPI, consider relation to LINUX.
|
|
112
|
+
|
|
113
|
+
# Default path for raylib on Raspberry Pi
|
|
117
114
|
ifeq ($(PLATFORM),PLATFORM_RPI)
|
|
118
115
|
RAYLIB_PATH ?= /home/pi/raylib
|
|
119
116
|
endif
|
|
@@ -121,6 +118,9 @@ ifeq ($(PLATFORM),PLATFORM_DRM)
|
|
|
121
118
|
RAYLIB_PATH ?= /home/pi/raylib
|
|
122
119
|
endif
|
|
123
120
|
|
|
121
|
+
# Define raylib release directory for compiled library
|
|
122
|
+
RAYLIB_RELEASE_PATH ?= $(RAYLIB_PATH)/src
|
|
123
|
+
|
|
124
124
|
ifeq ($(PLATFORM),PLATFORM_WEB)
|
|
125
125
|
# Emscripten required variables
|
|
126
126
|
EMSDK_PATH ?= C:/emsdk
|
|
@@ -128,29 +128,11 @@ ifeq ($(PLATFORM),PLATFORM_WEB)
|
|
|
128
128
|
CLANG_PATH = $(EMSDK_PATH)/upstream/bin
|
|
129
129
|
PYTHON_PATH = $(EMSDK_PATH)/python/3.9.2-1_64bit
|
|
130
130
|
NODE_PATH = $(EMSDK_PATH)/node/14.15.5_64bit/bin
|
|
131
|
-
export PATH = $(EMSDK_PATH);$(EMSCRIPTEN_PATH);$(CLANG_PATH);$(NODE_PATH);$(PYTHON_PATH)
|
|
131
|
+
export PATH = $(EMSDK_PATH);$(EMSCRIPTEN_PATH);$(CLANG_PATH);$(NODE_PATH);$(PYTHON_PATH):$$(PATH)
|
|
132
132
|
endif
|
|
133
133
|
|
|
134
|
-
# Define
|
|
135
|
-
|
|
136
|
-
RAYLIB_RELEASE_PATH ?= $(RAYLIB_PATH)/src
|
|
137
|
-
|
|
138
|
-
# EXAMPLE_RUNTIME_PATH embeds a custom runtime location of libraylib.so or other desired libraries
|
|
139
|
-
# into each example binary compiled with RAYLIB_LIBTYPE=SHARED. It defaults to RAYLIB_RELEASE_PATH
|
|
140
|
-
# so that these examples link at runtime with your version of libraylib.so in ../release/libs/linux
|
|
141
|
-
# without formal installation from ../src/Makefile. It aids portability and is useful if you have
|
|
142
|
-
# multiple versions of raylib, have raylib installed to a non-standard location, or want to
|
|
143
|
-
# bundle libraylib.so with your game. Change it to your liking.
|
|
144
|
-
# NOTE: If, at runtime, there is a libraylib.so at both EXAMPLE_RUNTIME_PATH and RAYLIB_INSTALL_PATH,
|
|
145
|
-
# The library at EXAMPLE_RUNTIME_PATH, if present, will take precedence over RAYLIB_INSTALL_PATH,
|
|
146
|
-
# Implemented for LINUX below with CFLAGS += -Wl,-rpath,$(EXAMPLE_RUNTIME_PATH)
|
|
147
|
-
# To see the result, run readelf -d core/core_basic_window; looking at the RPATH or RUNPATH attribute.
|
|
148
|
-
# To see which libraries a built example is linking to, ldd core/core_basic_window;
|
|
149
|
-
# Look for libraylib.so.1 => $(RAYLIB_INSTALL_PATH)/libraylib.so.1 or similar listing.
|
|
150
|
-
EXAMPLE_RUNTIME_PATH ?= $(RAYLIB_RELEASE_PATH)
|
|
151
|
-
|
|
152
|
-
# Define default C compiler: gcc
|
|
153
|
-
# NOTE: define g++ compiler if using C++
|
|
134
|
+
# Define default C compiler: CC
|
|
135
|
+
#------------------------------------------------------------------------------------------------
|
|
154
136
|
CC = gcc
|
|
155
137
|
|
|
156
138
|
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
|
@@ -177,8 +159,9 @@ ifeq ($(PLATFORM),PLATFORM_WEB)
|
|
|
177
159
|
CC = emcc
|
|
178
160
|
endif
|
|
179
161
|
|
|
180
|
-
# Define default make program
|
|
181
|
-
|
|
162
|
+
# Define default make program: MAKE
|
|
163
|
+
#------------------------------------------------------------------------------------------------
|
|
164
|
+
MAKE ?= make
|
|
182
165
|
|
|
183
166
|
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
|
184
167
|
ifeq ($(PLATFORM_OS),WINDOWS)
|
|
@@ -192,7 +175,8 @@ ifeq ($(PLATFORM),PLATFORM_WEB)
|
|
|
192
175
|
MAKE = mingw32-make
|
|
193
176
|
endif
|
|
194
177
|
|
|
195
|
-
# Define compiler flags:
|
|
178
|
+
# Define compiler flags: CFLAGS
|
|
179
|
+
#------------------------------------------------------------------------------------------------
|
|
196
180
|
# -O1 defines optimization level
|
|
197
181
|
# -g include debug information on compilation
|
|
198
182
|
# -s strip unnecessary data from build
|
|
@@ -200,11 +184,12 @@ endif
|
|
|
200
184
|
# -std=c99 defines C language mode (standard C from 1999 revision)
|
|
201
185
|
# -std=gnu99 defines C language mode (GNU C from 1999 revision)
|
|
202
186
|
# -Wno-missing-braces ignore invalid warning (GCC bug 53119)
|
|
187
|
+
# -Wno-unused-value ignore unused return values of some functions (i.e. fread())
|
|
203
188
|
# -D_DEFAULT_SOURCE use with -std=c99 on Linux and PLATFORM_WEB, required for timespec
|
|
204
|
-
CFLAGS
|
|
189
|
+
CFLAGS = -Wall -std=c99 -D_DEFAULT_SOURCE -Wno-missing-braces -Wunused-result
|
|
205
190
|
|
|
206
191
|
ifeq ($(BUILD_MODE),DEBUG)
|
|
207
|
-
CFLAGS += -g
|
|
192
|
+
CFLAGS += -g -D_DEBUG
|
|
208
193
|
ifeq ($(PLATFORM),PLATFORM_WEB)
|
|
209
194
|
CFLAGS += -s ASSERTIONS=1 --profiling
|
|
210
195
|
endif
|
|
@@ -217,6 +202,10 @@ else
|
|
|
217
202
|
endif
|
|
218
203
|
|
|
219
204
|
# Additional flags for compiler (if desired)
|
|
205
|
+
# -Wextra enables some extra warning flags that are not enabled by -Wall
|
|
206
|
+
# -Wmissing-prototypes warn if a global function is defined without a previous prototype declaration
|
|
207
|
+
# -Wstrict-prototypes warn if a function is declared or defined without specifying the argument types
|
|
208
|
+
# -Werror=implicit-function-declaration catch function calls without prior declaration
|
|
220
209
|
#CFLAGS += -Wextra -Wmissing-prototypes -Wstrict-prototypes
|
|
221
210
|
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
|
222
211
|
ifeq ($(PLATFORM_OS),LINUX)
|
|
@@ -225,7 +214,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
|
|
225
214
|
endif
|
|
226
215
|
ifeq ($(RAYLIB_LIBTYPE),SHARED)
|
|
227
216
|
# Explicitly enable runtime link to libraylib.so
|
|
228
|
-
CFLAGS += -Wl,-rpath,$(
|
|
217
|
+
CFLAGS += -Wl,-rpath,$(RAYLIB_RELEASE_PATH)
|
|
229
218
|
endif
|
|
230
219
|
endif
|
|
231
220
|
endif
|
|
@@ -236,51 +225,47 @@ ifeq ($(PLATFORM),PLATFORM_DRM)
|
|
|
236
225
|
CFLAGS += -std=gnu99 -DEGL_NO_X11
|
|
237
226
|
endif
|
|
238
227
|
|
|
239
|
-
# Define include paths for required headers
|
|
240
|
-
# NOTE: Some external/extras libraries could be required (stb,
|
|
241
|
-
|
|
228
|
+
# Define include paths for required headers: INCLUDE_PATHS
|
|
229
|
+
# NOTE: Some external/extras libraries could be required (stb, easings...)
|
|
230
|
+
#------------------------------------------------------------------------------------------------
|
|
231
|
+
INCLUDE_PATHS = -I. -I$(RAYLIB_PATH)/src -I$(RAYLIB_PATH)/src/external
|
|
242
232
|
|
|
243
233
|
# Define additional directories containing required header files
|
|
244
|
-
ifeq ($(PLATFORM),PLATFORM_RPI)
|
|
245
|
-
# RPI required libraries
|
|
246
|
-
INCLUDE_PATHS += -I/opt/vc/include
|
|
247
|
-
INCLUDE_PATHS += -I/opt/vc/include/interface/vmcs_host/linux
|
|
248
|
-
INCLUDE_PATHS += -I/opt/vc/include/interface/vcos/pthreads
|
|
249
|
-
endif
|
|
250
|
-
ifeq ($(PLATFORM),PLATFORM_DRM)
|
|
251
|
-
# DRM required libraries
|
|
252
|
-
INCLUDE_PATHS += -I/usr/include/libdrm
|
|
253
|
-
endif
|
|
254
234
|
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
|
255
235
|
ifeq ($(PLATFORM_OS),BSD)
|
|
256
|
-
|
|
257
|
-
INCLUDE_PATHS += -I/usr/local/include
|
|
236
|
+
INCLUDE_PATHS += -I$(RAYLIB_INCLUDE_PATH)
|
|
258
237
|
endif
|
|
259
238
|
ifeq ($(PLATFORM_OS),LINUX)
|
|
260
|
-
INCLUDE_PATHS += -I$(
|
|
239
|
+
INCLUDE_PATHS += -I$(RAYLIB_INCLUDE_PATH)
|
|
261
240
|
endif
|
|
262
241
|
endif
|
|
242
|
+
ifeq ($(PLATFORM),PLATFORM_RPI)
|
|
243
|
+
INCLUDE_PATHS += -I$(RPI_TOOLCHAIN_SYSROOT)/opt/vc/include
|
|
244
|
+
INCLUDE_PATHS += -I$(RPI_TOOLCHAIN_SYSROOT)/opt/vc/include/interface/vmcs_host/linux
|
|
245
|
+
INCLUDE_PATHS += -I$(RPI_TOOLCHAIN_SYSROOT)/opt/vc/include/interface/vcos/pthreads
|
|
246
|
+
endif
|
|
247
|
+
ifeq ($(PLATFORM),PLATFORM_DRM)
|
|
248
|
+
INCLUDE_PATHS += -I/usr/include/libdrm
|
|
249
|
+
endif
|
|
263
250
|
|
|
264
|
-
# Define library paths containing required libs
|
|
251
|
+
# Define library paths containing required libs: LDFLAGS
|
|
252
|
+
#------------------------------------------------------------------------------------------------
|
|
265
253
|
LDFLAGS = -L. -L$(RAYLIB_RELEASE_PATH) -L$(RAYLIB_PATH)/src
|
|
266
254
|
|
|
267
255
|
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
|
268
256
|
ifeq ($(PLATFORM_OS),WINDOWS)
|
|
269
|
-
# resource file contains windows executable icon and properties
|
|
257
|
+
# NOTE: The resource .rc file contains windows executable icon and properties
|
|
270
258
|
LDFLAGS += $(RAYLIB_PATH)/src/raylib.rc.data
|
|
271
259
|
# -Wl,--subsystem,windows hides the console window
|
|
272
260
|
ifeq ($(BUILD_MODE), RELEASE)
|
|
273
261
|
LDFLAGS += -Wl,--subsystem,windows
|
|
274
262
|
endif
|
|
275
263
|
endif
|
|
276
|
-
ifeq ($(PLATFORM_OS),BSD)
|
|
277
|
-
# Consider -L$(RAYLIB_INSTALL_PATH)
|
|
278
|
-
LDFLAGS += -L. -Lsrc -L/usr/local/lib
|
|
279
|
-
endif
|
|
280
264
|
ifeq ($(PLATFORM_OS),LINUX)
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
265
|
+
LDFLAGS += -L$(RAYLIB_LIB_PATH)
|
|
266
|
+
endif
|
|
267
|
+
ifeq ($(PLATFORM_OS),BSD)
|
|
268
|
+
LDFLAGS += -Lsrc -L$(RAYLIB_LIB_PATH)
|
|
284
269
|
endif
|
|
285
270
|
endif
|
|
286
271
|
ifeq ($(PLATFORM),PLATFORM_WEB)
|
|
@@ -310,18 +295,17 @@ ifeq ($(PLATFORM),PLATFORM_WEB)
|
|
|
310
295
|
EXT = .html
|
|
311
296
|
endif
|
|
312
297
|
ifeq ($(PLATFORM),PLATFORM_RPI)
|
|
313
|
-
LDFLAGS += -L/opt/vc/lib
|
|
298
|
+
LDFLAGS += -L$(RPI_TOOLCHAIN_SYSROOT)/opt/vc/lib
|
|
314
299
|
endif
|
|
315
300
|
|
|
316
|
-
# Define
|
|
317
|
-
#
|
|
301
|
+
# Define libraries required on linking: LDLIBS
|
|
302
|
+
# NOTE: To link libraries (lib<name>.so or lib<name>.a), use -l<name>
|
|
303
|
+
#------------------------------------------------------------------------------------------------
|
|
318
304
|
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
|
319
305
|
ifeq ($(PLATFORM_OS),WINDOWS)
|
|
320
306
|
# Libraries for Windows desktop compilation
|
|
321
307
|
# NOTE: WinMM library required to set high-res timer resolution
|
|
322
308
|
LDLIBS = -lraylib -lopengl32 -lgdi32 -lwinmm
|
|
323
|
-
# Required for physac examples
|
|
324
|
-
LDLIBS += -static -lpthread
|
|
325
309
|
endif
|
|
326
310
|
ifeq ($(PLATFORM_OS),LINUX)
|
|
327
311
|
# Libraries for Debian GNU/Linux desktop compiling
|
|
@@ -363,19 +347,23 @@ endif
|
|
|
363
347
|
ifeq ($(PLATFORM),PLATFORM_RPI)
|
|
364
348
|
# Libraries for Raspberry Pi compiling
|
|
365
349
|
# NOTE: Required packages: libasound2-dev (ALSA)
|
|
366
|
-
LDLIBS = -lraylib -lbrcmGLESv2 -lbrcmEGL -lpthread -lrt -lm -lbcm_host -ldl
|
|
350
|
+
LDLIBS = -lraylib -lbrcmGLESv2 -lbrcmEGL -lpthread -lrt -lm -lbcm_host -ldl -latomic
|
|
351
|
+
ifeq ($(USE_RPI_CROSS_COMPILER),TRUE)
|
|
352
|
+
LDLIBS += -lvchiq_arm -lvcos
|
|
353
|
+
endif
|
|
367
354
|
endif
|
|
368
355
|
ifeq ($(PLATFORM),PLATFORM_DRM)
|
|
369
356
|
# Libraries for DRM compiling
|
|
370
357
|
# NOTE: Required packages: libasound2-dev (ALSA)
|
|
371
|
-
LDLIBS = -lraylib -lGLESv2 -lEGL -lpthread -lrt -lm -lgbm -ldrm -ldl
|
|
358
|
+
LDLIBS = -lraylib -lGLESv2 -lEGL -lpthread -lrt -lm -lgbm -ldrm -ldl -latomic
|
|
372
359
|
endif
|
|
373
360
|
ifeq ($(PLATFORM),PLATFORM_WEB)
|
|
374
361
|
# Libraries for web (HTML5) compiling
|
|
375
362
|
LDLIBS = $(RAYLIB_RELEASE_PATH)/libraylib.a
|
|
376
363
|
endif
|
|
377
364
|
|
|
378
|
-
# Define
|
|
365
|
+
# Define source code object files required
|
|
366
|
+
#------------------------------------------------------------------------------------------------
|
|
379
367
|
CORE = \
|
|
380
368
|
core/core_basic_window \
|
|
381
369
|
core/core_basic_screen_manager \
|
|
@@ -387,21 +375,22 @@ CORE = \
|
|
|
387
375
|
core/core_input_gestures \
|
|
388
376
|
core/core_2d_camera \
|
|
389
377
|
core/core_2d_camera_platformer \
|
|
378
|
+
core/core_2d_camera_mouse_zoom \
|
|
390
379
|
core/core_3d_camera_mode \
|
|
391
380
|
core/core_3d_camera_free \
|
|
392
381
|
core/core_3d_camera_first_person \
|
|
393
382
|
core/core_3d_picking \
|
|
394
383
|
core/core_world_screen \
|
|
395
384
|
core/core_custom_logging \
|
|
396
|
-
core/core_window_letterbox \
|
|
397
385
|
core/core_drop_files \
|
|
398
386
|
core/core_random_values \
|
|
399
387
|
core/core_scissor_test \
|
|
400
388
|
core/core_storage_values \
|
|
401
389
|
core/core_vr_simulator \
|
|
402
390
|
core/core_loading_thread \
|
|
403
|
-
core/core_quat_conversion \
|
|
404
391
|
core/core_window_flags \
|
|
392
|
+
core/core_window_letterbox \
|
|
393
|
+
core/core_window_should_close \
|
|
405
394
|
core/core_split_screen \
|
|
406
395
|
core/core_smooth_pixelperfect \
|
|
407
396
|
core/core_custom_frame_control
|
|
@@ -421,12 +410,12 @@ SHAPES = \
|
|
|
421
410
|
shapes/shapes_easings_rectangle_array \
|
|
422
411
|
shapes/shapes_draw_ring \
|
|
423
412
|
shapes/shapes_draw_circle_sector \
|
|
424
|
-
shapes/shapes_draw_rectangle_rounded
|
|
413
|
+
shapes/shapes_draw_rectangle_rounded \
|
|
414
|
+
shapes/shapes_top_down_lights
|
|
425
415
|
|
|
426
416
|
TEXTURES = \
|
|
427
417
|
textures/textures_logo_raylib \
|
|
428
418
|
textures/textures_mouse_painting \
|
|
429
|
-
textures/textures_rectangle \
|
|
430
419
|
textures/textures_srcrec_dstrec \
|
|
431
420
|
textures/textures_image_drawing \
|
|
432
421
|
textures/textures_image_generation \
|
|
@@ -438,12 +427,15 @@ TEXTURES = \
|
|
|
438
427
|
textures/textures_particles_blending \
|
|
439
428
|
textures/textures_npatch_drawing \
|
|
440
429
|
textures/textures_background_scrolling \
|
|
430
|
+
textures/textures_sprite_anim \
|
|
441
431
|
textures/textures_sprite_button \
|
|
442
432
|
textures/textures_sprite_explosion \
|
|
443
433
|
textures/textures_bunnymark \
|
|
444
434
|
textures/textures_blend_modes \
|
|
445
435
|
textures/textures_draw_tiled \
|
|
446
|
-
textures/textures_polygon
|
|
436
|
+
textures/textures_polygon \
|
|
437
|
+
textures/textures_gif_player \
|
|
438
|
+
textures/textures_fog_of_war
|
|
447
439
|
|
|
448
440
|
TEXT = \
|
|
449
441
|
text/text_raylib_fonts \
|
|
@@ -456,7 +448,8 @@ TEXT = \
|
|
|
456
448
|
text/text_writing_anim \
|
|
457
449
|
text/text_rectangle_bounds \
|
|
458
450
|
text/text_unicode \
|
|
459
|
-
text/text_draw_3d
|
|
451
|
+
text/text_draw_3d \
|
|
452
|
+
text/text_codepoints_loading
|
|
460
453
|
|
|
461
454
|
MODELS = \
|
|
462
455
|
models/models_animation \
|
|
@@ -502,20 +495,15 @@ AUDIO = \
|
|
|
502
495
|
audio/audio_music_stream \
|
|
503
496
|
audio/audio_raw_stream \
|
|
504
497
|
audio/audio_sound_loading \
|
|
505
|
-
audio/audio_multichannel_sound
|
|
506
|
-
|
|
507
|
-
PHYSICS = \
|
|
508
|
-
physics/physics_demo \
|
|
509
|
-
physics/physics_friction \
|
|
510
|
-
physics/physics_movement \
|
|
511
|
-
physics/physics_restitution \
|
|
512
|
-
physics/physics_shatter
|
|
513
|
-
|
|
498
|
+
audio/audio_multichannel_sound \
|
|
499
|
+
audio/audio_stream_effects
|
|
514
500
|
|
|
515
501
|
CURRENT_MAKEFILE = $(lastword $(MAKEFILE_LIST))
|
|
516
502
|
|
|
503
|
+
# Define processes to execute
|
|
504
|
+
#------------------------------------------------------------------------------------------------
|
|
517
505
|
# Default target entry
|
|
518
|
-
all: $(CORE) $(SHAPES) $(TEXT) $(TEXTURES) $(MODELS) $(SHADERS) $(AUDIO)
|
|
506
|
+
all: $(CORE) $(SHAPES) $(TEXT) $(TEXTURES) $(MODELS) $(SHADERS) $(AUDIO)
|
|
519
507
|
|
|
520
508
|
core: $(CORE)
|
|
521
509
|
shapes: $(SHAPES)
|
|
@@ -524,7 +512,6 @@ text: $(TEXT)
|
|
|
524
512
|
models: $(MODELS)
|
|
525
513
|
shaders: $(SHADERS)
|
|
526
514
|
audio: $(AUDIO)
|
|
527
|
-
physics: $(PHYSICS)
|
|
528
515
|
|
|
529
516
|
# Generic compilation pattern
|
|
530
517
|
# NOTE: Examples must be ready for Android compilation!
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
#
|
|
3
3
|
# raylib makefile for Android project (APK building)
|
|
4
4
|
#
|
|
5
|
-
# Copyright (c) 2017-
|
|
5
|
+
# Copyright (c) 2017-2022 Ramon Santamaria (@raysan5)
|
|
6
6
|
#
|
|
7
7
|
# This software is provided "as-is", without any express or implied warranty. In no event
|
|
8
8
|
# will the authors be held liable for any damages arising from the use of this software.
|