Skip to content

Commit

Permalink
Move source files to src/; fix the CI for gtk2
Browse files Browse the repository at this point in the history
  • Loading branch information
loskutov committed Nov 11, 2016
1 parent 3f6cffb commit cd81758
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
language: nix
script: nix-shell --run "make gtk3 && make gtk2"
script: nix-shell --run "make gtk3 clean && make gtk2"
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ lyricbar: ui.o utils.o main.o
$(if $(LYRICBAR),, $(error You should only access this target via "gtk3" or "gtk2"))
$(CXX) -flto -shared main.o ui.o utils.o -o $(LYRICBAR) $(LIBS)

ui.o: ui.cpp
$(CXX) ui.cpp -c $(LIBFLAGS) $(CXXFLAGS)
ui.o: src/ui.cpp
$(CXX) src/ui.cpp -c $(LIBFLAGS) $(CXXFLAGS)

utils.o: utils.cpp
$(CXX) utils.cpp -c $(LIBFLAGS) $(CXXFLAGS)
utils.o: src/utils.cpp
$(CXX) src/utils.cpp -c $(LIBFLAGS) $(CXXFLAGS)

main.o: main.c
$(CC) $(CFLAGS) main.c -c `pkg-config --cflags $(GTK)`
main.o: src/main.c
$(CC) $(CFLAGS) src/main.c -c `pkg-config --cflags $(GTK)`

install:
install -d $(prefix)/lib/deadbeef
Expand Down
4 changes: 3 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
with import <nixpkgs> {}; {
sdlEnv = stdenv.mkDerivation {
lyricbar = stdenv.mkDerivation {
name = "deadbeef-lyricbar";
buildInputs = [
stdenv
pkgconfig
gettext
gnome2.gtkmm
gnome3.gtkmm
gnome2.gtk
gnome3.gtk
deadbeef
libxmlxx3
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit cd81758

Please sign in to comment.