Skip to content

Commit

Permalink
Add Meson Build System support
Browse files Browse the repository at this point in the history
* Modify Autotools build for icons
  • Loading branch information
Salamandar authored and mtwebster committed Feb 5, 2018
1 parent 7578a8f commit d9a2127
Show file tree
Hide file tree
Showing 60 changed files with 1,078 additions and 60 deletions.
67 changes: 67 additions & 0 deletions config.h.meson.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#pragma once
// config.h.in. Generated from configure.ac by autoheader.

// Define to the version of this package.
#mesondefine VERSION

// Enable debug code
#mesondefine ENABLE_DEBUG

// ***** Enable features

// define to enable the empty view that is used for performance measurement
#mesondefine ENABLE_EMPTY_VIEW
// Define to enable Tracker support
#mesondefine ENABLE_TRACKER
// Define to enable xmp support
#mesondefine HAVE_EXEMPI
// Define to enable EXIF support
#mesondefine HAVE_EXIF
// Define if libselinux is available
#mesondefine HAVE_SELINUX



// ***** Localisation

// always defined to indicate that i18n is enabled
#mesondefine ENABLE_NLS
#mesondefine HAVE_GETTEXT

// the gettext translation domain
#mesondefine GETTEXT_PACKAGE

// Define to 1 if you have the <locale.h> header file.
#mesondefine HAVE_LOCALE_H

// path for translations
#mesondefine LOCALEDIR
#mesondefine LOCALE_DIR




// Defined if we meet the minimum version for
// g_content_type_get_generic_icon_name
#mesondefine GENERIC_ICON_API



// Define to 1 if you have the <malloc.h> header file.
#mesondefine HAVE_MALLOC_H

// Define to 1 if you have the `mallopt' function.
#mesondefine HAVE_MALLOPT


// Define to 1 if you have the <sys/mount.h> header file.
#mesondefine HAVE_SYS_MOUNT_H

// Define to 1 if you have the <sys/param.h> header file.
#mesondefine HAVE_SYS_PARAM_H

// Define to 1 if you have the <sys/vfs.h> header file.
#mesondefine HAVE_SYS_VFS_H

// Define to 1 if you have the <X11/XF86keysym.h> header file.
#mesondefine HAVE_X11_XF86KEYSYM_H
16 changes: 16 additions & 0 deletions cut-n-paste-code/libegg/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

egg_lib = static_library('egg',
'eggtreemultidnd.c',
dependencies: [
gtk,
],
install: false
)

egg = declare_dependency(
include_directories: include_directories('..'),
link_with: egg_lib,
dependencies: [
gtk,
],
)
120 changes: 60 additions & 60 deletions data/icons/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,56 +5,56 @@ public_icons_themes = \
$(NULL)

