Commit Graph

127 Commits

Author SHA1 Message Date
111441302c build: perl as a dependency in meson.build
With the switch to meson, the problem previously fixed in #1822 came
back. The build system might pick up the installed hexchat-config.h
instead of using the header in the source directory, as the compiler
arguments would be in the order of "-I${prefix}/include -I..".

It seems that the c_args in meson are always put to the front of the
compiler arguments, in order to be able to override any include paths
from dependencies. However, this was not the intention here, so perl
should also be modeled as a dependency. This ensures that the arguments
with local include directories come first.
2018-03-26 17:09:36 +00:00
ed6f544572 build: Add option to specify path to perl binary 2018-03-23 09:14:45 +00:00
93f926bf12 build: Re-add support for the legacy perl api
This was accidentally left behind, expose it beind an option as
with the old build system but default to false now. Enough time
has passed and only distros that care about it can enable it.
2018-03-18 11:09:53 -04:00
27acca0f5b fix typo in comment
Signed-off-by: Mattia Rizzolo <mattia@mapreri.org>
2018-03-13 23:38:36 +00:00
2dfe5357a9 build: Fix setting the *installed* rpath for perl too... 2017-06-14 23:55:40 -04:00
67adfa6f54 build: Fix rpath not getting set for perl plugin
Some distros of perl pass an rpath so we shouldn't ignore it.
Other junk comes with it but oh well.
2017-06-14 23:31:01 -04:00
628100c19f build: Replace Autotools with Meson
Quick rundown of benefits:

- Much faster:
  - Autotools (with autogen): 22 seconds
  - Meson: 7 seconds
  - Meson (with ccache): 2 seconds

- Simpler:
  - ~1000 lines smaller
  - Single simple language

- Potentially better Windows (Visual Studio) support

What is not done:

- Complete Windows support
- OSX support (easy)

Closes #2013
Closes #1937
Closes #1803
2017-06-13 23:54:51 -04:00
116a394ef6 perl: Remove dead assignment 2016-10-11 11:48:36 -04:00
c79ce843f4 build: Reorder includes to avoid installed plugin header
When hexchat is already installed into a non-default prefix, a new build
could pick up ${prefix}/include/hexchat-plugin.h from the installed
version instead of the local header, as configuration variables such as
$(GLIB_CFLAGS) would point to -I${prefix}/include.

Reordering the includes and moving -I arguments to CPPFLAGS prevents
this, as it ensures the local directories are always searched first.

This was no problem when compiling for /usr or /usr/local as these
directories in the compiler search path are always searched last.

