Skip to content

Conversation

brccabral
Copy link
Contributor

Changes following discussion from #5180 .
Moved file projects/CMake/core_basic_window.c to examples/others/web_basic_window.c.
Removed target options from library to examples.

@raysan5
Copy link
Owner

raysan5 commented Sep 13, 2025

@brccabral Please, could you review the comments and the conflicts?

@raysan5 raysan5 changed the title [web] compile for web [build][cmake] Review web compilation system Sep 13, 2025
@raysan5 raysan5 added the platform: Web Web platform label Sep 13, 2025
@raysan5 raysan5 merged commit b281101 into raysan5:master Sep 14, 2025
17 checks passed
@raysan5
Copy link
Owner

raysan5 commented Sep 14, 2025

@brccabral Thanks for the review!

@Peter0x44
Copy link
Contributor

@brccabral Why did you delete projects/CMake/CMakeLists.txt?

Peter0x44 added a commit to Peter0x44/raylib that referenced this pull request Sep 17, 2025
For some reason, raysan5#5181 deleted it.
This project is intended to be a simple template to set up a project
consuming raylib with CMake.
@brccabral
Copy link
Contributor Author

I moved it to examples/CMakeLists.txt, and the c file to examples/others/web_basic_window.c

raysan5 pushed a commit that referenced this pull request Sep 17, 2025
For some reason, #5181 deleted it.
This project is intended to be a simple template to set up a project
consuming raylib with CMake.
psxdev pushed a commit to raylib4Consoles/raylib that referenced this pull request Sep 19, 2025
* [cmake] export automatically raylib definitions and compile/link options

* [cmake] pass emscripten options to consumer project

* [web] compile for web

* [web] canvas width 100%
psxdev pushed a commit to raylib4Consoles/raylib that referenced this pull request Sep 19, 2025
For some reason, raysan5#5181 deleted it.
This project is intended to be a simple template to set up a project
consuming raylib with CMake.
JohnnyCena123 added a commit to JohnnyCena123/raylib that referenced this pull request Sep 21, 2025
raysan5 pushed a commit that referenced this pull request Sep 23, 2025
* fix web build issue with CMake introduced by #5181

* remove ASYNCIFY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Web Web platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants