summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-04-15 16:33:40 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-04-17 17:14:55 +0300
commitc4b061bd959a0efa5d0202d16d39e92e4f416abb (patch)
tree166bdafffe3ea252bcc71322ee621deed8a8850d
parent75475cfdbd17f224f90a765b4b93b93e8e410178 (diff)
downloadqtlocation-mapboxgl-c4b061bd959a0efa5d0202d16d39e92e4f416abb.tar.gz
[build] Remove glfw submodule
We use it from the system.
-rw-r--r--.gitmodules3
m---------vendor/glfw0
-rw-r--r--vendor/glfw.cmake30
3 files changed, 0 insertions, 33 deletions
diff --git a/.gitmodules b/.gitmodules
index fbecf14c99..2c286a1b27 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -31,9 +31,6 @@
[submodule "vendor/benchmark"]
path = vendor/benchmark
url = https://github.com/google/benchmark.git
-[submodule "vendor/glfw"]
- path = vendor/glfw
- url = https://github.com/glfw/glfw.git
[submodule "vendor/eternal"]
path = vendor/eternal
url = https://github.com/mapbox/eternal.git
diff --git a/vendor/glfw b/vendor/glfw
deleted file mode 160000
-Subproject 53c8c72c676ca97c10aedfe3d0eb4271c5b23db
diff --git a/vendor/glfw.cmake b/vendor/glfw.cmake
deleted file mode 100644
index 2a554df731..0000000000
--- a/vendor/glfw.cmake
+++ /dev/null
@@ -1,30 +0,0 @@
-set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "Build the GLFW example programs" FORCE)
-set(GLFW_BUILD_TESTS OFF CACHE BOOL "Build the GLFW test programs" FORCE)
-set(GLFW_BUILD_DOCS OFF CACHE BOOL "Build the GLFW documentation" FORCE)
-set(GLFW_INSTALL OFF CACHE BOOL "Generate installation target" FORCE)
-
-unset(CMAKE_C_VISIBILITY_PRESET)
-add_subdirectory(vendor/glfw)
-set(CMAKE_C_VISIBILITY_PRESET hidden)
-
-target_compile_options(
- glfw
- PRIVATE
- -Wno-shadow
- -Wno-unused-parameter
- -Wno-sign-compare
- -Wno-missing-field-initializers
-)
-
-if(APPLE)
- # Don't show OpenGL deprecation warnings.
- target_compile_options(glfw PRIVATE -Wno-deprecated-declarations -Wno-unguarded-availability-new)
-
- # get_target_property(DEPLOYMENT_TARGET_VERSION glfw MACOSX_DEPLOYMENT_TARGET) message(STATUS "target: ${DEPLOYMENT_TARGET_VERSION}")
- set_target_properties(glfw PROPERTIES OSX_DEPLOYMENT_TARGET 10.11)
-endif()
-
-if(CMAKE_GENERATOR STREQUAL "Xcode")
- # The Xcode generator always tries to link from this directory instead of the actual output dir.
- set_target_properties(glfw PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/$<CONFIG>")
-endif()