Skip to content

Some changes needed for android compilation #5#6

Open
oers wants to merge 1 commit into
panstromek:masterfrom
oers:master
Open

Some changes needed for android compilation #5#6
oers wants to merge 1 commit into
panstromek:masterfrom
oers:master

Conversation

@oers

@oers oers commented Apr 24, 2022

Copy link
Copy Markdown

The changes made by #5 as a PR.

@panstromek panstromek left a comment

Copy link
Copy Markdown
Owner

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!

Comment thread getcoeff.c
getcwd(sPatternFile, sizeof(sPatternFile));
strcat(sPatternFile, "/" PATTERN_FILE);
#endif
char* env_coeffs = getenv("COEFFS_PATH");

Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread globals.h
extern Board board;

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

Copy link
Copy Markdown
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
Copy Markdown
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