Commit Graph

205 Commits

Author SHA1 Message Date
yury
064375ea72 * android: Use ICU to get timezone information if running on an Android version where libc does not implement timezone.
git-svn-id: trunk@34348 -
2016-08-19 14:57:02 +00:00
yury
c2ba68df44 * android: Added functions GetSystemProperty() and SystemApiLevel().
git-svn-id: trunk@34346 -
2016-08-19 14:50:18 +00:00
yury
b10e4aa27b * android: cwstring: Fixed crash on unload in some cases. Allow ICU usage from other units.
git-svn-id: trunk@34345 -
2016-08-19 14:48:09 +00:00
yury
5e9d826d04 * android: Explicitly specified import library name.
git-svn-id: trunk@34333 -
2016-08-18 14:39:54 +00:00
yury
2630f3c498 * android: Properly initialize time zone information.
git-svn-id: trunk@34332 -
2016-08-18 14:03:34 +00:00
nickysn
5306ee552b * regenerated makefiles with latest fpcmake
git-svn-id: trunk@34008 -
2016-06-18 01:00:45 +00:00
nickysn
a58dd988a4 * regenerate makefiles after the fpcmake update
git-svn-id: trunk@34002 -
2016-06-17 22:05:59 +00:00
Jonas Maebe
2e64c63993 * fixed dependencies for lineinfo unit after r33007
* also made lnfodwrf dependent on lineinfo for all platforms,
    because both units implicitly depend on the exeinfo unit
    and if both are compiled at the same time they can fall
    over each other while writing its .ppu or .s file

