<commit_before># 3.12 required for legacy build system support with Xcode 10:
# https://gitlab.kitware.com/cmake/cmake/issues/18099
cmake_minimum_required(VERSION 3.12)

set(CMAKE_TOOLCHAIN_FILE "../cmake/toolchain/ios/iOS.cmake")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/../cmake/templates/ios)

macro (unset_xcode_property TARGET XCODE_PROPERTY)
  set_property (TARGET ${TARGET} PROPERTY XCODE_ATTRIBUTE_${XCODE_PROPERTY})
endmacro (unset_xcode_property)

if(NOT ${IOS}) 
	message(FATAL_ERROR "Incorrect toolchain set: ${CMAKE_TOOLCHAIN_FILE}")
endif(NOT ${IOS})

if (NOT DEFINED DEVELOPMENT_TEAM)
  message (STATUS "No DEVELOPMENT_TEAM specified - if code signing for running on an iOS devicde is required, pass a valid development team id with -DDEVELOPMENT_TEAM=<YOUR_APPLE_DEVELOPER_TEAM_ID>")
endif()


if (NOT DEFINED CODESIGN_EMBEDDED_FRAMEWORKS)
  if (DEFINED DEVELOPMENT_TEAM)
    set(CODESIGN_EMBEDDED_FRAMEWORKS 1)
  else()
    # for CI - enterprise signed apps resign framework. Skipping manual codesigning of embedded frameworks to avoid ambiguous codesign identity match with "iPhone Developer"
    set(CODESIGN_EMBEDDED_FRAMEWORKS 0)
  endif()
endif()

message (STATUS "using CODESIGN_EMBEDDED_FRAMEWORKS ${CODESIGN_EMBEDDED_FRAMEWORKS}")

if(NOT TARGET_NAME)
  set(TARGET_NAME "ExampleApp")
  message("Using default target: ${TARGET_NAME}")
endif(NOT TARGET_NAME)


project(${TARGET_NAME})
set(executable_name ${TARGET_NAME})


include(EmbedFramework)


if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/Include/eegeo/CMakeLists.txt")
  include("${CMAKE_CURRENT_SOURCE_DIR}/Include/eegeo/CMakeLists.txt")
else(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/Include/eegeo/CMakeLists.txt")
  message(FATAL_ERROR "Couldn't detect platform headers. Have you run update.platform.sh?")
endif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/Include/eegeo/CMakeLists.txt")

include(../src/CMakeLists.txt)
include(Include/CMakeLists.txt)
include(ios_src/CMakeLists.txt)
include(Resources/CMakeLists.txt)

set(storyboards
    ExampleApp/en.lproj/MainStoryboard_iPad.storyboard
    ExampleApp/en.lproj/MainStoryboard_iPhone.storyboard
    "ExampleApp/en.lproj/Launch Screen.storyboard")

# plist settings
set(EEGEO_PLIST_BUNDLE_EXECUTABLE "\${EXECUTABLE_NAME}")
set(EEGEO_PLIST_BUNDLE_IDENTIFIER "com.eegeo.\${PRODUCT_NAME:rfc1034identifier}")
set(EEGEO_PLIST_BUNDLE_SHORT_VERSION_STRING "\${PRODUCT_VERSION}")
set(EEGEO_PLIST_BUNDLE_DISPLAY_NAME "WRLD")

# compiler/linker settings
set(IOS_WARNING_FLAGS "-Wmost -Werror -Wno-four-char-constants -Wno-unknown-pragmas -Wno-reorder")

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -x objective-c++ ${IOS_WARNING_FLAGS}")

set(static_libs 
  apps-on-maps-cpp11
  apps-on-maps-cpp11-sim
  sdk-extensions-sqlite-cpp11
  sdk-extensions-sqlite-cpp11-sim
  turbojpeg
  z
  curl
  uv
  Flurry_6.0.0
  )
<commit_msg>remove linkage with sdk-extensions-sqlite-cpp11*.a<commit_after># 3.12 required for legacy build system support with Xcode 10:
# https://gitlab.kitware.com/cmake/cmake/issues/18099
cmake_minimum_required(VERSION 3.12)

set(CMAKE_TOOLCHAIN_FILE "../cmake/toolchain/ios/iOS.cmake")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/../cmake/templates/ios)