Closes #1822
2016-09-26 19:16:42 -04:00
910851e04d perl: Fixed Windows build with VS2015u3. 2016-09-07 04:00:10 -07:00
089fe95a42 perl: Fixed warning about duplicate definition of bool. 2016-01-30 19:57:12 -08:00
f7e3d3f32c Use VS 2015 2015-10-10 16:14:12 -07:00
5263887ac3 configure: Simplify perl tests 2015-04-22 23:14:42 -04:00
9858784eb6 Better project files.
- Output directly to rel\ instead of to bin\ and then copying files over.
- Deduped Win32 vs x64 configs
- Moved some common properties to hexchat.props
- All build intermediates (except htm's intermediates) are no longer emitted in the source directory
2015-02-11 10:01:29 -08:00
3f855f07f5 Use glib for allocations in all plugins
Continuation of 83032b1aa
2014-12-28 06:47:07 -05:00
aeb5d15871 More consistently include config.h 2014-12-17 18:21:10 -05:00
0e4164ad0c configure: Improve various build flags
- Store openssl flags in own vars
- Share some common flags for plugins
- Fix building plugins on win32
- Store all glib flags in one var
- Don't link against every lib for each plugin
- Don't hardcode ldflags for sysinfo
2014-12-15 11:07:46 -05:00
ac01ba9cb0 perl: Fixed warning about implicitly casting the time_t returned from hexchat_list_time() to an NV. 2014-12-14 13:31:19 -08:00
8062bce835 Fix some obvious type warnings. 2014-12-04 04:06:38 -08:00
7a4a0243bd Fix out of source builds
Fixes #1018
2014-09-14 17:43:44 -04:00
b8c02f71d9 win32: Use config.h instead of config-win32.h 2014-06-04 10:30:18 -04:00
8c00a4ff40 perl: Update Perl to 5.20 2014-05-28 18:22:19 +02:00
e36855a21e Fix miscapitalization 2014-03-11 17:55:01 +01:00
b17c0276de Fix some leaks 2014-02-12 10:31:11 -05:00
681e14b3b8 Remove unused perl files
- old example scripts
- outdated docs
- mingw build script
2014-01-20 01:14:10 -05:00
fd13e4046f Perl: fixed crash when a script exits abnormally 2013-10-13 14:26:54 -04:00
8311c3aa56 Rename Strawberry to Hexchat in Perl error message 2013-10-12 19:42:26 +02:00
075cc61c94 Rebrand Perl plugin to HexChat,
Add /pl and plugin_pref

Add help messages
2013-10-07 22:58:38 +02:00
cc6de3f665 some Typos causing lintian moaning: {R,r}eciev.. -> {R,r}eceiv.. 2013-10-05 18:26:55 +02:00
960ded7db4 Update link to site in perl plugin 2013-09-27 20:09:48 +02:00
b658fca4a7 Convert project files to vs2013 2013-09-15 15:07:46 -07:00
e8456beadc Add reload command for plugins and add to gui 2013-08-04 04:36:10 -04:00
715a520c0e Move optimization settings from all subsequent projects to hexchat.props 2013-07-24 20:56:36 +02:00
c7d1102c61 perl: Fixed get_list('networks') to work with new servlist.conf syntax for autojoin channels. 2013-06-22 22:06:49 -07:00
77cad8e716 Don't hardcode "plugins" as the subdirectory for plugins in many
places.

	modified:   config-win32.h
	modified:   configure.ac
	modified:   plugins/checksum/Makefile.am
	modified:   plugins/doat/Makefile.am
	modified:   plugins/fishlim/Makefile.am
	modified:   plugins/perl/Makefile.am
	modified:   plugins/python/Makefile.am
	modified:   plugins/sysinfo/Makefile.am
	modified:   plugins/xdcc/Makefile.am
	modified:   src/common/plugin.c
	modified:   src/fe-text/fe-text.c
2013-04-28 16:42:48 +02:00
07bc467d03 win32: Moved PlatformToolset configuration to individual project files. It should be set before setting other properties or importing other props.
This fixes the broken GUI Platform Toolset indicator, as well as VS compilation itself if another version such as 2010 was also installed.
2013-04-25 21:03:03 -07:00
facf0ab9c4 Add '(void)' to fix perl.c unused-value warning message 2013-04-23 12:09:05 -07:00
cc1f2b2d27 Fix last filename
Left here to make changes trackable
2013-04-13 02:27:02 +02:00
6ee3a4a978 Get rid of multiple Perl versions 2013-04-13 02:27:01 +02:00
c8f8a26c9c Add future Perl 5.18 project 2013-04-01 23:21:41 +02:00
110a2625fe Remove another bunch of obsolete junk 2013-04-01 05:05:33 +02:00
2bd12b2e25 Typo 2013-03-24 18:49:45 -03:00
39cfcc7468 Update missing perl note. 2013-03-24 17:23:16 -03:00
a6d7cfab78 Get rid of the servlist_ rubbish 2013-03-23 16:25:38 +01:00
c5404b8e25 Update Perl download links 2013-03-19 01:29:37 +01:00
60d7e8e320 Backport XChat r1523 2013-03-16 22:41:40 +01:00
b04377825f fix incorrect FSF address 2012-12-23 11:36:54 -08:00
40d4c592b3 Update Perl error message according to recent changes 2012-11-12 02:24:19 +01:00
c0dca425a5 Prepare solution for Perl 5.16 VC build 2012-11-12 02:04:58 +01:00
348c6ba919 Rebranding 2012-11-11 13:51:50 +01:00