Commit 428019a97720cbc4019ed2f6d339904487f15860

Authored by Perry Werneck
1 parent 7df5df74
Exists in master and in 1 other branch develop

Updating package & sdk.

.gitignore
... ... @@ -24,5 +24,5 @@ doxyfile
24 24 doxygen/html
25 25 doxygen/rtf
26 26 *~
27   -
  27 +*.pc
28 28  
... ...
README.md
1 1  
2   -HLLAPI library for lib3270/pw3270
3   -=================================
  2 +## HLLAPI library for lib3270/pw3270
4 3  
  4 +## Installation
  5 +
  6 +### Linux
  7 +
  8 +For the supported distributions get the install repositories and instructions from https://software.opensuse.org/download.html?project=home%3APerryWerneck%3Apw3270&package=libhllapi
  9 +
  10 +### Windows
  11 +
  12 +TODO
  13 +
  14 +## Building for Linux
  15 +
  16 +1. Build and install [libipc3270](../../../libipc3270)
  17 +
  18 +
  19 +2. Get hllapi sources from git
  20 +
  21 + ```
  22 + $ git clone https://github.com/PerryWerneck/libhllapi.git
  23 + ```
  24 +
  25 +3. Build and install
  26 +
  27 + ```
  28 + $ cd libhllapi
  29 + $ ./autogen.sh
  30 + $ make all
  31 + $ sudo make install
  32 + ```
  33 +
  34 +## Building for Windows
  35 +
  36 +### Cross-compiling on SuSE Linux (Native or WSL)
  37 +
  38 +1. Add the MinGW Repositories
  39 +
  40 + ```shell
  41 + $ sudo zypper ar obs://windows:mingw:win32 mingw32
  42 + $ sudo zypper ar obs://windows:mingw:win64 mingw64
  43 + $ sudo zypper ar obs://home:PerryWerneck:pw3270 pw3270
  44 + $ sudo zypper ref
  45 + ```
  46 +
  47 +2. Get hllapi sources from git
  48 +
  49 + ```
  50 + $ git clone https://github.com/PerryWerneck/libhllapi.git
  51 + ```
  52 +
  53 +3. Install 64 bits cross compilers
  54 +
  55 + ```
  56 + $ ./libhllapi/win/install-cross.sh --64
  57 + ```
  58 +
  59 +4. Run the build script
  60 +
  61 + ```shell
  62 + $ cd libhllapi
  63 + $ ./win/pack.sh
  64 + ```
  65 +
  66 +### Windows native with MSYS2
  67 +
  68 +1. Build and install [libipc3270](../../../libipc3270)
  69 +
  70 +2. Get hllapi sources from git
  71 +
  72 + ```
  73 + $ git clone https://github.com/PerryWerneck/libhllapi.git
  74 + ```
  75 +
  76 +3. Build and install
  77 +
  78 + ```
  79 + $ cd libhllapi
  80 + $ ./autogen.sh
  81 + $ make all
  82 + $ make install
  83 + ```
5 84  
... ...
configure.ac
... ... @@ -323,6 +323,7 @@ dnl ---------------------------------------------------------------------------
323 323  
324 324 AC_CONFIG_FILES(Makefile)
325 325 AC_CONFIG_FILES(locale/Makefile)
  326 +AC_CONFIG_FILES(sdk/libhllapi.pc)
326 327  
327 328 dnl ---------------------------------------------------------------------------
328 329 dnl Output the generated config.status script.
... ...
link.sh 0 → 100755
... ... @@ -0,0 +1,11 @@
  1 +#!/bin/bash
  2 +make Debug
  3 +
  4 +sudo ln -sf $(readlink -f .bin/Debug/libhllapi.so.5.3) /usr/lib64/libhllapi.so.5.3
  5 +sudo ln -sf $(readlink -f .bin/Debug/libhllapi.so.5.3) /usr/lib64/libhllapi.so
  6 +sudo ln -sf $(readlink -f src/include/lib3270/hllapi.h) /usr/include/lib3270/hllapi.h
  7 +
  8 +sudo ln -sf $(readlink -f sdk/*.pc) /usr/lib64/pkgconfig
  9 +
  10 +
  11 +
... ...
sdk/libhllapi.pc.in 0 → 100644
... ... @@ -0,0 +1,16 @@
  1 +prefix=@prefix@
  2 +exec_prefix=@exec_prefix@
  3 +libdir=@libdir@
  4 +includedir=@includedir@
  5 +
  6 +version_major=@PACKAGE_MAJOR_VERSION@
  7 +version_minor=@PACKAGE_MINOR_VERSION@
  8 +
  9 +Name: @PACKAGE_NAME@
  10 +Description: @PACKAGE_DESCRIPTION@
  11 +Version: @PACKAGE_VERSION@
  12 +Requires: libipc3270 lib3270
  13 +Libs: -lhllapi
  14 +Libs.private: @LIBS@ @INTL_LIBS@ @IPC3270_LIBS@
  15 +Cflags:
  16 +
... ...
win/install-cross.sh
... ... @@ -54,8 +54,10 @@ do
54 54 case $parameter in
55 55  
56 56 ar)
57   - zypper ar --refresh http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_42.3/ mingw32
58   - zypper ar --refresh http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_42.3/ mingw64
  57 + sudo zypper ar obs://windows:mingw:win32 mingw32
  58 + sudo zypper ar obs://windows:mingw:win64 mingw64
  59 + sudo zypper ar obs://home:PerryWerneck:pw3270 pw3270
  60 + sudo zypper ref
59 61 ;;
60 62  
61 63 32)
... ...