Skip to content

Commit

Permalink
build; android; account for x86 arch for emulator builds, correctly p…
Browse files Browse the repository at this point in the history
…lacing them in the x86 libs folder instead of armeabi like before.
  • Loading branch information
ruby0x1 committed Feb 13, 2015
1 parent 867126f commit b449637
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/flow/config.json
Expand Up @@ -53,7 +53,7 @@
"activity_name" : "MainActivity",
"binary_source_name" : "lib{{app.boot}}{{app.debugtag}}{{app.archtag}}.so",
"binary_dest_name" : "lib{{app.name}}.so",
"binary_dest_path" : "{{paths.build}}/{{paths.android.project}}/libs/armeabi",
"binary_dest_path" : "{{paths.build}}/{{paths.android.project}}/libs/{{paths.android.libabi}}",
"files_dest_path" : "{{paths.build}}/{{paths.android.project}}/assets"
},

Expand Down
14 changes: 13 additions & 1 deletion src/flow/project/prepare.js
Expand Up @@ -98,12 +98,24 @@ internal.prepare_config = function(flow) {
internal.prepare_config_paths = function(flow, prepared) {

flow.project.paths = {
android : { project : flow.config.build.android.project },
android : { project : flow.config.build.android.project, libabi:'armeabi' },
ios : { project : flow.config.build.ios.project },
output : flow.project.get_path_output(flow, prepared),
build : flow.project.get_path_build(flow, prepared)
}

if(flow.target == 'android') {
switch(flow.target_arch) {
case 'x86':
flow.project.paths.android.libabi = 'x86';
break;
default:
flow.project.paths.android.libabi = 'armeabi';
break;
}
}


//store for use later against files etc
flow.project.path_context = flow.project.get_path_context(flow, prepared, flow.target_arch);

Expand Down
3 changes: 3 additions & 0 deletions src/flow/project/project.js
Expand Up @@ -275,6 +275,9 @@ exports.get_path_context = function(flow, prepared, target_arch) {
case 'armv7':
path_context.app.archtag = '-v7';
break;
case 'x86':
path_context.app.archtag = '-x86';
break;
case 'armv7s':
path_context.app.archtag = '-v7s';
break;
Expand Down

0 comments on commit b449637

Please sign in to comment.