Skip to content

Commit

Permalink
Add libcamlib.dylib target for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
petabyt committed Jan 6, 2024
1 parent 82a968f commit e01abdc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,4 @@ jobs:

- name: Build
run: |
make libcamlib.so
# Test the decoding tool also builds.
make dec
make TARGET=m libcamlib.dylib
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ CFLAGS+='-DCAMLIB_COMMIT="$(COMMIT)"'
libcamlib.so: $(FILES)
$(CC) -shared $(FILES) -o libcamlib.so

ifeq ($(TARGET),m)
CFLAGS+=-I/usr/local/include/libusb-1.0
libcamlib.dylib: $(FILES)
$(CC) -shared $(FILES) -L/usr/local/lib -lusb-1.0 -o libcamlib.so
endif

%.o: %.c src/*.h
$(CC) -c $(CFLAGS) $< -o $@

Expand Down

0 comments on commit e01abdc

Please sign in to comment.