Makefile revision 4910
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
4892N/ACOMPONENT_VERSION= 1.1.2
2719N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2719N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2719N/ACOMPONENT_ARCHIVE_HASH= \
4892N/A sha256:390970b602708c91ddc73953bb6929e56291c18a4d80f360afa00fad8b6f3339
2719N/ACOMPONENT_ARCHIVE_URL= $(call pypi_url)
2719N/ACOMPONENT_PROJECT_URL= http://cffi.readthedocs.org/
2719N/ACOMPONENT_BUGDB= python-mod/cffi
2719N/A
4892N/ATPNO= 24051
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/ACOMPONENT_TEST_DIR = $(@D)/tests
2719N/ACOMPONENT_TEST_ENV = $(PYTHON_ENV)
3998N/ACOMPONENT_TEST_ENV += PYTHONPATH=$(PROTO_DIR)/$(PYTHON_LIB)
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
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; \
4892N/A $(CP) -r $(SOURCE_DIR)/c $(SOURCE_DIR)/testing $(SOURCE_DIR)/cffi $(@D)/tests; \
2719N/A $(CP) $(SOURCE_DIR)/setup.py $(@D)/tests; \
3998N/A $(CP) \
3998N/A $(SOURCE_DIR)/doc/source/conf.py \
3998N/A $(SOURCE_DIR)/doc/source/index.rst \
4892N/A $(SOURCE_DIR)/doc/source/installation.rst \
3998N/A $(@D)/tests/doc/source
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
4337N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
4337N/A
2719N/A
3817N/AREQUIRED_PACKAGES += library/libffi
4424N/AREQUIRED_PACKAGES += library/python/pycparser-26
4424N/AREQUIRED_PACKAGES += library/python/pycparser-27
4424N/AREQUIRED_PACKAGES += library/python/pycparser-34
4910N/AREQUIRED_PACKAGES += library/python/pycparser-35
3817N/AREQUIRED_PACKAGES += system/library