newgui: Start rewriting the gui
The plan is to port everything to gtkmm since using the C functions is beginning to get annoying. Compile the new code using `scons newgui` for now. Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
parent
e4d73fee48
commit
78e9c744fd
|
@ -6,7 +6,7 @@ pkgdesc="A simple GTK and gstreamer based music player."
|
||||||
url="http://www.ocarinaproject.net/"
|
url="http://www.ocarinaproject.net/"
|
||||||
arch=('x86_64' 'i686')
|
arch=('x86_64' 'i686')
|
||||||
license=('SimPL')
|
license=('SimPL')
|
||||||
depends=('gtk2' 'gstreamer' 'gst-plugins-base' 'taglib')
|
depends=('gtk2' 'gtkmm' 'gstreamer' 'gst-plugins-base' 'taglib')
|
||||||
optdepends=('gst-plugins-good' 'gst-plugins-bad' 'gst-plugins-ugly')
|
optdepends=('gst-plugins-good' 'gst-plugins-bad' 'gst-plugins-ugly')
|
||||||
makedepends=('scons')
|
makedepends=('scons')
|
||||||
conflicts=()
|
conflicts=()
|
||||||
|
|
|
@ -22,6 +22,7 @@ config.include = SConscript("include/Sconscript")
|
||||||
config.libsaria = SConscript("libsaria/Sconscript")
|
config.libsaria = SConscript("libsaria/Sconscript")
|
||||||
|
|
||||||
ocarina = SConscript("ocarina/Sconscript")
|
ocarina = SConscript("ocarina/Sconscript")
|
||||||
|
newgui = SConscript("newgui/Sconscript")
|
||||||
Default(ocarina)
|
Default(ocarina)
|
||||||
|
|
||||||
# Install bin/ and lib/
|
# Install bin/ and lib/
|
||||||
|
|
33
newgui/Sconscript
Normal file
33
newgui/Sconscript
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
#!/usr/bin/python
|
||||||
|
from config import *
|
||||||
|
|
||||||
|
env.ParseConfig('pkg-config --cflags --libs gtkmm-2.4')
|
||||||
|
#env.ParseConfig('pkg-config --cflags --libs gmodule-export-2.0')
|
||||||
|
|
||||||
|
|
||||||
|
#def script(target, source, env):
|
||||||
|
# f = open(str(target[0]), 'w')
|
||||||
|
# for line in open(str(source[0])):
|
||||||
|
# line = line.replace("%DEBUG", str(DEBUG))
|
||||||
|
# f.write(line)
|
||||||
|
# f.close()
|
||||||
|
# os.chmod(str(target[0]), 0755)
|
||||||
|
|
||||||
|
|
||||||
|
#extra_files = [
|
||||||
|
# ("ocarina.xml", "../lib/ocarina/ocarina.xml", copy),
|
||||||
|
# ("images/random.png", "../lib/ocarina/random.png", copy),
|
||||||
|
# ("images/ocarina.png", "../lib/ocarina/ocarina.png", copy),
|
||||||
|
# ("images/thumbs_up.png", "../lib/ocarina/thumbs_up.png", copy),
|
||||||
|
# ("images/thumbs_down.png", "../lib/ocarina/thumbs_down.png", copy),
|
||||||
|
# ("scripts/ocarina", "../bin/ocarina", script),
|
||||||
|
# ("scripts/ocarina-completion.bash", "../lib/ocarina/ocarina-completion.bash", copy),
|
||||||
|
# ("../bin/ocarina", "../ocarina.bin", symlink),
|
||||||
|
#]
|
||||||
|
|
||||||
|
build = [env.Program("../bin/newgui-player", libsaria + get_cpp_files())]
|
||||||
|
#for (src, dst, func) in extra_files:
|
||||||
|
# build.append(env.Command(dst, src, func))
|
||||||
|
|
||||||
|
env.Alias("newgui", build)
|
||||||
|
Return('build')
|
8
newgui/ocarina.cpp
Normal file
8
newgui/ocarina.cpp
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
// Copyright (c) 2013 Bryan Schumaker
|
||||||
|
|
||||||
|
#include "ocarina.h"
|
||||||
|
|
||||||
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
6
newgui/ocarina.h
Normal file
6
newgui/ocarina.h
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#ifndef OCARINA_H
|
||||||
|
#define OCARINA_H
|
||||||
|
|
||||||
|
#include <gtkmm.h>
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user