Commit Graph

3023 Commits

Author SHA1 Message Date
Alexander Gorshenev 169e55a9da Update README.md to make sure platform libs are built. 2017-10-24 15:16:28 +03:00
Nikolay Igotti 1ce4e722e8 Fix Windows platform libs 2017-10-24 14:27:10 +03:00
Alexander Gorshenev feb581601e After combining all tests into a single binary,
we need to increase wasm32 stack size a little,
for the `parse0` test to pass.
2017-10-24 12:24:55 +03:00
Nikolay Igotti a4130a0d2d Fix hard-float on Raspberry Pi, small cleanups. 2017-10-24 11:03:24 +03:00
alexander-gorshenev 5700fa8cea Allow a couple of test pass on linux_mips32 target. 2017-10-23 19:34:34 +03:00
Alexander Gorshenev 21e376cc46 Pass fillRect through to canvas.js. 2017-10-23 16:08:20 +03:00
Alexander Gorshenev dc8840e14c No testLibrary for cross compilation targets. 2017-10-23 16:03:20 +03:00
Alexander Gorshenev eae2fd9a85 Moved path evaluation from single quotes to double quotes. 2017-10-23 16:03:20 +03:00
Alexander Gorshenev 886ef5fe5a Moved a newly created test to Standalone category. 2017-10-23 16:03:20 +03:00
Alexander Gorshenev 2949a4ed7c Adepted test library build.gradle for windows. 2017-10-23 16:03:20 +03:00
Alexander Gorshenev 3c5602017f Several typos in comments and messages. 2017-10-23 16:03:20 +03:00
Alexander Gorshenev 500492930b Renamed isDefaultLink to isDefaultLibrary. 2017-10-23 16:03:20 +03:00
Alexander Gorshenev a8c1851534 Make user provided libraries have precedence over default libraries.
Simplified duplicate elimination.
2017-10-23 16:03:20 +03:00
Alexander Gorshenev 19fe0168ad Tuned test golden value. 2017-10-23 16:03:20 +03:00
Alexander Gorshenev 425d111b63 Added default test library source. 2017-10-23 16:03:20 +03:00
Alexander Gorshenev 7d8f7e54c3 Recursively resolve libraries after immediateLibraries have been calculated. 2017-10-23 16:03:20 +03:00
Alexander Gorshenev e2e883ee08 Introduced testLibrary and a test utilizing it. 2017-10-23 16:03:20 +03:00
Alexander Gorshenev 7ade68452e Brought back our ability to have non-platform specific default libraries.
Separated dist/klib libraries into common and platform parts to exclude name clash.
2017-10-23 16:03:20 +03:00
Alexander Gorshenev 0f693d63e4 Eliminate a warning due to an unnecessary cast. 2017-10-23 16:03:20 +03:00
Alexander Gorshenev 35eff51749 Do not apply purging to user provided libraries. 2017-10-23 16:03:20 +03:00
Ilya Matveev 93445f5546 v0.3.4 preparations 2017-10-23 16:02:57 +03:00
Ilya Matveev fc92e9a02c gradle-plugin: Add some info in readme 2017-10-23 16:02:57 +03:00
Ilya Matveev cd351fda44 samples: Remove concurrent samples 2017-10-23 16:02:57 +03:00
Nikolay Igotti 2dde9eda55 Fix socket example on POSIX (#966) 2017-10-23 14:15:28 +03:00
Pavel Punegov 85a782cd7e Disable test for wasm32 due to KT-20862 2017-10-20 18:25:05 +03:00
Pavel Punegov 9633a09c07 Exclude tests that could not be used with TestRunner automatically 2017-10-20 18:25:05 +03:00
Pavel Punegov 535e18fc20 Simplify dependence on buildKonanTests. Remove arguments from test 2017-10-20 18:25:05 +03:00
Pavel Punegov a25b3bd19e SilentTestLogger should print exception if test failed 2017-10-20 18:25:05 +03:00
Pavel Punegov d56a4f8830 Fixes to tests: forgotten package names and tests 2017-10-20 18:25:05 +03:00
Pavel Punegov a6af8aa11c Uncomment incorrectly commented out tests 2017-10-20 18:25:05 +03:00
Pavel Punegov 35505007d2 TestRunner support in test's build.gradle
* Fixes to tests
 * RunKonanTest runs tests build with TestRunner
 * Standalone tests
2017-10-20 18:25:05 +03:00
Pavel Punegov 9d077d7f4f BC native tests port to Konan's TestRunner 2017-10-20 18:25:05 +03:00
Svyatoslav Scherbina 9b07fd61ce Enable GameKit and dependencies 2017-10-20 18:13:18 +03:00
Svyatoslav Scherbina ef1656f1ab Disable CloudKit on iOS
As as workaround to forward declaration handling bug
2017-10-20 18:13:18 +03:00
Svyatoslav Scherbina 8a92545bed Add more workarounds for unsupported types in interop 2017-10-20 18:13:18 +03:00
Ilya Matveev df99d0677b gradle-plugin: Update readme 2017-10-20 17:09:23 +03:00
Ilya Matveev 6a6b53ab0e gradle-plugin: Add tests for the 'libraries' block 2017-10-20 17:09:23 +03:00
Ilya Matveev 2eac1d33ee gradle-plugin: Improve test harness 2017-10-20 17:09:23 +03:00
Ilya Matveev a04f9e423b gradle-plugin: Make the 'target' property of tasks internal
* Rename target -> konanTarget
 * Make konanTarget internal
 * Add public property 'target: String'
 * Add methods for task access by its target
2017-10-20 17:09:23 +03:00
Ilya Matveev 6809c6482c gradle-plugin: Add project extension for global parameters
Add 'konan' project extension with the following properties:
 * targets
 * languageVersion
 * apiVersion

Remove languageVersion and apiVersion compilation task parameters.
2017-10-20 17:09:23 +03:00
Ilya Matveev f2b6b87f93 gradle-plugin: Minor naming fixes
* Rename: input{Files,Dir} -> src{Files,Dir}
 * Rename: pkg -> packageName
 * remove allLibrariesFrom(projectPath: String)
2017-10-20 17:09:23 +03:00
Ilya Matveev 9c31594441 gradle-plugin: Improve artifact naming in DSL
* Replace 'baseDir' task method with 'destinationDir' allowing
   a user to set the full path to an artifact built
 * Rename outputName -> artifactName
2017-10-20 17:09:23 +03:00
Ilya Matveev be8456e6d5 gradle-plugin: Minor fixes in repo list generation 2017-10-20 17:09:23 +03:00
Ilya Matveev 6cc9ca211f samples: Fix android sample after gradle plugin rework 2017-10-20 17:09:23 +03:00
Ilya Matveev 2f66ab1b67 perf: Build Ring using reworked Gradle DSL 2017-10-20 17:09:23 +03:00
Ilya Matveev 9d90784360 platform-libs: Use reworked DSL in gradle build 2017-10-20 17:09:23 +03:00
Ilya Matveev eea0eb7e9f samples: Use reworked DSL in gradle builds 2017-10-20 17:09:23 +03:00
Ilya Matveev d3f9e335fb gradle-plugin: Rework DSL
* Remove konanInterop block
* Use konanArtifact block for both compiler and interop artifacts
* Specify targets in a project-wide manner
* Autogenerate tasks for all targets specified for a project
* Add an ability to configure each target for an artifact separately

With this patch the following old DSL:

konanInterop {
    fooMacbook { target 'macbook' ... }
    fooLinux { target 'linux' ... }
}

konanArtifacts {
    barMacbook { target 'macbook' }
    barLinux { target 'linux' }
}

Transforms into:

konanTargets = ['macbook', 'linux']

konanArtifacts {
    interop('foo') { ... }
    program('bar') { ... }
}
2017-10-20 17:09:23 +03:00
Ilya Matveev 476bed32f8 gradle-plugin: Move tasks into a separate directory 2017-10-20 17:09:23 +03:00
Ilya Matveev edfe593ea7 gradle-plugin: Implement library block 2017-10-20 17:09:23 +03:00