Skip to content

Commit

Permalink
Allow the -Dplatform=xxx setting to be used when doing the actual nat…
Browse files Browse the repository at this point in the history
…ive build
  • Loading branch information
gnodet committed Apr 26, 2017
1 parent 0072848 commit ef3437c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,14 +259,15 @@ private void vsBasedBuild(File buildDir) throws CommandLineException, MojoExecut
FileUtils.copyDirectoryStructureIfModified(packageDirectory, buildDir);

Library library = new Library(name);
String libPlatform = this.platform != null ? this.platform : Library.getPlatform();
String platform;
String configuration="release";
if( "windows32".equals(library.getPlatform()) ) {
if( "windows32".equals(libPlatform) ) {
platform = "Win32";
} else if( "windows64".equals(library.getPlatform()) ) {
} else if( "windows64".equals(libPlatform) ) {
platform = "x64";
} else {
throw new MojoExecutionException("Usupported platform: "+library.getPlatform());
throw new MojoExecutionException("Usupported platform: "+libPlatform);
}

boolean useMSBuild = false;
Expand Down

0 comments on commit ef3437c

Please sign in to comment.