mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Enforce MODULE_NAME requirement for static builds.
This commit is contained in:
parent
53da1fccd2
commit
6e54a93688
@ -408,6 +408,20 @@ ifdef IS_COMPONENT
|
||||
EXTRA_DSO_LDOPTS += $(MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS)
|
||||
endif # IS_COMPONENT
|
||||
|
||||
#
|
||||
# Enforce the requirement that MODULE_NAME must be set
|
||||
# for components in static builds
|
||||
#
|
||||
ifdef IS_COMPONENT
|
||||
ifdef EXPORT_LIBRARY
|
||||
ifndef FORCE_SHARED_LIB
|
||||
ifndef MODULE_NAME
|
||||
$(error MODULE_NAME is required for components which may be used in static builds)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
#
|
||||
# MacOS X specific stuff
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user