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

Multi-platform support #30

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open

Multi-platform support #30

wants to merge 17 commits into from

Conversation

aacuevas
Copy link
Collaborator

This reviews multi-platform support for liboni and, specially, the ft600 driver translator:

  • both liboni and the ft600 driver translator now build in osx
  • Windows build still uses VS, linux and ox use makefiles which detect the appropriate OS
  • updated ftdi libraries for the ft600 driver translator on linux and osx.
  • ftdi libraries for the ft600 driver translator on linux and osx now build statically

@aacuevas aacuevas requested a review from jonnew January 27, 2025 14:25
@@ -4,8 +4,17 @@ NAME := oni-repl
SRC := main.c
OBJ := $(SRC:.c=.o)
CFLAGS := -pedantic -Wall -W -Werror -fPIC -O3 $(DEFS)
LDFLAGS := -lm -lpthread -loni -ldl
# LDFLAGS := -lm -lpthread -loni -ldl
Copy link
Member

Choose a reason for hiding this comment

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

would prefer that a final decision is made since things like this can cause confusion in the future

@@ -73,7 +75,7 @@ int oni_create_driver(const char* lib_name, oni_driver_t* driver)
free(full_lib_name);

if (!handle) {
// fprintf(stderr, "Failed to load driver: %s\n", dlerror());
// fprintf(stderr, "Failed to load driver: %s\n", dlerror());
Copy link
Member

Choose a reason for hiding this comment

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

wrap in #ifndef NDEBUG and uncomment? or remove?

Copy link
Member

@jonnew jonnew left a comment

Choose a reason for hiding this comment

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

Please address comments and then this is approved

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.

4 participants