Commit Graph

62 Commits

Author SHA1 Message Date
Bryan Schumaker 38c074d898 build: Improve aliasing for tests
scons tests - Compile all tests
scons tests/basic - Compile basic tests
scons tests/basic/print - Compile text printing test

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2014-04-06 19:56:51 -04:00
Bryan Schumaker f75ba5a2b8 tests: Add a basic test
This test checks for the version.h file and then compiles it with and
without debugging enabled.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2014-04-06 19:56:51 -04:00
Bryan Schumaker 78e9c744fd 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>
2014-04-06 19:56:50 -04:00
Bryan Schumaker fa812ece74 Correct `scons release` for bugfix releases
This corrects the package build to look for a tarbal named
"ocarina-5.11.1.tar.gz" instead of "ocarina-5.11.tar.gz"

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-12-06 19:35:54 -05:00
Bryan Schumaker 4bf66921df Improve build scripts
The build system hadn't been touched in a while, so it needed some
cleaning up.  I moved ocarina-specific files into the ocarina/ directory
and use the ocarina/Sconscript to set up build commands.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-09-13 22:14:50 -04:00
Bryan Schumaker 59b79b6575 ocarina: Begin switching to GtkBuilder for the UI
I feel that hand-written UI code is slowing me down, so I'm going to
switch to using glade / GtkBuilder to manage the UI as much as possible.
So far, I create, show, and destroy a window.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-07-29 11:27:50 -04:00
Bryan Schumaker a3e149e7c0 Ocarina 5.9 2012-06-02 13:21:22 -04:00
Bryan Schumaker 7816dea1cf build: Improve PKGBUILD.tmpl
Simpler package function and use $MAKEFLAGS.  There is no longer a need
for DESTDIR or POSTFIX in the Sconstruct file anymore, either.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-06-02 13:21:21 -04:00
Bryan Schumaker f64bf65b37 build: Generate the PKGBUILD file during `scons release`
This is better than needing to update it manually...

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-06-02 12:42:05 -04:00
Bryan Schumaker faadd138c4 build: Turn off debugging
Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-06-02 12:19:45 -04:00
Bryan Schumaker 698ed1508a build: Remove bin/ and lib/ as part of scons clean
Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-06-02 12:06:10 -04:00
Bryan Schumaker 304e8005f1 build: Remove lib/ and bin/ during a scons -c
Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-06-02 11:53:32 -04:00
Bryan Schumaker e4a3b8902f build: Improve install target and create uninstall target
Install files in bin and lib.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-06-02 11:50:32 -04:00
Bryan Schumaker 3d9f21837e build: Alias "ocarina" to the entire ocarina project
Otherwise it'll build just the ocarina subdirectory, which isn't useful
if I ever have multiple projects using libsaria.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-06-02 10:47:45 -04:00
Bryan Schumaker dcaeb8cbd1 build: Copy images to lib/%APP/ during build
From here, I can copy the entire directory when I choose to install.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-06-02 10:17:22 -04:00
Bryan Schumaker e23ecd4bfb Build: make a directory using application name
The app_directory() function sets the config.application variable, then
calls the Sconscript file in that directory.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-06-02 09:41:46 -04:00
Bryan Schumaker fbcc660bd6 build: Create a configuration script
Users set values here to be used by the build system.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-05-28 11:34:37 -04:00
Bryan Schumaker de5cdc1cbc build: Use "C++" instead of "CXX" for building
I don't like the look of "CXX" as much.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-05-28 10:29:17 -04:00
Bryan Schumaker d6dff5290f scripts: Create an %APP-play for sending play commands
I'm currently using the "ocarina" script as a functions file, but this
will change eventually.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-05-27 23:16:56 -04:00
Bryan Schumaker 62c3ef2684 build: Create ocarina.bin as a symlink to ocarina-player
I want to add in more ocarina-* commands, so the first step is making
the player its own command.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-05-27 17:37:25 -04:00
Bryan Schumaker 30375bbdff build: Compile libsaria using an Sconscript file
To extract libsaria-related stuff from the main build script.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-05-27 10:40:19 -04:00
Bryan Schumaker cc32587917 build: Create an ocarina Sconscript file
This file will set up building the ocarina/ subdirectory.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-05-27 10:36:45 -04:00
Bryan Schumaker 5f5f23bf9e Build: Create version.h using an Sconscript file
This lets me pull code out of the generic Sconstruct, so it can't be
bad!  I also removed the test directory since I never made unit tests.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-05-27 10:23:47 -04:00
Bryan Schumaker 5b86536af3 Begin Ocarina 5.9 2012-05-13 10:46:17 -04:00
Bryan Schumaker cf85c0231d Ocarina 5.8 2012-05-12 08:06:02 -04:00
Bryan Schumaker af2d4833fa Begin Ocarina 5.8 2012-04-07 10:01:14 -04:00
Bryan Schumaker 696da607ba Ocarina 5.7-rc 2012-03-06 08:12:51 -05:00
Bryan Schumaker e49a9bd114 Begin Ocarina 5.7 2012-02-19 17:17:24 -05:00
Bryan Schumaker 454f83ef9b Ocarina 5.6.2 2012-02-19 17:16:48 -05:00
Bryan Schumaker f51013c97c Ocarina 5.6.1 2012-02-17 22:18:17 -05:00
Bryan Schumaker ed0ace5366 build: Configure scripts to use the correct lib directory
When installing through the PKGBUILD, a non-blank DESTDIR is used and
the ocarina-* scripts are configured to use the package directory rather
than the installed directory.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-02-17 22:06:45 -05:00
Bryan Schumaker f6fd7915c9 Ocarina 5.6 2012-02-17 08:27:12 -05:00
Bryan Schumaker defa6185c2 Ocarina 5.6-rc
Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-02-11 12:57:20 -05:00
Bryan Schumaker 5d687176e8 tests: Began creating test programs
I want these to help check for memory leaks and other problems.  Maybe
one day I can run them through Jenkins!

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-02-09 08:22:40 -05:00
Bryan Schumaker dce461656f scons: Install multiple scripts
Each script acts as an ocarina sub-command, and each write through the
ocarina-write-pipe script.  Note that these scripts cannot be run
directly, and need to run through a processor in the Sconstruct file to
set the correct paths.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-02-08 08:11:14 -05:00
Bryan Schumaker 152e7009d8 scons: Create a ocarina-debug launcher
My Sconstruct now supports installing a debug build to
/usr/lib/ocarina-debug and launching through ocarina-debug.  This should
allow me to test pipe related scripts
2012-02-08 08:11:14 -05:00
Bryan Schumaker 01288e1a86 Libsaria: Make alsa controls its own thing
I created a new preference for "Using ALSA" that people can set if they
want to use extra alsa features.  This should allow the UI to provide a
dropdown list of outputs that users can select.  Once a UI is in place,
users can play music either on their computer speakers or pipe it out to
their blu ray players (or other device).

Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
2012-02-08 08:11:13 -05:00
Bryan Schumaker 12f6723111 Begin work on Ocarina 5.6 2012-02-08 08:11:12 -05:00
Josh Larson 0d63656df8 Fixed bug with unset environment variable.
When either HOME or XDG_CONFIG_HOME are unset getenv() can return NULL.
C++ strings don't like being set to NULL, so we need to check for this
case.

