diff options
author | Xavier Ducrohet <xav@google.com> | 2014-06-11 17:52:27 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@google.com> | 2014-06-11 17:52:27 -0700 |
commit | b79105d3c426d3c4e636803b127e7a2ab2bb794a (patch) | |
tree | 3f67b434914d4eb42c05e0ef1a6cba8731d1e796 /emulator/mksdcard | |
parent | 5952d031979bc67e85c20990fe4d69fbd60a1f34 (diff) | |
download | sdk-b79105d3c426d3c4e636803b127e7a2ab2bb794a.zip sdk-b79105d3c426d3c4e636803b127e7a2ab2bb794a.tar.gz sdk-b79105d3c426d3c4e636803b127e7a2ab2bb794a.tar.bz2 |
Move to custom plugin for native setup.
Change-Id: If7c667b97aa6f1469dae2e4018d792afe951e675
Diffstat (limited to 'emulator/mksdcard')
-rw-r--r-- | emulator/mksdcard/build.gradle | 67 |
1 files changed, 1 insertions, 66 deletions
diff --git a/emulator/mksdcard/build.gradle b/emulator/mksdcard/build.gradle index 53872a3..f993aa1 100644 --- a/emulator/mksdcard/build.gradle +++ b/emulator/mksdcard/build.gradle @@ -1,5 +1,6 @@ apply plugin: 'c' apply plugin: 'sdk-files' +apply plugin: 'native-setup' executables { mksdcard {} @@ -16,38 +17,6 @@ sources { } } -model { - platforms { - linux { - architecture "i386" - operatingSystem "linux" - } - darwin { - architecture "i386" - operatingSystem "osx" - } - windows { - architecture "i386" - operatingSystem "windows" - } - } - - toolChains { - host(Clang) - mingw(Gcc) { - path "$project.rootDir/../prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/bin" - - addPlatformConfiguration(new MingwOnLinuxConfiguration()) - - getCCompiler().executable = 'x86_64-w64-mingw32-gcc' - getCppCompiler().executable = 'x86_64-w64-mingw32-g++' - getLinker().executable = 'x86_64-w64-mingw32-gcc' - getAssembler().executable = 'x86_64-w64-mingw32-as' - getStaticLibArchiver().executable = 'x86_64-w64-mingw32-ar' - } - } -} - sdk { mac { item( { getExeName("darwin") } ) { @@ -76,37 +45,3 @@ def getExeName(String platform) { return binaries.executableFile.get(0) } -class MingwOnLinuxConfiguration implements TargetPlatformConfiguration { - - boolean supportsPlatform(Platform element) { - return element.getOperatingSystem().name == "windows" - } - - List<String> getCppCompilerArgs() { - [] - } - - List<String> getCCompilerArgs() { - ['-DUSE_MINGW', '-D__STDC_FORMAT_MACROS', '-D__STDC_CONSTANT_MACROS', '-D__USE_MINGW_ANSI_STDIO', '-m32'] - } - - List<String> getObjectiveCCompilerArgs() { - [] - } - - List<String> getObjectiveCppCompilerArgs() { - [] - } - - List<String> getAssemblerArgs() { - [] - } - - List<String> getLinkerArgs() { - ['-m32'] - } - - List<String> getStaticLibraryArchiverArgs() { - [] - } -} |