git-svn-id: trunk@33039 -
2016-02-01 22:52:50 +00:00
Jonas Maebe
30a3ad7538 * fixed cpu unit dependencies for i386 after r32857 (part of mantis #29439)
git-svn-id: trunk@32967 -
2016-01-18 22:20:16 +00:00
yury
6f8e9ad23e * Fixed cwstring for Android after latest widestring manager changes.
git-svn-id: trunk@32538 -
2015-11-26 18:14:26 +00:00
michael
2809e98bf9 * Fix bug #0028994 (hopefully completely)
git-svn-id: trunk@32345 -
2015-11-16 14:22:59 +00:00
florian
70b8789262 o basic extended pascal support:
+ automatically loaded helper unit
  * Makefiles adapted
  * mode switch
  * mode switches reorganized
+ TimeStamp support

git-svn-id: trunk@32330 -
2015-11-15 15:13:36 +00:00
michael
b7e52c632f Hopefully fix compilation (bug ID 28994)
git-svn-id: trunk@32328 -
2015-11-15 11:54:15 +00:00
yury
ae33685b9d * i386-android: Use PIC in the program start-up code.
git-svn-id: trunk@32035 -
2015-10-13 11:21:03 +00:00
yury
63813f3e96 * android: Fixed crash when using writeln during shared library finalization on Android 4.4+.
git-svn-id: trunk@32033 -
2015-10-12 22:35:51 +00:00
yury
accf3a6150 * arm-android: Use PIC in the program start-up code.
git-svn-id: trunk@32024 -
2015-10-12 08:58:19 +00:00
yury
6fc8059a1f * arm-android: Simplified _haltproc for dll.
git-svn-id: trunk@32022 -
2015-10-12 08:41:17 +00:00
yury
2116552b36 * android: Simply jump to the libc exit().
git-svn-id: trunk@32008 -
2015-10-10 23:59:28 +00:00
yury
83ad80d41f * Added predefined ICU versions for newer Android version.
* Fixed search of unknown ICU versions.
* Do UTF-8 conversion by RTL if ICU can not be loaded.

git-svn-id: trunk@31865 -
2015-09-27 22:37:54 +00:00
yury
75b3ce2d2c * Added a comment.
git-svn-id: trunk@31762 -
2015-09-18 14:40:39 +00:00
yury
835e3efdad * i386-android: Library startup code is PIC compatible.
git-svn-id: trunk@31761 -
2015-09-18 14:40:27 +00:00
yury
b6b072e030 * android: install unicodedata and unicodenumtable units.
git-svn-id: trunk@31724 -
2015-09-16 17:42:12 +00:00
yury
5cab55be27 * android: Fixed ansi-unicode conversion when DefaultSystemCodePage is changed.
git-svn-id: trunk@31722 -
2015-09-16 17:34:39 +00:00
yury
f9f8c931f3 * arm-android: Do not use register r4, since it must be preserved. Use r3 instead.
git-svn-id: trunk@31719 -
2015-09-16 16:28:41 +00:00
yury
30b8137994 * arm-android: PIC compatible library startup code.
git-svn-id: trunk@31682 -
2015-09-14 23:22:26 +00:00
nickysn
2e3cb70489 * regenerated makefiles after adding the win16 target
git-svn-id: trunk@31525 -
2015-09-05 11:02:54 +00:00
Jonas Maebe
89418d23e5 * regenerated Makefiles with Linux/AArch64 support
git-svn-id: trunk@30891 -
2015-05-20 20:15:10 +00:00
Jonas Maebe
fa328436ab * regenerated for iphonesim/x86-64
git-svn-id: trunk@29974 -
2015-02-23 22:56:41 +00:00
Jonas Maebe
3d01d4ceb1 * regenerated with Darwin/AArch64 support
git-svn-id: trunk@29950 -
2015-02-23 22:54:53 +00:00
yury
ed770f4485 * Use threadvar for the module name buffer to be thread-safe.
git-svn-id: trunk@29422 -
2015-01-06 11:20:20 +00:00
yury
870b4d1ffe * On Android the dladdr() function does not return full path to modules. Emulate dladdr() by reading the /proc/self/maps to get full path to modules.
git-svn-id: trunk@29418 -
2015-01-05 15:26:16 +00:00
yury
b401a90eab * Re-enable UnixGetModuleByAddrHook for Android to fix back traces for libraries. Get dladdr() dynamically at run-time to support older versions of Android.
git-svn-id: trunk@29401 -
2015-01-05 00:45:07 +00:00
marco
d407b668d1 * version updated to 3.1.1
git-svn-id: trunk@29399 -
2015-01-04 21:09:04 +00:00
florian
3988de549b * updates for make 3.82
git-svn-id: trunk@29357 -
2014-12-29 11:44:35 +00:00
pierre
3d34a8a3b0 Makefiles updated with fpcmake rev 27428
git-svn-id: trunk@27508 -
2014-04-10 09:58:17 +00:00
pierre
ae8679ec60 Remove varutils and variants units which are now in rtl-objpas package
git-svn-id: trunk@27504 -
2014-04-10 09:48:38 +00:00
marco
a818559481 * clocale moved to rtl-extra.
git-svn-id: trunk@27376 -
2014-03-30 15:27:35 +00:00
marco
c6424b2e0b * moved unit terminfo to rtl-console
git-svn-id: trunk@27353 -
2014-03-29 21:00:50 +00:00
marco
959ea7f5bb * printer unit moved. Amiga unit also moved but it is not actively used.
git-svn-id: trunk@27351 -
2014-03-29 20:35:28 +00:00
marco
7f8a9bcf6e * serial to rtl-extra
git-svn-id: trunk@27350 -
2014-03-29 20:06:36 +00:00
marco
c465d3d64a * moving 4 cp9* units. These are 16-bit and big.
git-svn-id: trunk@27349 -
2014-03-29 19:43:13 +00:00
marco
ed3a49372d * strutils moved to packages/rtl-objpas
git-svn-id: trunk@27339 -
2014-03-29 17:51:44 +00:00
yury
73c26bd6be * mipsel-android: Regenerated makefiles. From now the mipsel-android target can be built and used.
git-svn-id: trunk@26705 -
2014-02-07 12:37:17 +00:00
yury
b21471a772 * mipsel-android: Fixed calling library startup code.
git-svn-id: trunk@26699 -
2014-02-07 10:16:43 +00:00
yury
bb1a2d21ab * mipsel-android: Fixed library loading.
git-svn-id: trunk@26689 -
2014-02-06 19:09:58 +00:00
yury
b995da1e06 + Added mipsel-android startup files by Vsevolod Alekseyev.
git-svn-id: trunk@26688 -
2014-02-06 18:33:23 +00:00
Tomas Hajny
ce4cb437e2 + character sets for central Europe added also to Makefiles as implicit units
git-svn-id: trunk@26526 -
2014-01-20 00:20:11 +00:00
marco
f09374a197 * winsock(and -2), sockets and gpm to rtl-extra.
git-svn-id: trunk@26426 -
2014-01-11 19:45:37 +00:00
marco
876c2c5cca * also remove variants.
git-svn-id: trunk@26406 -
2014-01-07 08:13:07 +00:00
marco
41ef2a7a29 * more makefile fixes last change, mantis #25500
git-svn-id: trunk@26405 -
2014-01-06 21:01:01 +00:00
paul
14a34239cc rtl: add cp856 to makefiles
git-svn-id: trunk@26387 -
2014-01-05 06:03:28 +00:00
marco
a001e12d04 * rtl-console initial version.
git-svn-id: trunk@26372 -
2014-01-03 22:19:02 +00:00
marco
ebe262762a * Clean out of $i textrec and filerec includes that are redundant now that cpstrrtl exposes
those records via system. 

git-svn-id: trunk@26356 -
2014-01-02 13:26:09 +00:00
yury
90b8e051cb * Fixed crash during dll loading on android-i386 (Stupid error because I am not comfortable with at&t i386 assembler syntax). Issue #25435.
git-svn-id: trunk@26269 -
2013-12-23 12:02:50 +00:00
nickysn
1bea98995b * regenerated fpcmake makefiles after r25642
git-svn-id: trunk@25644 -
2013-10-05 10:11:27 +00:00
yury
7e5af23ace * Android: There are cases when libc "environ" var may be NULL. Check for such case and provide fake valid environment. Bug #24519.
git-svn-id: trunk@24804 -
2013-06-04 15:21:29 +00:00
pierre
d1d0ed3c16 Regenerate all Makefiles with an up-to-date fpcmake binary
git-svn-id: trunk@24371 -
2013-04-29 12:40:50 +00:00
pierre
78a7043352 Regenerate all Makefiles with an up-to-date fpcmake binary (dummy commit)
git-svn-id: trunk@24367 -
2013-04-29 12:30:54 +00:00
florian
3d7033d81e * Makefiles regenerated
git-svn-id: trunk@24325 -
2013-04-25 20:25:57 +00:00
paul
a592e77f35 rtl: add missing windows codepages (mantis #0024294)
git-svn-id: trunk@24295 -
2013-04-22 01:48:12 +00:00
paul
db357320d7 rtl: install all cpXXX .ppu and .o files
git-svn-id: trunk@23802 -
2013-03-12 11:44:15 +00:00
paul
5157304998 rtl: build fpwidestring for the same platforms as character unit
git-svn-id: trunk@23801 -
2013-03-12 03:23:08 +00:00
paul
e379daaf9c compiler, rtl: move cpXXXX.pas files from compiler to RTL\charmaps directory and cleanup them, enable charmaps building for the majority of targets
git-svn-id: trunk@23799 -
2013-03-12 01:35:25 +00:00
yury
5d061a7efa * Do not use persistent register r5 in the library init code. It fixes crash during library load on some versions of Android. Issue #23974.
* Made the startup code Thumb-safe.

git-svn-id: trunk@23694 -
2013-03-04 23:49:41 +00:00
yury
8bce7058fc * Build unixcp for android too.
git-svn-id: trunk@23674 -
2013-02-28 20:01:50 +00:00
yury
3fbe35da4b * Reverted r23646, since missing clocale has been committed.
git-svn-id: trunk@23649 -
2013-02-24 13:29:30 +00:00
yury
65d610902b + Forgot to commit dummy clocale. It has caused Issue #23931.
git-svn-id: trunk@23648 -
2013-02-24 13:27:50 +00:00
svenbarth
f229d601de Fix for Mantis #23931.
rtl/android/Makefile.fpc:
  * clocale.pp is located in $(UNIXINCDIR)

git-svn-id: trunk@23646 -
2013-02-22 17:32:58 +00:00
yury
9712b36821 + Add dummy clocale unit for Android to fix packages compilation.
git-svn-id: trunk@23636 -
2013-02-20 16:09:06 +00:00
yury
c27dcfd5b1 * Fixed building of Android RTL with newer versions of make. Issue #23911.
* Disabled building of clocale, since it does not work anyway. A new android implementation is needed.
* Disabled building of x86 and ports units. They are useless on Android.

git-svn-id: trunk@23635 -
2013-02-20 15:53:13 +00:00
florian
4eb660699c * patch by Takeda Matsuki to fix building for android with make 3.82, resolves #23911
git-svn-id: trunk@23632 -
2013-02-19 20:52:47 +00:00
yury
cf52a07470 * Updated makefiles.
git-svn-id: trunk@23609 -
2013-02-13 17:46:54 +00:00
yury
9471fb4f9e * Added ICU version of Android 4.1.
* Increment by 2 when finding an unknown ICU version.

git-svn-id: branches/targetandroid@23483 -
2013-01-22 09:47:31 +00:00
yury
0abe1d270b * Fixed file description.
git-svn-id: branches/targetandroid@23450 -
2013-01-18 23:27:45 +00:00
yury
04fd0eeee2 * Simplify arm startup code.
git-svn-id: branches/targetandroid@23449 -
2013-01-18 23:27:02 +00:00
yury
2aa9111b7c * Fixed file description.
git-svn-id: branches/targetandroid@23448 -
2013-01-18 23:25:58 +00:00
yury
3ed10a6936 * Rewrite initialization code for i386-android. i386-android works.
git-svn-id: branches/targetandroid@23447 -
2013-01-18 23:19:29 +00:00
yury
12fe3bb65d * Removed leftover from my experiments (calling directly pascal main).
git-svn-id: branches/targetandroid@23434 -
2013-01-17 22:28:59 +00:00
yury
862b608eb8 * Thread safety.
git-svn-id: branches/targetandroid@23429 -
2013-01-17 16:49:23 +00:00
yury
04902a15f9 * Fixed AnsiStrLComp() and AnsiStrLIComp().
git-svn-id: branches/targetandroid@23424 -
2013-01-17 12:02:35 +00:00
yury
f55c3a0331 * Fixed stupid copy-paste error.
git-svn-id: branches/targetandroid@23423 -
2013-01-17 11:49:55 +00:00
yury
2fc220cc6c * Regenerated makefiles.
git-svn-id: branches/targetandroid@23410 -
2013-01-16 14:52:36 +00:00
yury
d26f0552a0 * Sync with trunk r23404.
* Regenerated makefiles.

git-svn-id: branches/targetandroid@23405 -
2013-01-16 13:21:51 +00:00
yury
87f14b072f * Use collation when comparing strings.
git-svn-id: branches/targetandroid@23402 -
2013-01-16 10:50:52 +00:00
yury
9330507f8d * Implemented Unicode string manager for Android. It uses ICU library libicuuc.so. Note: ICU on Android has limited number of code pages. So don't expect support for DOS code pages or other exotic code pages.
git-svn-id: branches/targetandroid@23382 -
2013-01-14 14:20:44 +00:00
yury
7322164c0a * I've found that libc on Android does not implement widechar case functions such as towupper(). Such functions are just wrappers over regular char functions. Therefore the whole cwstring unit is useless for Android. For now I've added stub cwstring unit for Android and reverted all Android specific changes in unix/cwstring.pp. Later, Unicode manager for Androud should be implemented using libicuuc, which is default Android lib.
git-svn-id: branches/targetandroid@23301 -
2013-01-02 18:47:09 +00:00
yury
26c1ab9375 * Added uuchar unit to build for android.
git-svn-id: branches/targetandroid@23298 -
2013-01-02 15:41:36 +00:00
yury
b0fb02e4c9 * Updated Makefile
git-svn-id: branches/targetandroid@23288 -
2013-01-02 00:04:41 +00:00
yury
5fbb67a303 * cprt0.as is not needed, since we link to libc always.
git-svn-id: branches/targetandroid@23287 -
2013-01-02 00:03:42 +00:00
yury
97dd19b04f * cprt0.as is not needed, since we link to libc always.
git-svn-id: branches/targetandroid@23286 -
2013-01-02 00:01:43 +00:00
yury
6ccb152647 * Rework of Android startup code. It is needed to always link to libc on android to implement finalization and environment variables in shared libraries.
* Cleanup of Android linker.
* Use only INSERT command in the linker script to inject custom .fpc sections. Whole linker script duplication is nor needed anymore.
* Use BFD linker, since GOLD linker does not support INSERT command. Other incompatibilities may also exist.
* Enable tf_smartlink_sections for i386-android.
* i386-android is broken after this commit. Will be fixed later.

git-svn-id: branches/targetandroid@23284 -
2013-01-01 23:49:12 +00:00
Jonas Maebe
21e162604c * fixed "make install" for jvm targets
+ implemented top level "make (cross)zipinstall" for jvm targets
    (mantis #23005)

git-svn-id: trunk@22493 -
2012-09-27 21:35:17 +00:00
tom_at_work
75e57faba1 re-apply the changes of r22045 to correct files after recent revert
git-svn-id: branches/targetandroid@22048 -
2012-08-09 14:13:51 +00:00
tom_at_work
19238eafde - revert r22045: applied changes to wrong files, i.e. linux system files, instead of android ones
git-svn-id: branches/targetandroid@22047 -
2012-08-09 13:57:34 +00:00
tom_at_work
810adb2f65 Merge with trunk r22040. Regenerated makefiles.
git-svn-id: branches/targetandroid@22046 -
2012-08-09 08:12:34 +00:00
tom_at_work
787ca1c0bc Made cprt0 startup files to compile. Static executables using them likely do not work though.
Removed obsolete startup files (?prt21*).

git-svn-id: branches/targetandroid@22045 -
2012-08-09 08:05:38 +00:00
tom_at_work
4150f0a2fb Rebase with r21814
git-svn-id: branches/targetandroid@21815 -
2012-07-07 23:09:20 +00:00
tom_at_work
77a85b7448 * basic android/x86 support
git-svn-id: branches/targetandroid@21296 -
2012-05-14 21:14:12 +00:00
Jonas Maebe
834026bfb5 * synchronised with trunk up to r21067
git-svn-id: branches/jvmbackend@21068 -
2012-04-26 21:24:20 +00:00
tom_at_work
a7b48be598 bugfixes:
- do not compile ipc unit for android, not supported
- fix geterrnolocation external name
- implement dummy getdomainname; does not exist in android
- remove wrong 'if defined(android)' clauses

git-svn-id: branches/targetandroid@21065 -
2012-04-26 13:15:52 +00:00
tom_at_work
f1fed11cfa - missing makefile
git-svn-id: branches/targetandroid@21063 -
2012-04-26 09:53:37 +00:00
tom_at_work
c520f713f4 - commit missing new files
git-svn-id: branches/targetandroid@21062 -
2012-04-26 09:41:13 +00:00
Jonas Maebe
aee5380ae0 * merged trunk up to r20882
o support for the new codepage-aware ansistrings in the jvm branch
   o empty ansistrings are now always represented by a nil pointer rather than
     by an empty string, because an empty string also has a code page which
     can confuse code (although this will make ansistrings harder to use
     in Java code)
   o more string helpers code shared between the general and jvm rtl
   o support for indexbyte/word in the jvm rtl (warning: first parameter
     is an open array rather than an untyped parameter there, so
     indexchar(pcharvar^,10,0) will be equivalent to
     indexchar[pcharvar^],10,0) there, which is different from what is
     intended; changing it to an untyped parameter wouldn't help though)
   o default() support is not yet complete
   o calling fpcres is currently broken due to limitations in
     sysutils.executeprocess() regarding handling unix quoting and
     the compiler using the same command lines for scripts and directly
     calling external programs
   o compiling the Java compiler currently requires adding ALLOW_WARNINGS=1
     to the make command line

git-svn-id: branches/jvmbackend@20887 -
2012-04-15 15:54:10 +00:00
Jonas Maebe
85ef5e109c + assert() support for the JVM target (currently ignores the Java classloader
assertionStatus setting)

git-svn-id: branches/jvmbackend@20388 -
2012-02-20 11:28:59 +00:00
Jonas Maebe
0d5b2b84a8 + Android/JVM target, including a translation of the Android r14 SDK
(= Android 4.0) java headers: java.*, javax.*, org.*, junit.*, android.*).
    The RTL can also be used to target earlier versions of the Android
    platform, but you manually have to take care of not using APIs that
    weren't available yet. Adding separate units for separate platform
    versions would only partly solve the problem, because some of the
    classes used inside the system unit have also changed across
    versions.

    Use -Tandroid while compiling to select the Android OS as target
    platform.

git-svn-id: branches/jvmbackend@19830 -
2011-12-12 02:34:34 +00:00