Move the desktop to a dedicated directory
This commit is contained in:
parent
f50108e982
commit
c8474a23c4
2
src/.gitignore
vendored
2
src/.gitignore
vendored
|
@ -1,8 +1,6 @@
|
||||||
/browser
|
/browser
|
||||||
/copy
|
/copy
|
||||||
/delete
|
/delete
|
||||||
/desktop
|
|
||||||
/desktopctl
|
|
||||||
/move
|
/move
|
||||||
/open
|
/open
|
||||||
/properties
|
/properties
|
||||||
|
|
2
src/desktop/.gitignore
vendored
Normal file
2
src/desktop/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
/desktop
|
||||||
|
/desktopctl
|
|
@ -50,17 +50,17 @@
|
||||||
#include <X11/Xatom.h>
|
#include <X11/Xatom.h>
|
||||||
#include <X11/extensions/Xrandr.h>
|
#include <X11/extensions/Xrandr.h>
|
||||||
#include <System.h>
|
#include <System.h>
|
||||||
#include "../include/Browser/desktop.h"
|
#include "../../include/Browser/desktop.h"
|
||||||
#include "../include/Browser/vfs.h"
|
#include "../../include/Browser/vfs.h"
|
||||||
#include "desktopicon.h"
|
#include "desktopicon.h"
|
||||||
#include "desktopiconwindow.h"
|
#include "desktopiconwindow.h"
|
||||||
#include "desktop.h"
|
#include "desktop.h"
|
||||||
#include "../config.h"
|
#include "../../config.h"
|
||||||
#define _(string) gettext(string)
|
#define _(string) gettext(string)
|
||||||
#define N_(string) string
|
#define N_(string) string
|
||||||
|
|
||||||
#define COMMON_SYMLINK
|
#define COMMON_SYMLINK
|
||||||
#include "common.c"
|
#include "../common.c"
|
||||||
|
|
||||||
|
|
||||||
/* constants */
|
/* constants */
|
|
@ -34,8 +34,8 @@
|
||||||
|
|
||||||
# include <gtk/gtk.h>
|
# include <gtk/gtk.h>
|
||||||
# include <Desktop.h>
|
# include <Desktop.h>
|
||||||
# include "../include/Browser.h"
|
# include "../../include/Browser.h"
|
||||||
# include "common.h"
|
# include "../common.h"
|
||||||
|
|
||||||
|
|
||||||
/* Desktop */
|
/* Desktop */
|
|
@ -1,5 +1,5 @@
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
/* Copyright (c) 2011-2012 Pierre Pronchery <khorben@defora.org> */
|
/* Copyright (c) 2011-2016 Pierre Pronchery <khorben@defora.org> */
|
||||||
/* This file is part of DeforaOS Desktop Browser */
|
/* This file is part of DeforaOS Desktop Browser */
|
||||||
/* Redistribution and use in source and binary forms, with or without
|
/* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions are
|
* modification, are permitted provided that the following conditions are
|
||||||
|
@ -36,8 +36,8 @@
|
||||||
#include <libintl.h>
|
#include <libintl.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <Desktop.h>
|
#include <Desktop.h>
|
||||||
#include "../include/Browser/desktop.h"
|
#include "../../include/Browser/desktop.h"
|
||||||
#include "../config.h"
|
#include "../../config.h"
|
||||||
#define _(string) gettext(string)
|
#define _(string) gettext(string)
|
||||||
|
|
||||||
/* constants */
|
/* constants */
|
|
@ -40,16 +40,16 @@
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <gdk/gdkkeysyms.h>
|
#include <gdk/gdkkeysyms.h>
|
||||||
#include <System.h>
|
#include <System.h>
|
||||||
#include "../include/Browser/desktop.h"
|
#include "../../include/Browser/desktop.h"
|
||||||
#include "../include/Browser/vfs.h"
|
#include "../../include/Browser/vfs.h"
|
||||||
#include "desktop.h"
|
#include "desktop.h"
|
||||||
#include "desktopicon.h"
|
#include "desktopicon.h"
|
||||||
#include "../config.h"
|
#include "../../config.h"
|
||||||
#define _(string) gettext(string)
|
#define _(string) gettext(string)
|
||||||
|
|
||||||
#define COMMON_DND
|
#define COMMON_DND
|
||||||
#define COMMON_EXEC
|
#define COMMON_EXEC
|
||||||
#include "common.c"
|
#include "../common.c"
|
||||||
|
|
||||||
|
|
||||||
/* constants */
|
/* constants */
|
|
@ -33,7 +33,7 @@
|
||||||
# define BROWSER_DESKTOPICON_H
|
# define BROWSER_DESKTOPICON_H
|
||||||
|
|
||||||
# include <gtk/gtk.h>
|
# include <gtk/gtk.h>
|
||||||
# include "common.h"
|
# include "../common.h"
|
||||||
|
|
||||||
|
|
||||||
/* DesktopIcon */
|
/* DesktopIcon */
|
|
@ -32,7 +32,7 @@
|
||||||
#ifndef BROWSER_DESKTOPICONWINDOW_H
|
#ifndef BROWSER_DESKTOPICONWINDOW_H
|
||||||
# define BROWSER_DESKTOPICONWINDOW_H
|
# define BROWSER_DESKTOPICONWINDOW_H
|
||||||
|
|
||||||
# include "common.h"
|
# include "../common.h"
|
||||||
|
|
||||||
|
|
||||||
/* DesktopIconWindow */
|
/* DesktopIconWindow */
|
36
src/desktop/project.conf
Normal file
36
src/desktop/project.conf
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
targets=desktop,desktopctl
|
||||||
|
#cppflags=-D EMBEDDED
|
||||||
|
cflags_force=`pkg-config --cflags libDesktop`
|
||||||
|
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
||||||
|
ldflags_force=`pkg-config --libs libDesktop` -lintl
|
||||||
|
ldflags=-Wl,-z,relro -Wl,-z,now
|
||||||
|
dist=Makefile,desktop.h,desktopicon.h,desktopiconwindow.h
|
||||||
|
|
||||||
|
[desktop]
|
||||||
|
type=binary
|
||||||
|
depends=$(OBJDIR)../lib/libBrowser.a
|
||||||
|
sources=desktop.c,desktopicon.c,desktopiconwindow.c
|
||||||
|
cflags=`pkg-config --cflags x11 xrandr` -fPIE
|
||||||
|
ldflags=`pkg-config --libs x11 xrandr` -L$(OBJDIR)../lib -Wl,-rpath,$(LIBDIR) -lBrowser -pie
|
||||||
|
install=$(BINDIR)
|
||||||
|
|
||||||
|
[desktop.c]
|
||||||
|
depends=../common.h,../common.c,desktopicon.h,desktop.h,../../config.h
|
||||||
|
cppflags=-D PREFIX=\"$(PREFIX)\"
|
||||||
|
|
||||||
|
[desktopicon.c]
|
||||||
|
depends=../common.h,../common.c,desktop.h,desktopicon.h,../../config.h
|
||||||
|
cppflags=-D PREFIX=\"$(PREFIX)\"
|
||||||
|
|
||||||
|
[desktopiconwindow.c]
|
||||||
|
depends=../common.h,desktop.h,desktopicon.h,desktopiconwindow.h
|
||||||
|
|
||||||
|
[desktopctl]
|
||||||
|
type=binary
|
||||||
|
sources=desktopctl.c
|
||||||
|
cflags=-fPIE
|
||||||
|
ldflags=-pie
|
||||||
|
install=$(BINDIR)
|
||||||
|
|
||||||
|
[desktopctl.c]
|
||||||
|
depends=desktop.h,../../config.h
|
|
@ -1,11 +1,11 @@
|
||||||
subdirs=lib
|
subdirs=lib,desktop
|
||||||
targets=browser,copy,delete,desktop,desktopctl,move,open,properties,view
|
targets=browser,copy,delete,move,open,properties,view
|
||||||
#cppflags=-D EMBEDDED
|
#cppflags=-D EMBEDDED
|
||||||
cflags_force=`pkg-config --cflags libDesktop`
|
cflags_force=`pkg-config --cflags libDesktop`
|
||||||
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
||||||
ldflags_force=`pkg-config --libs libDesktop` -lintl
|
ldflags_force=`pkg-config --libs libDesktop` -lintl
|
||||||
ldflags=-Wl,-z,relro -Wl,-z,now
|
ldflags=-Wl,-z,relro -Wl,-z,now
|
||||||
dist=Makefile,browser.h,callbacks.h,common.c,common.h,desktop.h,desktopicon.h,desktopiconwindow.h,window.h
|
dist=Makefile,browser.h,callbacks.h,common.c,common.h,desktopicon.h,desktopiconwindow.h,window.h
|
||||||
|
|
||||||
[browser]
|
[browser]
|
||||||
type=binary
|
type=binary
|
||||||
|
@ -42,35 +42,6 @@ cflags=-fPIE
|
||||||
ldflags=-pie
|
ldflags=-pie
|
||||||
install=$(BINDIR)
|
install=$(BINDIR)
|
||||||
|
|
||||||
[desktop]
|
|
||||||
type=binary
|
|
||||||
depends=$(OBJDIR)lib/libBrowser.a
|
|
||||||
sources=desktop.c,desktopicon.c,desktopiconwindow.c
|
|
||||||
cflags=`pkg-config --cflags x11 xrandr` -fPIE
|
|
||||||
ldflags=`pkg-config --libs x11 xrandr` -L$(OBJDIR)lib -Wl,-rpath,$(LIBDIR) -lBrowser -pie
|
|
||||||
install=$(BINDIR)
|
|
||||||
|
|
||||||
[desktop.c]
|
|
||||||
depends=common.h,common.c,desktopicon.h,desktop.h,../config.h
|
|
||||||
cppflags=-D PREFIX=\"$(PREFIX)\"
|
|
||||||
|
|
||||||
[desktopicon.c]
|
|
||||||
depends=common.h,common.c,desktop.h,desktopicon.h,../config.h
|
|
||||||
cppflags=-D PREFIX=\"$(PREFIX)\"
|
|
||||||
|
|
||||||
[desktopiconwindow.c]
|
|
||||||
depends=common.h,desktop.h,desktopicon.h,desktopiconwindow.h
|
|
||||||
|
|
||||||
[desktopctl]
|
|
||||||
type=binary
|
|
||||||
sources=desktopctl.c
|
|
||||||
cflags=-fPIE
|
|
||||||
ldflags=-pie
|
|
||||||
install=$(BINDIR)
|
|
||||||
|
|
||||||
[desktopctl.c]
|
|
||||||
depends=desktop.h,../config.h
|
|
||||||
|
|
||||||
[move]
|
[move]
|
||||||
type=binary
|
type=binary
|
||||||
sources=move.c
|
sources=move.c
|
||||||
|
|
Loading…
Reference in New Issue
Block a user