aboutsummaryrefslogtreecommitdiffstats
path: root/avdlauncher/build.gradle
blob: b0e2c9008e3e8852b4517f0faf7de0a307391fcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
apply plugin: 'c'
apply plugin: 'sdk-files'
apply plugin: 'windows-setup'

model {
    components {
        avdLauncher(NativeExecutableSpec) {
            sources {
                c {
                    source {
                        srcDir "src/source"
                        include "**/*.c"
                    }
                }
            }
            targetPlatform "windows32"
        }
    }
}

sdk {
    windows {
        item( { getExeName("avdLauncherExecutable") } ) {
            into 'lib'
            name 'AVD Manager.exe'
            builtBy 'avdLauncherExecutable'
        }
    }
}

def getExeName(String name) {
    return binaries.getByName(name).executableFile
}