opendlang / opend

Boost Software License 1.0
89 stars 20 forks source link

Add system configuration file #52

Closed IgorDeepakM closed 8 months ago

IgorDeepakM commented 8 months ago

This adds a global system configration file that the implementation files can use in order to obtain configuration as well as import paths for the OS specific implementations.

This also reduced the number of files so that we don't need to detour through public imports.

The configuration file will be required later especially when the OS memory API comes along as there are more settings there than just imports.

Funny note: I got compile errors in event.d when putting the mixin("import " ~ osEventImport ~ ";"); at the top of the file, complaining about it doesn't find the type OsEvent. Moving it to inside the struct makes it compile.