2016-07-14 16:16:42 +00:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 20:47:18 +00:00
|
|
|
# vim: set filetype=python:
|
2012-05-21 11:12:37 +00:00
|
|
|
# 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/.
|
1998-08-19 20:42:14 +00:00
|
|
|
|
2014-10-29 04:29:42 +00:00
|
|
|
Library('stlport')
|
|
|
|
# Keep the same name as the NDK-provided library, while using a shorter
|
|
|
|
# name for the Library for convenience in moz.build.
|
|
|
|
STATIC_LIBRARY_NAME = 'stlport_static'
|
|
|
|
|
2013-10-24 17:51:00 +00:00
|
|
|
FORCE_STATIC_LIB = True
|
2013-11-01 01:30:45 +00:00
|
|
|
|
|
|
|
SOURCES += [
|
|
|
|
'src/allocators.cpp',
|
|
|
|
'src/bitset.cpp',
|
|
|
|
'src/codecvt.cpp',
|
|
|
|
'src/collate.cpp',
|
|
|
|
'src/complex.cpp',
|
|
|
|
'src/complex_io.cpp',
|
|
|
|
'src/complex_trig.cpp',
|
|
|
|
'src/ctype.cpp',
|
|
|
|
'src/dll_main.cpp',
|
|
|
|
'src/facets_byname.cpp',
|
|
|
|
'src/fstream.cpp',
|
|
|
|
'src/ios.cpp',
|
|
|
|
'src/iostream.cpp',
|
|
|
|
'src/istream.cpp',
|
|
|
|
'src/locale.cpp',
|
|
|
|
'src/locale_catalog.cpp',
|
|
|
|
'src/locale_impl.cpp',
|
|
|
|
'src/messages.cpp',
|
|
|
|
'src/monetary.cpp',
|
|
|
|
'src/num_get.cpp',
|
|
|
|
'src/num_get_float.cpp',
|
|
|
|
'src/num_put.cpp',
|
|
|
|
'src/num_put_float.cpp',
|
|
|
|
'src/numpunct.cpp',
|
|
|
|
'src/ostream.cpp',
|
|
|
|
'src/sstream.cpp',
|
|
|
|
'src/stdio_streambuf.cpp',
|
|
|
|
'src/string.cpp',
|
|
|
|
'src/strstream.cpp',
|
|
|
|
'src/time_facets.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
SOURCES += [
|
|
|
|
'src/c_locale.c',
|
|
|
|
'src/cxa.c',
|
|
|
|
]
|
2013-11-27 13:55:07 +00:00
|
|
|
|
|
|
|
DEFINES['_GNU_SOURCE'] = True
|
2013-12-31 09:06:11 +00:00
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'stlport',
|
|
|
|
]
|
|
|
|
|
2014-03-05 00:39:06 +00:00
|
|
|
DISABLE_STL_WRAPPING = True
|
2014-04-24 02:51:42 +00:00
|
|
|
NO_VISIBILITY_FLAGS = True
|
2014-03-21 05:22:02 +00:00
|
|
|
|
|
|
|
# Suppress warnings in third-party code.
|
|
|
|
if CONFIG['GNU_CXX']:
|
|
|
|
CXXFLAGS += [
|
|
|
|
'-Wno-empty-body',
|
|
|
|
'-Wno-type-limits',
|
2014-08-26 19:07:59 +00:00
|
|
|
'-Wno-unused-local-typedefs',
|
2014-03-21 05:22:02 +00:00
|
|
|
]
|
2015-05-07 07:25:18 +00:00
|
|
|
|
|
|
|
# Force to build a static library, instead of a fake library, without
|
|
|
|
# installing it in dist/lib.
|
|
|
|
NO_EXPAND_LIBS = True
|
2015-08-28 03:44:53 +00:00
|
|
|
|
2015-10-20 01:05:20 +00:00
|
|
|
# We allow warnings for third-party code that can be updated from upstream.
|
2015-08-28 03:44:53 +00:00
|
|
|
ALLOW_COMPILER_WARNINGS = True
|
2016-02-02 08:26:56 +00:00
|
|
|
|
|
|
|
CXXFLAGS += [
|
|
|
|
'-fuse-cxa-atexit',
|
|
|
|
]
|