2022-10-24 00:45:46 +00:00
|
|
|
cmake_minimum_required(VERSION 2.8.12)
|
2021-07-27 11:41:57 +00:00
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
set(CMAKE_C_STANDARD 99)
|
|
|
|
|
|
|
|
project("Project64-bridge")
|
|
|
|
include_directories(..)
|
2022-12-06 22:03:34 +00:00
|
|
|
include_directories(../3rdParty/asmjit/src)
|
2021-07-27 11:41:57 +00:00
|
|
|
|
|
|
|
add_library(Project64-bridge SHARED
|
|
|
|
JavaBridge.cpp
|
|
|
|
JavaRomList.cpp
|
|
|
|
jniBridge.cpp
|
|
|
|
jniBridgeSettings.cpp
|
|
|
|
Notification.cpp
|
|
|
|
SyncBridge.cpp
|
|
|
|
UISettings.cpp)
|
|
|
|
|
|
|
|
add_definitions(-DANDROID)
|
|
|
|
|
2022-12-06 22:03:34 +00:00
|
|
|
ADD_SUBDIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/../3rdParty/asmjit ${CMAKE_CURRENT_BINARY_DIR}/3rdParty/asmjit)
|
2021-07-27 11:41:57 +00:00
|
|
|
ADD_SUBDIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/../3rdParty/zlib ${CMAKE_CURRENT_BINARY_DIR}/3rdParty/zlib)
|
|
|
|
ADD_SUBDIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/../Common ${CMAKE_CURRENT_BINARY_DIR}/Common)
|
2023-11-09 01:23:06 +00:00
|
|
|
ADD_SUBDIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/../Project64-rsp-core ${CMAKE_CURRENT_BINARY_DIR}/Project64-rsp-core)
|
2021-07-27 11:41:57 +00:00
|
|
|
ADD_SUBDIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/../Project64-core ${CMAKE_CURRENT_BINARY_DIR}/Project64-core)
|
2023-11-09 01:23:06 +00:00
|
|
|
target_link_libraries(Project64-bridge asmjit zlib Project64-rsp-core Project64-core Common log)
|