1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: remove build with autotools

CMake is now the only way to build WeeChat.
This commit is contained in:
Sébastien Helleu
2023-01-06 13:10:56 +01:00
parent 18360feb32
commit 754ab33946
69 changed files with 177 additions and 4985 deletions
+7 -10
View File
@@ -5,7 +5,7 @@ on:
- pull_request
env:
WEECHAT_DEPENDENCIES: devscripts equivs python3-pip autopoint cmake ninja-build lcov pkg-config libncursesw5-dev gem2deb libperl-dev python3-dev libaspell-dev liblua5.3-dev tcl8.6-dev guile-3.0-dev libv8-dev libcurl4-gnutls-dev libgcrypt20-dev libgnutls28-dev libzstd-dev zlib1g-dev curl libcpputest-dev php-dev libphp-embed libargon2-dev libsodium-dev flake8 pylint python3-bandit asciidoctor ruby-pygments.rb shellcheck
WEECHAT_DEPENDENCIES: devscripts equivs python3-pip cmake ninja-build lcov pkg-config libncursesw5-dev gem2deb libperl-dev python3-dev libaspell-dev liblua5.3-dev tcl8.6-dev guile-3.0-dev libv8-dev libcurl4-gnutls-dev libgcrypt20-dev libgnutls28-dev libzstd-dev zlib1g-dev curl libcpputest-dev php-dev libphp-embed libargon2-dev libsodium-dev flake8 pylint python3-bandit asciidoctor ruby-pygments.rb shellcheck
jobs:
@@ -16,13 +16,11 @@ jobs:
os:
- ubuntu-22.04
config:
- { name: "cmake_gcc", cc: "gcc", cxx: "g++", tool: "cmake", args: "" }
- { name: "cmake_gcc_ninja", cc: "gcc", cxx: "g++", tool: "cmake", args: "-G Ninja" }
- { name: "cmake_gcc_no_nls", cc: "gcc", cxx: "g++", tool: "cmake", args: "-DENABLE_NLS=OFF" }
- { name: "cmake_gcc_coverage", cc: "gcc", cxx: "g++", tool: "cmake", args: "-DENABLE_CODE_COVERAGE=ON" }
- { name: "cmake_clang", cc: "clang", cxx: "clang++", tool: "cmake", args: "" }
- { name: "autotools_gcc", cc: "gcc", cxx: "g++", tool: "autotools", args: "" }
- { name: "autotools_clang", cc: "clang", cxx: "clang++", tool: "autotools", args: "" }
- { name: "gcc", cc: "gcc", cxx: "g++", buildargs: "" }
- { name: "gcc_ninja", cc: "gcc", cxx: "g++", buildargs: "-G Ninja" }
- { name: "gcc_no_nls", cc: "gcc", cxx: "g++", buildargs: "-DENABLE_NLS=OFF" }
- { name: "gcc_coverage", cc: "gcc", cxx: "g++", buildargs: "-DENABLE_CODE_COVERAGE=ON" }
- { name: "clang", cc: "clang", cxx: "clang++", buildargs: "" }
name: "Tests: ${{ matrix.config.name }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
@@ -53,8 +51,7 @@ jobs:
env:
CC: ${{ matrix.config.cc }}
CXX: ${{ matrix.config.cxx }}
BUILDTOOL: ${{ matrix.config.tool }}
BUILDARGS: ${{ matrix.config.args }}
BUILDARGS: ${{ matrix.config.buildargs }}
run: ./tools/build_test.sh
- name: Run WeeChat
-80
View File
@@ -1,80 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2005 Julien Louis <ptitlouis@sysif.net>
# Copyright (C) 2006-2009 Emmanuel Bouthenot <kolter@openics.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
# This target will update file config-git.h with output of command "git describe"
# (if needed, and only for a devel/rc version).
BUILT_SOURCES = build-config-git.h
build-config-git.h:
-$(abs_top_srcdir)/tools/set_git_version.sh "$(abs_top_srcdir)" "$(VERSION)" config-git.h
if TESTS
tests_dir = tests
endif
SUBDIRS = icons po doc intl src $(tests_dir)
EXTRA_DIST = AUTHORS.adoc \
ChangeLog.adoc \
Contributing.adoc \
README.adoc \
ReleaseNotes.adoc \
CMakeLists.txt \
config.rpath \
config.h.cmake \
cmake/CMakeParseArguments.cmake \
cmake/FindAsciidoctor.cmake \
cmake/FindAspell.cmake \
cmake/FindCppUTest.cmake \
cmake/FindENCHANT.cmake \
cmake/FindGCRYPT.cmake \
cmake/FindGettext.cmake \
cmake/FindGnuTLS.cmake \
cmake/FindGuile.cmake \
cmake/FindIconv.cmake \
cmake/FindLua.cmake \
cmake/FindNcurses.cmake \
cmake/FindPerl.cmake \
cmake/FindPkgConfig.cmake \
cmake/FindPython.cmake \
cmake/FindRuby.cmake \
cmake/FindV8.cmake \
cmake/FindZLIB.cmake \
cmake/cmake_uninstall.cmake.in \
po/CMakeLists.txt \
po/srcfiles.cmake \
tools/build_test.sh \
tools/set_git_version.sh \
tools/makedist.sh \
version.sh \
weechat.desktop \
weechat.pc.in \
weechat.cygport.in
ACLOCAL_AMFLAGS = -I m4
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = weechat.pc
desktopdir = $(datadir)/applications
desktop_DATA = weechat.desktop
clean-local:
$(RM) config-git.h
-69
View File
@@ -1,69 +0,0 @@
#!/bin/sh
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2005 Julien Louis <ptitlouis@sysif.net>
# Copyright (C) 2005-2006 Emmanuel Bouthenot <kolter@openics.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
###
### common stuff
###
DIR=$(cd "$(dirname "$0")" || exit 1; pwd)
cd "$DIR" || exit 1
AUTOGEN_LOG=autogen.log
err ()
{
echo "-------"
echo "Error :"
echo "---8<-----------------------------------"
cat "$AUTOGEN_LOG"
echo "----------------------------------->8---"
exit 1
}
run ()
{
printf "Running \"%s\"... " "$*"
if "$@" >"$AUTOGEN_LOG" 2>&1 ; then
echo "OK"
else
echo "FAILED"
err
fi
}
# remove autotools stuff
run rm -f config.h.in
run rm -f aclocal.m4 configure config.log config.status
run rm -rf "autom4te*.cache"
# remove libtool stuff
run rm -f libtool
# remove gettext stuff
run rm -f ABOUT-NLS
run rm -rf intl
# execute autoreconf cmds
run autoreconf -vi
# ending
rm -f "$AUTOGEN_LOG"
-1601
View File
File diff suppressed because it is too large Load Diff
-5
View File
@@ -18,11 +18,6 @@ $(BUILDDIR)/Makefile:
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
override_dh_auto_configure:
# the package also has autotools buildsys and
# debhelper try to use it but that's not needed
echo
override_dh_auto_build: $(BUILDDIR)/Makefile
dh_auto_build
-5
View File
@@ -18,11 +18,6 @@ $(BUILDDIR)/Makefile:
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
override_dh_auto_configure:
# the package also has autotools buildsys and
# debhelper try to use it but that's not needed
echo
override_dh_auto_build: $(BUILDDIR)/Makefile
dh_auto_build
-28
View File
@@ -1,28 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
SUBDIRS = . cs de en es fr it ja pl ru sr
EXTRA_DIST = docgen.py \
docinfo.html \
CMakeLists.txt
uninstall-hook:
-rmdir $(DESTDIR)$(datadir)/doc/$(PACKAGE)
-81
View File
@@ -1,81 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
weechat.1.cs.adoc \
weechat-headless.1.cs.adoc \
weechat_quickstart.cs.adoc \
includes/cmdline_options.cs.adoc \
includes/man.cs.adoc
if MAN
man_targets = weechat.1 \
weechat-headless.1
man_install = install-man
man_uninstall = uninstall-man
endif
if DOC
doc_targets = weechat_quickstart.cs.html
doc_install = install-doc
doc_uninstall = uninstall-doc
endif
all-local: $(man_targets) $(doc_targets)
# man pages
weechat.1: weechat.1.cs.adoc includes/cmdline_options.cs.adoc includes/man.cs.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/cs/weechat.1.cs.adoc
weechat-headless.1: weechat-headless.1.cs.adoc includes/cmdline_options.cs.adoc includes/man.cs.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/cs/weechat-headless.1.cs.adoc
# quickstart
weechat_quickstart.cs.html: weechat_quickstart.cs.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.cs.html $(abs_top_srcdir)/doc/cs/weechat_quickstart.cs.adoc
# install man/docs
install-data-hook: $(man_install) $(doc_install)
install-man:
$(mkinstalldirs) $(DESTDIR)$(mandir)/cs/man1/
$(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/cs/man1/
install-doc:
$(mkinstalldirs) $(DESTDIR)$(docdir)/
$(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
# uninstall man/docs
uninstall-hook: $(man_uninstall) $(doc_uninstall)
uninstall-man:
$(RM) $(DESTDIR)$(mandir)/cs/man1/weechat.1
$(RM) $(DESTDIR)$(mandir)/cs/man1/weechat-headless.1
-rmdir $(DESTDIR)$(mandir)/cs/man1
uninstall-doc:
$(RM) $(DESTDIR)$(docdir)/*.cs.html
-rmdir $(DESTDIR)$(docdir)
# clean
clean-local:
-$(RM) weechat.1 weechat-headless.1 weechat_*.html
-111
View File
@@ -1,111 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
weechat.1.de.adoc \
weechat-headless.1.de.adoc \
weechat_user.de.adoc \
weechat_scripting.de.adoc \
weechat_faq.de.adoc \
weechat_quickstart.de.adoc \
includes/autogen_api_completions.de.adoc \
includes/autogen_api_hdata.de.adoc \
includes/autogen_api_infolists.de.adoc \
includes/autogen_api_infos.de.adoc \
includes/autogen_api_infos_hashtable.de.adoc \
includes/autogen_api_plugins_priority.de.adoc \
includes/autogen_api_url_options.de.adoc \
includes/autogen_user_commands.de.adoc \
includes/autogen_user_default_aliases.de.adoc \
includes/autogen_user_irc_colors.de.adoc \
includes/autogen_user_options.de.adoc \
includes/cmdline_options.de.adoc \
includes/man.de.adoc
if MAN
man_targets = weechat.1 \
weechat-headless.1
man_install = install-man
man_uninstall = uninstall-man
endif
if DOC
doc_targets = weechat_user.de.html \
weechat_scripting.de.html \
weechat_faq.de.html \
weechat_quickstart.de.html
doc_install = install-doc
doc_uninstall = uninstall-doc
endif
all-local: $(man_targets) $(doc_targets)
# man pages
weechat.1: weechat.1.de.adoc includes/cmdline_options.de.adoc includes/man.de.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/de/weechat.1.de.adoc
weechat-headless.1: weechat-headless.1.de.adoc includes/cmdline_options.de.adoc includes/man.de.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/de/weechat-headless.1.de.adoc
# user's guide
weechat_user.de.html: weechat_user.de.adoc includes/cmdline_options.de.adoc $(wildcard includes/autogen_user_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_user.de.html $(abs_top_srcdir)/doc/de/weechat_user.de.adoc
# scripting guide
weechat_scripting.de.html: weechat_scripting.de.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_scripting.de.html $(abs_top_srcdir)/doc/de/weechat_scripting.de.adoc
# FAQ
weechat_faq.de.html: weechat_faq.de.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_faq.de.html $(abs_top_srcdir)/doc/de/weechat_faq.de.adoc
# quickstart
weechat_quickstart.de.html: weechat_quickstart.de.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.de.html $(abs_top_srcdir)/doc/de/weechat_quickstart.de.adoc
# install man/docs
install-data-hook: $(man_install) $(doc_install)
install-man:
$(mkinstalldirs) $(DESTDIR)$(mandir)/de/man1/
$(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/de/man1/
install-doc:
$(mkinstalldirs) $(DESTDIR)$(docdir)/
$(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
# uninstall man/docs
uninstall-hook: $(man_uninstall) $(doc_uninstall)
uninstall-man:
$(RM) $(DESTDIR)$(mandir)/de/man1/weechat.1
$(RM) $(DESTDIR)$(mandir)/de/man1/weechat-headless.1
-rmdir $(DESTDIR)$(mandir)/de/man1
uninstall-doc:
$(RM) $(DESTDIR)$(docdir)/*.de.html
-rmdir $(DESTDIR)$(docdir)
# clean
clean-local:
-$(RM) weechat.1 weechat-headless.1 weechat_*.html
+7 -11
View File
@@ -50,19 +50,15 @@ https://weechat.org/about/interfaces/[remote interfaces page ^↗^,window=_blan
[[compile_git]]
=== Ich kann WeeChat nach Cloning des git Repository nicht kompilieren - weshalb?
Es wird empfohlen link:weechat_user.de.html#compile_with_cmake[CMake ^↗^,window=_blank] zum
kompilieren von WeeChat zu nutzen.
// TRANSLATION MISSING
WeeChat must be compiled with CMake.
Falls Du WeeChat mit Hilfe der
link:weechat_user.de.html#compile_with_autotools[autotools ^↗^,window=_blank] kompilieren solltest
(dich also nicht für CMake entscheidest), stelle sicher, dass Du die neueste
Version von autoconf und automake besitzt.
// TRANSLATION MISSING
Please follow link:weechat_user.en.html#source_package[build instructions ^↗^,window=_blank]
and ensure all required dependencies are installed.
Die zweite Möglichkeit besteht darin, das "Entwickler-Paket" zu installieren, denn dies
besitzt weniger Abhängigkeiten. Das Paket wird quasi täglich aus dem git Repository erstellt.
Beachte, dass dieses Paket nicht immer exakt mit dem git Repository übereinstimmen muss
und daher auch weniger brauchbar sein kann. Im Gegensatz zu der Möglichkeit, dass man selbst
das Repository klont und daraus Updates installiert.
// TRANSLATION MISSING
If you still have issues, please report them to the developers.
[[compile_macos]]
=== Wie installiere ich WeeChat auf macOS?
+16 -49
View File
@@ -100,7 +100,8 @@ Repositorium.
[[source_package]]
=== Quellpakete
WeeChat kann mittels CMake oder autotools kompiliert werden (CMake sollte dabei die bevorzugte Methode sein).
// TRANSLATION MISSING
WeeChat must be built with CMake.
[NOTE]
Unter macOS kann https://brew.sh/[Homebrew ^↗^,window=_blank] verwendet werden:
@@ -109,18 +110,21 @@ Unter macOS kann https://brew.sh/[Homebrew ^↗^,window=_blank] verwendet werde
[[dependencies]]
==== Abhängigkeiten
Die folgende Tabelle zeigt die Liste der Pakete, die zum Kompilieren von
WeeChat *erforderlich* sind:
// TRANSLATION MISSING
The following table shows the list of packages that are *required* to build
WeeChat:
[width="100%",cols="5,^3,.^15",options="header"]
|===
| Paket ^(1)^ | Version | Funktionen
// TRANSLATION MISSING
| C compiler (gcc / clang) |
| zum Erstellen der Binärdatei.
| Compile C sources.
// TRANSLATION MISSING
| cmake | ≥ 3.0
| zum kompilieren (autotools ist möglich. CMake wird aber empfohlen).
| Build.
| pkg-config |
| entdeckt installierte Bibliotheken.
@@ -198,8 +202,9 @@ installieren:
# apt-get build-dep weechat
----
[[compile_with_cmake]]
==== Kompilieren mit CMake
// TRANSLATION MISSING
[[build]]
==== Build
* Installation in das Systemverzeichnis (benötigt _root_ Privilegien):
@@ -351,59 +356,21 @@ oder mittels der Curses-Oberfläche:
$ ccmake ..
----
[[compile_with_autotools]]
==== Kompilieren mit autotools
[WARNING]
Ausschließlich das Kompilieren mittels CMake wird offiziell unterstützt. Autotools
sollte nur verwendet werden, falls man keine Möglichkeit hat CMake zu nutzen. +
Für die Erstellung mittels autotools werden zusätzliche Pakete benötigt und es ist
zeitintensiver als CMake.
* Installation in das Systemverzeichnis (benötigt _root_ Privilegien):
----
$ ./autogen.sh
$ mkdir build
$ cd build
$ ../configure
$ make
$ sudo make install
----
* Installation in ein benutzerdefiniertes Verzeichnis (zum Beispiel ins Heimatverzeichnis):
----
$ ./autogen.sh
$ mkdir build
$ cd build
$ ../configure --prefix=/Pfad/zum/Verzeichnis
$ make
$ make install
----
Die Optionen können auch für das _configure_ Skript verwendet und mittels
folgendem Befehl angezeigt werden:
----
$ ./configure --help
----
[[run_tests]]
==== Tests ausführen
[[tests]]
==== Tests
Folgende Pakete werden *benötigt* um Tests zu kompilieren:
* libcpputest-dev
* C++ compiler
Tests muss aktiviert werden wenn WeeChat kompiliert wird (mittels CMake):
Tests muss aktiviert werden wenn WeeChat kompiliert wird:
----
$ cmake .. -DENABLE_TESTS=ON
----
Nach der Kompilierung wird die Testumgebung im build-Verzeichnis (bei CMake) ausgeführt:
Nach der Kompilierung wird die Testumgebung im build-Verzeichnis ausgeführt:
----
$ ctest -V
-129
View File
@@ -1,129 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
weechat.1.en.adoc \
weechat-headless.1.en.adoc \
weechat_user.en.adoc \
weechat_plugin_api.en.adoc \
weechat_scripting.en.adoc \
weechat_faq.en.adoc \
weechat_quickstart.en.adoc \
weechat_relay_protocol.en.adoc \
weechat_dev.en.adoc \
includes/autogen_api_completions.en.adoc \
includes/autogen_api_hdata.en.adoc \
includes/autogen_api_infolists.en.adoc \
includes/autogen_api_infos.en.adoc \
includes/autogen_api_infos_hashtable.en.adoc \
includes/autogen_api_plugins_priority.en.adoc \
includes/autogen_api_url_options.en.adoc \
includes/autogen_user_commands.en.adoc \
includes/autogen_user_default_aliases.en.adoc \
includes/autogen_user_irc_colors.en.adoc \
includes/autogen_user_options.en.adoc \
includes/cmdline_options.en.adoc \
includes/man.en.adoc
if MAN
man_targets = weechat.1 \
weechat-headless.1
man_install = install-man
man_uninstall = uninstall-man
endif
if DOC
doc_targets = weechat_user.en.html \
weechat_plugin_api.en.html \
weechat_scripting.en.html \
weechat_faq.en.html \
weechat_quickstart.en.html \
weechat_relay_protocol.en.html \
weechat_dev.en.html
doc_install = install-doc
doc_uninstall = uninstall-doc
endif
all-local: $(man_targets) $(doc_targets)
# man pages
weechat.1: weechat.1.en.adoc includes/cmdline_options.en.adoc includes/man.en.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/en/weechat.1.en.adoc
weechat-headless.1: weechat-headless.1.en.adoc includes/cmdline_options.en.adoc includes/man.en.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/en/weechat-headless.1.en.adoc
# user's guide
weechat_user.en.html: weechat_user.en.adoc includes/cmdline_options.en.adoc $(wildcard includes/autogen_user_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_user.en.html $(abs_top_srcdir)/doc/en/weechat_user.en.adoc
# plugin API reference
weechat_plugin_api.en.html: weechat_plugin_api.en.adoc $(wildcard includes/autogen_api_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_plugin_api.en.html $(abs_top_srcdir)/doc/en/weechat_plugin_api.en.adoc
# scripting guide
weechat_scripting.en.html: weechat_scripting.en.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_scripting.en.html $(abs_top_srcdir)/doc/en/weechat_scripting.en.adoc
# FAQ
weechat_faq.en.html: weechat_faq.en.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_faq.en.html $(abs_top_srcdir)/doc/en/weechat_faq.en.adoc
# quickstart
weechat_quickstart.en.html: weechat_quickstart.en.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.en.html $(abs_top_srcdir)/doc/en/weechat_quickstart.en.adoc
# relay protocol
weechat_relay_protocol.en.html: weechat_relay_protocol.en.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_relay_protocol.en.html $(abs_top_srcdir)/doc/en/weechat_relay_protocol.en.adoc
# developer's guide
weechat_dev.en.html: weechat_dev.en.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_dev.en.html $(abs_top_srcdir)/doc/en/weechat_dev.en.adoc
# install man/docs
install-data-hook: $(man_install) $(doc_install)
install-man:
$(mkinstalldirs) $(DESTDIR)$(mandir)/man1/
$(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/man1/
install-doc:
$(mkinstalldirs) $(DESTDIR)$(docdir)/
$(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
# uninstall man/docs
uninstall-hook: $(man_uninstall) $(doc_uninstall)
uninstall-man:
$(RM) $(DESTDIR)$(mandir)/man1/weechat.1
$(RM) $(DESTDIR)$(mandir)/man1/weechat-headless.1
-rmdir $(DESTDIR)$(mandir)/man1
uninstall-doc:
$(RM) $(DESTDIR)$(docdir)/*.en.html
-rmdir $(DESTDIR)$(docdir)
# clean
clean-local:
-$(RM) weechat.1 weechat-headless.1 weechat_*.html
+1 -4
View File
@@ -1160,11 +1160,8 @@ Where _component_ is one of following:
| WeeChat core
| build
| autogen.sh +
CMakeLists.txt +
| CMakeLists.txt +
cmake/* +
configure.ac +
Makefile.am +
tools/* +
weechat.cygport.in +
weechat.spec
+4 -9
View File
@@ -44,17 +44,12 @@ https://weechat.org/about/interfaces/[remote interfaces page ^↗^,window=_blan
[[compile_git]]
=== I can't compile WeeChat after cloning git repository, why?
The recommended way to compile WeeChat is with
link:weechat_user.en.html#compile_with_cmake[CMake ^↗^,window=_blank].
WeeChat must be compiled with CMake.
If you're compiling with
link:weechat_user.en.html#compile_with_autotools[autotools ^↗^,window=_blank]
(and not CMake), check that you have latest version of autoconf and automake.
Please follow link:weechat_user.en.html#source_package[build instructions ^↗^,window=_blank]
and ensure all required dependencies are installed.
The other way is to install the "devel package", which needs less dependencies.
This package is built almost every day using git repository. Note that this
package may not correspond exactly to git base and that it's less convenient
than git cloning for installing updates.
If you still have issues, please report them to the developers.
[[compile_macos]]
=== How can I install WeeChat on macOS?
+10 -47
View File
@@ -94,7 +94,7 @@ repository.
[[source_package]]
=== Source package
WeeChat can be compiled with CMake or autotools (CMake is recommended way).
WeeChat must be built with CMake.
[NOTE]
On macOS, you can use https://brew.sh/[Homebrew ^↗^,window=_blank]:
@@ -103,7 +103,7 @@ On macOS, you can use https://brew.sh/[Homebrew ^↗^,window=_blank]:
[[dependencies]]
==== Dependencies
The following table shows the list of packages that are *required* to compile
The following table shows the list of packages that are *required* to build
WeeChat:
[width="100%",cols="5,^3,.^15",options="header"]
@@ -111,10 +111,10 @@ WeeChat:
| Package ^(1)^ | Version | Features
| C compiler (gcc / clang) |
| Build.
| Compile C sources.
| cmake | ≥ 3.0
| Build (autotools still possible, but CMake is recommended).
| Build.
| pkg-config |
| Detect installed libraries.
@@ -190,8 +190,8 @@ all dependencies with the command:
# apt-get build-dep weechat
----
[[compile_with_cmake]]
==== Compile with CMake
[[build]]
==== Build
* Installation in system directories (requires _root_ privileges):
@@ -343,58 +343,21 @@ Or with Curses interface:
$ ccmake ..
----
[[compile_with_autotools]]
==== Compile with autotools
[WARNING]
Only CMake is officially supported to build WeeChat. You should use autotools
only if you are not able to use CMake. +
Build with autotools requires more dependencies and is slower than with CMake.
* Installation in system directories (requires _root_ privileges):
----
$ ./autogen.sh
$ mkdir build
$ cd build
$ ../configure
$ make
$ sudo make install
----
* Installation in custom directory (for example your home):
----
$ ./autogen.sh
$ mkdir build
$ cd build
$ ../configure --prefix=/path/to/directory
$ make
$ make install
----
Options can be used for _configure_ script, they can be displayed with this
command:
----
$ ./configure --help
----
[[run_tests]]
==== Run tests
[[tests]]
==== Tests
Following packages are *required* to compile tests:
* libcpputest-dev
* C++ compiler
Tests must be enabled when compiling WeeChat (with CMake):
Tests must be enabled when compiling WeeChat:
----
$ cmake .. -DENABLE_TESTS=ON
----
They can be launched after compilation from the build directory (with CMake):
They can be launched after compilation from the build directory:
----
$ ctest -V
-77
View File
@@ -1,77 +0,0 @@
#
# Copyright (C) 2012-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
weechat_faq.es.adoc \
weechat_quickstart.es.adoc
if MAN
man_targets =
man_install =
man_uninstall =
endif
if DOC
doc_targets = weechat_faq.es.html \
weechat_quickstart.es.html
doc_install = install-doc
doc_uninstall = uninstall-doc
endif
all-local: $(man_targets) $(doc_targets)
# FAQ
weechat_faq.es.html: weechat_faq.es.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_faq.es.html $(abs_top_srcdir)/doc/es/weechat_faq.es.adoc
# quickstart
weechat_quickstart.es.html: weechat_quickstart.es.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.es.html $(abs_top_srcdir)/doc/es/weechat_quickstart.es.adoc
# install man/docs
install-data-hook: $(man_install) $(doc_install)
install-man:
$(mkinstalldirs) $(DESTDIR)$(mandir)/es/man1/
$(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/es/man1/
(cd '$(DESTDIR)$(mandir)/es/man1/' && $(RM) weechat-headless.1 && $(LN_S) weechat.1 weechat-headless.1)
install-doc:
$(mkinstalldirs) $(DESTDIR)$(docdir)/
$(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
# uninstall man/docs
uninstall-hook: $(man_uninstall) $(doc_uninstall)
uninstall-man:
$(RM) $(DESTDIR)$(mandir)/es/man1/weechat.1
$(RM) $(DESTDIR)$(mandir)/es/man1/weechat-headless.1
-rmdir $(DESTDIR)$(mandir)/es/man1
uninstall-doc:
$(RM) $(DESTDIR)$(docdir)/*.es.html
-rmdir $(DESTDIR)$(docdir)
# clean
clean-local:
-$(RM) weechat_*.html
+7 -8
View File
@@ -50,16 +50,15 @@ https://weechat.org/about/interfaces/[remote interfaces page ^↗^,window=_blan
[[compile_git]]
=== No puedo compilar WeeChat después de haber clonado el repositorio git, ¿por qué?
La manera recomendada para compilar WeeChat es con
link:weechat_user.en.html#compile_with_cmake[CMake ^↗^,window=_blank].
// TRANSLATION MISSING
WeeChat must be compiled with CMake.
Si lo está compilando con link:weechat_user.en.html#compile_with_autotools[autotools ^↗^,window=_blank]
(y no con CMake), compruebe que tiene la versión más reciente de autoconf y automake.
// TRANSLATION MISSING
Please follow link:weechat_user.en.html#source_package[build instructions ^↗^,window=_blank]
and ensure all required dependencies are installed.
Otra forma es instalar "devel package", que necesita menos dependencias.
Este paquete está compilado casi cada día utilizando el repositorio git. Tenga en cuenta que este
paquete puede no corresponder exactamente con la base de git y es menos conveniente
que la opción de clonar el repositorio de git a la hora de instalar actualizaciones.
// TRANSLATION MISSING
If you still have issues, please report them to the developers.
[[compile_macos]]
=== ¿Cómo puedo instalar WeeChat en macOS?
-129
View File
@@ -1,129 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
weechat.1.fr.adoc \
weechat-headless.1.fr.adoc \
weechat_user.fr.adoc \
weechat_plugin_api.fr.adoc \
weechat_scripting.fr.adoc \
weechat_faq.fr.adoc \
weechat_quickstart.fr.adoc \
weechat_relay_protocol.fr.adoc \
weechat_dev.fr.adoc \
includes/autogen_api_completions.fr.adoc \
includes/autogen_api_hdata.fr.adoc \
includes/autogen_api_infolists.fr.adoc \
includes/autogen_api_infos.fr.adoc \
includes/autogen_api_infos_hashtable.fr.adoc \
includes/autogen_api_plugins_priority.fr.adoc \
includes/autogen_api_url_options.fr.adoc \
includes/autogen_user_commands.fr.adoc \
includes/autogen_user_default_aliases.fr.adoc \
includes/autogen_user_irc_colors.fr.adoc \
includes/autogen_user_options.fr.adoc \
includes/cmdline_options.fr.adoc \
includes/man.fr.adoc
if MAN
man_targets = weechat.1 \
weechat-headless.1
man_install = install-man
man_uninstall = uninstall-man
endif
if DOC
doc_targets = weechat_user.fr.html \
weechat_plugin_api.fr.html \
weechat_scripting.fr.html \
weechat_faq.fr.html \
weechat_quickstart.fr.html \
weechat_relay_protocol.fr.html \
weechat_dev.fr.html
doc_install = install-doc
doc_uninstall = uninstall-doc
endif
all-local: $(man_targets) $(doc_targets)
# man pages
weechat.1: weechat.1.fr.adoc includes/cmdline_options.fr.adoc includes/man.fr.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/fr/weechat.1.fr.adoc
weechat-headless.1: weechat-headless.1.fr.adoc includes/cmdline_options.fr.adoc includes/man.fr.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/fr/weechat-headless.1.fr.adoc
# user's guide
weechat_user.fr.html: weechat_user.fr.adoc includes/cmdline_options.fr.adoc $(wildcard includes/autogen_user_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_user.fr.html $(abs_top_srcdir)/doc/fr/weechat_user.fr.adoc
# plugin API reference
weechat_plugin_api.fr.html: weechat_plugin_api.fr.adoc $(wildcard includes/autogen_api_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_plugin_api.fr.html $(abs_top_srcdir)/doc/fr/weechat_plugin_api.fr.adoc
# scripting guide
weechat_scripting.fr.html: weechat_scripting.fr.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_scripting.fr.html $(abs_top_srcdir)/doc/fr/weechat_scripting.fr.adoc
# FAQ
weechat_faq.fr.html: weechat_faq.fr.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_faq.fr.html $(abs_top_srcdir)/doc/fr/weechat_faq.fr.adoc
# quickstart
weechat_quickstart.fr.html: weechat_quickstart.fr.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.fr.html $(abs_top_srcdir)/doc/fr/weechat_quickstart.fr.adoc
# relay protocol
weechat_relay_protocol.fr.html: weechat_relay_protocol.fr.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_relay_protocol.fr.html $(abs_top_srcdir)/doc/fr/weechat_relay_protocol.fr.adoc
# developer's guide
weechat_dev.fr.html: weechat_dev.fr.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_dev.fr.html $(abs_top_srcdir)/doc/fr/weechat_dev.fr.adoc
# install man/docs
install-data-hook: $(man_install) $(doc_install)
install-man:
$(mkinstalldirs) $(DESTDIR)$(mandir)/fr/man1/
$(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/fr/man1/
install-doc:
$(mkinstalldirs) $(DESTDIR)$(docdir)/
$(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
# uninstall man/docs
uninstall-hook: $(man_uninstall) $(doc_uninstall)
uninstall-man:
$(RM) $(DESTDIR)$(mandir)/fr/man1/weechat.1
$(RM) $(DESTDIR)$(mandir)/fr/man1/weechat-headless.1
-rmdir $(DESTDIR)$(mandir)/fr/man1
uninstall-doc:
$(RM) $(DESTDIR)$(docdir)/*.fr.html
-rmdir $(DESTDIR)$(docdir)
# clean
clean-local:
-$(RM) weechat.1 weechat-headless.1 weechat_*.html
+1 -4
View File
@@ -1180,11 +1180,8 @@ Où _composant_ est :
| cœur de WeeChat
| build
| autogen.sh +
CMakeLists.txt +
| CMakeLists.txt +
cmake/* +
configure.ac +
Makefile.am +
tools/* +
weechat.cygport.in +
weechat.spec
+4 -10
View File
@@ -46,18 +46,12 @@ https://weechat.org/about/interfaces/[page avec les interfaces distantes ^↗^,
[[compile_git]]
=== Je ne peux pas compiler WeeChat après avoir cloné la base git, pourquoi ?
La méthode recommandée pour compiler WeeChat est d'utiliser
link:weechat_user.fr.html#compile_with_cmake[CMake ^↗^,window=_blank].
WeeChat doit être compilé avec CMake.
Si vous compilez avec les link:weechat_user.fr.html#compile_with_autotools[autotools ^↗^,window=_blank]
(et non CMake), vérifiez que vous avez bien la dernière version d'autoconf et
automake.
Merci de suivre les link:weechat_user.en.html#source_package[instructions de construction ^↗^,window=_blank]
et vous assurer que toutes les dépendances obligatoires sont installées.
Une autre façon de faire est de compiler le "paquet devel", qui nécessite moins
de dépendances. Ce paquet est construit quasiment tous les jours à partir de la
base git. Notez que ce paquet peut ne pas correspondre exactement à la base
git et qu'il est moins pratique que de cloner la base git pour installer des
mises à jour.
Si vous avez toujours des problèmes, merci de les remonter aux développeurs.
[[compile_macos]]
=== Comment puis-je installer WeeChat sous macOS ?
+10 -50
View File
@@ -95,8 +95,7 @@ https://github.com/weechat/weechat-container[weechat-container ^↗^,window=_bl
[[source_package]]
=== Paquet source
WeeChat peut être compilé avec CMake ou les autotools (CMake est la méthode
recommandée).
WeeChat doit être construit avec CMake.
[NOTE]
Sous macOS, vous pouvez utiliser https://brew.sh/[Homebrew ^↗^,window=_blank] :
@@ -105,17 +104,17 @@ Sous macOS, vous pouvez utiliser https://brew.sh/[Homebrew ^↗^,window=_blank]
[[dependencies]]
==== Dépendances
Le tableau suivant liste les paquets *requis* pour compiler WeeChat :
Le tableau suivant liste les paquets *requis* pour construire WeeChat :
[width="100%",cols="5,^3,.^15",options="header"]
|===
| Paquet ^(1)^ | Version | Fonctionnalités
| compilateur C (gcc / clang) |
| Construction.
| Compilation des sources en C.
| cmake | ≥ 3.0
| Construction (autotools toujours possible, mais CMake est recommandé).
| Construction.
| pkg-config |
| Détection des bibliothèques installées.
@@ -191,8 +190,8 @@ pouvez installer toutes les dépendances avec la commande :
# apt-get build-dep weechat
----
[[compile_with_cmake]]
==== Compilation avec CMake
[[build]]
==== Construction
* Installation dans les répertoires systèmes (nécessite les droits _root_) :
@@ -345,60 +344,21 @@ Ou avec l'interface Curses :
$ ccmake ..
----
[[compile_with_autotools]]
==== Compilation avec autotools
[WARNING]
Seul CMake est officiellement supporté pour construire WeeChat. Vous ne devriez
utiliser les autotools que si vous n'avez pas la possibilité d'utiliser CMake. +
La compilation avec les autotools requiert plus de dépendances et est plus lente
qu'avec CMake.
* Installation dans les répertoires systèmes (nécessite les droits _root_) :
----
$ ./autogen.sh
$ mkdir build
$ cd build
$ ../configure
$ make
$ sudo make install
----
* Installation dans un répertoire spécifique (par exemple dans votre "home") :
----
$ ./autogen.sh
$ mkdir build
$ cd build
$ ../configure --prefix=/chemin/vers/répertoire
$ make
$ make install
----
Des options peuvent être utilisées pour le script _configure_, elles peuvent
être affichées avec cette commande :
----
$ ./configure --help
----
[[run_tests]]
==== Lancement des tests
[[tests]]
==== Tests
Les paquets suivants sont nécessaires pour compiler les tests :
* libcpputest-dev
* C++ compiler
Les tests doivent être activés pour compiler WeeChat (avec CMake) :
Les tests doivent être activés pour compiler WeeChat :
----
$ cmake .. -DENABLE_TESTS=ON
----
Ils peuvent être lancés après compilation depuis le répertoire de construction
(avec CMake) :
Ils peuvent être lancés après compilation depuis le répertoire de construction :
----
$ ctest -V
-116
View File
@@ -1,116 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
weechat.1.it.adoc \
weechat-headless.1.it.adoc \
weechat_user.it.adoc \
weechat_plugin_api.it.adoc \
weechat_scripting.it.adoc \
weechat_faq.it.adoc \
weechat_quickstart.it.adoc \
includes/autogen_api_completions.it.adoc \
includes/autogen_api_hdata.it.adoc \
includes/autogen_api_infolists.it.adoc \
includes/autogen_api_infos_hashtable.it.adoc \
includes/autogen_api_infos.it.adoc \
includes/autogen_api_plugins_priority.it.adoc \
includes/autogen_api_url_options.it.adoc \
includes/autogen_user_commands.it.adoc \
includes/autogen_user_default_aliases.it.adoc \
includes/autogen_user_irc_colors.it.adoc \
includes/autogen_user_options.it.adoc \
includes/cmdline_options.it.adoc \
includes/man.it.adoc
if MAN
man_targets = weechat.1 \
weechat-headless.1
man_install = install-man
man_uninstall = uninstall-man
endif
if DOC
doc_targets = weechat_user.it.html \
weechat_plugin_api.it.html \
weechat_scripting.it.html \
weechat_faq.it.html \
weechat_quickstart.it.html
doc_install = install-doc
doc_uninstall = uninstall-doc
endif
all-local: $(man_targets) $(doc_targets)
# man pages
weechat.1: weechat.1.it.adoc includes/cmdline_options.it.adoc includes/man.it.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/it/weechat.1.it.adoc
weechat-headless.1: weechat-headless.1.it.adoc includes/cmdline_options.it.adoc includes/man.it.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/it/weechat-headless.1.it.adoc
# user's guide
weechat_user.it.html: weechat_user.it.adoc includes/cmdline_options.it.adoc $(wildcard includes/autogen_user_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_user.it.html $(abs_top_srcdir)/doc/it/weechat_user.it.adoc
# plugin API reference
weechat_plugin_api.it.html: weechat_plugin_api.it.adoc $(wildcard includes/autogen_api_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_plugin_api.it.html $(abs_top_srcdir)/doc/it/weechat_plugin_api.it.adoc
# scripting guide
weechat_scripting.it.html: weechat_scripting.it.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_scripting.it.html $(abs_top_srcdir)/doc/it/weechat_scripting.it.adoc
# FAQ
weechat_faq.it.html: weechat_faq.it.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_faq.it.html $(abs_top_srcdir)/doc/it/weechat_faq.it.adoc
# quickstart
weechat_quickstart.it.html: weechat_quickstart.it.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.it.html $(abs_top_srcdir)/doc/it/weechat_quickstart.it.adoc
# install man/docs
install-data-hook: $(man_install) $(doc_install)
install-man:
$(mkinstalldirs) $(DESTDIR)$(mandir)/it/man1/
$(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/it/man1/
install-doc:
$(mkinstalldirs) $(DESTDIR)$(docdir)/
$(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
# uninstall man/docs
uninstall-hook: $(man_uninstall) $(doc_uninstall)
uninstall-man:
$(RM) $(DESTDIR)$(mandir)/it/man1/weechat.1
$(RM) $(DESTDIR)$(mandir)/it/man1/weechat-headless.1
-rmdir $(DESTDIR)$(mandir)/it/man1
uninstall-doc:
$(RM) $(DESTDIR)$(docdir)/*.it.html
-rmdir $(DESTDIR)$(docdir)
# clean
clean-local:
-$(RM) weechat.1 weechat-headless.1 weechat_*.html
+7 -10
View File
@@ -53,18 +53,15 @@ https://weechat.org/about/interfaces/[remote interfaces page ^↗^,window=_blan
[[compile_git]]
=== Non è possibile compilare WeeChat dopo aver clonato il repository git, perché?
Il metodo raccomandato per compilare WeeChat è utilizzando
link:weechat_user.it.html#compile_with_cmake[CMake ^↗^,window=_blank].
// TRANSLATION MISSING
WeeChat must be compiled with CMake.
Se si sta compilando con link:weechat_user.it.html#compile_with_autotools[autotools ^↗^,window=_blank]
(e non CMake), verificare che siano installate le ultime versioni di autoconf e
automake.
// TRANSLATION MISSING
Please follow link:weechat_user.en.html#source_package[build instructions ^↗^,window=_blank]
and ensure all required dependencies are installed.
L'altro metodo è installare il "pacchetto di sviluppo", che richiede meno
dipendenze. Questo pacchetto viene generato quasi tutti i giorni utilizzando
il repository git. È bene notare che potrebbe non corrispondere
esattamente alla base git ed è meno conveniente rispetto al clone di git
per l'installazione degli aggiornamenti.
// TRANSLATION MISSING
If you still have issues, please report them to the developers.
// TRANSLATION MISSING
[[compile_macos]]
+13 -51
View File
@@ -114,8 +114,8 @@ repository.
[[source_package]]
=== Sorgenti
WeeChat può essere compilato con CMake oppure autotools
(tuttavia si raccomanda CMake).
// TRANSLATION MISSING
WeeChat must be built with CMake.
// TRANSLATION MISSING
[NOTE]
@@ -126,7 +126,7 @@ On macOS, you can use https://brew.sh/[Homebrew ^↗^,window=_blank]:
==== Dipendenze
// TRANSLATION MISSING
The following table shows the list of packages that are *required* to compile
The following table shows the list of packages that are *required* to build
WeeChat:
[width="100%",cols="5,^3,.^15",options="header"]
@@ -136,10 +136,11 @@ WeeChat:
// TRANSLATION MISSING
| C compiler (gcc / clang) |
| Build.
| Compile C sources.
// TRANSLATION MISSING
| cmake | ≥ 3.0
| Compilazione (ancora possibile con autotools, ma si raccomanda CMake).
| Build.
// TRANSLATION MISSING
| pkg-config |
@@ -233,8 +234,9 @@ all dependencies with the command:
# apt-get build-dep weechat
----
[[compile_with_cmake]]
==== Compilazione con CMake
// TRANSLATION MISSING
[[build]]
==== Build
* Installazione nelle directory di sistema (richiede privilegi di _root_):
@@ -391,62 +393,22 @@ Or with Curses interface:
$ ccmake ..
----
[[compile_with_autotools]]
==== Compilazione con autotools
// TRANSLATION MISSING
[WARNING]
Only CMake is officially supported to build WeeChat. You should use autotools
only if you are not able to use CMake. +
Build with autotools requires more dependencies and is slower than with CMake.
* Installazione nelle directory di sistema (richiede privilegi di _root_):
----
$ ./autogen.sh
$ mkdir build
$ cd build
$ ../configure
$ make
$ sudo make install
----
// TRANSLATION MISSING
* Installazione in una directory personalizzata (for example your home):
----
$ ./autogen.sh
$ mkdir build
$ cd build
$ ../configure --prefix=/path/to/directory
$ make
$ make install
----
// TRANSLATION MISSING
Options can be used for _configure_ script, they can be displayed with this
command:
----
$ ./configure --help
----
// TRANSLATION MISSING
[[run_tests]]
==== Run tests
[[tests]]
==== Tests
Following packages are *required* to compile tests:
* libcpputest-dev
* C++ compiler
Tests must be enabled when compiling WeeChat (with CMake):
Tests must be enabled when compiling WeeChat:
----
$ cmake .. -DENABLE_TESTS=ON
----
They can be launched after compilation from the build directory (with CMake):
They can be launched after compilation from the build directory:
----
$ ctest -V
-128
View File
@@ -1,128 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
weechat.1.ja.adoc \
weechat-headless.1.ja.adoc \
weechat_user.ja.adoc \
weechat_plugin_api.ja.adoc \
weechat_scripting.ja.adoc \
weechat_faq.ja.adoc \
weechat_quickstart.ja.adoc \
weechat_relay_protocol.ja.adoc \
weechat_dev.ja.adoc \
includes/autogen_api_completions.ja.adoc \
includes/autogen_api_hdata.ja.adoc \
includes/autogen_api_infolists.ja.adoc \
includes/autogen_api_infos_hashtable.ja.adoc \
includes/autogen_api_infos.ja.adoc \
includes/autogen_api_plugins_priority.ja.adoc \
includes/autogen_api_url_options.ja.adoc \
includes/autogen_user_commands.ja.adoc \
includes/autogen_user_default_aliases.ja.adoc \
includes/autogen_user_irc_colors.ja.adoc \
includes/autogen_user_options.ja.adoc \
includes/cmdline_options.ja.adoc \
includes/man.ja.adoc
if MAN
man_targets = weechat.1 \
weechat-headless.1
man_install = install-man
man_uninstall = uninstall-man
endif
if DOC
doc_targets = weechat_user.ja.html \
weechat_plugin_api.ja.html \
weechat_scripting.ja.html \
weechat_faq.ja.html \
weechat_quickstart.ja.html \
weechat_relay_protocol.ja.html \
weechat_dev.ja.html
doc_install = install-doc
doc_uninstall = uninstall-doc
endif
all-local: $(man_targets) $(doc_targets)
# man pages
weechat.1: weechat.1.ja.adoc includes/cmdline_options.ja.adoc includes/man.ja.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/ja/weechat.1.ja.adoc
weechat-headless.1: weechat-headless.1.ja.adoc includes/cmdline_options.ja.adoc includes/man.ja.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/ja/weechat-headless.1.ja.adoc
# user's guide
weechat_user.ja.html: weechat_user.ja.adoc includes/cmdline_options.ja.adoc $(wildcard includes/autogen_user_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_user.ja.html $(abs_top_srcdir)/doc/ja/weechat_user.ja.adoc
# plugin API reference
weechat_plugin_api.ja.html: weechat_plugin_api.ja.adoc $(wildcard includes/autogen_api_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_plugin_api.ja.html $(abs_top_srcdir)/doc/ja/weechat_plugin_api.ja.adoc
# scripting guide
weechat_scripting.ja.html: weechat_scripting.ja.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_scripting.ja.html $(abs_top_srcdir)/doc/ja/weechat_scripting.ja.adoc
# FAQ
weechat_faq.ja.html: weechat_faq.ja.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_faq.ja.html $(abs_top_srcdir)/doc/ja/weechat_faq.ja.adoc
# quickstart
weechat_quickstart.ja.html: weechat_quickstart.ja.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.ja.html $(abs_top_srcdir)/doc/ja/weechat_quickstart.ja.adoc
# relay protocol
weechat_relay_protocol.ja.html: weechat_relay_protocol.ja.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_relay_protocol.ja.html $(abs_top_srcdir)/doc/ja/weechat_relay_protocol.ja.adoc
# developer's guide
weechat_dev.ja.html: weechat_dev.ja.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_dev.ja.html $(abs_top_srcdir)/doc/ja/weechat_dev.ja.adoc
# install man/docs
install-data-hook: $(man_install) $(doc_install)
install-man:
$(mkinstalldirs) $(DESTDIR)$(mandir)/ja/man1/
$(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/ja/man1/
install-doc:
$(mkinstalldirs) $(DESTDIR)$(docdir)/
$(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
# uninstall man/docs
uninstall-hook: $(man_uninstall) $(doc_uninstall)
uninstall-man:
$(RM) $(DESTDIR)$(mandir)/ja/man1/weechat.1
$(RM) $(DESTDIR)$(mandir)/ja/man1/weechat-headless.1
-rmdir $(DESTDIR)$(mandir)/ja/man1
uninstall-doc:
$(RM) $(DESTDIR)$(docdir)/*.ja.html
-rmdir $(DESTDIR)$(docdir)
# clean
clean-local:
-$(RM) weechat.1 weechat-headless.1 weechat_*.html
+1 -4
View File
@@ -1235,11 +1235,8 @@ _component_ には以下から 1 つ選んで記入してください:
WeeChat core
| build
| autogen.sh +
CMakeLists.txt +
| CMakeLists.txt +
cmake/* +
configure.ac +
Makefile.am +
tools/* +
weechat.cygport.in +
weechat.spec |
+7 -8
View File
@@ -51,16 +51,15 @@ https://weechat.org/about/interfaces/[remote interfaces page ^↗^,window=_blan
[[compile_git]]
=== git リポジトリをクローンした後に WeeChat をコンパイルできません。
WeeChat をコンパイルするには link:weechat_user.ja.html#compile_with_cmake[CMake ^↗^,window=_blank]
を使うことが推奨されています。
// TRANSLATION MISSING
WeeChat must be compiled with CMake.
link:weechat_user.ja.html#compile_with_autotools[autotools ^↗^,window=_blank] を使って (CMake を使わずに)
コンパイルする場合、最新の autoconf と automake を使ってください。
// TRANSLATION MISSING
Please follow link:weechat_user.en.html#source_package[build instructions ^↗^,window=_blank]
and ensure all required dependencies are installed.
他には「開発パッケージ」をインストール方法があります。この場合、インストールするのに必要なパッケージの数が減ります。このパッケージは
git リポジトリからほぼ毎日ビルドされます。このパッケージは厳密には
git ベースではなく、アップデートをインストールする場合には
git をクローンする方法よりも不便であることに注意してください。
// TRANSLATION MISSING
If you still have issues, please report them to the developers.
[[compile_macos]]
=== どうすれば macOS に WeeChat をインストールできますか?
+14 -47
View File
@@ -105,7 +105,8 @@ repository.
[[source_package]]
=== ソースパッケージ
WeeChat は CMake または autotools を使ってコンパイルできます (CMake を使うことが推奨されています)。
// TRANSLATION MISSING
WeeChat must be built with CMake.
[NOTE]
macOS では https://brew.sh/[Homebrew ^↗^,window=_blank] を使ってください:
@@ -115,7 +116,7 @@ macOS では https://brew.sh/[Homebrew ^↗^,window=_blank] を使ってくだ
==== 依存関係
// TRANSLATION MISSING
The following table shows the list of packages that are *required* to compile
The following table shows the list of packages that are *required* to build
WeeChat:
[width="100%",cols="5,^3,.^15",options="header"]
@@ -123,11 +124,12 @@ WeeChat:
// TRANSLATION MISSING
| パッケージ ^(1)^ | バージョン | Features
// TRANSLATION MISSING
| C コンパイラ (gcc / clang) |
| ビルド
| Compile C sources.
| cmake | ≥ 3.0
| ビルド (autotools でも可能ですが、CMake を推奨します)
| ビルド
| pkg-config |
| インストール済みライブラリを検出
@@ -211,8 +213,9 @@ Debian および Ubuntu
# apt-get build-dep weechat
----
[[compile_with_cmake]]
==== CMake によるコンパイル
// TRANSLATION MISSING
[[build]]
==== Build
* システムディレクトリにインストールする場合 (_root_ 特権が必要です):
@@ -365,58 +368,22 @@ Curses インターフェースを使う場合は以下のコマンドを使っ
$ ccmake ..
----
[[compile_with_autotools]]
==== autotools によるコンパイル
[WARNING]
CMake 以外を用いた WeeChat のビルドは公式にサポートされません。CMake
を利用できない場合のみ autotools を使ってください。 +
autotools を用いてビルドする場合、CMake よりも多くの依存パッケージとより長い時間が必要です。
* システムディレクトリにインストールする場合 (_root_ 特権が必要です):
----
$ ./autogen.sh
$ mkdir build
$ cd build
$ ../configure
$ make
$ sudo make install
----
* 任意のディレクトリ (例えば自分のホームディレクトリ) にインストールする場合:
----
$ ./autogen.sh
$ mkdir build
$ cd build
$ ../configure --prefix=/path/to/directory
$ make
$ make install
----
_configure_
スクリプトに対してオプションを指定することができます、オプションを表示するには以下のコマンドを使ってください:
----
$ ./configure --help
----
[[run_tests]]
==== テストの実行
// TRANSLATION MISSING
[[tests]]
==== Tests
テストをコンパイルするには以下のパッケージが *必須* です:
* libcpputest-dev
* C++ compiler
テストは WeeChat のコンパイル時に有効化しなければいけません (CMake を使う場合):
テストは WeeChat のコンパイル時に有効化しなければいけません:
----
$ cmake .. -DENABLE_TESTS=ON
----
コンパイル終了後、build ディレクトリでテストを起動してください (CMake を使う場合):
コンパイル終了後、build ディレクトリでテストを起動してください:
----
$ ctest -V
-111
View File
@@ -1,111 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
weechat.1.pl.adoc \
weechat-headless.1.pl.adoc \
weechat_user.pl.adoc \
weechat_scripting.pl.adoc \
weechat_faq.pl.adoc \
weechat_quickstart.pl.adoc \
includes/autogen_api_completions.pl.adoc \
includes/autogen_api_hdata.pl.adoc \
includes/autogen_api_infolists.pl.adoc \
includes/autogen_api_infos_hashtable.pl.adoc \
includes/autogen_api_infos.pl.adoc \
includes/autogen_api_plugins_priority.pl.adoc \
includes/autogen_api_url_options.pl.adoc \
includes/autogen_user_commands.pl.adoc \
includes/autogen_user_default_aliases.pl.adoc \
includes/autogen_user_irc_colors.pl.adoc \
includes/autogen_user_options.pl.adoc \
includes/cmdline_options.pl.adoc \
includes/man.pl.adoc
if MAN
man_targets = weechat.1 \
weechat-headless.1
man_install = install-man
man_uninstall = uninstall-man
endif
if DOC
doc_targets = weechat_user.pl.html \
weechat_scripting.pl.html \
weechat_faq.pl.html \
weechat_quickstart.pl.html
doc_install = install-doc
doc_uninstall = uninstall-doc
endif
all-local: $(man_targets) $(doc_targets)
# man pages
weechat.1: weechat.1.pl.adoc includes/cmdline_options.pl.adoc includes/man.pl.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/pl/weechat.1.pl.adoc
weechat-headless.1: weechat-headless.1.pl.adoc includes/cmdline_options.pl.adoc includes/man.pl.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/pl/weechat-headless.1.pl.adoc
# user's guide
weechat_user.pl.html: weechat_user.pl.adoc includes/cmdline_options.pl.adoc $(wildcard includes/autogen_user_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_user.pl.html $(abs_top_srcdir)/doc/pl/weechat_user.pl.adoc
# scripting guide
weechat_scripting.pl.html: weechat_scripting.pl.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_scripting.pl.html $(abs_top_srcdir)/doc/pl/weechat_scripting.pl.adoc
# FAQ
weechat_faq.pl.html: weechat_faq.pl.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_faq.pl.html $(abs_top_srcdir)/doc/pl/weechat_faq.pl.adoc
# quickstart
weechat_quickstart.pl.html: weechat_quickstart.pl.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.pl.html $(abs_top_srcdir)/doc/pl/weechat_quickstart.pl.adoc
# install man/docs
install-data-hook: $(man_install) $(doc_install)
install-man:
$(mkinstalldirs) $(DESTDIR)$(mandir)/pl/man1/
$(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/pl/man1/
install-doc:
$(mkinstalldirs) $(DESTDIR)$(docdir)/
$(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
# uninstall man/docs
uninstall-hook: $(man_uninstall) $(doc_uninstall)
uninstall-man:
$(RM) $(DESTDIR)$(mandir)/pl/man1/weechat.1
$(RM) $(DESTDIR)$(mandir)/pl/man1/weechat-headless.1
-rmdir $(DESTDIR)$(mandir)/pl/man1
uninstall-doc:
$(RM) $(DESTDIR)$(docdir)/*.pl.html
-rmdir $(DESTDIR)$(docdir)
# clean
clean-local:
-$(RM) weechat.1 weechat-headless.1 weechat_*.html
+7 -8
View File
@@ -48,16 +48,15 @@ https://weechat.org/about/interfaces/[zdalnym interfejsom ^↗^,window=_blank].
[[compile_git]]
=== Nie mogę skompilować WeeChat po sklonowaniu repozytorium git, dlaczego?
Zalecaną metodą kompilacji WeeChat jest użycie
link:weechat_user.pl.html#compile_with_cmake[CMake ^↗^,window=_blank].
// TRANSLATION MISSING
WeeChat must be compiled with CMake.
Jeśli kompilujesz używając link:weechat_user.pl.html#compile_with_autotools[autotools ^↗^,window=_blank]
(nie CMake), upewnij się, że posiadasz najnowszą wersję autoconf i automake.
// TRANSLATION MISSING
Please follow link:weechat_user.en.html#source_package[build instructions ^↗^,window=_blank]
and ensure all required dependencies are installed.
Innym sposobem jest zainstalowanie "paczki deweloperskiej", która wymaga mniej
zależności. Ten pakiet jest budowany prawie codziennie z użyciem repozytorium
git. Ten pakiet może odpowiadać dokładnie wersji z gita i jest mniej wygodny
przy aktualizowaniu jak klonowanie z gita.
// TRANSLATION MISSING
If you still have issues, please report them to the developers.
[[compile_macos]]
=== Jak zainstalować WeeChat na macOS?
+15 -48
View File
@@ -99,7 +99,8 @@ https://github.com/weechat/weechat-container[weechat-container ^↗^,window=_bl
[[source_package]]
=== Pakiety źródłowe
WeeChat może być kompilowany za pomocą CMake lub autotools (CMake jest zalecany).
// TRANSLATION MISSING
WeeChat must be built with CMake.
[NOTE]
Na macOS możesz użyć https://brew.sh/[Homebrew ^↗^,window=_blank]:
@@ -108,18 +109,20 @@ Na macOS możesz użyć https://brew.sh/[Homebrew ^↗^,window=_blank]:
[[dependencies]]
==== Zależności
Poniższa tabela zawiera listę *wymaganych* zależności do skompilowania
// TRANSLATION MISSING
The following table shows the list of packages that are *required* to build
WeeChat:
[width="100%",cols="5,^3,.^15",options="header"]
|===
| Pakiet ^(1)^ | Wersja | Funkcje
// TRANSLATION MISSING
| kompilator C (gcc / clang) |
| Kompilacja.
| Compile C sources.
| cmake | ≥ 3.0
| Kompilacja (możliwe jest użycie autotools, jednak CMake jest zalecany).
| Kompilacja.
| pkg-config |
| Wykrywa zainstalowane biblioteki.
@@ -195,8 +198,9 @@ za pomocą jednej komendy:
# apt-get build-dep weechat
----
[[compile_with_cmake]]
==== Kompilacja z użyciem CMake
// TRANSLATION MISSING
[[build]]
==== Build
* Instalacja w katalogach systemowych (wymaga uprawnień użytkownika _root_):
@@ -348,59 +352,22 @@ Lub z interfejsem Curses:
$ ccmake ..
----
[[compile_with_autotools]]
==== Kompilacja z użyciem autotools
[WARNING]
Oficjalne wsparcie do budowania WeeChat posiada tylko CMake. Powinieneś używać
autotools tylko jeśli nie możesz użyć CMake. +
Budowanie z użyciem autotools wymaga więcej zależności i jest wolniejsze niż
z CMake.
* Instalacja w katalogach systemowych (wymaga uprawnień użytkownika _root_):
----
$ ./autogen.sh
$ mkdir build
$ cd build
$ ../configure
$ make
$ sudo make install
----
* Instalacja w wybranym katalogu (na przykład w katalogu domowym):
----
$ ./autogen.sh
$ mkdir build
$ cd build
$ ../configure --prefix=/ścieżka/do/katalogu
$ make
$ make install
----
Opcje mogą zostać przekazane to skryptu _configure_, można je wyświetlić
za pomocą tej komendy:
----
$ ./configure --help
----
[[run_tests]]
==== Uruchamianie testów
// TRANSLATION MISSING
[[tests]]
==== Tests
Następujące pakiety są *wymagane* do kompilacji testów:
* libcpputest-dev
* kompilator C++
Testy muszą być włączone podczas kompilacji WeeChat (z użyciem CMake):
Testy muszą być włączone podczas kompilacji WeeChat:
----
$ cmake .. -DENABLE_TESTS=ON
----
Można je uruchomić po skompilowaniu z katalogu kompilacji (z użyciem CMake):
Można je uruchomić po skompilowaniu z katalogu kompilacji:
----
$ ctest -V
-81
View File
@@ -1,81 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
weechat.1.ru.adoc \
weechat-headless.1.ru.adoc \
weechat_quickstart.ru.adoc \
includes/cmdline_options.ru.adoc \
includes/man.ru.adoc
if MAN
man_targets = weechat.1 \
weechat-headless.1
man_install = install-man
man_uninstall = uninstall-man
endif
if DOC
doc_targets = weechat_quickstart.ru.html
doc_install = install-doc
doc_uninstall = uninstall-doc
endif
all-local: $(man_targets) $(doc_targets)
# man pages
weechat.1: weechat.1.ru.adoc includes/cmdline_options.ru.adoc includes/man.ru.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/ru/weechat.1.ru.adoc
weechat-headless.1: weechat-headless.1.ru.adoc includes/cmdline_options.ru.adoc includes/man.ru.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/ru/weechat-headless.1.ru.adoc
# quickstart
weechat_quickstart.ru.html: weechat_quickstart.ru.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.ru.html $(abs_top_srcdir)/doc/ru/weechat_quickstart.ru.adoc
# install man/docs
install-data-hook: $(man_install) $(doc_install)
install-man:
$(mkinstalldirs) $(DESTDIR)$(mandir)/ru/man1/
$(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/ru/man1/
install-doc:
$(mkinstalldirs) $(DESTDIR)$(docdir)/
$(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
# uninstall man/docs
uninstall-hook: $(man_uninstall) $(doc_uninstall)
uninstall-man:
$(RM) $(DESTDIR)$(mandir)/ru/man1/weechat.1
$(RM) $(DESTDIR)$(mandir)/ru/man1/weechat-headless.1
-rmdir $(DESTDIR)$(mandir)/ru/man1
uninstall-doc:
$(RM) $(DESTDIR)$(docdir)/*.ru.html
-rmdir $(DESTDIR)$(docdir)
# clean
clean-local:
-$(RM) weechat.1 weechat-headless.1 weechat_*.html
-129
View File
@@ -1,129 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
weechat.1.sr.adoc \
weechat-headless.1.sr.adoc \
weechat_user.sr.adoc \
weechat_plugin_api.sr.adoc \
weechat_scripting.sr.adoc \
weechat_faq.sr.adoc \
weechat_quickstart.sr.adoc \
weechat_relay_protocol.sr.adoc \
weechat_dev.sr.adoc \
includes/autogen_api_completions.sr.adoc \
includes/autogen_api_hdata.sr.adoc \
includes/autogen_api_infolists.sr.adoc \
includes/autogen_api_infos.sr.adoc \
includes/autogen_api_infos_hashtable.sr.adoc \
includes/autogen_api_plugins_priority.sr.adoc \
includes/autogen_api_url_options.sr.adoc \
includes/autogen_user_commands.sr.adoc \
includes/autogen_user_default_aliases.sr.adoc \
includes/autogen_user_irc_colors.sr.adoc \
includes/autogen_user_options.sr.adoc \
includes/cmdline_options.sr.adoc \
includes/man.sr.adoc
if MAN
man_targets = weechat.1 \
weechat-headless.1
man_install = install-man
man_uninstall = uninstall-man
endif
if DOC
doc_targets = weechat_user.sr.html \
weechat_plugin_api.sr.html \
weechat_scripting.sr.html \
weechat_faq.sr.html \
weechat_quickstart.sr.html \
weechat_relay_protocol.sr.html \
weechat_dev.sr.html
doc_install = install-doc
doc_uninstall = uninstall-doc
endif
all-local: $(man_targets) $(doc_targets)
# man pages
weechat.1: weechat.1.sr.adoc includes/cmdline_options.sr.adoc includes/man.sr.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/sr/weechat.1.sr.adoc
weechat-headless.1: weechat-headless.1.sr.adoc includes/cmdline_options.sr.adoc includes/man.sr.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/sr/weechat-headless.1.sr.adoc
# user's guide
weechat_user.sr.html: weechat_user.sr.adoc includes/cmdline_options.sr.adoc $(wildcard includes/autogen_user_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_user.sr.html $(abs_top_srcdir)/doc/sr/weechat_user.sr.adoc
# plugin API reference
weechat_plugin_api.sr.html: weechat_plugin_api.sr.adoc $(wildcard includes/autogen_api_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_plugin_api.sr.html $(abs_top_srcdir)/doc/sr/weechat_plugin_api.sr.adoc
# scripting guide
weechat_scripting.sr.html: weechat_scripting.sr.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_scripting.sr.html $(abs_top_srcdir)/doc/sr/weechat_scripting.sr.adoc
# FAQ
weechat_faq.sr.html: weechat_faq.sr.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_faq.sr.html $(abs_top_srcdir)/doc/sr/weechat_faq.sr.adoc
# quickstart
weechat_quickstart.sr.html: weechat_quickstart.sr.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.sr.html $(abs_top_srcdir)/doc/sr/weechat_quickstart.sr.adoc
# relay protocol
weechat_relay_protocol.sr.html: weechat_relay_protocol.sr.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_relay_protocol.sr.html $(abs_top_srcdir)/doc/sr/weechat_relay_protocol.sr.adoc
# developer's guide
weechat_dev.sr.html: weechat_dev.sr.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_dev.sr.html $(abs_top_srcdir)/doc/sr/weechat_dev.sr.adoc
# install man/docs
install-data-hook: $(man_install) $(doc_install)
install-man:
$(mkinstalldirs) $(DESTDIR)$(mandir)/sr/man1/
$(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/sr/man1/
install-doc:
$(mkinstalldirs) $(DESTDIR)$(docdir)/
$(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
# uninstall man/docs
uninstall-hook: $(man_uninstall) $(doc_uninstall)
uninstall-man:
$(RM) $(DESTDIR)$(mandir)/sr/man1/weechat.1
$(RM) $(DESTDIR)$(mandir)/sr/man1/weechat-headless.1
-rmdir $(DESTDIR)$(mandir)/sr/man1
uninstall-doc:
$(RM) $(DESTDIR)$(docdir)/*.sr.html
-rmdir $(DESTDIR)$(docdir)
# clean
clean-local:
-$(RM) weechat.1 weechat-headless.1 weechat_*.html
+1 -4
View File
@@ -1133,11 +1133,8 @@ server->hook_timer_sasl = weechat_hook_timer (timeout * 1000,
| WeeChat језгро
| build
| autogen.sh +
CMakeLists.txt +
| CMakeLists.txt +
cmake/* +
configure.ac +
Makefile.am +
tools/* +
weechat.cygport.in +
weechat.spec
+7 -3
View File
@@ -47,11 +47,15 @@ https://weechat.org/about/interfaces/[страницу са удаљеним Г
[[compile_git]]
=== Након клонирања git репозиторијума не могу да компајлирам програм WeeChat, зашто?
Препоручени начин да за компајлирање програма WeeChat је помоћу link:weechat_user.sr.html#compile_with_cmake[CMake ^↗^,window=_blank].
// TRANSLATION MISSING
WeeChat must be compiled with CMake.
Ако компајлирате са link:weechat_user.sr.html#compile_with_autotools[autotools ^↗^,window=_blank] (а не са CMake), проверите да ли поседујете најновију верзију пакета autoconf и automake.
// TRANSLATION MISSING
Please follow link:weechat_user.en.html#source_package[build instructions ^↗^,window=_blank]
and ensure all required dependencies are installed.
Други начин је да се инсталира „devel package”, што тражи мање зависности. Овај пакет се се изграђује скоро свакодневно користећи git репозиторијум. Приметите да овај пакет можда није потпуно исти као git база, као и да је инсталирање ажурирања компликованије него просто git клонирање.
// TRANSLATION MISSING
If you still have issues, please report them to the developers.
[[compile_macos]]
=== Како да инсталирам програм WeeChat на macOS систем?
+16 -45
View File
@@ -94,7 +94,8 @@ https://github.com/weechat/weechat-container[weechat-container ^↗^,window=_bl
[[source_package]]
=== Пакет са изворним кодом
Програм WeeChat може да се компајлира са CMake или са autotools (CMake је препоручени начин).
// TRANSLATION MISSING
WeeChat must be built with CMake.
[NOTE]
На macOS можете да употребите https://brew.sh/[Homebrew ^↗^,window=_blank]: `brew install --build-from-source weechat`.
@@ -102,17 +103,20 @@ https://github.com/weechat/weechat-container[weechat-container ^↗^,window=_bl
[[dependencies]]
==== Зависности
Следећа табела приказује листу пакета који су *неопходни* за успешно компајлирање програма WeeChat:
// TRANSLATION MISSING
The following table shows the list of packages that are *required* to build
WeeChat:
[width="100%", cols="5,^3,.^15", options="header"]
|===
| Пакет ^(1)^ | Верзија | Могућности
// TRANSLATION MISSING
| C компајлер (gcc / clang) |
| Изградњу.
| Compile C sources.
| cmake | ≥ 3.0
| Изградњу (може да се користи и autotools, али се препоручује CMake).
| Изградњу.
| pkg-config |
| Детекција инсталираних библиотека.
@@ -182,8 +186,9 @@ https://github.com/weechat/weechat-container[weechat-container ^↗^,window=_bl
# apt-get build-dep weechat
----
[[compile_with_cmake]]
==== Компајлирање са CMake
// TRANSLATION MISSING
[[build]]
==== Build
* Инсталација у системске директоријуме (неопходне су _root_ привилегије):
@@ -335,56 +340,22 @@ $ cmake -LA
$ ccmake ..
----
[[compile_with_autotools]]
==== Компајлирање са autotools
[WARNING]
За изградњу програма WeeChat званично се подржава само CMake. Требало би користите autotools само ако ни сте у могућности да користите CMake. +
Изградња са autotools захтева више зависности и спорија је у односу на изградњу са CMake.
* Инсталација у системске директоријуме (неопходне су _root_ привилегије):
----
$ ./autogen.sh
$ mkdir build
$ cd build
$ ../configure
$ make
$ sudo make install
----
* Инсталација у директоријум по жељи (на пример, у ваш почетни):
----
$ ./autogen.sh
$ mkdir build
$ cd build
$ ../configure --prefix=/путања/до/директоријума
$ make
$ make install
----
За скрипту _configure_ могу да се користе опције које се приказују следећом командом:
----
$ ./configure --help
----
[[run_tests]]
==== Покретање тестова
// TRANSLATION MISSING
[[tests]]
==== Tests
За компајлирање тестова су *неопходни* следећи пакети:
* libcpputest-dev
* C++ компајлер
Када се компајлира програм WeeChat (са CMake), тестови морају да се укључе:
Када се компајлира програм WeeChat, тестови морају да се укључе:
----
$ cmake .. -DENABLE_TESTS=ON
----
Након компајлирања могу да се покрену из директоријума у који је изграђен програм (са CMake):
Након компајлирања могу да се покрену из директоријума у који је изграђен програм:
----
$ ctest -V
-39
View File
@@ -1,39 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
EXTRA_DIST = 16x16/weechat.png \
32x32/weechat.png \
64x64/weechat.png \
128x128/weechat.png \
256x256/weechat.png \
512x512/weechat.png
icon16dir = $(datadir)/icons/hicolor/16x16/apps
icon32dir = $(datadir)/icons/hicolor/32x32/apps
icon64dir = $(datadir)/icons/hicolor/64x64/apps
icon128dir = $(datadir)/icons/hicolor/128x128/apps
icon256dir = $(datadir)/icons/hicolor/256x256/apps
icon512dir = $(datadir)/icons/hicolor/512x512/apps
icon16_DATA = 16x16/weechat.png
icon32_DATA = 32x32/weechat.png
icon64_DATA = 64x64/weechat.png
icon128_DATA = 128x128/weechat.png
icon256_DATA = 256x256/weechat.png
icon512_DATA = 512x512/weechat.png
-22
View File
@@ -1,22 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
SUBDIRS = core plugins gui
EXTRA_DIST = CMakeLists.txt
-125
View File
@@ -1,125 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(GCRYPT_CFLAGS) $(GNUTLS_CFLAGS) $(CURL_CFLAGS) $(ZLIB_CFLAGS) $(ZSTD_CFLAGS)
noinst_LIBRARIES = lib_weechat_core.a
lib_weechat_core_a_SOURCES = weechat.c \
weechat.h \
wee-arraylist.c \
wee-arraylist.h \
wee-backtrace.c \
wee-backtrace.h \
wee-calc.c \
wee-calc.h \
wee-command.c \
wee-command.h \
wee-completion.c \
wee-completion.h \
wee-config.c \
wee-config.h \
wee-config-file.c \
wee-config-file.h \
wee-crypto.c \
wee-crypto.h \
wee-debug.c \
wee-debug.h \
wee-dir.c \
wee-dir.h \
wee-eval.c \
wee-eval.h \
wee-hashtable.c \
wee-hashtable.h \
wee-hdata.c \
wee-hdata.h \
wee-hook.c \
wee-hook.h \
wee-infolist.c \
wee-infolist.h \
wee-input.c \
wee-input.h \
wee-list.c \
wee-list.h \
wee-log.c \
wee-log.h \
wee-network.c \
wee-network.h \
wee-proxy.c \
wee-proxy.h \
wee-secure.c \
wee-secure.h \
wee-secure-buffer.c \
wee-secure-buffer.h \
wee-secure-config.c \
wee-secure-config.h \
wee-signal.c \
wee-signal.h \
wee-string.c \
wee-string.h \
wee-upgrade.c \
wee-upgrade.h \
wee-upgrade-file.c \
wee-upgrade-file.h \
wee-url.c \
wee-url.h \
wee-utf8.c \
wee-utf8.h \
wee-util.c \
wee-util.h \
wee-version.c \
wee-version.h \
hook/wee-hook-command-run.c \
hook/wee-hook-command-run.h \
hook/wee-hook-command.c \
hook/wee-hook-command.h \
hook/wee-hook-completion.c \
hook/wee-hook-completion.h \
hook/wee-hook-config.c \
hook/wee-hook-config.h \
hook/wee-hook-connect.c \
hook/wee-hook-connect.h \
hook/wee-hook-fd.c \
hook/wee-hook-fd.h \
hook/wee-hook-focus.c \
hook/wee-hook-focus.h \
hook/wee-hook-hdata.c \
hook/wee-hook-hdata.h \
hook/wee-hook-hsignal.c \
hook/wee-hook-hsignal.h \
hook/wee-hook-info-hashtable.c \
hook/wee-hook-info-hashtable.h \
hook/wee-hook-info.c \
hook/wee-hook-info.h \
hook/wee-hook-infolist.c \
hook/wee-hook-infolist.h \
hook/wee-hook-line.c \
hook/wee-hook-line.h \
hook/wee-hook-modifier.c \
hook/wee-hook-modifier.h \
hook/wee-hook-print.c \
hook/wee-hook-print.h \
hook/wee-hook-process.c \
hook/wee-hook-process.h \
hook/wee-hook-signal.c \
hook/wee-hook-signal.h \
hook/wee-hook-timer.c \
hook/wee-hook-timer.h
EXTRA_DIST = CMakeLists.txt
-70
View File
@@ -1,70 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\"
noinst_LIBRARIES = lib_weechat_gui_common.a
lib_weechat_gui_common_a_SOURCES = gui-bar.c \
gui-bar.h \
gui-bar-item.c \
gui-bar-item.h \
gui-bar-item-custom.c \
gui-bar-item-custom.h \
gui-bar-window.c \
gui-bar-window.h \
gui-buffer.c \
gui-buffer.h \
gui-chat.c \
gui-chat.h \
gui-color.c \
gui-color.h \
gui-cursor.c \
gui-cursor.h \
gui-completion.c \
gui-completion.h \
gui-filter.c \
gui-filter.h \
gui-focus.c \
gui-focus.h \
gui-history.c \
gui-history.h \
gui-hotlist.c \
gui-hotlist.h \
gui-input.c \
gui-input.h \
gui-key.c \
gui-key.h \
gui-layout.c \
gui-layout.h \
gui-line.c \
gui-line.h \
gui-main.h \
gui-mouse.c \
gui-mouse.h \
gui-nick.c \
gui-nick.h \
gui-nicklist.c \
gui-nicklist.h \
gui-window.c \
gui-window.h
SUBDIRS = . curses
EXTRA_DIST = CMakeLists.txt
-30
View File
@@ -1,30 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
if GUI_NCURSES
normal_dir=normal
endif
if HEADLESS
headless_dir=headless
endif
SUBDIRS = . $(normal_dir) $(headless_dir)
EXTRA_DIST = CMakeLists.txt
-57
View File
@@ -1,57 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" -DWEECHAT_HEADLESS
noinst_LIBRARIES = lib_weechat_ncurses_fake.a lib_weechat_gui_headless.a
lib_weechat_ncurses_fake_a_SOURCES = ncurses-fake.c \
ncurses-fake.h
lib_weechat_gui_headless_a_SOURCES = ../gui-curses-bar-window.c \
../gui-curses-chat.c \
../gui-curses-color.c \
../gui-curses-key.c \
../gui-curses-main.c \
../gui-curses-mouse.c \
../gui-curses-term.c \
../gui-curses-window.c \
../gui-curses.h
bin_PROGRAMS = weechat-headless
# Due to circular references, we must link two times with libweechat_core.a
# (and with two different path/names to be kept by linker)
weechat_headless_LDADD = ./../../../core/lib_weechat_core.a \
../../../plugins/lib_weechat_plugins.a \
../../lib_weechat_gui_common.a \
lib_weechat_gui_headless.a \
lib_weechat_ncurses_fake.a \
../../../core/lib_weechat_core.a \
$(PLUGINS_LFLAGS) \
$(GCRYPT_LFLAGS) \
$(GNUTLS_LFLAGS) \
$(CURL_LFLAGS) \
$(ZLIB_LFLAGS) \
$(ZSTD_LFLAGS) \
-lm
weechat_headless_SOURCES = main.c
EXTRA_DIST = CMakeLists.txt
-64
View File
@@ -1,64 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(NCURSES_CFLAGS)
noinst_LIBRARIES = lib_weechat_gui_curses.a
lib_weechat_gui_curses_a_SOURCES = ../gui-curses-bar-window.c \
../gui-curses-chat.c \
../gui-curses-color.c \
../gui-curses-key.c \
../gui-curses-main.c \
../gui-curses-mouse.c \
../gui-curses-term.c \
../gui-curses-window.c \
../gui-curses.h
bin_PROGRAMS = weechat
# Due to circular references, we must link two times with libweechat_core.a
# (and with two different path/names to be kept by linker)
weechat_LDADD = ./../../../core/lib_weechat_core.a \
../../../plugins/lib_weechat_plugins.a \
../../lib_weechat_gui_common.a \
lib_weechat_gui_curses.a \
../../../core/lib_weechat_core.a \
$(PLUGINS_LFLAGS) \
$(NCURSES_LFLAGS) \
$(GCRYPT_LFLAGS) \
$(GNUTLS_LFLAGS) \
$(CURL_LFLAGS) \
$(ZLIB_LFLAGS) \
$(ZSTD_LFLAGS) \
-lm
weechat_SOURCES = main.c
EXTRA_DIST = CMakeLists.txt
# Create a symbolic link weechat-curses -> weechat
# This link is created for compatibility with old versions on /upgrade.
# It may be removed in future.
install-exec-hook:
(cd '$(DESTDIR)$(bindir)' && $(RM) weechat-curses$(EXEEXT) && $(LN_S) weechat weechat-curses$(EXEEXT))
# Remove symbolic link on uninstall
uninstall-hook:
(cd '$(DESTDIR)$(bindir)' && $(RM) weechat-curses$(EXEEXT))
-167
View File
@@ -1,167 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2006-2009 Emmanuel Bouthenot <kolter@openics.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\"
noinst_LIBRARIES = lib_weechat_plugins.a
lib_weechat_plugins_a_SOURCES = weechat-plugin.h \
plugin.c \
plugin.h \
plugin-api.c \
plugin-api.h \
plugin-api-info.c \
plugin-api-info.h \
plugin-config.c \
plugin-config.h
noinst_LTLIBRARIES = lib_weechat_plugins_scripts.la
lib_weechat_plugins_scripts_la_SOURCES = plugin-script.c \
plugin-script.h \
plugin-script-api.c \
plugin-script-api.h \
plugin-script-config.c \
plugin-script-config.h
if PLUGIN_ALIAS
alias_dir = alias
endif
if PLUGIN_BUFLIST
buflist_dir = buflist
endif
if PLUGIN_CHARSET
charset_dir = charset
endif
if PLUGIN_EXEC
exec_dir = exec
endif
if PLUGIN_FIFO
fifo_dir = fifo
endif
if PLUGIN_FSET
fset_dir = fset
endif
if PLUGIN_IRC
irc_dir = irc
endif
if PLUGIN_LOGGER
logger_dir = logger
endif
if PLUGIN_RELAY
relay_dir = relay
endif
if PLUGIN_SCRIPT
script_dir = script
endif
if PLUGIN_PERL
perl_dir = perl
endif
if PLUGIN_PYTHON
python_dir = python
endif
if PLUGIN_RUBY
ruby_dir = ruby
endif
if PLUGIN_LUA
lua_dir = lua
endif
if PLUGIN_TCL
tcl_dir = tcl
endif
if PLUGIN_GUILE
guile_dir = guile
endif
if PLUGIN_JAVASCRIPT
javascript_dir = javascript
endif
if PLUGIN_PHP
php_dir = php
endif
if PLUGIN_SPELL
spell_dir = spell
endif
if PLUGIN_TRIGGER
trigger_dir = trigger
endif
if PLUGIN_TYPING
typing_dir = typing
endif
if PLUGIN_XFER
xfer_dir = xfer
endif
SUBDIRS = . \
$(alias_dir) \
$(buflist_dir) \
$(charset_dir) \
$(exec_dir) \
$(fifo_dir) \
$(fset_dir) \
$(irc_dir) \
$(logger_dir) \
$(relay_dir) \
$(script_dir) \
$(perl_dir) \
$(python_dir) \
$(ruby_dir) \
$(lua_dir) \
$(tcl_dir) \
$(guile_dir) \
$(javascript_dir) \
$(php_dir) \
$(spell_dir) \
$(trigger_dir) \
$(typing_dir) \
$(xfer_dir)
EXTRA_DIST = CMakeLists.txt
# install plugin header
install-data-hook:
$(INSTALL) -d $(DESTDIR)/$(includedir)/$(PACKAGE)
$(INSTALL_DATA) $(abs_top_srcdir)/src/plugins/weechat-plugin.h $(DESTDIR)/$(includedir)/$(PACKAGE)
# uninstall plugin header
uninstall-hook:
$(RM) $(DESTDIR)/$(includedir)/$(PACKAGE)/weechat-plugin.h
-39
View File
@@ -1,39 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(ALIAS_CFLAGS)
libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = alias.la
alias_la_SOURCES = alias.c \
alias.h \
alias-command.c \
alias-command.h \
alias-completion.c \
alias-completion.h \
alias-config.c \
alias-config.h \
alias-info.c \
alias-info.h
alias_la_LDFLAGS = -module -no-undefined
alias_la_LIBADD = $(ALIAS_LFLAGS)
EXTRA_DIST = CMakeLists.txt
-42
View File
@@ -1,42 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(BUFLIST_CFLAGS)
libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = buflist.la
buflist_la_SOURCES = buflist.c \
buflist.h \
buflist-bar-item.c \
buflist-bar-item.h \
buflist-command.c \
buflist-command.h \
buflist-config.c \
buflist-config.h \
buflist-info.c \
buflist-info.h \
buflist-mouse.c \
buflist-mouse.h
buflist_la_LDFLAGS = -module -no-undefined
buflist_la_LIBADD = $(BUFLIST_LFLAGS)
EXTRA_DIST = CMakeLists.txt
-30
View File
@@ -1,30 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(CHARSET_CFLAGS)
libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = charset.la
charset_la_SOURCES = charset.c
charset_la_LDFLAGS = -module -no-undefined
charset_la_LIBADD = $(CHARSET_LFLAGS)
EXTRA_DIST = CMakeLists.txt
-40
View File
@@ -1,40 +0,0 @@
#
# Copyright (C) 2014-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(EXEC_CFLAGS)
libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = exec.la
exec_la_SOURCES = exec.c \
exec.h \
exec-buffer.c \
exec-buffer.h \
exec-command.c \
exec-command.h \
exec-completion.c \
exec-completion.h \
exec-config.c \
exec-config.h
exec_la_LDFLAGS = -module -no-undefined
exec_la_LIBADD = $(EXEC_LFLAGS)
EXTRA_DIST = CMakeLists.txt
-37
View File
@@ -1,37 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(FIFO_CFLAGS)
libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = fifo.la
fifo_la_SOURCES = fifo.c \
fifo.h \
fifo-command.c \
fifo-command.h \
fifo-config.c \
fifo-config.h \
fifo-info.c \
fifo-info.h
fifo_la_LDFLAGS = -module -no-undefined
fifo_la_LIBADD = $(FIFO_LFLAGS)
EXTRA_DIST = CMakeLists.txt
-48
View File
@@ -1,48 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(FSET_CFLAGS)
libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = fset.la
fset_la_SOURCES = fset.c \
fset.h \
fset-bar-item.c \
fset-bar-item.h \
fset-buffer.c \
fset-buffer.h \
fset-command.c \
fset-command.h \
fset-completion.c \
fset-completion.h \
fset-config.c \
fset-config.h \
fset-info.c \
fset-info.h \
fset-mouse.c \
fset-mouse.h \
fset-option.c \
fset-option.h
fset_la_LDFLAGS = -module -no-undefined
fset_la_LIBADD = $(FSET_LFLAGS)
EXTRA_DIST = CMakeLists.txt
-33
View File
@@ -1,33 +0,0 @@
#
# Copyright (C) 2011-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(GUILE_CFLAGS)
libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = guile.la
guile_la_SOURCES = weechat-guile.c \
weechat-guile.h \
weechat-guile-api.c \
weechat-guile-api.h
guile_la_LDFLAGS = -module -no-undefined
guile_la_LIBADD = ../lib_weechat_plugins_scripts.la $(GUILE_LFLAGS)
EXTRA_DIST = CMakeLists.txt
-86
View File
@@ -1,86 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(GCRYPT_CFLAGS) $(GNUTLS_CFLAGS)
libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = irc.la
irc_la_SOURCES = irc.c \
irc.h \
irc-bar-item.c \
irc-bar-item.h \
irc-buffer.c \
irc-buffer.h \
irc-channel.c \
irc-channel.h \
irc-color.c \
irc-color.h \
irc-command.c \
irc-command.h \
irc-completion.c \
irc-completion.h \
irc-config.c \
irc-config.h \
irc-ctcp.c \
irc-ctcp.h \
irc-debug.c \
irc-debug.h \
irc-ignore.c \
irc-ignore.h \
irc-info.c \
irc-info.h \
irc-input.c \
irc-input.h \
irc-join.c \
irc-join.h \
irc-message.c \
irc-message.h \
irc-mode.c \
irc-mode.h \
irc-modelist.c \
irc-modelist.h \
irc-msgbuffer.c \
irc-msgbuffer.h \
irc-nick.c \
irc-nick.h \
irc-notify.c \
irc-notify.h \
irc-protocol.c \
irc-protocol.h \
irc-raw.c \
irc-raw.h \
irc-redirect.c \
irc-redirect.h \
irc-sasl.c \
irc-sasl.h \
irc-server.c \
irc-server.h \
irc-tag.c \
irc-tag.h \
irc-typing.c \
irc-typing.h \
irc-upgrade.c \
irc-upgrade.h
irc_la_LDFLAGS = -module -no-undefined
irc_la_LIBADD = $(IRC_LFLAGS) $(GCRYPT_LFLAGS) $(GNUTLS_LFLAGS)
EXTRA_DIST = CMakeLists.txt
-35
View File
@@ -1,35 +0,0 @@
#
# Copyright (C) 2015-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(V8_CFLAGS)
libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = javascript.la
javascript_la_SOURCES = weechat-js.cpp \
weechat-js.h \
weechat-js-v8.cpp \
weechat-js-v8.h \
weechat-js-api.cpp \
weechat-js-api.h
javascript_la_LDFLAGS = -module -no-undefined
javascript_la_LIBADD = ../lib_weechat_plugins_scripts.la $(V8_LFLAGS)
EXTRA_DIST = CMakeLists.txt
-43
View File
@@ -1,43 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(LOGGER_CFLAGS)
libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = logger.la
logger_la_SOURCES = logger.c \
logger.h \
logger-backlog.c \
logger-backlog.h \
logger-buffer.c \
logger-buffer.h \
logger-command.c \
logger-command.h \
logger-config.c \
logger-config.h \
logger-info.c \
logger-info.h \
logger-tail.c \
logger-tail.h
logger_la_LDFLAGS = -module -no-undefined
logger_la_LIBADD = $(LOGGER_LFLAGS)
EXTRA_DIST = CMakeLists.txt
-34
View File
@@ -1,34 +0,0 @@
#
# Copyright (C) 2006-2007 Emmanuel Bouthenot <kolter@openics.org>
# Copyright (C) 2006-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(LUA_CFLAGS)
libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = lua.la
lua_la_SOURCES = weechat-lua.c \
weechat-lua.h \
weechat-lua-api.c \
weechat-lua-api.h
lua_la_LDFLAGS = -module -no-undefined
lua_la_LIBADD = ../lib_weechat_plugins_scripts.la $(LUA_LFLAGS)
EXTRA_DIST = CMakeLists.txt
-33
View File
@@ -1,33 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(PERL_CFLAGS)
libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = perl.la
perl_la_SOURCES = weechat-perl.c \
weechat-perl.h \
weechat-perl-api.c \
weechat-perl-api.h
perl_la_LDFLAGS = -module -no-undefined
perl_la_LIBADD = ../lib_weechat_plugins_scripts.la $(PERL_LFLAGS)
EXTRA_DIST = CMakeLists.txt
-35
View File
@@ -1,35 +0,0 @@
#
# Copyright (C) 2006-2017 Adam Saponara <as@php.net>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(PHP_CFLAGS)
libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = php.la
php_la_SOURCES = weechat-php.c \
weechat-php.h \
weechat-php-api.c \
weechat-php-api.h \
weechat-php_arginfo.h \
weechat-php_legacy_arginfo.h
php_la_LDFLAGS = -module -no-undefined
php_la_LIBADD = ../lib_weechat_plugins_scripts.la $(PHP_LFLAGS)
EXTRA_DIST = CMakeLists.txt
-33
View File
@@ -1,33 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(PYTHON_CFLAGS)
libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = python.la
python_la_SOURCES = weechat-python.c \
weechat-python.h \
weechat-python-api.c \
weechat-python-api.h
python_la_LDFLAGS = -module -no-undefined
python_la_LIBADD = ../lib_weechat_plugins_scripts.la $(PYTHON_LIBS)
EXTRA_DIST = CMakeLists.txt
-66
View File
@@ -1,66 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(GCRYPT_CFLAGS) $(GNUTLS_CFLAGS) $(ZLIB_CFLAGS) $(ZSTD_CFLAGS)
libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = relay.la
relay_la_SOURCES = relay.c \
relay.h \
relay-auth.c \
relay-auth.h \
relay-buffer.c \
relay-buffer.h \
relay-client.c \
relay-client.h \
relay-command.c \
relay-command.h \
relay-completion.c \
relay-completion.h \
relay-config.c \
relay-config.h \
relay-info.c \
relay-info.h \
relay-network.c \
relay-network.h \
relay-raw.c \
relay-raw.h \
relay-server.c \
relay-server.h \
relay-upgrade.c \
relay-upgrade.h \
relay-websocket.c \
relay-websocket.h \
irc/relay-irc.c \
irc/relay-irc.h \
weechat/relay-weechat.c \
weechat/relay-weechat.h \
weechat/relay-weechat-msg.c \
weechat/relay-weechat-msg.h \
weechat/relay-weechat-nicklist.c \
weechat/relay-weechat-nicklist.h \
weechat/relay-weechat-protocol.c \
weechat/relay-weechat-protocol.h
relay_la_LDFLAGS = -module -no-undefined
relay_la_LIBADD = $(RELAY_LFLAGS) $(GCRYPT_LFLAGS) $(GNUTLS_LFLAGS) $(ZLIB_LFLAGS) $(ZSTD_LFLAGS)
EXTRA_DIST = CMakeLists.txt
-33
View File
@@ -1,33 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(RUBY_CFLAGS)
libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = ruby.la
ruby_la_SOURCES = weechat-ruby.c \
weechat-ruby.h \
weechat-ruby-api.c \
weechat-ruby-api.h
ruby_la_LDFLAGS = -module -no-undefined
ruby_la_LIBADD = ../lib_weechat_plugins_scripts.la $(RUBY_LFLAGS)
EXTRA_DIST = CMakeLists.txt
-48
View File
@@ -1,48 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(ZLIB_CFLAGS)
libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = script.la
script_la_SOURCES = script.c \
script.h \
script-action.c \
script-action.h \
script-buffer.c \
script-buffer.h \
script-command.c \
script-command.h \
script-completion.c \
script-completion.h \
script-config.c \
script-config.h \
script-info.c \
script-info.h \
script-mouse.c \
script-mouse.h \
script-repo.c \
script-repo.h
script_la_LDFLAGS = -module -no-undefined
script_la_LIBADD = $(SCRIPT_LFLAGS) $(ZLIB_LFLAGS)
EXTRA_DIST = CMakeLists.txt
-44
View File
@@ -1,44 +0,0 @@
#
# Copyright (C) 2006 Emmanuel Bouthenot <kolter@openics.org>
# Copyright (C) 2006-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(ASPELL_CFLAGS) $(ENCHANT_CFLAGS)
libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = spell.la
spell_la_SOURCES = spell.c \
spell.h \
spell-bar-item.c \
spell-bar-item.h \
spell-command.c \
spell-command.h \
spell-completion.c \
spell-completion.h \
spell-config.c \
spell-config.h \
spell-info.c \
spell-info.h \
spell-speller.c \
spell-speller.h
spell_la_LDFLAGS = -module -no-undefined
spell_la_LIBADD = $(ASPELL_LFLAGS) $(ENCHANT_LIBS)
EXTRA_DIST = CMakeLists.txt
-34
View File
@@ -1,34 +0,0 @@
#
# Copyright (C) 2008-2010 Dmitry Kobylin <fnfal@academ.tsc.ru>
# Copyright (C) 2008-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(TCL_CFLAGS)
libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = tcl.la
tcl_la_SOURCES = weechat-tcl.c \
weechat-tcl.h \
weechat-tcl-api.c \
weechat-tcl-api.h
tcl_la_LDFLAGS = -module -no-undefined
tcl_la_LIBADD = ../lib_weechat_plugins_scripts.la $(TCL_LFLAGS)
EXTRA_DIST = CMakeLists.txt
-42
View File
@@ -1,42 +0,0 @@
#
# Copyright (C) 2014-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(TRIGGER_CFLAGS)
libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = trigger.la
trigger_la_SOURCES = trigger.c \
trigger.h \
trigger-buffer.c \
trigger-buffer.h \
trigger-callback.c \
trigger-callback.h \
trigger-command.c \
trigger-command.h \
trigger-completion.c \
trigger-completion.h \
trigger-config.c \
trigger-config.h
trigger_la_LDFLAGS = -module -no-undefined
trigger_la_LIBADD = $(TRIGGER_LFLAGS)
EXTRA_DIST = CMakeLists.txt
-37
View File
@@ -1,37 +0,0 @@
#
# Copyright (C) 2021-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(TYPING_CFLAGS)
libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = typing.la
typing_la_SOURCES = typing.c \
typing.h \
typing-bar-item.c \
typing-bar-item.h \
typing-config.c \
typing-config.h \
typing-status.c \
typing-status.h
typing_la_LDFLAGS = -module -no-undefined
typing_la_LIBADD = $(TYPING_LFLAGS)
EXTRA_DIST = CMakeLists.txt
-52
View File
@@ -1,52 +0,0 @@
#
# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(GCRYPT_CFLAGS)
libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = xfer.la
xfer_la_SOURCES = xfer.c \
xfer.h \
xfer-buffer.c \
xfer-buffer.h \
xfer-chat.c \
xfer-chat.h \
xfer-command.c \
xfer-command.h \
xfer-completion.c \
xfer-completion.h \
xfer-config.c \
xfer-config.h \
xfer-dcc.c \
xfer-dcc.h \
xfer-file.c \
xfer-file.h \
xfer-info.c \
xfer-info.h \
xfer-network.c \
xfer-network.h \
xfer-upgrade.c \
xfer-upgrade.h
xfer_la_LDFLAGS = -module -no-undefined
xfer_la_LIBADD = $(XFER_LFLAGS) $(GCRYPT_LFLAGS)
EXTRA_DIST = CMakeLists.txt
-130
View File
@@ -1,130 +0,0 @@
#
# Copyright (C) 2014-2023 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(CPPUTEST_CFLAGS) -I$(abs_top_srcdir)
noinst_LIBRARIES = lib_weechat_unit_tests_core.a
lib_weechat_unit_tests_core_a_SOURCES = unit/core/test-core-arraylist.cpp \
unit/core/test-core-calc.cpp \
unit/core/test-core-command.cpp \
unit/core/test-core-config-file.cpp \
unit/core/test-core-crypto.cpp \
unit/core/test-core-dir.cpp \
unit/core/test-core-eval.cpp \
unit/core/test-core-hashtable.cpp \
unit/core/test-core-hdata.cpp \
unit/core/test-core-hook.cpp \
unit/core/test-core-infolist.cpp \
unit/core/test-core-list.cpp \
unit/core/test-core-network.cpp \
unit/core/test-core-secure.cpp \
unit/core/test-core-signal.cpp \
unit/core/test-core-string.cpp \
unit/core/test-core-url.cpp \
unit/core/test-core-utf8.cpp \
unit/core/test-core-util.cpp \
unit/gui/test-gui-bar-item.cpp \
unit/gui/test-gui-bar-item-custom.cpp \
unit/gui/test-gui-bar-window.cpp \
unit/gui/test-gui-buffer.cpp \
unit/gui/test-gui-chat.cpp \
unit/gui/test-gui-color.cpp \
unit/gui/test-gui-filter.cpp \
unit/gui/test-gui-input.cpp \
unit/gui/test-gui-line.cpp \
unit/gui/test-gui-nick.cpp \
scripts/test-scripts.cpp
noinst_PROGRAMS = tests
# Due to circular references, we must link two times with libweechat_core.a
# (and it must be 2 different path/names to be kept by linker)
tests_LDADD = ./../src/core/lib_weechat_core.a \
../src/plugins/lib_weechat_plugins.a \
../src/gui/lib_weechat_gui_common.a \
../src/gui/curses/headless/lib_weechat_gui_headless.a \
../src/gui/curses/headless/lib_weechat_ncurses_fake.a \
lib_weechat_unit_tests_core.a \
../src/core/lib_weechat_core.a \
$(PLUGINS_LFLAGS) \
$(GCRYPT_LFLAGS) \
$(GNUTLS_LFLAGS) \
$(CURL_LFLAGS) \
$(ZLIB_LFLAGS) \
$(ZSTD_LFLAGS) \
$(CPPUTEST_LFLAGS) \
-lm
tests_LDFLAGS = -rdynamic
tests_SOURCES = tests.cpp \
tests.h
lib_LTLIBRARIES = lib_weechat_unit_tests_plugins.la
if PLUGIN_IRC
tests_irc = unit/plugins/irc/test-irc-buffer.cpp \
unit/plugins/irc/test-irc-channel.cpp \
unit/plugins/irc/test-irc-color.cpp \
unit/plugins/irc/test-irc-config.cpp \
unit/plugins/irc/test-irc-ignore.cpp \
unit/plugins/irc/test-irc-join.cpp \
unit/plugins/irc/test-irc-message.cpp \
unit/plugins/irc/test-irc-mode.cpp \
unit/plugins/irc/test-irc-nick.cpp \
unit/plugins/irc/test-irc-protocol.cpp \
unit/plugins/irc/test-irc-sasl.cpp \
unit/plugins/irc/test-irc-server.cpp \
unit/plugins/irc/test-irc-tag.cpp
endif
if PLUGIN_LOGGER
tests_logger = unit/plugins/logger/test-logger-backlog.cpp
endif
if PLUGIN_RELAY
tests_relay = unit/plugins/relay/test-relay-auth.cpp
endif
if PLUGIN_TRIGGER
tests_trigger = unit/plugins/trigger/test-trigger.cpp \
unit/plugins/trigger/test-trigger-config.cpp
endif
if PLUGIN_TYPING
tests_typing = unit/plugins/typing/test-typing.cpp \
unit/plugins/typing/test-typing-status.cpp
endif
if PLUGIN_XFER
tests_xfer = unit/plugins/xfer/test-xfer-file.cpp \
unit/plugins/xfer/test-xfer-network.cpp
endif
lib_weechat_unit_tests_plugins_la_SOURCES = unit/plugins/test-plugins.cpp \
$(tests_irc) \
$(tests_logger) \
$(tests_relay) \
$(tests_trigger) \
$(tests_typing) \
$(tests_xfer)
lib_weechat_unit_tests_plugins_la_LDFLAGS = -module -no-undefined
EXTRA_DIST = CMakeLists.txt
+8 -6
View File
@@ -54,10 +54,6 @@ extern "C"
#define WEECHAT_TESTS_HOME "./tmp_weechat_test"
/* lib with tests on plugins when autotools is used to compile */
#define WEECHAT_TESTS_PLUGINS_LIB_DEFAULT \
"./tests/.libs/lib_weechat_unit_tests_plugins.so.0.0.0"
/* import tests from libs */
/* core */
IMPORT_TEST_GROUP(CoreArraylist);
@@ -320,7 +316,6 @@ main (int argc, char *argv[])
{
int rc, length, weechat_argc;
char *weechat_tests_args, *args, **weechat_argv, *tests_plugins_lib;
const char *tests_plugins_lib_default = WEECHAT_TESTS_PLUGINS_LIB_DEFAULT;
const char *ptr_path;
void *handle;
@@ -384,7 +379,14 @@ main (int argc, char *argv[])
/* load plugins tests */
tests_plugins_lib = getenv ("WEECHAT_TESTS_PLUGINS_LIB");
ptr_path = (tests_plugins_lib && tests_plugins_lib[0]) ?
tests_plugins_lib : tests_plugins_lib_default;
tests_plugins_lib : NULL;
if (!ptr_path)
{
fprintf (stderr,
"ERROR: environment variable WEECHAT_TESTS_PLUGINS_LIB "
"is not defined\n");
return 1;
}
printf ("Loading tests on plugins: \"%s\"\n", ptr_path);
handle = dlopen (ptr_path, RTLD_GLOBAL | RTLD_NOW);
if (!handle)
+14 -41
View File
@@ -20,18 +20,13 @@
#
# Build WeeChat according to environment variables:
# - BUILDTOOL: cmake or autotools
# - BUILDARGS: arguments for cmake or configure commands
# - BUILDARGS: arguments for cmake command
#
# Syntax to run the script with environment variables:
# BUILDTOOL=cmake ./build_test.sh
# BUILDTOOL=autotools ./build_test.sh
# BUILDTOOL=cmake BUILDARGS="arguments" ./build_test.sh
# BUILDTOOL=autotools BUILDARGS="arguments" ./build_test.sh
# BUILDARGS="arguments" ./build_test.sh
#
# Syntax to run the script with arguments on command line:
# ./build_test.sh cmake [arguments]
# ./build_test.sh autotools [arguments]
# ./build_test.sh [arguments]
#
# This script is used to build WeeChat in CI environment.
#
@@ -41,20 +36,10 @@ set -e
BUILDDIR="build-tmp-$$"
if [ $# -ge 1 ]; then
BUILDTOOL="$1"
shift
fi
if [ $# -ge 1 ]; then
BUILDARGS="$*"
fi
if [ -z "$BUILDTOOL" ]; then
echo "Syntax: $0 cmake|autotools"
exit 1
fi
run ()
{
"$@"
@@ -67,28 +52,16 @@ set -x
mkdir "$BUILDDIR"
cd "$BUILDDIR"
if [ "$BUILDTOOL" = "cmake" ]; then
# build with CMake
run cmake .. -DENABLE_MAN=ON -DENABLE_DOC=ON -DENABLE_TESTS=ON "${BUILDARGS}"
if [ -f "build.ninja" ]; then
ninja -v
ninja -v changelog
ninja -v rn
sudo ninja install
else
make VERBOSE=1 --jobs="$(nproc)"
make VERBOSE=1 changelog
make VERBOSE=1 rn
sudo make install
fi
ctest -V
fi
if [ "$BUILDTOOL" = "autotools" ]; then
# build with autotools
../autogen.sh
run ../configure --enable-man --enable-doc --enable-tests "${BUILDARGS}"
make --jobs="$(nproc)"
run cmake .. -DENABLE_MAN=ON -DENABLE_DOC=ON -DENABLE_TESTS=ON "${BUILDARGS}"
if [ -f "build.ninja" ]; then
ninja -v
ninja -v changelog
ninja -v rn
sudo ninja install
else
make VERBOSE=1 --jobs="$(nproc)"
make VERBOSE=1 changelog
make VERBOSE=1 rn
sudo make install
./tests/tests -v
fi
ctest -V