Skip to content

Commit

Permalink
chore: Removed comment clutter
Browse files Browse the repository at this point in the history
  • Loading branch information
EduMenges committed Aug 26, 2024
1 parent 2ee646a commit 03257c2
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 172 deletions.
15 changes: 0 additions & 15 deletions build/Android/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
cmake_minimum_required(VERSION 3.15)

# --------------------------------------------------------
# Set cross compiling settings
set(CMAKE_SYSTEM_NAME Android)
set(CMAKE_SYSTEM_VERSION 28) # API level
set(ANDROID_NATIVE_API_LEVEL 28)

# --------------------------------------------------------
# Check Android NDK version
if(NOT CMAKE_ANDROID_NDK)
message(FATAL_ERROR "Cannot find Android NDK, make sure you pass -DCMAKE_ANDROID_NDK=[path_to_NDK]")
Expand All @@ -23,7 +21,6 @@ if(NOT CMAKE_ANDROID_NDK_VERSION EQUAL 25)
message(FATAL_ERROR "Android NDK LTS Version (r25b) stable long term support version required")
endif()

# --------------------------------------------------------
# Check required input args
if(NOT ANDROID_ABI)
message(FATAL_ERROR "Cannot find ANDROID_ABI, make sure you pass -DANDROID_ABI=[armeabi-v7a | arm64-v8a | x86 | x86_64]")
Expand All @@ -35,11 +32,9 @@ if(NOT ANDROID_TOOLCHAIN)
message(FATAL_ERROR "Cannot find ANDROID_TOOLCHAIN, make sure you pass -DANDROID_TOOLCHAIN=[e.g clang]")
endif()

# --------------------------------------------------------
# Config param for android
set(CMAKE_ANDROID_STL_TYPE c++_static)

# --------------------------------------------------------
# Set toolchain file
set(CMAKE_TOOLCHAIN_FILE "${CMAKE_ANDROID_NDK}/build/cmake/android.toolchain.cmake")

Expand All @@ -49,39 +44,29 @@ endif()

set(Boost_COMPILER "clang")


# --------------------------------------------------------
# Project
project(SuperGenius C CXX)

# --------------------------------------------------------
# include common compiler options
include(../CommonCompilerOptions.CMake)

# --------------------------------------------------------
# Turn off examples
set(BUILD_EXAMPLES OFF)

# --------------------------------------------------------
# Set custom subfolder for ABI
set(ABI_SUBFOLDER_NAME "/${ANDROID_ABI}")

# --------------------------------------------------------
# Set host system protoc executable path

set(PROTOC_EXECUTABLE "${_THIRDPARTY_BUILD_DIR}/protobuf_host/bin/protoc${CMAKE_EXECUTABLE_SUFFIX}")

# --------------------------------------------------------
# Allow multiple definitions
set(FORCE_MULTILE OFF)

# --------------------------------------------------------
# Set extra compiler flags
set(EXTRA_CXX_FLAGS -Wno-error)

set(TESTING OFF)

# --------------------------------------------------------
# Include common build parameters
include(../CommonBuildParameters.cmake)

Expand Down
Loading

0 comments on commit 03257c2

Please sign in to comment.