Skip to content
Discussion options

You must be logged in to vote

I did it.
To add //+build windows and //+build wasm32 tags each files,the above file suffixes approach is working correctly.

This is my final approach.

game project.

odingame/
 ├ dist/
 ├ lib/
         ├ raylib
                 ├ wasm     //  library directory
                 ├ windows    //  library directory
                 ├ raylib_wasm.odin     // copied from https://github.com/Caedo/raylib_wasm_odin
                 ├ raylib_windows.odin     // copied from vendor:raylib
                 ├ easings_windows.odin     // copied from vendor:raylib
                 └ rlgl_windows.odin     // copied from vendor:raylib
 ├ src/
 │ └ main.odin

main.odin

import rl   "../lib/raylib"      // wh…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Sticky-fingerz
Comment options

@Sticky-fingerz
Comment options

@Sticky-fingerz
Comment options

Answer selected by Sticky-fingerz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants