diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-11-27 15:50:53 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-11-27 16:57:19 +0100 |
commit | 919263362c86479b43c00ae29d6156d4d6cdd545 (patch) | |
tree | 10fd5f2c89347097d667b88f3de83683f0239cf6 /RepositoryExternal.mk | |
parent | 9d921baa17c3ee8d3c7be0cab5980d0f66319891 (diff) |
pyuno: add python_headers external and use it for wrapper
Change-Id: Ie151a1200037b6060eab00d6f0f0889134826e5e
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r-- | RepositoryExternal.mk | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk index e6232b610b53..09378fd97356 100644 --- a/RepositoryExternal.mk +++ b/RepositoryExternal.mk @@ -1941,9 +1941,10 @@ endif # ENABLE_GCONF # PYTHON +# extra python_headers external because pyuno wrapper must not link python ifeq ($(SYSTEM_PYTHON),YES) -define gb_LinkTarget__use_python +define gb_LinkTarget__use_python_headers $(call gb_LinkTarget_add_defs,$(1),\ $(filter-out -I%,$(PYTHON_CFLAGS)) \ ) @@ -1953,6 +1954,11 @@ $(call gb_LinkTarget_set_include,$(1),\ $$(INCLUDE) \ ) +endef + +define gb_LinkTarget__use_python +$(call gb_LinkTarget__use_python_headers,$(1)) + $(call gb_LinkTarget_add_libs,$(1),\ $(PYTHON_LIBS) \ ) @@ -1961,7 +1967,18 @@ endef else # !SYSTEM_PYTHON +define gb_LinkTarget__use_python_headers +$(call gb_LinkTarget_set_include,$(1),\ + -I$(call gb_UnpackedTarball_get_dir,python3) \ + -I$(call gb_UnpackedTarball_get_dir,python3)/PC \ + -I$(call gb_UnpackedTarball_get_dir,python3)/Include \ + $$(INCLUDE) \ +) + +endef + define gb_LinkTarget__use_python +$(call gb_LinkTarget__use_python_headers,$(1)) ifeq ($(OS),WNT) $(call gb_LinkTarget_add_libs,$(1),\ @@ -1978,13 +1995,6 @@ $(call gb_LinkTarget_use_libraries,$(1),\ ) endif -$(call gb_LinkTarget_set_include,$(1),\ - -I$(call gb_UnpackedTarball_get_dir,python3) \ - -I$(call gb_UnpackedTarball_get_dir,python3)/PC \ - -I$(call gb_UnpackedTarball_get_dir,python3)/Include \ - $$(INCLUDE) \ -) - endef $(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO,\ |