Skip to content

Commit

Permalink
Reorganize files
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Bourdeauducq committed Nov 21, 2011
1 parent e750a56 commit d7d1b37
Show file tree
Hide file tree
Showing 87 changed files with 106 additions and 119 deletions.
25 changes: 6 additions & 19 deletions src/Makefile
Expand Up @@ -12,29 +12,16 @@ LIBS=-lnfs -lftpd -ltelnetd -lyaffs2 -lmtk -llop -lfpvm -lpng -lcurl -lexpat -lz
OBJDIR=obj
BINDIR=bin

# base
OBJS=yaffs.o version.o shellext.o sysconfig.o config.o fb.o input.o keymap.o fbgrab.o shortcuts.o osc.o pngwrite.o flashvalid.o main.o

# pixbuf
OBJS+=pixbuf/dither.o pixbuf/loaderjpeg.o pixbuf/loaderpng.o pixbuf/manager.o

# GUI
OBJS+=messagebox.o filedialog.o resmgr.o guirender.o performance.o cp.o keyboard.o ir.o audio.o midi.o oscsettings.o dmxspy.o dmxdesk.o dmx.o videoin.o rsswall.o patcheditor.o monitor.o firstpatch.o filemanager.o sysettings.o about.o patchpool.o flash.o shutdown.o

# translations
OBJS+=french.o german.o

# PDF
OBJS=yaffs.o version.o shellext.o sysconfig.o config.o fb.o input.o keymap.o fbgrab.o shortcuts.o osc.o pngwrite.o patchpool.o flashvalid.o main.o
OBJS+=$(addprefix pixbuf/,dither.o loaderjpeg.o loaderpng.o manager.o)
OBJS+=$(addprefix gui/,messagebox.o filedialog.o resmgr.o guirender.o performance.o cp.o keyboard.o ir.o audio.o midi.o oscsettings.o dmxspy.o dmxdesk.o dmx.o videoin.o rsswall.o patcheditor.o monitor.o firstpatch.o filemanager.o sysettings.o about.o flash.o shutdown.o)
ifeq ($(WITH_PDF),1)
OBJS+=pdfreader.o
OBJS+=$(addprefix gui/,pdfreader.o)
CFLAGS+=-DWITH_PDF
LIBS:=-lmupdf -lfreetype -ljbig2dec -lopenjpeg -ljpeg $(LIBS)
endif

# renderer
OBJS+=framedescriptor.o analyzer.o sampler.o compiler.o eval.o line.o wave.o font.o osd.o raster.o renderer.o videoinreconf.o

#
OBJS+=$(addprefix translations/,french.o german.o)
OBJS+=$(addprefix renderer/,framedescriptor.o analyzer.o sampler.o compiler.o eval.o line.o wave.o font.o osd.o raster.o renderer.o videoinreconf.o)

POBJS=$(addprefix $(OBJDIR)/,$(OBJS))

Expand Down
2 changes: 1 addition & 1 deletion src/about.c → src/gui/about.c
Expand Up @@ -19,7 +19,7 @@
#include <stdio.h>
#include <mtklib.h>

#include "version.h"
#include "../version.h"
#include "flash.h"
#include "about.h"

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/audio.c → src/gui/audio.c
Expand Up @@ -26,10 +26,10 @@
#include <mtklib.h>
#include <bsp/milkymist_ac97.h>

#include "config.h"
#include "../config.h"
#include "cp.h"
#include "util.h"
#include "version.h"
#include "../util.h"
#include "../version.h"
#include "flash.h"
#include "about.h"
#include "audio.h"
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/cp.c → src/gui/cp.c
Expand Up @@ -22,7 +22,7 @@
#include "performance.h"
#include "keyboard.h"
#include "ir.h"
#include "fb.h"
#include "../fb.h"
#include "audio.h"
#include "midi.h"
#include "oscsettings.h"
Expand All @@ -41,10 +41,10 @@
#include "flash.h"
#include "shutdown.h"

#include "config.h"
#include "../config.h"
#include "filedialog.h"
#include "messagebox.h"
#include "sysconfig.h"
#include "../sysconfig.h"

#include "cp.h"

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/dmx.c → src/gui/dmx.c
Expand Up @@ -28,10 +28,10 @@

#include <mtklib.h>

#include "config.h"
#include "framedescriptor.h"
#include "../config.h"
#include "../renderer/framedescriptor.h"
#include "cp.h"
#include "util.h"
#include "../util.h"
#include "resmgr.h"
#include "monitor.h"
#include "dmxspy.h"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/dmxdesk.c → src/gui/dmxdesk.c
Expand Up @@ -24,7 +24,7 @@

