Skip to content

How to switch import library by platform #3438

Answered by Kelimion
Sticky-fingerz asked this question in Q&A
Discussion options

You must be logged in to vote

What you could do is use the *_<platform>.odin filename convention, i.e.

rl_wasm.odin

import rl "../lib/raylib" // web build

rl_windows.odin

import rl "vendor:raylib" // desktop build

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