removed unneeded data from CMakeList
This commit is contained in:
parent
9ea4ad4b93
commit
db6b60d304
@ -1,38 +1,15 @@
|
|||||||
# Sets the minimum version of CMake required to build the native
|
|
||||||
# library. You should either keep the default value or only pass a
|
|
||||||
# value of 3.4.0 or lower.
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.4.1)
|
cmake_minimum_required(VERSION 3.4.1)
|
||||||
|
|
||||||
# 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 it for you.
|
|
||||||
# Gradle automatically packages shared libraries with your APK.
|
|
||||||
|
|
||||||
|
|
||||||
add_definitions(-DTARGET_ANDROID)
|
|
||||||
|
|
||||||
set(BOOST_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../boost_1_67_0)
|
set(BOOST_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../boost_1_67_0)
|
||||||
|
|
||||||
set(BOOST_GIL_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../libs/boost-gil-extension)
|
set(BOOST_GIL_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../libs/boost-gil-extension)
|
||||||
|
|
||||||
set(ZIP_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../libs/julienr-libzip-android/jni)
|
set(ZIP_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../libs/julienr-libzip-android/jni)
|
||||||
|
|
||||||
set(LIBPNG_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../libs/libpng_1.4.1_android)
|
set(LIBPNG_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../libs/libpng_1.4.1_android)
|
||||||
|
set(LIBJPEG_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../libs/jpeg-9)
|
||||||
set(LIBJPEG_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../../libs/jpeg-9")
|
|
||||||
|
|
||||||
|
|
||||||
set(EIGEN_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../eigen)
|
set(EIGEN_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../eigen)
|
||||||
|
|
||||||
set(SOL2_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../sol2)
|
set(SOL2_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../sol2)
|
||||||
|
|
||||||
set(LUA_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../libs/lua-5.3.4/src)
|
set(LUA_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../libs/lua-5.3.4/src)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../tes-engine)
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../tes-engine)
|
||||||
|
|
||||||
include_directories(${BOOST_PATH})
|
include_directories(${BOOST_PATH})
|
||||||
include_directories(${EIGEN_PATH})
|
include_directories(${EIGEN_PATH})
|
||||||
include_directories(${SOL2_PATH})
|
include_directories(${SOL2_PATH})
|
||||||
@ -40,75 +17,44 @@ include_directories(${LUA_PATH})
|
|||||||
include_directories(${LIBPNG_PATH})
|
include_directories(${LIBPNG_PATH})
|
||||||
include_directories(${LIBJPEG_PATH})
|
include_directories(${LIBJPEG_PATH})
|
||||||
include_directories(${ZIP_PATH})
|
include_directories(${ZIP_PATH})
|
||||||
|
|
||||||
include_directories(${BOOST_GIL_PATH})
|
include_directories(${BOOST_GIL_PATH})
|
||||||
|
|
||||||
add_library( engine
|
add_definitions(-DTARGET_ANDROID)
|
||||||
SHARED
|
|
||||||
IMPORTED )
|
add_library(engine SHARED IMPORTED
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
set_target_properties( # Specifies the target library.
|
set_target_properties(engine PROPERTIES IMPORTED_LOCATION
|
||||||
engine
|
|
||||||
|
|
||||||
# Specifies the parameter you want to define.
|
${CMAKE_CURRENT_SOURCE_DIR}/../../../tes-engine/SalmonEngineAndroid/app/build/intermediates/cmake/debug/obj/${ANDROID_ABI}/libengine.so
|
||||||
PROPERTIES IMPORTED_LOCATION
|
|
||||||
|
|
||||||
# Provides the path to the library you want to import.
|
)
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../../../tes-engine/SalmonEngineAndroid/app/build/intermediates/cmake/debug/obj/${ANDROID_ABI}/libengine.so )
|
|
||||||
|
|
||||||
|
|
||||||
|
add_library(DoubleHitBalls SHARED
|
||||||
|
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/../../game/android_api.cpp
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/../../game/main_code.cpp
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/../../game/creditscode.cpp
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/../../game/galaxy.cpp
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/../../game/galaxy_menu.cpp
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/../../game/galaxy_objects.cpp
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/../../game/gamecode.cpp
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/../../game/loadingcode.cpp
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/../../game/menucode.cpp
|
||||||
|
|
||||||
add_library( # Sets the name of the library.
|
)
|
||||||
DoubleHitBalls
|
|
||||||
|
|
||||||
# Sets the library as a shared library.
|
find_library(log-lib
|
||||||
SHARED
|
log
|
||||||
|
)
|
||||||
# Provides a relative path to your source file(s).
|
|
||||||
# Associated headers in the same location as their source
|
|
||||||
# file are automatically included.
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../../game/android_api.cpp
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../../game/main_code.cpp
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../../game/creditscode.cpp
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../../game/galaxy.cpp
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../../game/galaxy_menu.cpp
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../../game/galaxy_objects.cpp
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../../game/gamecode.cpp
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../../game/loadingcode.cpp
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../../game/menucode.cpp
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Searches for a specified prebuilt library and stores the path as a
|
|
||||||
# variable. Because system libraries are included in the search path by
|
|
||||||
# default, you only need to specify the name of the public NDK library
|
|
||||||
# you want to add. CMake verifies that the library exists before
|
|
||||||
# completing its build.
|
|
||||||
|
|
||||||
find_library( # Sets the name of the path variable.
|
|
||||||
log-lib
|
|
||||||
|
|
||||||
# Specifies the name of the NDK library that
|
|
||||||
# you want CMake to locate.
|
|
||||||
log )
|
|
||||||
|
|
||||||
find_library( # Sets the name of the path variable.
|
find_library(GLESv2-lib
|
||||||
GLESv2-lib
|
GLESv2
|
||||||
|
)
|
||||||
|
|
||||||
# Specifies the name of the NDK library that
|
target_link_libraries(DoubleHitBalls
|
||||||
# you want CMake to locate.
|
engine
|
||||||
GLESv2 )
|
${log-lib}
|
||||||
|
${GLESv2-lib}
|
||||||
|
)
|
||||||
# Specifies libraries CMake should link to your target library. You
|
|
||||||
# can link multiple libraries, such as libraries you define in the
|
|
||||||
# build script, prebuilt third-party libraries, or system libraries.
|
|
||||||
|
|
||||||
target_link_libraries( # Specifies the target library.
|
|
||||||
DoubleHitBalls
|
|
||||||
|
|
||||||
# Links the target library to the log library
|
|
||||||
# included in the NDK.
|
|
||||||
${log-lib} ${GLESv2-lib} engine )
|
|
||||||
|
Loading…
Reference in New Issue
Block a user