Nikolay Igotti
2812480af9
Documentation fixes. ( #1377 )
2018-03-02 14:15:53 +03:00
Clifton
df41389ef7
Minor bugfix to correct error handling. ( #1260 )
2018-01-26 09:20:23 +03:00
Alvaro Miranda Aguilera
af9c749035
put val definition inside if block
2018-01-25 16:25:40 +03:00
Alvaro Miranda Aguilera
c170e261a7
add explicit import for platform.posix.size_t
...
on linux without this fails to import
per slack question on #kotlin-native due multiple size_t available
2018-01-25 16:25:40 +03:00
Alvaro Miranda Aguilera
0b9f5beed8
sample/libcurl: add body and writ_data function/callbacks
2018-01-25 16:25:40 +03:00
Alvaro Miranda Aguilera
532461647a
sample/libcurl: add nobody method
2018-01-25 16:25:40 +03:00
ilmat192
cba7319e98
Fix utf8 conversion ( #1121 )
2017-12-12 13:30:50 +03:00
Ilya Matveev
ccf03e51fa
gradle-plugin Use a script-block to specify include directories
...
Replace headerFilterAdditionalSearchPrefix cinterop option with
includeDir script block:
includeDir {
allHeaders 'path' // Used for all headers (an analogue of -I<path>)
// Used only for headers in headerFilter
// (replacement for headerFilterAdditionalSearchPrefix)
headerFilterOnly 'path'
}
2017-11-23 13:01:10 +07:00
Ilya Matveev
5c05891ba7
samples: Use headerFilterAdditionalSearchPrefixes interop option
2017-11-23 13:01:10 +07:00
Ilya Matveev
fc5057868b
samples: Refactor setting KONAN_HOME variable
2017-11-16 13:50:37 +07:00
Ilya Matveev
9937833a53
samples: Support custom path to konanc in build.sh
2017-11-16 13:50:37 +07:00
Ilya Matveev
1c6e836f20
Don't build some samples for raspberrypi
2017-11-03 13:35:02 +03:00
Mike Sinkovsky
07917dce2a
mingw samples: specify konan.targets for samples not working on windows
2017-11-02 14:39:47 +03:00
Nikolay Igotti
9bc9003cdd
Fix libcurl sampl
2017-10-27 15:12:06 +03:00
Ilya Matveev
eea0eb7e9f
samples: Use reworked DSL in gradle builds
2017-10-20 17:09:23 +03:00
Alexander Gorshenev
a11071d55c
Adapted curl sample to platform libs.
2017-10-16 19:06:13 +03:00
Svyatoslav Scherbina
9609a10e09
Improve StableObjPtr
...
* Rename to StableRef
* Make it more typed
* Provide more idiomatic and convenient methods
* Share more code between JVM and Native
2017-09-26 09:50:42 +03:00
Svyatoslav Scherbina
d8ed1f4414
Hide nativeMemUtils and pointerSize
2017-09-26 09:50:42 +03:00
Alexander Gorshenev
33993236de
Moved some linkerOpts from build.sh and build.gradle to .def,
...
where it does not involve any complex intelligence.
2017-07-04 17:58:30 +03:00
Nikolay Igotti
8aaad6413b
Minor build script tweaks
2017-06-22 11:03:50 +03:00
alexander-gorshenev
d3c24bb387
Different extensions (and KonanTarget communalization). ( #665 )
2017-06-19 12:45:57 +03:00
Alexander Podkhalyuzin
bc941269f0
Fixed samples for the latest changes in Gradle plugin.
...
- Smaller gradle scripts.
- More structure in sample projects.
- Simplified build/run.
- Added gradle to the rest two samples.
- Almost removed all sh scripts.
- Gradle now works only inside of build directory.
- Fixed READMEs according to the new changes.
2017-06-08 17:21:04 +03:00
Nikolay Igotti
ff8bce79d5
Uniform compiler/linker options treatment ( #614 )
2017-05-29 15:37:15 +03:00
Alexander Gorshenev
1d3a5e6585
Don't use explicit file namesuffixes in build.sh scripts.
2017-05-29 15:01:42 +03:00
igotti-google
fe3ae96079
Revert "Improved Gradle plugin. Fixed samples according to these changes. ( #594 )"
...
This reverts commit 8b18c7c8cb .
2017-05-27 11:27:00 +03:00
igotti-google
9760e0f21c
Revert "Fix build"
...
This reverts commit bd7c24745a .
2017-05-27 11:26:59 +03:00
Nikolay Igotti
bd7c24745a
Fix build
2017-05-26 16:17:39 +03:00
Alexander Podkhalyuzin
8b18c7c8cb
Improved Gradle plugin. Fixed samples according to these changes. ( #594 )
2017-05-26 15:43:16 +03:00
Nikolay Igotti
42197a2bec
Android NDK support and build system refactoring ( #585 )
2017-05-24 00:20:19 +03:00
Ilya Matveev
d28f8ce7f2
samples: Add scripts for samples building
...
This pach adds a root gradle project in the samples directory
which allows one to build all gradle samples using `./gradlew build`
command. It also adds a shell script in the samples directory which
can build all samples (excluding tensorflow one) using their build.sh
scripts.
2017-05-15 18:31:30 +07:00
Ilya Matveev
c0c971a526
samples: Use latest gradle plugin version
2017-05-05 19:40:21 +07:00
Ilya Matveev
52bbbc1815
gradle-plugin: Specify compiler version in project properties
...
This patch allows gradle-plugin user to specify a compiler version
via project properties. The default version is 0.2. It also updates
samples to use this new version of gradle plugin.
2017-05-05 19:40:21 +07:00
Svyatoslav Scherbina
8a0b494c2e
Apply interop filtering
...
Also actualize .def files
2017-04-26 20:07:06 +03:00
Svyatoslav Scherbina
c0b40ffedb
Remove callbacks-related hacks from samples/libcurl
2017-04-20 17:36:22 +03:00
Svyatoslav Scherbina
a7cf182716
Simplify libcurl sample by using StableObjPtr
2017-04-03 15:03:26 +03:00
Svyatoslav Scherbina
d07295d732
Remove some hacks from libcurl sample
2017-04-03 15:03:26 +03:00
Ilya Matveev
43068b6e59
samples: Mention Gradle build in READMEs
2017-03-31 18:46:25 +07:00
Ilya Matveev
ffe022d4c8
samples: Remove symlinks to gradlew
2017-03-31 18:46:25 +07:00
Ilya Matveev
98c440f2d6
gradle-plugin: Rename kotlin.native.home property in konan.home
2017-03-31 18:46:25 +07:00
Ilya Matveev
870a0a01c1
samples: Add gradle wrapper in samples root
2017-03-31 18:46:25 +07:00
Ilya Matveev
f51b61a178
gradle-plugin: Upload to bintray maven repository
2017-03-31 18:46:25 +07:00
Ilya Matveev
0b3d3cb138
Create gradle projects for samples
2017-03-31 18:46:25 +07:00
Svyatoslav Scherbina
50c3be3fc2
Simplify working with values in interop
...
* Access primitive interop array elements and struct fields without `.value`
* Simplify C*Var* interop types names
2017-03-31 11:44:07 +03:00
alexander-gorshenev
c9c9aee7bb
No colon cinterop flags ( #428 )
...
* Taught cinterop a 'host' target.
* Last minute switch from -foo:bar flags to -foo bar flags in cinterop tool.
2017-03-31 10:20:29 +03:00
Nikolay Igotti
a368818863
Fix names, samples ( #426 )
2017-03-30 19:41:15 +03:00
Nikolay Igotti
61728ab3fd
CURL sample, copyright update
2017-03-30 16:25:05 +03:00