Makefile revision 3817
2719N/A#
2719N/A# CDDL HEADER START
2719N/A#
2719N/A# The contents of this file are subject to the terms of the
2719N/A# Common Development and Distribution License (the "License").
2719N/A# You may not use this file except in compliance with the License.
2719N/A#
2719N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2719N/A# or http://www.opensolaris.org/os/licensing.
2719N/A# See the License for the specific language governing permissions
2719N/A# and limitations under the License.
2719N/A#
2719N/A# When distributing Covered Code, include this CDDL HEADER in each
2719N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2719N/A# If applicable, add the following below this CDDL HEADER, with the
2719N/A# fields enclosed by brackets "[]" replaced with your own identifying
2719N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2719N/A#
2719N/A# CDDL HEADER END
2719N/A#
2719N/A
2719N/A#
3817N/A# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
2719N/A#
2719N/A
2719N/Ainclude ../../../make-rules/shared-macros.mk
2719N/A
2719N/ACOMPONENT_NAME= cffi
2719N/ACOMPONENT_VERSION= 0.8.2
2719N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2719N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2719N/ACOMPONENT_ARCHIVE_HASH= \
2719N/A sha256:8192393640f7bc304ce82669b35eb90592566a30abbb4924456f52079afc18e2
2719N/ACOMPONENT_ARCHIVE_URL= $(call pypi_url)
2719N/ACOMPONENT_PROJECT_URL= http://cffi.readthedocs.org/
2719N/ACOMPONENT_BUGDB= python-mod/cffi
2719N/A
2899N/ATPNO= 16913
2899N/A
3817N/Ainclude $(WS_MAKE_RULES)/prep.mk
3817N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
3817N/Ainclude $(WS_MAKE_RULES)/ips.mk
2719N/A
2719N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
2719N/A
2719N/A# We need to go look at pycparser in the workspace until it's available in the
2719N/A# build environment.
2719N/APYCPARSER = $(WS_COMPONENTS)/python/pycparser/build/prototype/$(MACH)/$(PYTHON_LIB)
2719N/A
2719N/A$(PYCPARSER):
2719N/A (cd ../pycparser; $(MAKE) install)
2719N/A
2719N/ACOMPONENT_TEST_DIR = $(@D)/tests
2719N/ACOMPONENT_TEST_ENV = $(PYTHON_ENV)
2719N/ACOMPONENT_TEST_ENV += PYTHONPATH=$(PROTO_DIR)/$(PYTHON_LIB):$(PYCPARSER)
2719N/ACOMPONENT_TEST_ENV += TESTOWNLIB_CC="$(CC) %s $(CC_BITS) -G -KPIC -o %s"
2719N/ACOMPONENT_TEST_CMD = $(PYTHON.$(BITS)) /usr/bin/py.test-$(PYTHON_VERSION)
2719N/ACOMPONENT_TEST_ARGS = --resultlog $(@D)/testresults
2719N/ACOMPONENT_TEST_ARGS += -p no:codechecker
2719N/ACOMPONENT_TEST_ARGS += $(TEST_SKIPS)
2719N/ACOMPONENT_TEST_ARGS += c testing
2719N/A# The following tests cause core dumps on SPARC (bus error, illegal hardware
2719N/A# instruction). We don't skip test_install_and_reload_module{,_package}, which
2719N/A# fail on both 64-bit platforms, since those don't cause the interpreter to
2719N/A# crash.
2719N/A$(BUILD_DIR)/sparcv7-%/.tested: TEST_SKIPS = -k "not test_callback_return_type and not test_struct_packed and not test_opaque_integer_as_function_result"
2719N/A$(BUILD_DIR)/sparcv9-%/.tested: TEST_SKIPS = -k "not test_callback and not test_a_lot_of_callbacks and not test_struct_packed and not test_opaque_integer_as_function_result and not test_wchar"
2719N/A
2719N/A# Copy the tests and a few of the source files they read into a scratch
2719N/A# directory so running the tests don't leave turds in the source directory.
2719N/ACOMPONENT_PRE_TEST_ACTION = \
2719N/A $(MKDIR) $(@D)/tests/doc/source; \
2719N/A $(CP) -r $(SOURCE_DIR)/c $(SOURCE_DIR)/testing $(@D)/tests; \
2719N/A $(CP) $(SOURCE_DIR)/setup.py $(@D)/tests; \
2719N/A $(CP) $(SOURCE_DIR)/doc/source/conf.py $(SOURCE_DIR)/doc/source/index.rst $(@D)/tests/doc/source
2719N/A
2719N/A$(BUILD_32_and_64): $(PYCPARSER)
2719N/A
2719N/A# common targets
2719N/Abuild: $(BUILD_32_and_64)
2719N/A
2719N/Ainstall: $(INSTALL_32_and_64)
2719N/A
2719N/Atest: $(TEST_32_and_64)
2719N/A
2719N/A
3817N/AREQUIRED_PACKAGES += library/libffi
3817N/AREQUIRED_PACKAGES += system/library