public_icons = \
hicolor_apps_16x16_nemo.png \
hicolor_apps_22x22_nemo.png \
hicolor_apps_24x24_nemo.png \
hicolor_apps_32x32_nemo.png \
hicolor_apps_scalable_nemo.svg \
hicolor_actions_16x16_nemo-eject.png \
hicolor_actions_16x16_menu-bullet.png \
hicolor_actions_16x16_menu-sort-up.png \
hicolor_actions_16x16_menu-sort-up-free.png \
hicolor_actions_16x16_menu-sort-down.png \
hicolor_actions_16x16_menu-sort-down-free.png \
hicolor_actions_16x16_menu-sort-right.png \
hicolor_actions_16x16_menu-sort-right-free.png \
hicolor_actions_16x16_menu-sort-left.png \
hicolor_actions_16x16_menu-sort-left-free.png \
hicolor_actions_16x16_menu-none.png \
hicolor_actions_32x32_nemo-eject.png \
hicolor_actions_scalable_view-compact-symbolic.svg \
hicolor_actions_scalable_location-symbolic.svg \
hicolor_actions_scalable_sidebar-hide-symbolic.svg \
hicolor_actions_scalable_sidebar-show-symbolic.svg \
hicolor_actions_scalable_sidebar-tree-symbolic.svg \
hicolor_actions_scalable_sidebar-places-symbolic.svg \
hicolor_actions_scalable_expand-menu-symbolic.svg \
hicolor_actions_scalable_expand-menu-hover-symbolic.svg \
hicolor_actions_scalable_collapse-menu-symbolic.svg \
hicolor_actions_scalable_collapse-menu-hover-symbolic.svg \
hicolor_status_48x48_progress-0.png \
hicolor_status_48x48_progress-10.png \
hicolor_status_48x48_progress-20.png \
hicolor_status_48x48_progress-30.png \
hicolor_status_48x48_progress-40.png \
hicolor_status_48x48_progress-50.png \
hicolor_status_48x48_progress-60.png \
hicolor_status_48x48_progress-70.png \
hicolor_status_48x48_progress-80.png \
hicolor_status_48x48_progress-90.png \
hicolor_status_48x48_progress-100.png \
hicolor/apps/16x16/nemo.png \
hicolor/apps/22x22/nemo.png \
hicolor/apps/24x24/nemo.png \
hicolor/apps/32x32/nemo.png \
hicolor/apps/scalable/nemo.svg \
hicolor/actions/16x16/nemo-eject.png \
hicolor/actions/16x16/menu-bullet.png \
hicolor/actions/16x16/menu-sort-up.png \
hicolor/actions/16x16/menu-sort-up-free.png \
hicolor/actions/16x16/menu-sort-down.png \
hicolor/actions/16x16/menu-sort-down-free.png \
hicolor/actions/16x16/menu-sort-right.png \
hicolor/actions/16x16/menu-sort-right-free.png \
hicolor/actions/16x16/menu-sort-left.png \
hicolor/actions/16x16/menu-sort-left-free.png \
hicolor/actions/16x16/menu-none.png \
hicolor/actions/32x32/nemo-eject.png \
hicolor/actions/scalable/view-compact-symbolic.svg \
hicolor/actions/scalable/location-symbolic.svg \
hicolor/actions/scalable/sidebar-hide-symbolic.svg \
hicolor/actions/scalable/sidebar-show-symbolic.svg \
hicolor/actions/scalable/sidebar-tree-symbolic.svg \
hicolor/actions/scalable/sidebar-places-symbolic.svg \
hicolor/actions/scalable/expand-menu-symbolic.svg \
hicolor/actions/scalable/expand-menu-hover-symbolic.svg \
hicolor/actions/scalable/collapse-menu-symbolic.svg \
hicolor/actions/scalable/collapse-menu-hover-symbolic.svg \
hicolor/status/48x48/progress-0.png \
hicolor/status/48x48/progress-10.png \
hicolor/status/48x48/progress-20.png \
hicolor/status/48x48/progress-30.png \
hicolor/status/48x48/progress-40.png \
hicolor/status/48x48/progress-50.png \
hicolor/status/48x48/progress-60.png \
hicolor/status/48x48/progress-70.png \
hicolor/status/48x48/progress-80.png \
hicolor/status/48x48/progress-90.png \
hicolor/status/48x48/progress-100.png \
$(NULL)

private_icons = \
hicolor_emblems_16x16_emblem-note.png \
hicolor_emblems_24x24_emblem-note.png \
hicolor_emblems_48x48_emblem-note.png \
hicolor/emblems/16x16/emblem-note.png \
hicolor/emblems/24x24/emblem-note.png \
hicolor/emblems/48x48/emblem-note.png \
$(NULL)

noinst_DATA = \
hicolor_apps_16x16_nemo.svg \
hicolor_apps_22x22_nemo.svg \
hicolor_apps_32x32_nemo.svg \
hicolor/apps/16x16/nemo.svg \
hicolor/apps/22x22/nemo.svg \
hicolor/apps/32x32/nemo.svg \
$(NULL)

EXTRA_DIST = \
Expand Down Expand Up @@ -83,35 +83,35 @@ update-icon-cache:

