Commit b695725a authored by Meg Ford's avatar Meg Ford

more work on the build system

parent 0d9579f6
AC_INIT([gnome-sound-recorder], [0.1])
AC_INIT([org.gnome.SoundRecorder.Application],[0.1],[gnome-sound-recorder])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
......@@ -16,12 +16,11 @@ LIBGD_INIT([header-bar notification revealer stack tagged-entry gir])
GLIB_GSETTINGS
GOBJECT_INTROSPECTION_REQUIRE([1.0])
AC_PROG_SED
AC_PATH_PROG(GJS, [gjs])
AC_OUTPUT([
Makefile
data/Makefile
data/gnome-sound-recorder.desktop.in
libgd/Makefile
src/Makefile
po/Makefile.in
......
# Process this file with automake to produce Makefile.in
uidir = $(pkgdatadir)
ui_DATA = main.ui
cssdir = $(pkgdatadir)
css_DATA = application.css
# I chose to use recursive automake so I can use nobase_ and avoid
# 5 different directory declarations
appsdir = $(datadir)/applications
apps_DATA = gnome-sound-recorder.desktop
apps_DATA = $(PACKAGE_NAME).desktop
@INTLTOOL_DESKTOP_RULE@
CLEANFILES = gnome-sound-recorder.desktop
DISTCLEANFILES = gnome-sound-recorder.desktop.in
gsettings_SCHEMAS = $(PACKAGE_NAME).gschema.xml
@INTLTOOL_XML_NOMERGE_RULE@
@GSETTINGS_RULES@
$(PACKAGE_NAME).service: $(PACKAGE_NAME).service.in
$(AM_V_GEN) sed \
-e "s|[@]PACKAGE_NAME@|$(PACKAGE_NAME)|g" \
-e "s|[@]pkgdatadir@|$(pkgdatadir)|g" \
-e "s|[@]pkglibdir@|$(pkglibdir)|g" \
$< > $@
$(PACKAGE_NAME).desktop.in: $(PACKAGE_NAME).desktop.in.in
$(AM_V_GEN) sed \
-e "s|[@]PACKAGE_NAME@|$(PACKAGE_NAME)|g" \
-e "s|[@]pkgdatadir@|$(pkgdatadir)|g" \
-e "s|[@]pkglibdir@|$(pkglibdir)|g" \
$< > $@
servicedir = $(datadir)/dbus-1/services
service_DATA = $(PACKAGE_NAME).service
EXTRA_DIST = \
CREDITS \
$(PACKAGE_NAME).desktop.in.in \
$(PACKAGE_NAME).service.in \
$(gsettings_SCHEMAS) \
$(resource_files) \
$(NULL)
CLEANFILES = \
$(PACKAGE_NAME).desktop.in \
$(PACKAGE_NAME).service \
$(apps_DATA) \
*.valid \
gschemas.compiled \
$(NULL)
# For uninstalled use
all-local:
$(GLIB_COMPILE_SCHEMAS) $(builddir)
-include $(top_srcdir)/git.mk
include $(top_srcdir)/git.mk
[Desktop Entry]
Type=Application
_Name=Sound Recorder
_GenericName=GNOME Sound Recorder
_Keywords=sound;recorder;GNOME
Exec=@GJS@ -c 'imports.package.start({ name: "@PACKAGE_NAME@", version: "@PACKAGE_VERSION@", prefix: "@prefix@" })'
Icon=face-smile
data/my-js-app.desktop.in
src/main.js
src/util.js
src/application.js
src/audioProfile.js
src/fileUtil.js
src/info.js
src/listview.js
src/play.js
src/record.js
src/waveform.js
......@@ -18,8 +18,6 @@ dist_js_DATA = \
$(NULL)
nodist_bin_SCRIPTS = gnome-sound-recorder
EXTRA_DIST = gnome-sound-recorder.in
$(PACKAGE_NAME): $(PACKAGE_NAME).in
$(AM_V_GEN) sed \
......
#!@GJS@
imports.searchPath.push("@pkgdatadir@");
imports.package.launch({ name: "@PACKAGE_NAME@" });
imports.package.launch({ name: "@PACKAGE_NAME@", version: "@PACKAGE_VERSION@", prefix: "@prefix@" })
......@@ -45,8 +45,11 @@ const MyApplication = new Lang.Class({
Extends: Gtk.Application,
_init: function() {
this.parent({ application_id: 'org.gnome.sound-recorder' });
GLib.set_application_name(_("Sound Recorder"));
_init: function() {
this.parent({ application_id: pkg.name,
flags: Gio.ApplicationFlags.IS_SERVICE });
let valid = GLib.application_id_is_valid(pkg.name);
GLib.set_application_name(_("SoundRecorder")););
},
vfunc_startup: function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment