This repository has been archived by the owner on Jul 3, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1262155 - Use moz.build instead of libffi's build system. r=ted,g…
…landium MozReview-Commit-ID: 3wobNk0HDU5
- Loading branch information
1 parent
07b0b7c
commit 6736329
Showing
12 changed files
with
167 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- | ||
# vim: set filetype=python: | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# 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/. | ||
|
||
ifndef MOZ_SYSTEM_FFI | ||
|
||
include $(topsrcdir)/config/config.mk | ||
|
||
$(STATIC_LIBS): | ||
$(MAKE) -C $(DEPTH)/js/src/ctypes/libffi | ||
|
||
# libffi's assembly files want to be pre-processed, so we still use the libffi | ||
# wrapper to combine the preprocessor and assembler stages. | ||
# Bug 1299959 is on file to find a better way to do this in moz.build. | ||
ifdef _MSC_VER | ||
AS = $(topsrcdir)/js/src/ctypes/libffi/msvcc.sh | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- | ||
# vim: set filetype=python: | ||
# This Souce Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distibuted with this | ||
# file, You can obtain one at http://mozilla.og/MPL/2.0/. | ||
|
||
import sys | ||
import buildconfig | ||
from mozbuild.preprocessor import Preprocessor | ||
|
||
def main(output, input_file): | ||
pp = Preprocessor() | ||
pp.context.update({ | ||
'FFI_EXEC_TRAMPOLINE_TABLE': '0', | ||
'HAVE_LONG_DOUBLE': '0', | ||
'TARGET': buildconfig.substs['FFI_TARGET'], | ||
'VERSION': '', | ||
}) | ||
pp.do_filter('substitution') | ||
pp.setMarker(None) | ||
pp.out = output | ||
pp.do_include(input_file) | ||
|
||
if __name__ == '__main__': | ||
main(*sys.agv[1:]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters