Commit Graph

6 Commits

Author SHA1 Message Date
David Korth
e1e0f43f84 [cmake] Prepend ${CMAKE_INSTALL_PREFIX} to the default extension directories.
This seems to be needed on Ubuntu 14.04 for Thunar (GTK+ 2.x).

Newer versions have the extension directory defined in the pkgconfig
file, so it's not an issue there.
2020-02-18 20:31:08 -05:00
David Korth
6efca5165e [gnome] nautilus-extension.h was added in Nautilus 3.30.
If nautilus-extension.h is present, use it. Otherwise, use the file
from libnautilus-extension/ directly.

FindLibNautilusExtension: s/ThunarX2/libnautilus-extension/g
2019-06-08 15:17:39 -04:00
David Korth
1d694fe4d7 travis-ci: Fixed builds of the GTK+ frontends.
There were several issues caused by travis-ci using cmake-3.2.2
instead of what I have locally, cmake-3.7.2:

- FIND_PACKAGE(PkgConfig) sets PKG_CONFIG_FOUND, not PkgConfig_FOUND.
- Set cache internal variables instead of parent scope. (Probably not
  needed, but it's a good idea.)
- Older PkgConfig CMake modules don't support PKG_GET_VARIABLE(), so use
  defaults for Nautilus and Thunar extension directories in that case.
- Added diagnostic messages for older PkgConfig.
- Print the cmake version in travis-ci.

Squashed commit of the bugfix/travis-ci-gtk branch.
2017-04-09 13:59:23 -04:00
David Korth
4a18cdaaa1 [cmake] FindLibraryPkgConfig.cmake: New common CMake file for the various pkgconfig cmakes.
Rewrote FindGLib2, FindGTK3, FindGdkPixbuf2, FindLibNautilusExtension,
and FindThunarX2 to use FIND_LIBRARY_PKG_CONFIG().

Fixed CFLAGS_OTHER on ThunarX2. (Incorrect capitalization.)
2017-01-09 22:08:36 -05:00
David Korth
4ec93ab629 [cmake] libs/: Added version detection for GLib2, GTK3, GdkPixbuf2, and LibNautilusExtension.
Renamed the variables to match the case of the filenames, since CMake's
version detection requires this.

Set some preliminary defaults for GLib2, GTK3, and LibNautilusExtension.

TODO: Require the correct major version?
2017-01-03 23:20:05 -05:00
David Korth
658a02c6b9 Initial Nautilus (GTK+ 3.x) frontend.
The Nautilus frontend is very similar to the Thunar (XFCE) frontend,
though some things have changed due to the different ways Nautilus
handles things. In particular, RomPropertiesPage is not a subclass
of NautilusPropertyPage; instead, RomPropertiesPage is added to a
generic NautilusPropertyPage as a widget.

Added Find*.cmake files for glib2, GTK+ 3, GdkPixbuf2, and
libnautilus-extension.

RomDataView: Set the GtkBox orientation to vertical when compiling with
GTK+ 3.x.
2017-01-03 23:02:31 -05:00