Skip to content

Commit

Permalink
Disabling static libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
PerryWerneck committed Dec 10, 2024
1 parent 6326807 commit 69f753e
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 54 deletions.
11 changes: 0 additions & 11 deletions debian/lib3270.dsc

This file was deleted.

2 changes: 1 addition & 1 deletion debian/libv3270.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Version: 5.4-0
Binary: libv3270
Maintainer: Perry Werneck <perry.werneck@gmail.com>
Architecture: any
Build-Depends: debhelper (>= 7), autotools-dev, autoconf, automake, pkg-config, gettext, libssl-dev, lib3270-dev, libgtk-3-dev, imagemagick
Build-Depends: debhelper (>= 7), meson, pkg-config, gettext, lib3270-dev, libgtk-3-dev, imagemagick
Standards-Version: 3.9.1.0
DEBTRANSFORM-RELEASE: 1
Files:
Expand Down
12 changes: 5 additions & 7 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ build-stamp:
dh_testdir

# Add here commands to compile the package.
NOCONFIGURE=1 ./autogen.sh
./configure --prefix=/usr
make all
meson setup --reconfigure --wipe .build
# --- end custom part for compiling

touch build-stamp
Expand All @@ -48,16 +46,16 @@ install: build
dh_installdirs

# Build package
make all
meson compile -C .build

# Install library
make DESTDIR=$(PWD)/debian/$(PACKAGE_NAME) install-linux-lib
DESTDIR=$(PWD)/debian/$(PACKAGE_NAME) meson install -C .build --tags runtime,i18n

# Install dev
make DESTDIR=$(PWD)/debian/$(PACKAGE_NAME)-dev install-dev
DESTDIR=$(PWD)/debian/$(PACKAGE_NAME)-dev meson install -C .build --tags devel

# Install glade
make DESTDIR=$(PWD)/debian/libv3270-glade install-glade
DESTDIR=$(PWD)/debian/$(PACKAGE_NAME)-dev meson install -C .build --tags glade

# --- end custom part for installing

Expand Down
70 changes: 35 additions & 35 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -345,21 +345,21 @@ if host_machine.system() == 'windows'
libraries: [ '-lv3270.dll' ]
)

pkg.generate(
name: meson.project_name() + '-static',
description: project_description,
variables: pkg_variables,
requires: [
'lib3270-static',
'glib-2.0',
'gtk+-3.0',
'gmodule-2.0',
'gdk-3.0',
],
libraries: [
'-lv3270',
]
)
# pkg.generate(
# name: meson.project_name() + '-static',
# description: project_description,
# variables: pkg_variables,
# requires: [
# 'lib3270-static',
# 'glib-2.0',
# 'gtk+-3.0',
# 'gmodule-2.0',
# 'gdk-3.0',
# ],
# libraries: [
# '-lv3270',
# ]
# )

else

Expand All @@ -371,19 +371,19 @@ else
libraries: [ '-lv3270' ]
)

pkg.generate(
name: meson.project_name() + '-static',
description: project_description,
variables: pkg_variables,
requires: [
'lib3270-static',
'glib-2.0',
'gtk+-3.0',
'gmodule-2.0',
'gdk-3.0',
],
libraries: [ '-l:libv3270.a' ]
)
# pkg.generate(
# name: meson.project_name() + '-static',
# description: project_description,
# variables: pkg_variables,
# requires: [
# 'lib3270-static',
# 'glib-2.0',
# 'gtk+-3.0',
# 'gmodule-2.0',
# 'gdk-3.0',
# ],
# libraries: [ '-l:libv3270.a' ]
# )

endif

Expand Down Expand Up @@ -444,13 +444,13 @@ else

endif

static_library(
'v3270',
config_src + lib_src,
install: true,
dependencies: lib_deps + extra_deps,
include_directories: includes_dir
)
#static_library(
# 'v3270',
# config_src + lib_src,
# install: true,
# dependencies: lib_deps + extra_deps,
# include_directories: includes_dir
#)

executable(
meson.project_name(),
Expand Down
1 change: 1 addition & 0 deletions rpm/_service
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

<param name="changesgenerate">enable</param>
<param name="changesauthor">perry.werneck@gmail.com</param>
<param name="revision">develop</param>

<param name="versionformat">@PARENT_TAG@+git%cd</param>
<param name="scm">git</param>
Expand Down

0 comments on commit 69f753e

Please sign in to comment.