emu48android/app/CMakeLists.txt

75 lines
2.5 KiB
Text
Raw Normal View History

# For more information about using CMake with Android Studio, read the
# documentation: https://d.android.com/studio/projects/add-native-code.html
# Sets the minimum version of CMake required to build the native library.
cmake_minimum_required(VERSION 3.4.1)
#add_compile_options(-D DEBUG_DISPLAY)
2019-01-15 22:37:02 +01:00
include_directories(src/main/cpp/win32)
# Creates and names a library, sets it as either STATIC
# or SHARED, and provides the relative paths to its source code.
# You can define multiple libraries, and CMake builds them for you.
# Gradle automatically packages shared libraries with your APK.
add_library( # Sets the name of the library.
native-lib
# Sets the library as a shared library.
SHARED
# Provides a relative path to your source file(s).
2018-11-19 23:34:47 +01:00
2018-12-10 21:54:43 +01:00
src/main/cpp/core/apple.c
# src/main/cpp/core/cursor.c
# src/main/cpp/core/ddeserv.c
# src/main/cpp/core/debugger.c
src/main/cpp/core/disasm.c
src/main/cpp/core/dismem.c
src/main/cpp/core/display.c
src/main/cpp/core/disrpl.c
# src/main/cpp/core/Emu48.c #-> To rewrite
src/main/cpp/core/engine.c
src/main/cpp/core/external.c
src/main/cpp/core/fetch.c
src/main/cpp/core/files.c
src/main/cpp/core/i28f160.c
src/main/cpp/core/keyboard.c
src/main/cpp/core/keymacro.c
src/main/cpp/core/kml.c
src/main/cpp/core/lodepng.c
src/main/cpp/core/lowbat.c
src/main/cpp/core/mops.c
src/main/cpp/core/mru.c
src/main/cpp/core/opcodes.c
src/main/cpp/core/pch.c
# src/main/cpp/core/redeye.c
src/main/cpp/core/rpl.c
# src/main/cpp/core/serial.c
src/main/cpp/core/settings.c
# src/main/cpp/core/sndenum.c
2019-01-02 00:08:17 +01:00
src/main/cpp/core/sound.c
2018-12-10 21:54:43 +01:00
src/main/cpp/core/stack.c
src/main/cpp/core/symbfile.c
src/main/cpp/core/timer.c
# src/main/cpp/core/udp.c
2018-11-19 23:34:47 +01:00
2018-11-22 22:58:35 +01:00
src/main/cpp/win32-layer.c
src/main/cpp/android-layer.c
src/main/cpp/android-emu48.c # Emu48.c rewrite
src/main/cpp/emu48-jni.c
)
# Specifies libraries CMake should link to your target library. You
# can link multiple libraries, such as libraries you define in this
# build script, prebuilt third-party libraries, or system libraries.
target_link_libraries( # Specifies the target library.
native-lib
2018-11-25 23:44:31 +01:00
android
2018-11-30 23:38:09 +01:00
jnigraphics
2019-01-02 00:08:17 +01:00
OpenSLES
2018-11-30 23:38:09 +01:00
log)