Commit 9f5a59b1a857b7b08995cb4ae19b69b315315517

Authored by Perry Werneck
1 parent f11eb56e

Starting macos build.

configure.ac
... ... @@ -40,6 +40,9 @@ AC_CONFIG_HEADER([src/include/config.h])
40 40 dnl Initialise automake stuff.
41 41 AM_INIT_AUTOMAKE
42 42  
  43 +dnl Set gettext version
  44 +AM_GNU_GETTEXT_VERSION([0.14])
  45 +
43 46 dnl Checks for programs.
44 47 AC_PROG_CC
45 48 AC_PROG_SED
... ... @@ -90,6 +93,17 @@ case "$host" in
90 93  
91 94 ;;
92 95  
  96 + *-apple-darwin*)
  97 + app_cv_osname="macos"
  98 + app_rls_ldflags=""
  99 +
  100 + CFLAGS="$CFLAGS -pthread"
  101 + LDFLAGS="$LDFLAGS -pthread"
  102 +
  103 + AC_CONFIG_FILES(schemas/macos/application.gschema.xml)
  104 + AC_CONFIG_FILES(schemas/macos/window.gschema.xml)
  105 + ;;
  106 +
93 107 *)
94 108 app_cv_osname="linux"
95 109 app_rls_ldflags=""
... ... @@ -97,9 +111,6 @@ case "$host" in
97 111 CFLAGS="$CFLAGS -pthread -DLIBDIR=\$(libdir)"
98 112 LDFLAGS="$LDFLAGS -pthread"
99 113  
100   - app_cv_static='no'
101   -
102   - # Windows and linux doesn't use the same window defaults.
103 114 AC_CONFIG_FILES(schemas/linux/application.gschema.xml)
104 115 AC_CONFIG_FILES(schemas/linux/window.gschema.xml)
105 116  
... ...
schemas/macos/application.gschema.xml.in 0 → 100644
... ... @@ -0,0 +1,87 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!--
  3 +
  4 + Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270
  5 + (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a
  6 + aplicativos mainframe. Registro no INPI sob o nome G3270.
  7 +
  8 + Copyright (C) <2008> <Banco do Brasil S.A.>
  9 +
  10 + Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob
  11 + os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela
  12 + Free Software Foundation.
  13 +
  14 + Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER
  15 + GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO
  16 + A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para
  17 + obter mais detalhes.
  18 +
  19 + Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este
  20 + programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin
  21 + St, Fifth Floor, Boston, MA 02110-1301 USA
  22 +
  23 +
  24 + Contatos:
  25 +
  26 + perry.werneck@gmail.com (Alexandre Perry de Souza Werneck)
  27 + erico.mendonca@gmail.com (Erico Mascarenhas Mendonça)
  28 +
  29 +-->
  30 +
  31 +<schemalist>
  32 +
  33 + <schema path="/br/com/bb/@PRODUCT_NAME@/" id="br.com.bb.@PRODUCT_NAME@">
  34 +
  35 + <key name="ui-style" type="u">
  36 + <default>2</default>
  37 + <summary>UI Style</summary>
  38 + <description>The ID of the current user interface style</description>
  39 + </key>
  40 +
  41 +
  42 + <key name="allow-host-settings" type="b">
  43 + <default>true</default>
  44 + <summary>Allow host settings</summary>
  45 + <description>Allow changing of host session properties</description>
  46 + </key>
  47 +
  48 + <key name="allow-open-session-actions" type="b">
  49 + <default>true</default>
  50 + <summary>Enable open session actions actions</summary>
  51 + <description>Enable open session actions</description>
  52 + </key>
  53 +
  54 + <key name="allow-new-tab-actions" type="b">
  55 + <default>true</default>
  56 + <summary>Enable new tab actions</summary>
  57 + <description>Enable new tab actions</description>
  58 + </key>
  59 +
  60 + <key name="allow-new-window-actions" type="b">
  61 + <default>true</default>
  62 + <summary>Enable new window actions</summary>
  63 + <description>Enable new window actions</description>
  64 + </key>
  65 +
  66 + <key name="default-session-file" type="s">
  67 + <default>'~/.config/default.3270'</default>
  68 + <summary>Path of the default session file</summary>
  69 + <description></description>
  70 + </key>
  71 +
  72 + <key name="update-default-session-file" type="b">
  73 + <default>false</default>
  74 + <summary>Update default session time from command line</summary>
  75 + <description></description>
  76 + </key>
  77 +
  78 + <key name="add-session-to-recent-manager" type="b">
  79 + <default>true</default>
  80 + <summary>Add session file to recent file list</summary>
  81 + <description></description>
  82 + </key>
  83 +
  84 + </schema>
  85 +
  86 +</schemalist>
  87 +
... ...
schemas/macos/window.gschema.xml.in 0 → 100644
... ... @@ -0,0 +1,127 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!--
  3 +
  4 + Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270
  5 + (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a
  6 + aplicativos mainframe. Registro no INPI sob o nome G3270.
  7 +
  8 + Copyright (C) <2008> <Banco do Brasil S.A.>
  9 +
  10 + Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob
  11 + os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela
  12 + Free Software Foundation.
  13 +
  14 + Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER
  15 + GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO
  16 + A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para
  17 + obter mais detalhes.
  18 +
  19 + Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este
  20 + programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin
  21 + St, Fifth Floor, Boston, MA 02110-1301 USA
  22 +
  23 +
  24 + Contatos:
  25 +
  26 + perry.werneck@gmail.com (Alexandre Perry de Souza Werneck)
  27 + erico.mendonca@gmail.com (Erico Mascarenhas Mendonça)
  28 +
  29 +-->
  30 +
  31 +<schemalist>
  32 +
  33 + <schema path="/br/com/bb/@PRODUCT_NAME@/window/" id="br.com.bb.@PRODUCT_NAME@.window">
  34 +
  35 + <key name="width" type="i">
  36 + <default>-1</default>
  37 + <summary>The window width.</summary>
  38 + <description></description>
  39 + </key>
  40 +
  41 + <key name="height" type="i">
  42 + <default>-1</default>
  43 + <summary>The window height.</summary>
  44 + <description></description>
  45 + </key>
  46 +
  47 + <key name="is-maximized" type="b">
  48 + <default>false</default>
  49 + <summary>Is the window maximized?</summary>
  50 + <description></description>
  51 + </key>
  52 +
  53 + <key name="is-fullscreen" type="b">
  54 + <default>false</default>
  55 + <summary>Is the window in full screen mode?</summary>
  56 + <description></description>
  57 + </key>
  58 +
  59 + <key name="has-subtitle" type="b">
  60 + <default>false</default>
  61 + <summary>Enable top window subtitle</summary>
  62 + <description>If TRUE, reserve space for a subtitle, even if none is currently set.</description>
  63 + </key>
  64 +
  65 + <key name="toolbar-visible" type="b">
  66 + <default>false</default>
  67 + <summary>The toolbar visible state</summary>
  68 + <description></description>
  69 + </key>
  70 +
  71 + <key name="menubar-visible" type="b">
  72 + <default>false</default>
  73 + <summary>The menubar visible state</summary>
  74 + <description></description>
  75 + </key>
  76 +
  77 + <key name="toolbar-style" type="i">
  78 + <default>-1</default>
  79 + <summary>How to draw the toolbar.</summary>
  80 + <description></description>
  81 + </key>
  82 +
  83 + <key name="toolbar-icon-size" type="i">
  84 + <default>0</default>
  85 + <summary>The size of the toolbar icons</summary>
  86 + <description></description>
  87 + </key>
  88 +
  89 + <key name="toolbar-icon-type" type="i">
  90 + <default>0</default>
  91 + <summary>Use symbolic icons on toolbar</summary>
  92 + <description></description>
  93 + </key>
  94 +
  95 + <key name="header-icon-type" type="i">
  96 + <default>0</default>
  97 + <summary>Use symbolic icons on title bar</summary>
  98 + <description></description>
  99 + </key>
  100 +
  101 + <key name="toolbar-position" type="i">
  102 + <default>0</default>
  103 + <summary>The toolbar position</summary>
  104 + <description></description>
  105 + </key>
  106 +
  107 + <key name="toolbar-action-names" type="s">
  108 + <default>'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'</default>
  109 + <summary>The toolbar action list</summary>
  110 + <description></description>
  111 + </key>
  112 +
  113 + <key name="header-action-names" type="s">
  114 + <default>'app.tab.new:menu.open-menu,win.disconnect,win.reconnect'</default>
  115 + <summary>The title bar action list</summary>
  116 + <description></description>
  117 + </key>
  118 +
  119 + <key name="default-session-file" type="s">
  120 + <default>''</default>
  121 + <summary>Path of the default session file</summary>
  122 + <description></description>
  123 + </key>
  124 +
  125 + </schema>
  126 +
  127 +</schemalist>
... ...