summaryrefslogtreecommitdiff
path: root/external/Module_external.mk
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@verizon.net>2012-12-17 17:48:00 -0500
committerDavid Tardon <dtardon@redhat.com>2012-12-25 09:39:47 +0100
commit5b0d2d02a51dcf6c4235124f7d92280877fbb3df (patch)
tree8e647659f49cda94467bcf934cf3f6ceee68b212 /external/Module_external.mk
parent2d8a50d3f8a5af914e2e184796bfab05df52c539 (diff)
convert external to gbuild
Change-Id: I7127db6aad9e97a0f3e758aa83b22ac8465d3f43
Diffstat (limited to 'external/Module_external.mk')
-rw-r--r--external/Module_external.mk50
1 files changed, 50 insertions, 0 deletions
diff --git a/external/Module_external.mk b/external/Module_external.mk
new file mode 100644
index 000000000000..151ecddb1f1f
--- /dev/null
+++ b/external/Module_external.mk
@@ -0,0 +1,50 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Module_Module,external))
+
+$(eval $(call gb_Module_add_targets,external,\
+))
+
+ifeq ($(GUI)$(COM),WNTGCC)
+$(eval $(call gb_Module_add_targets,external,\
+ CustomTarget_jawt \
+ CustomTarget_mingw_dlls \
+ CustomTarget_wine \
+ Package_jawt \
+ Package_mingw_dlls \
+ Package_wine \
+))
+endif
+
+ifeq ($(COM),MSC)
+$(eval $(call gb_Module_add_targets,external,\
+ Package_dbghelp \
+ Package_msms \
+ Package_msvc_dlls \
+))
+endif
+
+ifeq ($(HAVE_GETOPT),NO)
+$(eval $(call gb_Module_add_targets,external,\
+ UnpackedTarball_glibc \
+ StaticLibrary_gnu_getopt \
+))
+endif
+
+ifeq ($(HAVE_READDIR_R),NO)
+ifneq ($(OS),WNT)
+$(eval $(call gb_Module_add_targets,external,\
+ $(if $(filter YES,$(HAVE_GETOPT)),UnpackedTarball_glibc) \
+ StaticLibrary_gnu_readdir_r \
+))
+endif
+endif
+
+# vim: set noet sw=4 ts=4: