mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 23:34:31 +04:00
python,python3: define PyBuild/Compile & Py3Build/Compile
Similar to LEDE/OpenWrt's Build/Compile/Default rule, and other similarities like this. This should allow Python packages to define PyBuild/Compile rules to do specific stuff per package. The advantage of using these (over just overriding Build/Compile) is the VARIANT mechanism that is in place to support packaging both for Python & Python3. So, PyBuild/Compile will get picked up for the Python variant build, and Py3Build/Compile will get picked up for the Python3 variant build. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
@@ -132,8 +132,10 @@ define PyBuild/Compile/Default
|
|||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
PyBuild/Compile=$(PyBuild/Compile/Default)
|
||||||
|
|
||||||
ifeq ($(BUILD_VARIANT),python)
|
ifeq ($(BUILD_VARIANT),python)
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(call PyBuild/Compile/Default)
|
$(call PyBuild/Compile)
|
||||||
endef
|
endef
|
||||||
endif # python
|
endif # python
|
||||||
|
|||||||
@@ -132,8 +132,10 @@ define Py3Build/Compile/Default
|
|||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Py3Build/Compile=$(Py3Build/Compile/Default)
|
||||||
|
|
||||||
ifeq ($(BUILD_VARIANT),python3)
|
ifeq ($(BUILD_VARIANT),python3)
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(call Py3Build/Compile/Default)
|
$(call Py3Build/Compile)
|
||||||
endef
|
endef
|
||||||
endif # python3
|
endif # python3
|
||||||
|
|||||||
Reference in New Issue
Block a user