Makefile revision 5484
1516N/A#
19N/A# CDDL HEADER START
19N/A#
19N/A# The contents of this file are subject to the terms of the
19N/A# Common Development and Distribution License (the "License").
19N/A# You may not use this file except in compliance with the License.
19N/A#
19N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
19N/A# or http://www.opensolaris.org/os/licensing.
19N/A# See the License for the specific language governing permissions
19N/A# and limitations under the License.
19N/A#
19N/A# When distributing Covered Code, include this CDDL HEADER in each
19N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
19N/A# If applicable, add the following below this CDDL HEADER, with the
19N/A# fields enclosed by brackets "[]" replaced with your own identifying
19N/A# information: Portions Copyright [yyyy] [name of copyright owner]
19N/A#
19N/A# CDDL HEADER END
19N/A#
19N/A
19N/A#
926N/A# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
835N/A#
19N/A
926N/Ainclude ../../../make-rules/shared-macros.mk
19N/A
161N/ACOMPONENT_NAME= cffi
26N/ACOMPONENT_VERSION= 1.4.2
838N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
838N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
838N/ACOMPONENT_ARCHIVE_HASH= \
838N/A sha256:8f1d177d364ea35900415ae24ca3e471be3d5334ed0419294068c49f45913998
45N/ACOMPONENT_ARCHIVE_URL= $(call pypi_url)
479N/ACOMPONENT_PROJECT_URL= http://cffi.readthedocs.org/
1431N/ACOMPONENT_BUGDB= python-mod/cffi
1431N/A
1431N/ATPNO= 26350
1352N/A
1191N/Ainclude $(WS_MAKE_RULES)/prep.mk
1191N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
1191N/Ainclude $(WS_MAKE_RULES)/ips.mk
1191N/A
1191N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
1191N/A
1191N/ACOMPONENT_TEST_DIR = $(@D)/tests
1191N/ACOMPONENT_TEST_ENV = $(PYTHON_ENV)
307N/ACOMPONENT_TEST_ENV += PYTHONPATH=$(PROTO_DIR)/$(PYTHON_LIB)
1191N/ACOMPONENT_TEST_ENV += TESTOWNLIB_CC="$(CC) %s $(CC_BITS) -G -KPIC -o %s"
1191N/ACOMPONENT_TEST_CMD = $(PYTHON.$(BITS)) /usr/bin/py.test-$(PYTHON_VERSION)
1191N/ACOMPONENT_TEST_ARGS = --resultlog $(@D)/testresults
1352N/ACOMPONENT_TEST_ARGS += -p no:codechecker
539N/ACOMPONENT_TEST_ARGS += $(TEST_SKIPS)
104N/ACOMPONENT_TEST_ARGS += c testing
1328N/A
926N/A# Copy the tests and a few of the source files they read into a scratch
1431N/A# directory so running the tests don't leave turds in the source directory.
19N/ACOMPONENT_PRE_TEST_ACTION = \
26N/A $(MKDIR) $(@D)/tests/doc/source; \
30N/A $(CP) -r $(SOURCE_DIR)/c $(SOURCE_DIR)/testing $(SOURCE_DIR)/cffi $(@D)/tests; \
26N/A $(CP) $(SOURCE_DIR)/setup.py $(@D)/tests; \
1352N/A $(CP) \
419N/A $(SOURCE_DIR)/doc/source/conf.py \
19N/A $(SOURCE_DIR)/doc/source/index.rst \
19N/A $(SOURCE_DIR)/doc/source/installation.rst \
19N/A $(@D)/tests/doc/source
19N/A
19N/A# common targets
19N/Abuild: $(BUILD_32_and_64)
19N/A
19N/Ainstall: $(INSTALL_32_and_64)
19N/A
19N/Atest: $(TEST_32_and_64)
19N/A
19N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
19N/A
19N/A
19N/AREQUIRED_PACKAGES += library/libffi
26N/AREQUIRED_PACKAGES += library/python/pycparser-27
19N/AREQUIRED_PACKAGES += library/python/pycparser-34
19N/AREQUIRED_PACKAGES += library/python/pycparser-35
19N/AREQUIRED_PACKAGES += system/library
19N/A