opendlang / opend

Boost Software License 1.0
76 stars 17 forks source link

Add system configuration file #52

Closed IgorDeepakM closed 4 months ago

IgorDeepakM commented 4 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.