Skip to content

Commit

Permalink
First upload on GitHub.
Browse files Browse the repository at this point in the history
  • Loading branch information
Programmist11180 committed Jun 2, 2020
1 parent 65678c8 commit 804c7d7
Show file tree
Hide file tree
Showing 18 changed files with 2,181 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# ignore build directories
src/obj_arm_gnueabi/
src/obj_emu/
# ignore QtCreator project files
pbxmms2client.cflags
pbxmms2client.config
pbxmms2client.creator*
pbxmms2client.cxxflags
pbxmms2client.files
pbxmms2client.includes
# other
*~
11 changes: 11 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
pbxmms2client v0.006 (first release on GitHub)
- fix ALSA lib warning "Invalid CTL"
- fix saving volume level
- update copyrights
.05.2020

pbxmms2client v0.005
- various internal improvements
- added displaying battery charge
- added displaying current playtime
18.03.2020
Empty file added INSTALL
Empty file.
28 changes: 28 additions & 0 deletions scripts/pbxmms2client.app
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#
# pbxmms2client.app
#
# Copyright (C) 2014-2020 Programmist11180 <[email protected]>
#
# This file is part of PBXMMS2client.
#
# PBXMMS2client is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# PBXMMS2client is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with PBXMMS2client. If not, see <http://www.gnu.org/licenses/>.
#

#!/bin/sh
export LD_PRELOAD=/mnt/ext1/system/lib/preloadable_libiconv.so
export LD_LIBRARY_PATH=/mnt/ext1/system/lib
export XDG_CACHE_HOME=/mnt/ext1/system/cache
export XDG_CONFIG_HOME=/mnt/ext1/system/config

exec /mnt/ext1/system/bin/pbxmms2client.app
28 changes: 28 additions & 0 deletions scripts/xmms2-launcher
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#
# xmms2-launcher
#
# Copyright (C) 2014-2020 Programmist11180 <[email protected]>
#
# This file is part of PBXMMS2client.
#
# PBXMMS2client is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# PBXMMS2client is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with PBXMMS2client. If not, see <http://www.gnu.org/licenses/>.
#

#!/bin/sh
export LD_PRELOAD=/mnt/ext1/system/lib/preloadable_libiconv.so
export LD_LIBRARY_PATH=/mnt/ext1/system/lib
export XDG_CACHE_HOME=/mnt/ext1/system/cache
export XDG_CONFIG_HOME=/mnt/ext1/system/config

exec /mnt/ext1/system/bin/xmms2-launcher.bin -- --plugindir=/mnt/ext1/system/lib/xmms2_plugins --quiet
29 changes: 29 additions & 0 deletions scripts/xmms2_cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#
# xmms2-cli
#
# Copyright (C) 2014-2020 Programmist11180 <[email protected]>
#
# This file is part of PBXMMS2client.
#
# PBXMMS2client is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# PBXMMS2client is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with PBXMMS2client. If not, see <http://www.gnu.org/licenses/>.
#

#!/bin/sh
export LD_PRELOAD=/mnt/ext1/system/lib/preloadable_libiconv.so
export LD_LIBRARY_PATH=/mnt/ext1/system/lib
export XDG_CACHE_HOME=/mnt/ext1/system/cache
export XDG_CONFIG_HOME=/mnt/ext1/system/config

cd /mnt/ext1/system/bin
exec /mnt/ext1/system/bin/xmms2 "$@"
73 changes: 73 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
#
# Makefile
#
# Copyright (C) 2014-2020 Programmist11180 <[email protected]>
#
# This file is part of PBXMMS2client.
#
# PBXMMS2client is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# PBXMMS2client is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with PBXMMS2client. If not, see <http://www.gnu.org/licenses/>.
#

OUT = pbxmms2client
include /usr/local/pocketbook/common.mk

SOURCES += fork.cpp main.cpp client_screen.cpp settings.cpp log.cpp xmms.cpp

CXXFLAGS+= -Wall -Wextra -I$(HOME)/pb_programming/pbtk-0.2.1 \
`pkg-config --cflags xmms2-client freetype2 glib-2.0`

ifeq (${BUILD},emu)
CXXFLAGS+= -std=c++11 -Wno-write-strings `pkg-config --cflags sigc++-2.0`
LDFLAGS+= -L$(HOME)/pb_programming/pblibs_emulator
endif

ifeq (${BUILD},arm_gnueabi)
CXXFLAGS+= -std=c++98 -I$(HOME)/pb_programming/sigc++-arm-bin/include/sigc++-2.0
LDFLAGS+= -L$(HOME)/pb_programming/pblibs_arm_gnueabi
endif

LIBS+= -linkview -lpbtk -lsigc-2.0 -lxmmsclient -lglib-2.0 -lxmmsclient-glib -lpthread -lpng12


PIXMAPS=

PIXMAPS_C=$(PIXMAPS:.xpm=.c)
PIXMAPS_OBJS=$(addprefix $(OBJDIR)/,$(PIXMAPS_C:.c=.o))

all: $(PROJECT)

$(PROJECT): $(PIXMAPS_C) $(OBJDIR) $(OBJS) $(PIXMAPS_OBJS)
$(CXX) -o $@ $(OBJS) $(PIXMAPS_OBJS) $(LDFLAGS) $(LIBS)

# $(PROJECT) : $(OBJDIR) $(SYSTEM_LINK) $(OBJS) $(BITMAP_OBJS)
# $(LD) -o $@ $(OBJS) $(BITMAP_OBJS) $(LDFLAGS) $(LIBS)

#$(OBJDIR):
# mkdir -p $(OBJDIR)
# mkdir -p $(OBJDIR)

$(OBJDIR)/%.cxx.o: %.cxx
$(CXX) -c -o $@ $(CXXFLAGS) $(INCLUDES) $(CDEPS) $<
$(OBJDIR)/%.cpp.o: %.cpp
$(CXX) -c -o $@ $(CXXFLAGS) $(INCLUDES) $(CDEPS) $<

$(OBJDIR)/images/%.o: images/%.c
$(CC) -c -o $@ $(CFLAGS) $(INCLUDES) $(CDEPS) $<

$(PIXMAPS_C): $(PIXMAPS)

images/%.c: images/%.xpm
./xpbres -c $@ $<

-include $(OBJDIR)/*.d
Loading

0 comments on commit 804c7d7

Please sign in to comment.