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

Some changes needed for android compilation #5 #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oers
Copy link

@oers oers commented Apr 24, 2022

The changes made by #5 as a PR.

Copy link
Owner

@panstromek panstromek left a comment

Choose a reason for hiding this comment

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

Huh, I totally missed this in notifications, sorry.

I'll try to run this through zebra-rs snapshot tests and merge if everything is ok. Thanks!

#elif defined( __linux__ )
/* Linux don't support current directory. */
strcpy( sPatternFile, PATTERN_FILE );
#else
getcwd(sPatternFile, sizeof(sPatternFile));
strcat(sPatternFile, "/" PATTERN_FILE);
#endif
char* env_coeffs = getenv("COEFFS_PATH");
Copy link
Owner

Choose a reason for hiding this comment

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

I'd like to keep this, It's used in snapshot tests and fuzzer. Did you have problems with getenv on android?

Copy link
Author

Choose a reason for hiding this comment

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

i don't think so. cant remember why i removed this, possible in a diff or something

@@ -54,5 +54,9 @@ extern int white_moves[60];
but all updates must be reversed when the search stops. */
extern Board board;

#ifdef ANDROID
int droidzebra_message_debug(const char* format, ...);
Copy link
Owner

Choose a reason for hiding this comment

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

not the nicest thing in the world but what can we do 🤷‍♂️

Ideally this project should not depend on droidzebra like this, so the function should be somehow injected from the outside, but we got no time for that business

Copy link
Author

Choose a reason for hiding this comment

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

maybe this could just be a standard debug function like message_debug ...

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.

2 participants