File tree Expand file tree Collapse file tree
pythonforandroid/bootstraps/service_only/build Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ // Top-level build file where you can add configuration options common to all sub-projects/modules.
2+ allprojects {
3+ repositories {
4+ jcenter()
5+ }
6+ }
7+ buildscript {
8+ repositories {
9+ jcenter()
10+ }
11+ dependencies {
12+ classpath " com.android.tools.build:gradle-experimental:0.7.0"
13+
14+ // NOTE: Do not place your application dependencies here; they belong
15+ // in the individual module build.gradle files
16+ }
17+ }
18+
19+ task clean (type : Delete ) {
20+ delete rootProject. buildDir
21+ }
Original file line number Diff line number Diff line change 1+ # Project-wide Gradle settings.
2+
3+ # IDE (e.g. Android Studio) users:
4+ # Gradle settings configured through the IDE *will override*
5+ # any settings specified in this file.
6+
7+ # For more details on how to configure your build environment visit
8+ # http://www.gradle.org/docs/current/userguide/build_environment.html
9+
10+ # Specifies the JVM arguments used for the daemon process.
11+ # The setting is particularly useful for tweaking memory settings.
12+ # Default value: -Xmx10248m -XX:MaxPermSize=256m
13+ # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14+
15+ # When configured, Gradle will run in incubating parallel mode.
16+ # This option should only be used with decoupled projects. More details, visit
17+ # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18+ # org.gradle.parallel=true
19+
20+ android.useDeprecatedNdk =true
21+ org.gradle.jvmargs =-Xmx4096M
Original file line number Diff line number Diff line change 1+ apply plugin : ' com.android.model.application'
2+
3+ model {
4+ android {
5+ compileSdkVersion {{ args. sdk_version }}
6+ buildToolsVersion " 23.0.3"
7+
8+ defaultConfig {
9+ applicationId " {{ args.package }}"
10+ minSdkVersion. apiLevel {{ args. min_sdk_version }}
11+ targetSdkVersion. apiLevel {{ args. sdk_version }}
12+ versionCode {{ args. numeric_version }}
13+ versionName " {{ args.version }}"
14+
15+ buildConfigFields {
16+ create() {
17+ type " int"
18+ name " VALUE"
19+ value " 1"
20+ }
21+ }
22+ }
23+ ndk {
24+ abiFilters. add(" armeabi-v7a" )
25+ moduleName = " main"
26+ toolchain = " gcc"
27+ toolchainVersion = " 4.9"
28+ platformVersion = 16
29+ stl = " gnustl_shared"
30+ renderscriptNdkMode = false
31+ CFlags . add(" -I" + file(" src/main/jni/include/python2.7" ))
32+ ldFlags. add(" -L" + file(" src/main/jni/lib" ))
33+ ldLibs. addAll([" log" , " python2.7" ])
34+ }
35+ // Configures source set directory.
36+ sources {
37+ main {
38+ jniLibs {
39+ dependencies {
40+ library " gnustl_shared"
41+ // add pre-built libraries here and locate them below:
42+ }
43+ }
44+ }
45+ }
46+ }
47+ repositories {
48+ libs(PrebuiltLibraries ) {
49+ gnustl_shared {
50+ binaries. withType(SharedLibraryBinary ) {
51+ sharedLibraryFile = file(" src/main/jniLibs/${ targetPlatform.getName()} /libgnustl_shared.so" )
52+ }
53+ }
54+ // more here
55+ }
56+ }
57+ }
58+
59+ // normal project dependencies here
You can’t perform that action at this time.
0 commit comments