Bryan: Edited Sconstruct and commit message.

Signed-off-by: Josh Larson <theMutatedShrimp@gmail.com>
Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-02-08 08:10:19 -05:00
Bryan Schumaker fe7bf9e445 libsaria: Check if a song exists before loading it
This could lead to a segmentation fault if we don't do it...

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-02-07 22:25:13 -05:00
Bryan Schumaker 51e5887971 libsaria: Rename the index rand() function
I found it was calling itself over and over again, rather than calling
the stdlib rand().  This wasn't the desired behavior...

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-02-07 08:47:24 -05:00
Bryan Schumaker 4f0671e4a7 Ocarina 5.5 2012-01-23 08:04:39 -05:00
Bryan Schumaker e11df95c1b Ocarina 5.5-rc 2012-01-04 08:28:07 -05:00
Bryan Schumaker f1fa96eab9 Begin Ocarina 5.5
I'm planning on libsaria code cleanups and performance enhancements
for this release.
2011-12-18 15:04:48 -05:00
Bryan Schumaker 3c919ba7ca Ocarina 5.4 2011-12-17 10:07:57 -05:00
Bryan Schumaker eab73ffb39 Begin work on Ocarina 5.4 2011-11-12 14:03:13 -05:00
Bryan Schumaker a9b4147df8 build: Updated Sconstruct
A few fixes before releasing 5.3
2011-11-11 08:07:58 -05:00
Bryan Schumaker 82cb17c1cb build: Added support for DESTDIR
I'll need this for my PKGBUILD
2011-11-10 17:31:27 -05:00
Bryan Schumaker 41f1c01752 build: Don't generate include/version.h all the time
Installing, cleaning and archiving don't need to create the version.h
file, so instead I'll add it as a build step for ocarina.
2011-11-09 23:17:59 -05:00
Bryan Schumaker 624d9a9e74 build: Added a `scons archive` command
This will create an ocarina tarball for the current release.
2011-11-09 23:04:16 -05:00