#include <mtklib.h>

#include "util.h"
#include "../util.h"
#include "resmgr.h"
#include "dmxdesk.h"

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/dmxspy.c → src/gui/dmxspy.c
@@ -1,6 +1,6 @@
/*
* Flickernoise
* Copyright (C) 2010 Sebastien Bourdeauducq
* Copyright (C) 2010, 2011 Sebastien Bourdeauducq
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -27,7 +27,7 @@
#include "cp.h"

#include "resmgr.h"
#include "input.h"
#include "../input.h"
#include "dmxspy.h"

static int appid;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/firstpatch.c → src/gui/firstpatch.c
Expand Up @@ -19,7 +19,7 @@
#include <stdio.h>
#include <mtklib.h>

#include "config.h"
#include "../config.h"
#include "cp.h"
#include "filedialog.h"

Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions src/flash.c → src/gui/flash.c
Expand Up @@ -33,12 +33,12 @@

#include "filedialog.h"
#include "messagebox.h"
#include "input.h"
#include "flashvalid.h"
#include "version.h"
#include "sysconfig.h"
#include "../input.h"
#include "../flashvalid.h"
#include "../version.h"
#include "../sysconfig.h"
#include "performance.h"
#include "patchpool.h"
#include "../patchpool.h"

#include "flash.h"

Expand Down
File renamed without changes.
12 changes: 6 additions & 6 deletions src/guirender.c → src/gui/guirender.c
Expand Up @@ -25,14 +25,14 @@
#include <mtkeycodes.h>
#include <bsp/milkymist_video.h>

#include "compiler.h"
#include "renderer.h"
#include "../renderer/compiler.h"
#include "../renderer/renderer.h"
#include "resmgr.h"
#include "fb.h"
#include "input.h"
#include "config.h"
#include "../fb.h"
#include "../input.h"
#include "../config.h"
#include "cp.h"
#include "videoinreconf.h"
#include "../renderer/videoinreconf.h"

#include "guirender.h"

Expand Down
2 changes: 1 addition & 1 deletion src/guirender.h → src/gui/guirender.h
Expand Up @@ -18,7 +18,7 @@
#ifndef __GUIRENDER_H
#define __GUIRENDER_H

#include "compiler.h"
#include "../renderer/compiler.h"

typedef void (*guirender_stop_callback)();

Expand Down
6 changes: 3 additions & 3 deletions src/ir.c → src/gui/ir.c
Expand Up @@ -25,9 +25,9 @@
#include <unistd.h>
#include <mtklib.h>

#include "util.h"
#include "input.h"
#include "config.h"
#include "../util.h"
#include "../input.h"
#include "../config.h"
#include "cp.h"
#include "messagebox.h"
#include "filedialog.h"
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/keyboard.c → src/gui/keyboard.c
Expand Up @@ -24,8 +24,8 @@
#include <unistd.h>
#include <mtklib.h>

#include "util.h"
#include "config.h"
#include "../util.h"
#include "../config.h"
#include "cp.h"
#include "messagebox.h"
#include "filedialog.h"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions src/midi.c → src/gui/midi.c
Expand Up @@ -26,14 +26,14 @@
#include <assert.h>
#include <mtklib.h>

#include "util.h"
#include "input.h"
#include "config.h"
#include "../util.h"
#include "../input.h"
#include "../config.h"
#include "cp.h"
#include "messagebox.h"
#include "filedialog.h"
#include "performance.h"
#include "framedescriptor.h"
#include "../renderer/framedescriptor.h"

#include "midi.h"

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/monitor.c → src/gui/monitor.c
Expand Up @@ -20,10 +20,10 @@
#include <rtems.h>
#include <mtklib.h>

#include "input.h"
#include "../input.h"
#include "resmgr.h"
#include "framedescriptor.h"
#include "sampler.h"
#include "../renderer/framedescriptor.h"
#include "../renderer/sampler.h"

#include "monitor.h"

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/oscsettings.c → src/gui/oscsettings.c
Expand Up @@ -25,8 +25,8 @@
#include <unistd.h>
#include <mtklib.h>

#include "util.h"
#include "config.h"
#include "../util.h"
#include "../config.h"
#include "cp.h"
#include "messagebox.h"
#include "filedialog.h"
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/patcheditor.c → src/gui/patcheditor.c
Expand Up @@ -26,9 +26,9 @@

#include "filedialog.h"
#include "patcheditor.h"
#include "framedescriptor.h"
#include "compiler.h"
#include "input.h"
#include "../renderer/framedescriptor.h"
#include "../renderer/compiler.h"
#include "../input.h"
#include "guirender.h"

static int appid;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions src/performance.c → src/gui/performance.c
Expand Up @@ -29,15 +29,15 @@
#include <mtkeycodes.h>
#include <bsp/milkymist_video.h>

#include "input.h"
#include "fb.h"
#include "../input.h"
#include "../fb.h"
#include "messagebox.h"
#include "config.h"
#include "compiler.h"
#include "renderer.h"
#include "../config.h"
#include "../renderer/compiler.h"
#include "../renderer/renderer.h"
#include "guirender.h"
#include "performance.h"
#include "osd.h"
#include "../renderer/osd.h"

#define FILENAME_LEN 384

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions src/rsswall.c → src/gui/rsswall.c
Expand Up @@ -25,11 +25,11 @@
#include <expat.h>
#include <mtklib.h>

#include "version.h"
#include "util.h"
#include "osd.h"
#include "../version.h"
#include "../util.h"
#include "../renderer/osd.h"
#include "cp.h"
#include "config.h"
#include "../config.h"
#include "rsswall.h"

static int appid;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/sysettings.c → src/gui/sysettings.c
Expand Up @@ -20,8 +20,8 @@
#include <arpa/inet.h>
#include <mtklib.h>

#include "input.h"
#include "sysconfig.h"
#include "../input.h"
#include "../sysconfig.h"
#include "filedialog.h"
#include "sysettings.h"

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/videoin.c → src/gui/videoin.c
Expand Up @@ -26,11 +26,11 @@
#include <mtklib.h>
#include <bsp/milkymist_video.h>

#include "config.h"
#include "../config.h"
#include "resmgr.h"
#include "util.h"
#include "../util.h"
#include "cp.h"
#include "input.h"
#include "../input.h"
#include "videoin.h"

static int appid;
Expand Down
File renamed without changes.
48 changes: 24 additions & 24 deletions src/main.c
Expand Up @@ -51,38 +51,38 @@

#include "yaffs.h"
#include "version.h"
#include "videoinreconf.h"
#include "renderer/videoinreconf.h"
#include "shellext.h"
#include "sysconfig.h"
#include "fb.h"
#include "input.h"
#include "shortcuts.h"
#include "osc.h"
#include "messagebox.h"
#include "performance.h"
#include "cp.h"
#include "keyboard.h"
#include "ir.h"
#include "audio.h"
#include "midi.h"
#include "oscsettings.h"
#include "dmxspy.h"
#include "dmxdesk.h"
#include "dmx.h"
#include "videoin.h"
#include "rsswall.h"
#include "patcheditor.h"
#include "firstpatch.h"
#include "monitor.h"
#include "filemanager.h"
#include "gui/messagebox.h"
#include "gui/performance.h"
#include "gui/cp.h"
#include "gui/keyboard.h"
#include "gui/ir.h"
#include "gui/audio.h"
#include "gui/midi.h"
#include "gui/oscsettings.h"
#include "gui/dmxspy.h"
#include "gui/dmxdesk.h"
#include "gui/dmx.h"
#include "gui/videoin.h"
#include "gui/rsswall.h"
#include "gui/patcheditor.h"
#include "gui/firstpatch.h"
#include "gui/monitor.h"
#include "gui/filemanager.h"
#ifdef WITH_PDF
#include "pdfreader.h"
#include "gui/pdfreader.h"
#endif
#include "sysettings.h"
#include "shutdown.h"
#include "about.h"
#include "flash.h"
#include "filedialog.h"
#include "gui/sysettings.h"
#include "gui/shutdown.h"
#include "gui/about.h"
#include "gui/flash.h"
#include "gui/filedialog.h"

static rtems_task gui_task(rtems_task_argument argument)
{
Expand Down
Empty file added src/obj/gui/.keep_me
Empty file.
Empty file added src/obj/renderer/.keep_me
Empty file.
Empty file added src/obj/translations/.keep_me
Empty file.
4 changes: 2 additions & 2 deletions src/osc.c
Expand Up @@ -27,8 +27,8 @@
#include <lop/lop_lowlevel.h>

#include "input.h"
#include "framedescriptor.h"
#include "osd.h"
#include "renderer/framedescriptor.h"
#include "renderer/osd.h"

#include "osc.h"

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 d7d1b37

Please sign in to comment.