Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Haiku: Add support #193

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Haiku: Add support #193

wants to merge 2 commits into from

Conversation

er2off
Copy link
Contributor

@er2off er2off commented Feb 8, 2023

TODO: Test with hardware acceleration

@er2off
Copy link
Contributor Author

er2off commented Feb 9, 2023

btw in this port libraries are stored in lib/ and not in bin/ (except game, which in hl2/bin for example) which is already in haiku's LIBRARY_PATH so we needn't crutches in launcher_main

@@ -109,7 +109,7 @@ typedef unsigned short ushort;

template < class A >
static const char *GetFmtStr( int nRadix = 10, bool bPrint = true ) { Assert( 0 ); return ""; }
#if defined( LINUX ) || defined( __clang__ ) || ( defined( _MSC_VER ) && _MSC_VER >= 1900 )
#if defined( LINUX ) || defined( __clang__ ) || ( defined( _MSC_VER ) && _MSC_VER >= 1900 ) || defined(PLATFORM_HAIKU)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe better detect gcc here? maybe see later if it will be needed

@@ -161,7 +161,7 @@ bool CVGuiSystemModuleLoader::LoadPlatformModules(CreateInterfaceFn *factorylist
{
dllPath = it->GetString("dll_osx");
}
else if ( IsLinux() || IsBSD() )
else if ( IsPosix() )
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is better to just use ifdefs?

Comment on lines +45 to +46
if bld.env.DEST_OS == 'haiku':
defines += ['HAVE_FC=0']
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Solve fontconfig can't find fonts

@er2off
Copy link
Contributor Author

er2off commented Feb 27, 2023 via email

@er2off
Copy link
Contributor Author

er2off commented Feb 27, 2023

не туда, спасибо email

@nillerusr nillerusr force-pushed the master branch 17 times, most recently from 2ce4d63 to 0114bd7 Compare April 24, 2023 15:03
er2off added a commit to er2off/source-engine that referenced this pull request Apr 24, 2023
Closes nillerusr#72 and uses some patches from nillerusr#193 for better portability
between UNIXes.

Also this patch replaces so many NULLs with 0 or '\0' because musl
headers redefines it and anyway it is better practice.

Moreover, due to very "cool" code from Valve, some modules comes with
disabled fortify which distributes with build-base in Alpine
(fortify is something like compile-time checking for memory bounds)
@nillerusr nillerusr force-pushed the master branch 3 times, most recently from 358c568 to b38bccd Compare April 24, 2023 15:24
er2off added a commit to er2off/source-engine that referenced this pull request Apr 24, 2023
Closes nillerusr#72 and uses some patches from nillerusr#193 for better portability
between UNIXes.

Also this patch replaces so many NULLs with 0 or '\0' because musl
headers redefines it and anyway it is better practice.

Moreover, due to very "cool" code from Valve, some modules comes with
disabled fortify which distributes with build-base in Alpine
(fortify is something like compile-time checking for memory bounds)
@er2off er2off mentioned this pull request Apr 24, 2023
@nillerusr nillerusr force-pushed the master branch 2 times, most recently from dfaccca to f2fa241 Compare April 24, 2023 15:54
er2off added a commit to er2off/source-engine that referenced this pull request Apr 24, 2023
Closes nillerusr#72 and uses some patches from nillerusr#193 for better portability
between UNIXes.

Also this patch replaces so many NULLs with 0 or '\0' because musl
headers redefines it and anyway it is better practice.

Moreover, due to very "cool" code from Valve, some modules comes with
disabled fortify which distributes with build-base in Alpine
(fortify is something like compile-time checking for memory bounds)
er2off added a commit to er2off/source-engine that referenced this pull request Apr 24, 2023
Closes nillerusr#72 and uses some patches from nillerusr#193 for better portability
between UNIXes.

Also this patch replaces so many NULLs with 0 or '\0' because musl
headers redefines it and anyway it is better practice.

Moreover, due to very "cool" code from Valve, some modules comes with
disabled fortify which distributes with build-base in Alpine
(fortify is something like compile-time checking for memory bounds)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants