Skip to content

Commit

Permalink
Added support for ADDON_DEFINES from addon_config.mk for make files
Browse files Browse the repository at this point in the history
  • Loading branch information
roymacdonald committed Oct 27, 2024
1 parent fcc4fba commit f9d9375
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ define parse_addon
$(eval ADDON_PKG_CONFIG_LIBRARIES= ) \
$(eval ADDON_FRAMEWORKS= ) \
$(eval ADDON_LIBS_EXCLUDE= ) \
$(eval ADDON_DEFINES= ) \
$(eval ADDON_SOURCES_EXCLUDE= ) \
$(call parse_addons_includes, $(addon)) \
$(eval ADDON_INCLUDES=$(PARSED_ADDONS_INCLUDES)) \
Expand Down Expand Up @@ -159,6 +160,7 @@ define parse_addon
$(eval TMP_PROJECT_ADDONS_LDFLAGS += $(ADDON_LDFLAGS)) \
$(eval TMP_PROJECT_ADDONS_PKG_CONFIG_LIBRARIES += $(ADDON_PKG_CONFIG_LIBRARIES)) \
$(eval TMP_PROJECT_ADDONS_FRAMEWORKS += $(ADDON_FRAMEWORKS)) \
$(eval TMP_PROJECT_ADDONS_DEFINES += $(ADDON_DEFINES)) \
$(eval PROJECT_AFTER += $(ADDON_AFTER)) \
$(if $(strip $(ADDON_SOURCES)), \
$(info ADDON_SOURCES_EXCLUDE: $(ADDON_SOURCES_EXCLUDE)) \
Expand Down Expand Up @@ -227,7 +229,7 @@ define parse_addon
$(eval PROJECT_ADDONS += $(addon_dep)) \
$(call parse_addon,$(addon_dep)) \
) \
)
)
endef


Expand All @@ -254,6 +256,7 @@ PROJECT_ADDONS_FRAMEWORKS = $(call uniq,$(TMP_PROJECT_ADDONS_FRAMEWORKS))
PROJECT_ADDONS_SOURCE_FILES = $(call uniq,$(TMP_PROJECT_ADDONS_SOURCE_FILES))
PROJECT_ADDONS_OBJ_FILES = $(call uniq,$(TMP_PROJECT_ADDONS_OBJ_FILES))
PROJECT_ADDONS_DATA = $(call uniq,$(TMP_PROJECT_ADDONS_DATA))
PROJECT_ADDONS_DEFINES = $(call uniq,$(TMP_PROJECT_ADDONS_DEFINES))
VPATH += $(call uniq, $(ADDON_PATHS))


Expand Down

0 comments on commit f9d9375

Please sign in to comment.