Commit Graph

2923 Commits

Author SHA1 Message Date
Svyatoslav Scherbina 081b990863 Don't mark library needed if it was touched while looking for cnames.*
Also do minor refactoring.
2017-10-11 16:48:33 +03:00
Nikolay Igotti de2cfce12f utsname.h to iOS as well. 2017-10-11 10:19:17 +03:00
Nikolay Igotti 2343eafd5e Add utsname.h to POSIX on OSX 2017-10-11 09:08:59 +03:00
Vasily Levchenko 0f2c81f71a [klib] fix reading -target option 2017-10-11 05:55:03 +03:00
Vasily Levchenko de524c38a3 [platform libs][build] pass platform to klib utility 2017-10-11 05:55:03 +03:00
Vasily Levchenko aba8abcebd [build] crossDistPlatformLibs 2017-10-11 05:54:11 +03:00
Nikolay Igotti f50c9c3ae3 Couple missing bits in POSIX libs 2017-10-10 22:24:06 +03:00
Aleksey Kladov 424a330f7e Custom progress reporting for dependency downloader 2017-10-10 15:37:41 +03:00
Nikolay Igotti f33df4c75e Add Gradle task to build cross-target platform libs (#927) 2017-10-10 14:56:35 +03:00
SvyatoslavScherbina faa5ba0e7c Move platform libs to dist/klib/$target (#926) 2017-10-10 14:48:42 +03:00
Igor Chevdar 7b4b857e2b Added utsname to posix.def 2017-10-10 12:42:16 +03:00
SvyatoslavScherbina 8bc552632d Platform lib fixes and improvements (#925)
* Build platform klibs with `-nodefaultlibs`

* Improve android platform libs:

* Add dependencies
* Add header filters
* Add glescommon
* Do minor cleanup

* Add minor code improvements
2017-10-10 11:41:52 +03:00
Ilya Matveev 5eed839f91 samples: Blacklist some xcode environment variables
This patch unsets some Xcode environment variables in gradle
plugin and command line runner.
2017-10-10 11:38:06 +03:00
Svyatoslav Scherbina e7cea96692 Add .def files for iOS platform libs 2017-10-09 17:24:47 +03:00
Svyatoslav Scherbina c7588d7928 Use packages specified in .def files for platform libs 2017-10-09 17:24:47 +03:00
Svyatoslav Scherbina 3523a71058 Do not ignore package name from .def file in Gradle plugin 2017-10-09 17:24:47 +03:00
Svyatoslav Scherbina 509604618c Add .def file depends to dependencies of platform klibs
Also disable inconsistent dependencies.
2017-10-09 17:24:47 +03:00
Svyatoslav Scherbina 99c3c392c7 fixup! Support -nodefaultlibs flag in the interop tool 2017-10-09 17:24:47 +03:00
Ilya Matveev bf08359f0d unit-tests: Report error on test functions with incorrect signature 2017-10-09 11:38:32 +03:00
Alexander Gorshenev 3abd8e4851 Renamed x86-64 suffix to x64.
RaspberryPi was mistakenly attributed to its own architecture,
whereas it should be just ARM32.
2017-10-06 15:41:07 +03:00
Alexander Gorshenev 174e440d9d Extracted Konan dependent pieces of Stub Generator to separate components
and ported them from string manipolations to KonanTarget + KonanProperties.
2017-10-06 15:41:07 +03:00
Ilya Matveev 43a88dbcb6 Support -nodefaultlibs flag in the interop tool 2017-10-06 14:36:09 +03:00
Ilya Matveev e245a23c34 Minor improvements in recursive klib dependency support
* Support -r option in the cinterop tool.
 * Move klib resolve into separate methods.
 * Don't treat directory as a library if it doesn't contain a manifest.
 * Rework recursive library search + duplicate removal.
 * Support recursive klib processing in the cinterop tool.
2017-10-06 14:36:09 +03:00
Alexander Gorshenev a94448ba5f Specify /klib explicitly for klib install to dist/klib. 2017-10-06 13:34:19 +03:00
Alexander Gorshenev d48066bbec Updated html5 sample for the new library reality. 2017-10-06 13:34:19 +03:00
Alexander Gorshenev a4f8333c94 Klib path component is not required anymore. 2017-10-06 13:34:19 +03:00
Svyatoslav Scherbina 0efa78d4a0 Add .toCStringArray(AutofreeScope) to interop utils 2017-10-06 11:16:18 +03:00
Svyatoslav Scherbina 62bee84a26 Workaround non-unique symbol names of Objective-C category methods 2017-10-06 11:16:18 +03:00
Svyatoslav Scherbina 06e561af34 Add .reinterpret<T>() as a workaround for missing Objective-C casts 2017-10-06 11:16:18 +03:00
Svyatoslav Scherbina c6ee45a1d2 Specify SDK version explicitly when linking for iOS
If `-sdk_version` option is absent, ld infers the version from
`-syslibroot` path.

Since sysroot directory name in our dependencies differs from the
Xcode SDK names, the resulting binary didn't contain correct SDK version
specification, and this was leading to device-orientation-related bugs
on iOS 11.
2017-10-06 11:16:18 +03:00
Svyatoslav Scherbina c1b0dba1d2 Add quickfix for unsupported types in Objective-C methods 2017-10-06 11:16:18 +03:00
SvyatoslavScherbina 7795a7856a Support global variables in interop (#903) 2017-10-06 10:56:31 +03:00
Francis Lavoie 7a4aae5ff3 Fix issue for gtk sample where the default include dir for mac is incorrecly set. Added the possibility to pass a custom -I prefix to build.sh (#899) 2017-10-06 10:48:16 +03:00
Vasily Levchenko c90985ea8a [samples] samples uses platform libs 2017-10-06 06:29:08 +03:00
Vasily Levchenko 3777d86be2 [tests][interop] fix sockets.def placement closer to test (fix build) 2017-10-06 06:29:08 +03:00
Vasily Levchenko 96272aea96 [platform lib][posix][windows] base i/o support, w/o networking 2017-10-06 06:29:08 +03:00
Vasily Levchenko 1cbfefc6fd [platform lib][osx] order 2017-10-06 06:29:08 +03:00
Vasily Levchenko 7edfb56c39 [platform lib][linux] order 2017-10-06 06:29:08 +03:00
Vasily Levchenko c4b2d70535 [platform lib][linux][posix] config to build samples 2017-10-06 06:29:08 +03:00
Vasily Levchenko 9be904c171 [platform lib][osx][posix] missed declarations 2017-10-06 06:29:08 +03:00
Nikolay Igotti a9a405d5bb Logging remnants 2017-10-06 00:22:20 +03:00
Aleksey Kladov 555e68a19d [debug] fix off by one error in DebugObjectToUtf8Array
We've copied exactly `toCopy` bytes, so the byte after the last copied
has index `toCopy`. Note that if `toCopy` is exactly (bufferSize - 1),
the previous code would write to memory outside of the buffer.
2017-10-05 22:05:20 +03:00
Nikolay Igotti 3f951dbf60 Android launcher rework 2017-10-05 20:36:45 +03:00
Marcin Kraszewski 63b2d3b07a Update README.md
Fixed grammatical errors
2017-10-05 17:19:59 +03:00
Igor Chevdar fa21a260b1 Fixed coroutines for wasm
Replaced llvm indirectBr instruction with switch instruction.
2017-10-05 14:10:06 +03:00
Ilya Matveev 8f58111159 unit-tests: Remove unused object 2017-10-05 11:37:34 +03:00
Ilya Matveev a539c9251d unit-tests: Refactor filters in test runner 2017-10-05 11:37:34 +03:00
Ilya Matveev 8fcc4c4f30 unit-tests: Add tests for test runner 2017-10-05 11:37:34 +03:00
Ilya Matveev c8cd94c99f unit-tests: Allow user to run tests repeatedly. 2017-10-05 11:37:34 +03:00
Ilya Matveev 1b8fc1a40b unit-tests: Use file name as a suite name for top-level tests
The naming system used is the following. If there is a file
'foo.kt' with the following content:

// foo.kt
package bar.baz

@Test fun test() { ... }

Then 'bar.baz.fooKt' will be a test suite name and 'test' will be
a test name.
2017-10-05 11:37:34 +03:00