summaryrefslogtreecommitdiff
path: root/libpurple/win32
diff options
context:
space:
mode:
authorElliott Sales de Andrade <qulogic@pidgin.im>2017-11-16 23:38:34 -0500
committerElliott Sales de Andrade <qulogic@pidgin.im>2017-11-16 23:38:34 -0500
commita8d572a14f3fb7104d54eddd3c48cad534f2a26c (patch)
tree6561e3cec57b31faeefb513830f5f079cce463ea /libpurple/win32
parent7c12f9f8dfde5cb493429a636990a1923bbbe70f (diff)
downloadpidgin-a8d572a14f3fb7104d54eddd3c48cad534f2a26c.tar.gz
Remove more autotools stuff.
Diffstat (limited to 'libpurple/win32')
-rw-r--r--libpurple/win32/global.mak154
-rw-r--r--libpurple/win32/rules.mak17
-rw-r--r--libpurple/win32/targets.mak55
3 files changed, 0 insertions, 226 deletions
diff --git a/libpurple/win32/global.mak b/libpurple/win32/global.mak
deleted file mode 100644
index 3024a68b10..0000000000
--- a/libpurple/win32/global.mak
+++ /dev/null
@@ -1,154 +0,0 @@
-#
-# global.mak
-#
-# This file should be included by all Makefile.mingw files for project
-# wide definitions (after correctly defining PIDGIN_TREE_TOP).
-#
-
-#include optional $(PIDGIN_TREE_TOP)/local.mak to allow overriding of any definitions
--include $(PIDGIN_TREE_TOP)/local.mak
-
-# TODO: we should do parsing like for PURPLE_VERSION, if we won't drop
-# Makefile.mingw files before 3.0.0 release
-PURPLE_MAJOR_VERSION := 3
-PURPLE_MINOR_VERSION := 0
-PURPLE_MICRO_VERSION := 0
-PURPLE_API_VERSION := 20
-
-# Locations of our various dependencies
-WIN32_DEV_TOP ?= $(PIDGIN_TREE_TOP)/../win32-dev
-ENCHANT_TOP ?= $(WIN32_DEV_TOP)/enchant-1.6
-GNUTLS_TOP ?= $(WIN32_DEV_TOP)/gnutls-3.1
-GTK_TOP ?= $(WIN32_DEV_TOP)/gtk2-2.24
-GTK_BIN ?= $(GTK_TOP)/bin
-JSON_GLIB_TOP ?= $(WIN32_DEV_TOP)/json-glib-0.14
-LIBXML2_TOP ?= $(WIN32_DEV_TOP)/libxml2-2.9.2_daa1
-MEANWHILE_TOP ?= $(WIN32_DEV_TOP)/meanwhile-1.0.2_daa3
-NSS_TOP ?= $(WIN32_DEV_TOP)/nss-3.24-nspr-4.12
-SILC_TOOLKIT ?= $(WIN32_DEV_TOP)/silc-toolkit-1.1.12
-GSTREAMER_TOP ?= $(WIN32_DEV_TOP)/gstreamer-0.10.13
-GCC_SSP_TOP ?= $(shell dirname $(shell which $(CC)))
-CYRUS_SASL_TOP ?= $(WIN32_DEV_TOP)/cyrus-sasl-2.1
-WEBKITGTK_TOP ?= $(WIN32_DEV_TOP)/libwebkitgtk-1.10
-LIBSOUP_TOP ?= $(WIN32_DEV_TOP)/libsoup-2.42
-GETTEXT_TOP ?= $(WIN32_DEV_TOP)/gettext-0.18
-INTLTOOL_TOP ?= $(WIN32_DEV_TOP)/intltool-0.50
-LIBGADU_TOP ?= $(WIN32_DEV_TOP)/libgadu-1.12
-
-# Where we installing this stuff to?
-PIDGIN_INSTALL_DIR := $(PIDGIN_TREE_TOP)/win32-install-dir
-PURPLE_INSTALL_DIR := $(PIDGIN_TREE_TOP)/win32-install-dir
-PIDGIN_INSTALL_PLUGINS_DIR := $(PIDGIN_INSTALL_DIR)/plugins
-PURPLE_INSTALL_PLUGINS_DIR := $(PURPLE_INSTALL_DIR)/plugins
-PURPLE_INSTALL_PO_DIR := $(PURPLE_INSTALL_DIR)/locale
-
-# Important (enough) locations in our source code
-PURPLE_TOP := $(PIDGIN_TREE_TOP)/libpurple
-PURPLE_PLUGINS_TOP := $(PURPLE_TOP)/plugins
-PIDGIN_TOP := $(PIDGIN_TREE_TOP)/pidgin
-PIDGIN_PIXMAPS_TOP := $(PIDGIN_TOP)/pixmaps
-PIDGIN_PLUGINS_TOP := $(PIDGIN_TOP)/plugins
-PURPLE_PO_TOP := $(PIDGIN_TREE_TOP)/po
-PURPLE_PROTOS_TOP := $(PURPLE_TOP)/protocols
-
-# Locations of important (in-tree) build targets
-PIDGIN_CONFIG_H := $(PIDGIN_TREE_TOP)/config.h
-PURPLE_CONFIG_H := $(PIDGIN_TREE_TOP)/config.h
-PIDGIN_REVISION_H := $(PIDGIN_TREE_TOP)/package_revision.h
-PIDGIN_REVISION_RAW_TXT := $(PIDGIN_TREE_TOP)/package_revision_raw.txt
-PURPLE_PURPLE_H := $(PURPLE_TOP)/purple.h
-PURPLE_VERSION_H := $(PURPLE_TOP)/version.h
-PURPLE_DLL := $(PURPLE_TOP)/libpurple.dll
-PIDGIN_DLL := $(PIDGIN_TOP)/pidgin.dll
-PIDGIN_EXE := $(PIDGIN_TOP)/pidgin.exe
-PIDGIN_PORTABLE_EXE := $(PIDGIN_TOP)/pidgin-portable.exe
-
-GCCWARNINGS ?= -Waggregate-return -Wcast-align -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wextra -Wno-sign-compare -Wno-unused-parameter -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef
-
-CC_HARDENING_OPTIONS ?= -Wstack-protector -fwrapv -fno-strict-overflow -Wno-missing-field-initializers -Wformat-security -fstack-protector-all --param ssp-buffer-size=1
-LD_HARDENING_OPTIONS ?= -Wl,--dynamicbase -Wl,--nxcompat
-
-TAG := @$(PURPLE_TOP)/tag.sh
-
-# parse the version number from the configure.ac file if it is newer
-#m4_define([purple_major_version], [2])
-#m4_define([purple_minor_version], [0])
-#m4_define([purple_micro_version], [0])
-#m4_define([purple_version_suffix], [devel])
-PIDGIN_VERSION := $(shell \
- if [ ! $(PIDGIN_TREE_TOP)/VERSION -nt $(PIDGIN_TREE_TOP)/configure.ac ]; then \
- awk 'BEGIN {FS="[\\(\\)\\[\\]]"} /^m4_define..purple_(major|minor)_version/ {printf("%s.",$$5);} /^m4_define..purple_micro_version/ {printf("%s",$$5);} /^m4_define..purple_version_suffix/ {printf("%s",$$5); exit}' \
- $(PIDGIN_TREE_TOP)/configure.ac > $(PIDGIN_TREE_TOP)/VERSION; \
- fi; \
- cat $(PIDGIN_TREE_TOP)/VERSION \
-)
-PURPLE_VERSION := $(PIDGIN_VERSION)
-ifdef EXTRAVERSION
-DISPLAY_VERSION := $(PIDGIN_VERSION)-$(EXTRAVERSION)
-else
-DISPLAY_VERSION := $(PIDGIN_VERSION)
-endif
-
-CYRUS_SASL ?= 1
-
-ifeq ($(CYRUS_SASL), 1)
-DEFINES += -DHAVE_CYRUS_SASL
-endif
-
-DEFINES += -DHAVE_CONFIG_H -DWIN32_LEAN_AND_MEAN -DWINVER=0x0501 -D_WIN32_WINNT=0x501
-
-CFLAGS += -O2 -Wall $(GCCWARNINGS) $(CC_HARDENING_OPTIONS) -pipe -mms-bitfields -g
-
-# If not specified, dlls are built with the default base address of 0x10000000.
-# When loaded into a process address space a dll will be rebased if its base
-# address colides with the base address of an existing dll. To avoid rebasing
-# we do the following. Rebasing can slow down the load time of dlls and it
-# also renders debug info useless.
-DLL_LD_FLAGS += -Wl,--enable-auto-image-base -Wl,--enable-auto-import $(LD_HARDENING_OPTIONS) -lssp
-
-# Build programs
-ifeq "$(origin CC)" "default"
- CC := gcc.exe
-endif
-# comment out the next line to make output more verbose
-CC := $(TAG) "auto" $(CC)
-
-GMSGFMT ?= $(GETTEXT_TOP)/bin/msgfmt
-MAKENSIS ?= makensis.exe
-PERL ?= perl
-WINDRES ?= windres
-STRIP ?= strip
-INTLTOOL_MERGE ?= $(INTLTOOL_TOP)/bin/intltool-merge
-MONO_SIGNCODE ?= signcode
-GPG_SIGN ?= gpg
-GLIB_GENMARSHAL ?= $(GTK_BIN)/glib-genmarshal
-GLIB_MKENUMS ?= $(GTK_BIN)/glib-mkenums
-
-PIDGIN_COMMON_RULES := $(PURPLE_TOP)/win32/rules.mak
-PIDGIN_COMMON_TARGETS := $(PURPLE_TOP)/win32/targets.mak
-MINGW_MAKEFILE := Makefile.mingw
-MAKE_at := @
-
-USE_VV ?= 1
-
-ifeq "$(USE_VV)" "1"
-VV_LIBS := \
- -lgstreamer-0.10 \
- -lgstvideo-0.10 \
- -lgstinterfaces-0.10 \
- -lfarstream-0.1
-VV_INCLUDE_PATHS := \
- -I$(GSTREAMER_TOP)/include/gstreamer-0.10 \
- -I$(GSTREAMER_TOP)/include/farstream-0.1 \
- -I$(LIBXML2_TOP)/include/libxml2
-VV_LIB_PATHS := \
- -L$(GSTREAMER_TOP)/lib
-DEFINES += -DUSE_GSTREAMER -DUSE_VV
-else
-VV_LIBS :=
-VV_INCLUDE_PATHS :=
-VV_LIB_PATHS :=
-endif
-
-INSTALL_PIXMAPS ?= 1
-INSTALL_SSL_CERTIFICATES ?= 1
diff --git a/libpurple/win32/rules.mak b/libpurple/win32/rules.mak
deleted file mode 100644
index 37ddc99c4f..0000000000
--- a/libpurple/win32/rules.mak
+++ /dev/null
@@ -1,17 +0,0 @@
-# Rules on how to make object files from various sources
-
-%.o: %.c
- $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $<
-
-%.o: %.rc
- @echo -e " GEN\t$@"
- @$(WINDRES) -I$(PURPLE_TOP) -i $< -o $@
-
-%.desktop: %.desktop.in $(wildcard $(PIDGIN_TREE_TOP)/po/*.po)
- LC_ALL=C $(PERL) $(INTLTOOL_MERGE) -d -u -c $(PIDGIN_TREE_TOP)/po/.intltool-merge-cache $(PIDGIN_TREE_TOP)/po $< $@
-
-%.html.h: %.html
- @echo -e " GEN\t$@"
- @echo "static const char $*_html[] = {" > $@
- @sed -e 's/^[ ]\+//g' -e 's/[ ]\+/ /g' $< | xxd -i | sed -e 's/\(0x[0-9a-f][0-9a-f]\)$$/\1, 0x00/' >> $@
- @echo "};" >> $@
diff --git a/libpurple/win32/targets.mak b/libpurple/win32/targets.mak
deleted file mode 100644
index dc224dad91..0000000000
--- a/libpurple/win32/targets.mak
+++ /dev/null
@@ -1,55 +0,0 @@
-#
-# targets.mak
-#
-# This file should be included at the end of all Makefile.mingw
-# files for better handling of cross directory dependencies
-#
-
-$(PIDGIN_CONFIG_H): $(PIDGIN_CONFIG_H).mingw $(PIDGIN_TREE_TOP)/configure.ac
- @echo -e " GEN\t$@"
- @sed -e 's/@VERSION@/$(PIDGIN_VERSION)/; s/@DISPLAY_VERSION@/$(DISPLAY_VERSION)/' $@.mingw > $@
-
-$(PURPLE_PURPLE_H): $(PURPLE_PURPLE_H).in
- @echo -e " GEN\t$@"
- @sed -e 's/@PLUGINS_DEFINE@/#define PURPLE_PLUGINS 1/' $@.in > $@
-
-$(PURPLE_VERSION_H): $(PURPLE_VERSION_H).in $(PIDGIN_TREE_TOP)/configure.ac
- @echo -e " GEN\t$@"
- @awk 'BEGIN {FS="[\\(\\)\\[\\]]"} \
- /^m4_define..purple_major_version/ {system("sed -e s/@PURPLE_MAJOR_VERSION@/"$$5"/ $@.in > $@");} \
- /^m4_define..purple_minor_version/ {system("sed -e s/@PURPLE_MINOR_VERSION@/"$$5"/ $@ > $@.tmp && mv $@.tmp $@");} \
- /^m4_define..purple_micro_version/ {system("sed -e s/@PURPLE_MICRO_VERSION@/"$$5"/ $@ > $@.tmp && mv $@.tmp $@"); exit}' $(PIDGIN_TREE_TOP)/configure.ac
-
-$(PIDGIN_REVISION_RAW_TXT):
- @echo -e " GEN\t$@"
- @(hg --cwd $(PIDGIN_TREE_TOP) log -r . -T '{node}') 2>/dev/null >$@ \
- || rm -f $@
-
-$(PIDGIN_REVISION_H): $(PIDGIN_REVISION_RAW_TXT)
- @echo -e " GEN\t$@"
- @if [ -f $< ]; then \
- sed 's/^\(.\{1,\}\)$$/#define REVISION "\1"/' $< > $@; \
- fi
- @[ -f $@ ] || echo "#define REVISION \"unknown\"" > $@
-
-$(PURPLE_DLL) $(PURPLE_DLL).a: $(PURPLE_VERSION_H)
- $(MAKE) -C $(PURPLE_TOP) -f $(MINGW_MAKEFILE) libpurple.dll
-
-$(PIDGIN_DLL) $(PIDGIN_DLL).a:
- $(MAKE_at) $(MAKE) -C $(PIDGIN_TOP) -f $(MINGW_MAKEFILE) pidgin.dll
-
-$(PIDGIN_EXE):
- $(MAKE) -C $(PIDGIN_TOP) -f $(MINGW_MAKEFILE) pidgin.exe
-
-# Installation Directories
-$(PIDGIN_INSTALL_DIR):
- mkdir -p $(PIDGIN_INSTALL_DIR)
-
-$(PIDGIN_INSTALL_PLUGINS_DIR):
- mkdir -p $(PIDGIN_INSTALL_PLUGINS_DIR)
-
-$(PURPLE_INSTALL_PO_DIR):
- mkdir -p $(PURPLE_INSTALL_PO_DIR)
-
-#$(PURPLE_INSTALL_PLUGINS_DIR):
-# mkdir -p $(PURPLE_INSTALL_PLUGINS_DIR)