From 9f5a59b1a857b7b08995cb4ae19b69b315315517 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Thu, 9 Dec 2021 18:27:02 -0300 Subject: [PATCH] Starting macos build. --- configure.ac | 17 ++++++++++++++--- schemas/macos/application.gschema.xml.in | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ schemas/macos/window.gschema.xml.in | 127 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 228 insertions(+), 3 deletions(-) create mode 100644 schemas/macos/application.gschema.xml.in create mode 100644 schemas/macos/window.gschema.xml.in diff --git a/configure.ac b/configure.ac index f2bace8..4ae42fe 100644 --- a/configure.ac +++ b/configure.ac @@ -40,6 +40,9 @@ AC_CONFIG_HEADER([src/include/config.h]) dnl Initialise automake stuff. AM_INIT_AUTOMAKE +dnl Set gettext version +AM_GNU_GETTEXT_VERSION([0.14]) + dnl Checks for programs. AC_PROG_CC AC_PROG_SED @@ -90,6 +93,17 @@ case "$host" in ;; + *-apple-darwin*) + app_cv_osname="macos" + app_rls_ldflags="" + + CFLAGS="$CFLAGS -pthread" + LDFLAGS="$LDFLAGS -pthread" + + AC_CONFIG_FILES(schemas/macos/application.gschema.xml) + AC_CONFIG_FILES(schemas/macos/window.gschema.xml) + ;; + *) app_cv_osname="linux" app_rls_ldflags="" @@ -97,9 +111,6 @@ case "$host" in CFLAGS="$CFLAGS -pthread -DLIBDIR=\$(libdir)" LDFLAGS="$LDFLAGS -pthread" - app_cv_static='no' - - # Windows and linux doesn't use the same window defaults. AC_CONFIG_FILES(schemas/linux/application.gschema.xml) AC_CONFIG_FILES(schemas/linux/window.gschema.xml) diff --git a/schemas/macos/application.gschema.xml.in b/schemas/macos/application.gschema.xml.in new file mode 100644 index 0000000..a51f8dc --- /dev/null +++ b/schemas/macos/application.gschema.xml.in @@ -0,0 +1,87 @@ + + + + + + + + + 2 + UI Style + The ID of the current user interface style + + + + + true + Allow host settings + Allow changing of host session properties + + + + true + Enable open session actions actions + Enable open session actions + + + + true + Enable new tab actions + Enable new tab actions + + + + true + Enable new window actions + Enable new window actions + + + + '~/.config/default.3270' + Path of the default session file + + + + + false + Update default session time from command line + + + + + true + Add session file to recent file list + + + + + + + diff --git a/schemas/macos/window.gschema.xml.in b/schemas/macos/window.gschema.xml.in new file mode 100644 index 0000000..1e63335 --- /dev/null +++ b/schemas/macos/window.gschema.xml.in @@ -0,0 +1,127 @@ + + + + + + + + + -1 + The window width. + + + + + -1 + The window height. + + + + + false + Is the window maximized? + + + + + false + Is the window in full screen mode? + + + + + false + Enable top window subtitle + If TRUE, reserve space for a subtitle, even if none is currently set. + + + + false + The toolbar visible state + + + + + false + The menubar visible state + + + + + -1 + How to draw the toolbar. + + + + + 0 + The size of the toolbar icons + + + + + 0 + Use symbolic icons on toolbar + + + + + 0 + Use symbolic icons on title bar + + + + + 0 + The toolbar position + + + + + 'win.copy,win.paste,win.select-all,separator,win.clear,win.erase-input,separator,win.print,separator,win.zoom-out,win.zoom-fit-best,win.zoom-in' + The toolbar action list + + + + + 'app.tab.new:menu.open-menu,win.disconnect,win.reconnect' + The title bar action list + + + + + '' + Path of the default session file + + + + + + -- libgit2 0.21.2