novelrt / NovelRT

A cross-platform 2D game engine accompanied by a strong toolset for visual novels.
MIT License
184 stars 42 forks source link

Isolate platform dependencies via CMake - Refactor 1 #578

Closed capnkenny closed 1 year ago

capnkenny commented 1 year ago

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...) Begins to create dependency isolation based on the target platform. Also introduces target detection when none is provided.

What is the new behavior (if this is a feature change)? This PR should not create visibly new behaviour, however it will now specifically pipe in compile definitions, compile options, and libraries to be linked against when building NovelRT and co

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?) Should not break existing setups at this time.

Other information: Part of multiple changes to introduce platform dependency isolation - will begin to perform part 2 when we start to have platform-specific dependencies (maybe with audio ㄟ( ▔, ▔ )ㄏ)