Skip to content

Commit

Permalink
Bug 973142 - Get rid of the MOZILLA_INTERNAL_API makefile variable; r…
Browse files Browse the repository at this point in the history
…=glandium

It's just as easy to directly set the preprocessor macro in the moz.build
files.  Using this variable doesn't really buy us anything.

This patch also removes unused code from rdf/tests/dsds.
  • Loading branch information
ehsan committed Feb 18, 2014
1 parent 7ae701e commit 44a05e2
Show file tree
Hide file tree
Showing 30 changed files with 17 additions and 711 deletions.
3 changes: 1 addition & 2 deletions config/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,7 @@ ifdef _MSC_VER
OS_LDFLAGS += $(DELAYLOAD_LDFLAGS)
endif # _MSC_VER

# Does the makefile specifies the internal XPCOM API linkage?
ifneq (,$(MOZILLA_INTERNAL_API)$(LIBXUL_LIBRARY))
ifneq (,$(LIBXUL_LIBRARY))
DEFINES += -DMOZILLA_INTERNAL_API
endif

Expand Down
1 change: 0 additions & 1 deletion intl/unicharutil/util/internal/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ LOCAL_INCLUDES += $(MOZ_ICU_CFLAGS)
endif

DIST_INSTALL = 1
MOZILLA_INTERNAL_API = 1
1 change: 0 additions & 1 deletion intl/unicharutil/util/internal/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ LOCAL_INCLUDES += [
'..',
'../../src',
]

6 changes: 0 additions & 6 deletions profile/dirserviceprovider/src/Makefile.in

This file was deleted.

2 changes: 2 additions & 0 deletions profile/dirserviceprovider/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ LIBRARY_NAME = 'profdirserviceprovider_s'

# we don't want the shared lib
FORCE_STATIC_LIB = True

DEFINES['MOZILLA_INTERNAL_API'] = True
3 changes: 2 additions & 1 deletion python/mozbuild/mozbuild/frontend/sandbox_symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,8 @@ def __new__(cls, sandbox, value=""):
'LIBXUL_LIBRARY': (bool, bool,
"""Whether the library in this directory is linked into libxul.
Implies ``MOZILLA_INTERNAL_API`` and ``FORCE_STATIC_LIB``.
Implies ``FORCE_STATIC_LIB`` and the ``MOZILLA_INTERNAL_API``
preprocessor macro.
""", None),

'LOCAL_INCLUDES': (StrictOrderingOnAppendList, list,
Expand Down
2 changes: 0 additions & 2 deletions rdf/tests/dsds/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

MOZILLA_INTERNAL_API = 1

EXTRA_DSO_LDOPTS = \
-L$(DIST)/bin \
$(XPCOM_LIBS) \
Expand Down
9 changes: 0 additions & 9 deletions rdf/tests/dsds/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

SOURCES += [
'nsRDFDataSourceDS.cpp',
'nsRDFDataSourceFactory.cpp',
]

LIBRARY_NAME = 'rdfdsds'

IS_COMPONENT = True

RESOURCE_FILES.samples.rdf += [
'DataSourceViewer.css',
'DataSourceViewer.xul',
Expand Down
86 changes: 0 additions & 86 deletions rdf/tests/dsds/nsRDFDOMDataSource.cpp

This file was deleted.

Loading

0 comments on commit 44a05e2

Please sign in to comment.