Skip to content

Commit

Permalink
Add generated configuration scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
karlstav committed Nov 13, 2024
1 parent a82109b commit eb005d0
Show file tree
Hide file tree
Showing 16 changed files with 39,369 additions and 38 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libfftw3-dev libasound2-dev libncursesw5-dev libpulse-dev libtool automake autoconf-archive libiniparser-dev portaudio19-dev libsndio-dev libsdl2-2.0-0 libsdl2-dev squeezelite pulseaudio libpipewire-0.3-dev
- name: Generate configure
run: ./autogen.sh
sudo apt-get install build-essential libfftw3-dev libasound2-dev libncursesw5-dev libpulse-dev libiniparser-dev portaudio19-dev libsndio-dev libsdl2-2.0-0 libsdl2-dev squeezelite pulseaudio libpipewire-0.3-dev
- name: Run ./configure
run: ./configure
- name: Run make
Expand Down Expand Up @@ -49,10 +47,8 @@ jobs:
- uses: actions/checkout@v1
- name: Install dependencies
run: |
brew install fftw libtool automake autoconf-archive portaudio iniparser sdl2
ln -s /usr/local/bin/glibtoolize /usr/local/bin/libtoolize
brew install fftw make portaudio iniparser sdl2
- name: Generate configuresdl2
run: PATH="/opt/homebrew/opt/libtool/libexec/gnubin:$PATH" ./autogen.sh
- name: Run ./configure
run: LDFLAGS="-L/opt/homebrew/lib" CPPFLAGS="-I/opt/homebrew/include" ./configure
- name: Run make
Expand Down
39 changes: 28 additions & 11 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,28 @@ AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4

bin_PROGRAMS = cava
cavadir = $(top_srcdir)
cava_SOURCES = cava.c cavacore.c config.c input/common.c input/fifo.c input/shmem.c \
output/terminal_noncurses.c output/raw.c output/noritake.c
output/terminal_noncurses.c output/raw.c output/noritake.c \
cavacore.h config.h input/common.h input/fifo.h input/shmem.h \
output/terminal_noncurses.h output/raw.h output/noritake.h \
debug.h util.h third_party/incbin.h
cava_CPPFLAGS = -DPACKAGE=\"$(PACKAGE)\" -DVERSION=\"$(VERSION)\" \
-D_POSIX_SOURCE -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE_EXTENDED \
-DFONTDIR=\"@FONT_DIR@\" -DFONTFILE=\"@FONT_FILE@\"
cava_CFLAGS = -std=c99 -Wall -Wextra -Wno-unused-result -Wno-unknown-warning-option -Wno-maybe-uninitialized -Wno-vla-parameter

EXTRA_DIST = \
output/shaders/pass_through.vert \
output/shaders/bar_spectrum.frag \
output/shaders/northern_lights.frag \
example_files/config \
cava.psf \
LICENSE \
run_all_tests.sh \
SHADERS.md \
.clang-format

if OSX
cava_CFLAGS += -DNORT
cava_LDADD =
Expand All @@ -30,41 +45,43 @@ endif
endif

if ALSA
cava_SOURCES += input/alsa.c
cava_SOURCES += input/alsa.c input/alsa.h
endif

if PORTAUDIO
cava_SOURCES += input/portaudio.c
cava_SOURCES += input/portaudio.c input/portaudio.h
endif

if PIPEWIRE
cava_SOURCES += input/pipewire.c
cava_SOURCES += input/pipewire.c input/pipewire.h
endif

if PULSE
cava_SOURCES += input/pulse.c
cava_SOURCES += input/pulse.c input/pulse.h
endif

if SNDIO
cava_SOURCES += input/sndio.c
cava_SOURCES += input/sndio.c input/sndio.h
endif

if OSS
cava_SOURCES += input/oss.c
cava_SOURCES += input/oss.c input/oss.h
endif

if JACK
cava_SOURCES += input/jack.c
cava_SOURCES += input/jack.c input/jack.h
endif

if NCURSES
cava_SOURCES += output/terminal_ncurses.c
cava_SOURCES += output/terminal_ncurses.c output/terminal_bcircle.c \
output/terminal_ncurses.h output/terminal_bcircle.h

endif

if SDL
cava_SOURCES += output/sdl_cava.c
cava_SOURCES += output/sdl_cava.c output/sdl_cava.h
endif

if SDL_GLSL
cava_SOURCES += output/sdl_glsl.c
cava_SOURCES += output/sdl_glsl.c output/sdl_glsl.h
endif
Loading

0 comments on commit eb005d0

Please sign in to comment.