install-icons:
for icon in $(public_icons); do \
THEME=`echo $$icon | cut -d_ -f1`; \
CONTEXT=`echo $$icon | cut -d_ -f2`; \
SIZE=`echo $$icon | cut -d_ -f3`; \
ICONFILE=`echo $$icon | cut -d_ -f4`; \
THEME=`echo $$icon | cut -d/ -f1`; \
CONTEXT=`echo $$icon | cut -d/ -f2`; \
SIZE=`echo $$icon | cut -d/ -f3`; \
ICONFILE=`echo $$icon | cut -d/ -f4`; \
mkdir -p $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT; \
$(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
done; \
for icon in $(private_icons); do \
THEME=`echo $$icon | cut -d_ -f1`; \
CONTEXT=`echo $$icon | cut -d_ -f2`; \
SIZE=`echo $$icon | cut -d_ -f3`; \
ICONFILE=`echo $$icon | cut -d_ -f4`; \
THEME=`echo $$icon | cut -d/ -f1`; \
CONTEXT=`echo $$icon | cut -d/ -f2`; \
SIZE=`echo $$icon | cut -d/ -f3`; \
ICONFILE=`echo $$icon | cut -d/ -f4`; \
mkdir -p $(DESTDIR)$(pkgdatadir)/icons/$$THEME/$$SIZE/$$CONTEXT; \
$(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(pkgdatadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
done

uninstall-icons:
-for icon in $(public_icons); do \
THEME=`echo $$icon | cut -d_ -f1`; \
CONTEXT=`echo $$icon | cut -d_ -f2`; \
SIZE=`echo $$icon | cut -d_ -f3`; \
ICONFILE=`echo $$icon | cut -d_ -f4`; \
THEME=`echo $$icon | cut -d/ -f1`; \
CONTEXT=`echo $$icon | cut -d/ -f2`; \
SIZE=`echo $$icon | cut -d/ -f3`; \
ICONFILE=`echo $$icon | cut -d/ -f4`; \
rm -f $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
done; \
for icon in $(private_icons); do \
THEME=`echo $$icon | cut -d_ -f1`; \
CONTEXT=`echo $$icon | cut -d_ -f2`; \
SIZE=`echo $$icon | cut -d_ -f3`; \
ICONFILE=`echo $$icon | cut -d_ -f4`; \
THEME=`echo $$icon | cut -d/ -f1`; \
CONTEXT=`echo $$icon | cut -d/ -f2`; \
SIZE=`echo $$icon | cut -d/ -f3`; \
ICONFILE=`echo $$icon | cut -d/ -f4`; \
rm -f $(DESTDIR)$(pkgdatadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
done

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
73 changes: 73 additions & 0 deletions data/icons/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
publicIcons = [
'hicolor/apps/16x16/nemo.png',
'hicolor/apps/22x22/nemo.png',
'hicolor/apps/24x24/nemo.png',
'hicolor/apps/32x32/nemo.png',
'hicolor/apps/scalable/nemo.svg',
'hicolor/actions/16x16/nemo-eject.png',
'hicolor/actions/16x16/menu-bullet.png',
'hicolor/actions/16x16/menu-sort-up.png',
'hicolor/actions/16x16/menu-sort-up-free.png',
'hicolor/actions/16x16/menu-sort-down.png',
'hicolor/actions/16x16/menu-sort-down-free.png',
'hicolor/actions/16x16/menu-sort-right.png',
'hicolor/actions/16x16/menu-sort-right-free.png',
'hicolor/actions/16x16/menu-sort-left.png',
'hicolor/actions/16x16/menu-sort-left-free.png',
'hicolor/actions/16x16/menu-none.png',
'hicolor/actions/32x32/nemo-eject.png',
'hicolor/actions/scalable/view-compact-symbolic.svg',
'hicolor/actions/scalable/location-symbolic.svg',
'hicolor/actions/scalable/sidebar-hide-symbolic.svg',
'hicolor/actions/scalable/sidebar-show-symbolic.svg',
'hicolor/actions/scalable/sidebar-tree-symbolic.svg',
'hicolor/actions/scalable/sidebar-places-symbolic.svg',
'hicolor/actions/scalable/expand-menu-symbolic.svg',
'hicolor/actions/scalable/expand-menu-hover-symbolic.svg',
'hicolor/actions/scalable/collapse-menu-symbolic.svg',
'hicolor/actions/scalable/collapse-menu-hover-symbolic.svg',
'hicolor/status/48x48/progress-0.png',
'hicolor/status/48x48/progress-10.png',
'hicolor/status/48x48/progress-20.png',
'hicolor/status/48x48/progress-30.png',
'hicolor/status/48x48/progress-40.png',
'hicolor/status/48x48/progress-50.png',
'hicolor/status/48x48/progress-60.png',
'hicolor/status/48x48/progress-70.png',
'hicolor/status/48x48/progress-80.png',
'hicolor/status/48x48/progress-90.png',
'hicolor/status/48x48/progress-100.png',
]
privateIcons = [
'hicolor/emblems/16x16/emblem-note.png',
'hicolor/emblems/24x24/emblem-note.png',
'hicolor/emblems/48x48/emblem-note.png',
]
noInstallIcons = [
'hicolor/apps/16x16/nemo.svg',
'hicolor/apps/22x22/nemo.svg',
'hicolor/apps/32x32/nemo.svg',
]

foreach icon : publicIcons
nameParts = icon.split('/')
theme = nameParts[0]
context = nameParts[1]
size = nameParts[2]
file = nameParts[3]
install_data(icon,
install_dir: join_paths(get_option('datadir'), 'icons', theme, size, context)
)
endforeach


foreach icon : privateIcons
nameParts = icon.split('/')
theme = nameParts[0]
context = nameParts[1]
size = nameParts[2]
file = nameParts[3]
install_data(icon,
install_dir: join_paths(get_option('datadir'), 'nemo', 'icons', theme, size, context)
)
endforeach
Loading

0 comments on commit d9a2127

Please sign in to comment.