aboutsummaryrefslogtreecommitdiff
path: root/vendor.cmake
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-10-15 07:32:44 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-10-15 07:41:45 +0200
commitc31a89a3b56e7d081178e09cc58add5c5b84a91a (patch)
tree4b547f0c347679fa6b3f118f1ba6a231c58010f1 /vendor.cmake
parentUpdate CMakeLists option names (diff)
downloadsmolbote-c31a89a3b56e7d081178e09cc58add5c5b84a91a.tar.xz
Rewrite vendor.cmake to cmake/VendorConfig.cmake
Add menuconfig-editable .config files to platforms. VendorConfig.cmake looks for and includes .config files based on platform name.
Diffstat (limited to 'vendor.cmake')
-rw-r--r--vendor.cmake61
1 files changed, 0 insertions, 61 deletions
diff --git a/vendor.cmake b/vendor.cmake
deleted file mode 100644
index b6e1819..0000000
--- a/vendor.cmake
+++ /dev/null
@@ -1,61 +0,0 @@
-## Build configuration
-# Feel free to copy this file and change settings as you need. To use your own
-# variant, use -DVendor=<path to your vendor.cmake> when generating the build
-# script.
-
-## Application
-set(poi_exe "poi" CACHE STRING "Executable name")
-set(poi_name "smolbote" CACHE STRING "Application name")
-
-## Configuration paths, used in lib/configuration/defaults.h.in
-if(UNIX)
- set(PathPrefix "~/.config/smolbote")
-else()
- set(PathPrefix ".")
-endif()
-
-set(Path_Config "${PathPrefix}/smolbote.cfg" CACHE STRING "Configuration location")
-set(Path_Crashdump "${PathPrefix}/crash.d" CACHE STRING "Crash dump location")
-
-set(Path_Filter "${PathPrefix}/hosts.d" CACHE STRING "Host path location")
-set(Path_Plugins "${PathPrefix}/plugins.d" CACHE STRING "Plugin load location")
-set(Path_Profiles "${PathPrefix}/profiles.d" CACHE STRING "Profile load location")
-
-set(Path_Bookmarks "${PathPrefix}/bookmarks.xbel" CACHE STRING "Bookmark location")
-set(Path_Downloads "~/Downloads" CACHE STRING "Download location")
-
-## Install Paths
-# Binaries will be installed to ${CMAKE_INSTALL_PREFIX}/${installPath_bin}
-set(installPath_bin bin)
-
-# Plugins will be installed to ${CMAKE_INSTALL_PREFIX}/${installPath_plugin}
-if(WIN32)
- set(installPath_plugin bin/plugins)
-else()
- set(installPath_plugin lib/smolbote)
-endif()
-
-## Version information, used in src/version.h.in
-if (EXISTS "${PROJECT_SOURCE_DIR}/.git")
- execute_process(COMMAND git rev-list --count HEAD WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} OUTPUT_VARIABLE VerRevision OUTPUT_STRIP_TRAILING_WHITESPACE)
- execute_process(COMMAND git rev-parse --short HEAD WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} OUTPUT_VARIABLE VerShortId OUTPUT_STRIP_TRAILING_WHITESPACE)
- execute_process(COMMAND git rev-parse HEAD WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} OUTPUT_VARIABLE VerCommit OUTPUT_STRIP_TRAILING_WHITESPACE)
- execute_process(COMMAND git rev-parse --abbrev-ref HEAD WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} OUTPUT_VARIABLE VerBranch OUTPUT_STRIP_TRAILING_WHITESPACE)
-endif()
-
-set(poi_Version "r${VerRevision}" CACHE STRING "Short version string")
-set(poi_Describe "r${VerRevision}-${VerShortId}" CACHE STRING "Long version string")
-set(poi_Build "${VerBranch}-${VerCommit}" CACHE STRING "Build string")
-
-
-if("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -O2")
-
-elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -O2 -march=native")
-
-elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")
-
-endif()
-