Bug 912908 - Build xpcom/sample as shared library. r=joey

This commit is contained in:
Kaizhen Li 2013-09-11 09:46:06 +08:00
Родитель 50d59a93a9
Коммит 5a84dbc913
2 изменённых файлов: 13 добавлений и 0 удалений

Просмотреть файл

@ -10,6 +10,15 @@ SHORT_LIBNAME = xpcomsmp
# IS_COMPONENT indicates that this makefile builds a component shared library.
IS_COMPONENT = 1
# NOTE:
####################################################################
# Variable assignment(s) should be maintained within moz.build files
# whenever possible. Migrate existing Makefile.in content into the
# corresponding moz.build file, then run 'mach configure' to determine
# if the variable is suppported. If not supported / not yet converted-
# open a Build::Config bug requesting conversion of the variable.
####################################################################
# If this is Makefile builds a component, MODULE_NAME must match the module
# name specified in NS_IMPL_NSGETMODULE
MODULE_NAME = nsSampleModule

Просмотреть файл

@ -27,6 +27,10 @@ EXTRA_COMPONENTS += [
'nsSample.manifest',
]
# FORCE_SHARED_LIB tells the build system that this should be a shared library,
# even in a static build.
FORCE_SHARED_LIB = True
# LIBRARY_NAME names the library generated by this makefile,
# i.e. dist/bin/components/libxpcomsample.so
LIBRARY_NAME = 'xpcomsample'