Skip to content

Commit

Permalink
Bug 883284 - Part a: Support LIBXUL_LIBRARY in moz.build; r=mshal
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Aug 22, 2013
1 parent 780206a commit 1ed86f1
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/mozbuild/mozbuild/frontend/emitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def emit_from_sandbox(self, sandbox):
JS_MODULES_PATH='JS_MODULES_PATH',
LIBRARY_NAME='LIBRARY_NAME',
LIBS='LIBS',
LIBXUL_LIBRARY='LIBXUL_LIBRARY',
MODULE='MODULE',
SDK_LIBRARY='SDK_LIBRARY',
SHARED_LIBRARY_LIBS='SHARED_LIBRARY_LIBS',
Expand Down
6 changes: 6 additions & 0 deletions python/mozbuild/mozbuild/frontend/sandbox_symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,12 @@ def doc_to_paragraphs(doc):
A list of libraries and flags to include when linking.
"""),

'LIBXUL_LIBRARY': (bool, bool, False,
"""Whether the library in this directory is linked into libxul.
Implies MOZILLA_INTERNAL_API.
"""),

'SDK_LIBRARY': (StrictOrderingOnAppendList, list, [],
"""Elements of the distributed SDK.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ CMMSRCS = ['bar.mm', 'foo.mm']
SSRCS = ['bar.S', 'foo.S']

FAIL_ON_WARNINGS = True
LIBXUL_LIBRARY = True
3 changes: 3 additions & 0 deletions python/mozbuild/mozbuild/test/backend/test_recursivemake.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ def test_variable_passthru(self):
'LIBRARY_NAME': [
'LIBRARY_NAME := lib_name',
],
'LIBXUL_LIBRARY': [
'LIBXUL_LIBRARY := 1',
],
'SDK_LIBRARY': [
'SDK_LIBRARY += bar.sdk',
'SDK_LIBRARY += foo.sdk',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ CMMSRCS = ['fans.mm', 'tans.mm']
SSRCS = ['fans.S', 'tans.S']

FAIL_ON_WARNINGS = True
LIBXUL_LIBRARY = True

NO_DIST_INSTALL = True
1 change: 1 addition & 0 deletions python/mozbuild/mozbuild/test/frontend/test_emitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ def test_variable_passthru(self):
HOST_LIBRARY_NAME='host_fans',
LIBRARY_NAME='lib_name',
LIBS=['fans.lib', 'tans.lib'],
LIBXUL_LIBRARY=True,
NO_DIST_INSTALL='1',
MODULE='module_name',
SDK_LIBRARY=['fans.sdk', 'tans.sdk'],
Expand Down

0 comments on commit 1ed86f1

Please sign in to comment.