README
1 STLport for Android
2
3 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
4 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
5
6 This feature is currently in beta. In case of issue
7 please contact the android-ndk support forum or
8 file bugs at http://b.android.com
9
10 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
11 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
12
13 This directory contains a port of STLport for Android, which provides
14 a simple STL implementation. Note that it currently does not support
15 C++ exceptions and RTTI. Support for wchar_t and locales is probably buggy.
16
17 You can either use it as a static or shared library.
18
19 1/ The static library is recommended if you will only produce
20 one shared library for your project. All necessary STLport functions
21 will be added to it. This option should also generate smaller
22 overall binaries.
23
24 2/ The shared library, is recommended if you want to produce
25 several shared libraries in your project, because it avoids copying the
26 same STLport functions to each one of them, and having different instances
27 of the same global variables (which can easily conflict or result in
28 undefined behaviour).
29
30 To use the *static* library, do the following:
31
32 a. Add 'stlport_static' to your module's LOCAL_STATIC_LIBRARIES
33 variable.
34
35 b. At the end of your Android.mk, import the module with:
36
37 $(call import-module,android/stlport)
38
39
40 To use the *shared* library, do the following:
41
42 a. Add 'stlport_shared' to your module's LOCAL_SHARED_LIBRARIES
43 variable.
44
45 b. At the end of your Android.mk, import them module with
46 the same line described above for the static case.
47
48 Note that you will need, in your application, to explicitely load
49 the 'stlport_shared' library before any library that depends on it.
50 For example:
51
52 static {
53 System.loadLibrary("stlport_shared");
54 System.loadLibrary("foo");
55 System.loadLibrary("bar");
56 }
57
58 If both libfoo.so and libbar.so depend on STLport.
59
60 You can build the STLport unit test program by doing the following:
61
62 cd $NDK/sources/android/stlport/test
63 $NDK/ndk-build
64
65 This generates a standalone executable under libs/armeabi/test_stlport.
66 Note that it must be run in a writable directory (it needs to write then
67 read a few files). Here's an example on how to run it:
68
69 adb push libs/armeabi/test_stlport /data/local/
70 adb shell chmod 755 /data/local/test_stlport
71 adb shell 'cd /data/local; test_stlport'
72
73 Note that a few unit tests fail at the moment, they should hopefully
74 fixed in a later release of this library.
75
76 VERSION INFORMATION: This module is based on STLport version 5.x.y (TODO)
77
78
README.android
README.original
1 **********************************************************************
2 * README file for STLport 5.0 *
3 * *
4 **********************************************************************
5
6 This directory contains the STLport-5.0 release.
7
8 What's inside :
9
10 README - this file
11 INSTALL - installation instructions
12
13 bin - installation directory for STLport unit tests;
14 it may contain more subdirs, if you use
15 crosscompilation
16 build/lib - build directory for STLport library (if you use
17 STLport iostreams and/or locale only)
18 build/test/unit - build directory for regression (unit) tests
19 build/test/eh - build directory for exception handling tests
20 stlport - main STLport include directory
21 src - source for iostreams implementation and other parts
22 that aren't pure template code
23 lib - installation directory for STLport library (if you
24 use STLport iostreams and/or locale only);
25 it may contain more subdirs, if you use
26 crosscompilation
27 test/unit - unit (regression) tests
28 test/eh - exception handling test using STLport iostreams
29 etc - miscellanous files (ChangeLog, TODO, scripts, etc.)
30
31 GETTING STLPORT
32
33 To download the latest version of STLport, please be sure to visit
34 https://sourceforge.net/project/showfiles.php?group_id=146814
35
36 LEGALESE
37
38 This software is being distributed under the following terms:
39
40 *
41 *
42 * Copyright (c) 1994
43 * Hewlett-Packard Company
44 *
45 * Copyright (c) 1996-1999
46 * Silicon Graphics Computer Systems, Inc.
47 *
48 * Copyright (c) 1997
49 * Moscow Center for SPARC Technology
50 *
51 * Copyright (c) 1999-2003
52 * Boris Fomitchev
53 *
54 * This material is provided "as is", with absolutely no warranty expressed
55 * or implied. Any use is at your own risk.
56 *
57 * Permission to use or copy this software for any purpose is hereby granted
58 * without fee, provided the above notices are retained on all copies.
59 * Permission to modify the code and to distribute modified code is granted,
60 * provided the above notices are retained, and a notice that the code was
61 * modified is included with the above copyright notice.
62 *
63
64 **********************************************************************
65