Android Android Native Executable?

  • Thread starter Thread starter gudenau
  • Start date Start date
  • Views Views 1,016
  • Replies Replies 0

gudenau

Largely ignored
Member
Joined
Jul 7, 2010
Messages
4,111
Reaction score
4,485
Trophies
2
Location
/dev/random
Website
www.gudenau.net
XP
7,870
Country
United States
How could I make an Android application come with an executable in the assets? When I build my project the natives do not show up in the assets folder at all.

My CMakeLists.txt file.
Code:
cmake_minimum_required(VERSION 3.4.1)


set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/src/main/assets/${ANDROID_ABI}")

add_executable(native-test src/main/natives/source/test.c)

include_directories(src/main/natives/include/)

My test.c.
Code:
//
// Created by gudenau on 7/5/2017.
//

#include <stdio.h>

int main(int argc, char ** argv){
   printf("Hello world!\n");
   return 0;
}
 

Site & Scene News