macro (unset_xcode_property TARGET XCODE_PROPERTY)
  set_property (TARGET ${TARGET} PROPERTY XCODE_ATTRIBUTE_${XCODE_PROPERTY})
endmacro (unset_xcode_property)

if(NOT ${IOS}) 
	message(FATAL_ERROR "Incorrect toolchain set: ${CMAKE_TOOLCHAIN_FILE}")
endif(NOT ${IOS})

if (NOT DEFINED DEVELOPMENT_TEAM)
  message (STATUS "No DEVELOPMENT_TEAM specified - if code signing for running on an iOS devicde is required, pass a valid development team id with -DDEVELOPMENT_TEAM=<YOUR_APPLE_DEVELOPER_TEAM_ID>")
endif()


if (NOT DEFINED CODESIGN_EMBEDDED_FRAMEWORKS)
  if (DEFINED DEVELOPMENT_TEAM)
    set(CODESIGN_EMBEDDED_FRAMEWORKS 1)
  else()
    # for CI - enterprise signed apps resign framework. Skipping manual codesigning of embedded frameworks to avoid ambiguous codesign identity match with "iPhone Developer"
    set(CODESIGN_EMBEDDED_FRAMEWORKS 0)
  endif()
endif()

message (STATUS "using CODESIGN_EMBEDDED_FRAMEWORKS ${CODESIGN_EMBEDDED_FRAMEWORKS}")

if(NOT TARGET_NAME)
  set(TARGET_NAME "ExampleApp")
  message("Using default target: ${TARGET_NAME}")
endif(NOT TARGET_NAME)


project(${TARGET_NAME})
set(executable_name ${TARGET_NAME})


include(EmbedFramework)


if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/Include/eegeo/CMakeLists.txt")
  include("${CMAKE_CURRENT_SOURCE_DIR}/Include/eegeo/CMakeLists.txt")
else(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/Include/eegeo/CMakeLists.txt")
  message(FATAL_ERROR "Couldn't detect platform headers. Have you run update.platform.sh?")
endif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/Include/eegeo/CMakeLists.txt")

include(../src/CMakeLists.txt)
include(Include/CMakeLists.txt)
include(ios_src/CMakeLists.txt)
include(Resources/CMakeLists.txt)

set(storyboards
    ExampleApp/en.lproj/MainStoryboard_iPad.storyboard
    ExampleApp/en.lproj/MainStoryboard_iPhone.storyboard
    "ExampleApp/en.lproj/Launch Screen.storyboard")

# plist settings
set(EEGEO_PLIST_BUNDLE_EXECUTABLE "\${EXECUTABLE_NAME}")
set(EEGEO_PLIST_BUNDLE_IDENTIFIER "com.eegeo.\${PRODUCT_NAME:rfc1034identifier}")
set(EEGEO_PLIST_BUNDLE_SHORT_VERSION_STRING "\${PRODUCT_VERSION}")
set(EEGEO_PLIST_BUNDLE_DISPLAY_NAME "WRLD")

# compiler/linker settings
set(IOS_WARNING_FLAGS "-Wmost -Werror -Wno-four-char-constants -Wno-unknown-pragmas -Wno-reorder")

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -x objective-c++ ${IOS_WARNING_FLAGS}")

set(static_libs 
  apps-on-maps-cpp11
  apps-on-maps-cpp11-sim
  turbojpeg
  z
  curl
  uv
  Flurry_6.0.0
  )

{'fraction_non_alphanumeric': 0.10917415037858778, 'fraction_numerical': 0.010213065680577567, 'mean_word_length': 6.5834445927903875, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6392965', 'n_tokens_mistral': 2209, 'n_tokens_neox': 2106, 'n_words': 363}